@osovitny/anatoly 2.0.47 → 2.0.49
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/README.md +24 -2
- package/assets/styles/alerts.less +182 -0
- package/assets/styles/spinner.less +64 -0
- package/assets/styles/toastr.less +192 -0
- package/bundles/osovitny-anatoly.umd.js +91 -49
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/esm2015/lib/core/consts/settings.js +1 -1
- package/esm2015/lib/core/consts/urls.js +1 -1
- package/esm2015/lib/core/convert.js +1 -1
- package/esm2015/lib/core/core.module.js +1 -1
- package/esm2015/lib/core/go/base-go.service.js +1 -1
- package/esm2015/lib/core/guards/once-import.guard.js +1 -1
- package/esm2015/lib/core/guid.js +1 -1
- package/esm2015/lib/core/interceptors/httpInterceptor.js +1 -1
- package/esm2015/lib/core/localization/localization.module.js +1 -1
- package/esm2015/lib/core/localization/localization.service.js +1 -1
- package/esm2015/lib/core/localization/localizationSettings.module.js +1 -1
- package/esm2015/lib/core/localization/localize.pipe.js +1 -1
- package/esm2015/lib/core/localization/utils.js +1 -1
- package/esm2015/lib/core/logging/globalErrorHandler.js +1 -1
- package/esm2015/lib/core/logging/logging.service.js +1 -1
- package/esm2015/lib/core/notifications/alerts.js +1 -1
- package/esm2015/lib/core/notifications/interfaces/notification.js +2 -1
- package/esm2015/lib/core/notifications/services/notification-service.js +1 -1
- package/esm2015/lib/core/services/appcontext.service.js +1 -1
- package/esm2015/lib/core/services/dm.service.js +1 -1
- package/esm2015/lib/core/services/google-analytics.service.js +1 -1
- package/esm2015/lib/core/services/idle.service.js +1 -1
- package/esm2015/lib/core/services/loading.service.js +1 -1
- package/esm2015/lib/core/services/web-storage.service.js +1 -1
- package/esm2015/lib/core/subs.js +1 -1
- package/esm2015/lib/core/utils.js +1 -1
- package/esm2015/lib/data/base/base-api.service.js +1 -1
- package/esm2015/lib/data/base/grid/base-grid-edit.service.js +1 -1
- package/esm2015/lib/data/base/grid/base-grid-read.service.js +1 -1
- package/esm2015/lib/data/consts.js +1 -1
- package/esm2015/lib/data/data.module.js +1 -1
- package/esm2015/lib/data/services/billing-api.service.js +1 -1
- package/esm2015/lib/data/services/notifications/notifications-api-service.js +1 -1
- package/esm2015/lib/ui/components/base-edit.component.js +6 -2
- package/esm2015/lib/ui/components/base.component.js +6 -1
- package/esm2015/lib/ui/components/billing/buyaccess-button.component.js +1 -1
- package/esm2015/lib/ui/components/billing/subscribe-plan-button.component.js +1 -1
- package/esm2015/lib/ui/components/billing/upgrade-plan-button.component.js +1 -1
- package/esm2015/lib/ui/components/content-header/content-header.component.js +1 -1
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +13 -9
- package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +1 -1
- package/esm2015/lib/ui/components/html-editor/html-editor.component.js +1 -1
- package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +1 -1
- package/esm2015/lib/ui/components/identity/signin-button.component.js +1 -1
- package/esm2015/lib/ui/components/identity/signout-button.component.js +1 -1
- package/esm2015/lib/ui/components/identity/signup-button.component.js +1 -1
- package/esm2015/lib/ui/components/loading/loading.component.js +1 -1
- package/esm2015/lib/ui/components/spinner/spinner.component.js +1 -1
- package/esm2015/lib/ui/directives/native-element.directive.js +1 -1
- package/esm2015/lib/ui/pipes/filesize.pipe.js +1 -1
- package/esm2015/lib/ui/pipes/replace-text.pipe.js +1 -1
- package/esm2015/lib/ui/pipes/safeHtml.pipe.js +1 -1
- package/esm2015/lib/ui/ui.module.js +4 -3
- package/esm2015/lib/ui/validation/form-validation-summary.component.js +1 -1
- package/esm2015/lib/ui/validation/item-validation-summary.component.js +1 -1
- package/esm2015/lib/ui/validation/validation-summary.component.js +7 -1
- package/esm2015/osovitny-anatoly.js +1 -1
- package/esm2015/public-api.js +2 -2
- package/fesm2015/osovitny-anatoly.js +38 -16
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/convert.d.ts +1 -1
- package/lib/core/localization/localize.pipe.d.ts +1 -1
- package/lib/ui/components/base-edit.component.d.ts +1 -1
- package/lib/ui/components/base.component.d.ts +1 -1
- package/lib/ui/components/html-editor/base-html-editor.component.d.ts +3 -3
- package/lib/ui/validation/validation-summary.component.d.ts +1 -1
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +5 -5
- package/bundles/osovitny-anatoly.umd.min.js +0 -16
- package/bundles/osovitny-anatoly.umd.min.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AnatolyLib
|
|
2
2
|
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project anatoly-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project anatoly-lib`.
|
|
8
|
+
|
|
9
|
+
> Note: Don't forget to add `--project anatoly-lib` or else it will be added to the default project in your `angular.json` file.
|
|
10
|
+
|
|
11
|
+
## Build
|
|
12
|
+
|
|
13
|
+
Run `ng build anatoly-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
14
|
+
|
|
15
|
+
## Publishing
|
|
16
|
+
|
|
17
|
+
After building your library with `ng build anatoly-lib`, go to the dist folder `cd dist/anatoly-lib` and run `npm publish`.
|
|
18
|
+
|
|
19
|
+
## Running unit tests
|
|
20
|
+
|
|
21
|
+
Run `ng test anatoly-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
22
|
+
|
|
23
|
+
## Further help
|
|
24
|
+
|
|
25
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
body.swal2-toast-shown {
|
|
2
|
+
.swal2-container.swal2-top-end {
|
|
3
|
+
|
|
4
|
+
.swal2-popup.swal2-toast {
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: auto;
|
|
8
|
+
padding: 1.5em;
|
|
9
|
+
overflow-y: hidden;
|
|
10
|
+
background: #fff;
|
|
11
|
+
box-shadow: 0 0 0.625em #d9d9d9;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.swal2-header {
|
|
15
|
+
.swal2-icon {
|
|
16
|
+
position: absolute;
|
|
17
|
+
margin: 0;
|
|
18
|
+
width: 2em;
|
|
19
|
+
height: 2em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.swal2-title {
|
|
23
|
+
font-size:18px;
|
|
24
|
+
margin: 0 0 0 50px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.swal2-content {
|
|
29
|
+
margin: 0 0 0 35px;
|
|
30
|
+
font-size: 1.2em;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.swal2-container {
|
|
36
|
+
|
|
37
|
+
.swal2-popup {
|
|
38
|
+
background: #fff;
|
|
39
|
+
position: relative;
|
|
40
|
+
padding: 15px;
|
|
41
|
+
text-align: left;
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
|
|
44
|
+
.swal2-toast {
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
align-items: center;
|
|
47
|
+
width: auto;
|
|
48
|
+
padding: 1.2em;
|
|
49
|
+
overflow-y: hidden;
|
|
50
|
+
background: #fff;
|
|
51
|
+
box-shadow: 0 0 0.625em #d9d9d9;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.swal2-header {
|
|
55
|
+
display: block;
|
|
56
|
+
|
|
57
|
+
.swal2-icon {
|
|
58
|
+
position: absolute;
|
|
59
|
+
margin: 45px 10px;
|
|
60
|
+
width: 2em;
|
|
61
|
+
height: 2em;
|
|
62
|
+
|
|
63
|
+
&.swal2-success [class^=swal2-success-line][class$=long] {
|
|
64
|
+
top: 1em;
|
|
65
|
+
right: .1em;
|
|
66
|
+
width: 1.2em;
|
|
67
|
+
transform: rotate(-45deg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.swal2-success [class^=swal2-success-circular-line] {
|
|
71
|
+
position: absolute;
|
|
72
|
+
width: 1.75em;
|
|
73
|
+
height: 1.5em;
|
|
74
|
+
transform: rotate(45deg);
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.swal2-success {
|
|
79
|
+
border-color: #a5dc86;
|
|
80
|
+
color: #a5dc86;
|
|
81
|
+
|
|
82
|
+
&.swal2-success [class^=swal2-success-line][class$=tip] {
|
|
83
|
+
top: 1em;
|
|
84
|
+
left: 0.2em;
|
|
85
|
+
width: 1em;
|
|
86
|
+
transform: rotate(45deg);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.swal2-success-circular-line-left {
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.swal2-success-line-tip {
|
|
93
|
+
top: 1em;
|
|
94
|
+
left: 0.2em;
|
|
95
|
+
width: 1em;
|
|
96
|
+
transform: rotate(45deg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.swal2-success-line-long {
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.swal2-success-ring {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.swal2-success-fix {
|
|
106
|
+
position: absolute;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
top: 1em;
|
|
109
|
+
left: -0.9em;
|
|
110
|
+
width: 1.1375em;
|
|
111
|
+
height: 2.625em;
|
|
112
|
+
transform: rotate(-45deg);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
.swal2-success-circular-line-right {
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
&.swal2-error [class^=swal2-x-mark-line] {
|
|
122
|
+
display: block;
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: 0.85em;
|
|
125
|
+
width: 1.6575em;
|
|
126
|
+
height: .3125em;
|
|
127
|
+
border-radius: .125em;
|
|
128
|
+
background-color: #f27474;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.swal2-error {
|
|
132
|
+
border-color: #f27474;
|
|
133
|
+
color: #f27474;
|
|
134
|
+
top: .85em;
|
|
135
|
+
|
|
136
|
+
.swal2-x-mark {
|
|
137
|
+
.swal2-x-mark-line-left {
|
|
138
|
+
left: 0.2em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.swal2-x-mark-line-right {
|
|
142
|
+
right: 0.2em;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.swal2-icon-content {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
font-size: 2em;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.swal2-title {
|
|
155
|
+
font-size: 18px;
|
|
156
|
+
margin-bottom: 16px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.swal2-content {
|
|
161
|
+
text-align: left;
|
|
162
|
+
margin: 0 0 0 65px;
|
|
163
|
+
color: #000;
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.swal2-actions {
|
|
168
|
+
display: flex;
|
|
169
|
+
z-index: 1;
|
|
170
|
+
flex-wrap: wrap;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: flex-end;
|
|
173
|
+
width: 100%;
|
|
174
|
+
|
|
175
|
+
button {
|
|
176
|
+
padding: 5px 20px;
|
|
177
|
+
border-radius: 0;
|
|
178
|
+
font-size: 1em;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#spinner-loader {
|
|
2
|
+
top: 0;
|
|
3
|
+
left: 0;
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 9999;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.loader-bg {
|
|
11
|
+
height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
filter: alpha(opacity=70);
|
|
15
|
+
opacity: .7;
|
|
16
|
+
background-color: #002776;
|
|
17
|
+
|
|
18
|
+
.line-material {
|
|
19
|
+
top: 0;
|
|
20
|
+
position: relative;
|
|
21
|
+
margin: auto;
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
&.colored-parent, .colored > div {
|
|
25
|
+
background-color: #333;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mice-child {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 4px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
transform-origin: 0% 0%;
|
|
35
|
+
-webkit-animation: line-material 2s ease-in-out 0s infinite both;
|
|
36
|
+
animation: line-material 2s ease-in-out 0s infinite both;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@-webkit-keyframes line-material {
|
|
42
|
+
0%, 80%, 100% {
|
|
43
|
+
-webkit-transform: scaleX(0);
|
|
44
|
+
transform: scaleX(0);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
40% {
|
|
48
|
+
-webkit-transform: scaleX(1);
|
|
49
|
+
transform: scaleX(1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes line-material {
|
|
54
|
+
0% {
|
|
55
|
+
-webkit-transform: scaleX(0);
|
|
56
|
+
transform: scaleX(0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
100% {
|
|
60
|
+
-webkit-transform: scaleX(1);
|
|
61
|
+
transform: scaleX(1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* based on angular-toastr css https://github.com/Foxandxss/angular-toastr/blob/cb508fe6801d6b288d3afc525bb40fee1b101650/dist/angular-toastr.css */
|
|
2
|
+
|
|
3
|
+
/* position */
|
|
4
|
+
.toast-center-center {
|
|
5
|
+
top: 50%;
|
|
6
|
+
left: 50%;
|
|
7
|
+
transform: translate(-50%, -50%);
|
|
8
|
+
}
|
|
9
|
+
.toast-top-center {
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
.toast-bottom-center {
|
|
15
|
+
bottom: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
.toast-top-full-width {
|
|
20
|
+
top: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
.toast-bottom-full-width {
|
|
25
|
+
bottom: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.toast-top-left {
|
|
30
|
+
top: 12px;
|
|
31
|
+
left: 12px;
|
|
32
|
+
}
|
|
33
|
+
.toast-top-right {
|
|
34
|
+
top: 12px;
|
|
35
|
+
right: 12px;
|
|
36
|
+
}
|
|
37
|
+
.toast-bottom-right {
|
|
38
|
+
right: 12px;
|
|
39
|
+
bottom: 12px;
|
|
40
|
+
}
|
|
41
|
+
.toast-bottom-left {
|
|
42
|
+
bottom: 12px;
|
|
43
|
+
left: 12px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* toast styles */
|
|
47
|
+
.toast-title {
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
}
|
|
50
|
+
.toast-message {
|
|
51
|
+
word-wrap: break-word;
|
|
52
|
+
}
|
|
53
|
+
.toast-message a,
|
|
54
|
+
.toast-message label {
|
|
55
|
+
color: #FFFFFF;
|
|
56
|
+
}
|
|
57
|
+
.toast-message a:hover {
|
|
58
|
+
color: #CCCCCC;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
}
|
|
61
|
+
.toast-close-button {
|
|
62
|
+
position: relative;
|
|
63
|
+
right: -0.3em;
|
|
64
|
+
top: -0.3em;
|
|
65
|
+
float: right;
|
|
66
|
+
font-size: 20px;
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
color: #FFFFFF;
|
|
69
|
+
text-shadow: 0 1px 0 #ffffff;
|
|
70
|
+
/* opacity: 0.8; */
|
|
71
|
+
}
|
|
72
|
+
.toast-close-button:hover,
|
|
73
|
+
.toast-close-button:focus {
|
|
74
|
+
color: #000000;
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
opacity: 0.4;
|
|
78
|
+
}
|
|
79
|
+
/*Additional properties for button version
|
|
80
|
+
iOS requires the button element instead of an anchor tag.
|
|
81
|
+
If you want the anchor version, it requires `href="#"`.*/
|
|
82
|
+
button.toast-close-button {
|
|
83
|
+
padding: 0;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
background: transparent;
|
|
86
|
+
border: 0;
|
|
87
|
+
}
|
|
88
|
+
.toast-container {
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
position: fixed;
|
|
91
|
+
z-index: 999999;
|
|
92
|
+
}
|
|
93
|
+
.toast-container * {
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
}
|
|
96
|
+
.toast-container .ngx-toastr {
|
|
97
|
+
position: relative;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
margin: 0 0 6px;
|
|
100
|
+
padding: 15px 15px 15px 50px;
|
|
101
|
+
width: 300px;
|
|
102
|
+
border-radius: 3px 3px 3px 3px;
|
|
103
|
+
background-position: 15px center;
|
|
104
|
+
background-repeat: no-repeat;
|
|
105
|
+
background-size: 24px;
|
|
106
|
+
box-shadow: 0 0 12px #999999;
|
|
107
|
+
color: #FFFFFF;
|
|
108
|
+
}
|
|
109
|
+
.toast-container .ngx-toastr:hover {
|
|
110
|
+
box-shadow: 0 0 12px #000000;
|
|
111
|
+
opacity: 1;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/info-circle.svg */
|
|
115
|
+
.toast-info {
|
|
116
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512'%3E%3Cpath fill='rgb(255,255,255)' d='M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z'/%3E%3C/svg%3E");
|
|
117
|
+
}
|
|
118
|
+
/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/times-circle.svg */
|
|
119
|
+
.toast-error {
|
|
120
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512'%3E%3Cpath fill='rgb(255,255,255)' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z'/%3E%3C/svg%3E");
|
|
121
|
+
}
|
|
122
|
+
/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/check.svg */
|
|
123
|
+
.toast-success {
|
|
124
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512'%3E%3Cpath fill='rgb(255,255,255)' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
|
|
125
|
+
}
|
|
126
|
+
/* https://github.com/FortAwesome/Font-Awesome-Pro/blob/master/advanced-options/raw-svg/regular/exclamation-triangle.svg */
|
|
127
|
+
.toast-warning {
|
|
128
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' width='576' height='512'%3E%3Cpath fill='rgb(255,255,255)' d='M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z'/%3E%3C/svg%3E");
|
|
129
|
+
}
|
|
130
|
+
.toast-container.toast-top-center .ngx-toastr,
|
|
131
|
+
.toast-container.toast-bottom-center .ngx-toastr {
|
|
132
|
+
width: 300px;
|
|
133
|
+
margin-left: auto;
|
|
134
|
+
margin-right: auto;
|
|
135
|
+
}
|
|
136
|
+
.toast-container.toast-top-full-width .ngx-toastr,
|
|
137
|
+
.toast-container.toast-bottom-full-width .ngx-toastr {
|
|
138
|
+
width: 96%;
|
|
139
|
+
margin-left: auto;
|
|
140
|
+
margin-right: auto;
|
|
141
|
+
}
|
|
142
|
+
.ngx-toastr {
|
|
143
|
+
background-color: #030303;
|
|
144
|
+
pointer-events: auto;
|
|
145
|
+
}
|
|
146
|
+
.toast-success {
|
|
147
|
+
background-color: #51A351;
|
|
148
|
+
}
|
|
149
|
+
.toast-error {
|
|
150
|
+
background-color: #BD362F;
|
|
151
|
+
}
|
|
152
|
+
.toast-info {
|
|
153
|
+
background-color: #2F96B4;
|
|
154
|
+
}
|
|
155
|
+
.toast-warning {
|
|
156
|
+
background-color: #F89406;
|
|
157
|
+
}
|
|
158
|
+
.toast-progress {
|
|
159
|
+
position: absolute;
|
|
160
|
+
left: 0;
|
|
161
|
+
bottom: 0;
|
|
162
|
+
height: 4px;
|
|
163
|
+
background-color: #000000;
|
|
164
|
+
opacity: 0.4;
|
|
165
|
+
}
|
|
166
|
+
/* Responsive Design */
|
|
167
|
+
@media all and (max-width: 240px) {
|
|
168
|
+
.toast-container .ngx-toastr.div {
|
|
169
|
+
padding: 8px 8px 8px 50px;
|
|
170
|
+
width: 11em;
|
|
171
|
+
}
|
|
172
|
+
.toast-container .toast-close-button {
|
|
173
|
+
right: -0.2em;
|
|
174
|
+
top: -0.2em;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@media all and (min-width: 241px) and (max-width: 480px) {
|
|
178
|
+
.toast-container .ngx-toastr.div {
|
|
179
|
+
padding: 8px 8px 8px 50px;
|
|
180
|
+
width: 18em;
|
|
181
|
+
}
|
|
182
|
+
.toast-container .toast-close-button {
|
|
183
|
+
right: -0.2em;
|
|
184
|
+
top: -0.2em;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
@media all and (min-width: 481px) and (max-width: 768px) {
|
|
188
|
+
.toast-container .ngx-toastr.div {
|
|
189
|
+
padding: 15px 15px 15px 50px;
|
|
190
|
+
width: 25em;
|
|
191
|
+
}
|
|
192
|
+
}
|