coer-elements 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/components/index.d.ts +2 -0
  2. package/components/lib/coer-alert/coer-alert.component.d.ts +23 -0
  3. package/components/lib/components.module.d.ts +10 -0
  4. package/esm2022/coer-elements.mjs +2 -2
  5. package/esm2022/components/index.mjs +3 -0
  6. package/esm2022/components/lib/coer-alert/coer-alert.component.mjs +227 -0
  7. package/esm2022/components/lib/components.module.mjs +92 -0
  8. package/esm2022/public_api.mjs +2 -0
  9. package/fesm2022/coer-elements.mjs +309 -0
  10. package/fesm2022/coer-elements.mjs.map +1 -1
  11. package/index.d.ts +5 -1
  12. package/package.json +1 -1
  13. package/public_api.d.ts +1 -0
  14. package/src/styles/bootstrap.scss +15 -0
  15. package/src/styles/coer-elements.scss +29 -0
  16. package/{styles → src/styles}/colors.scss +27 -1
  17. package/src/styles/containers.scss +34 -0
  18. package/src/styles/cursores.scss +11 -0
  19. package/src/styles/layout.scss +21 -0
  20. package/src/styles/scroll-bar.scss +20 -0
  21. package/styles/{index.css → coer-elements.css} +268 -26
  22. package/components/index.ts +0 -2
  23. package/components/src/coer-alert/coer-alert.component.html +0 -56
  24. package/components/src/coer-alert/coer-alert.component.scss +0 -100
  25. package/components/src/coer-alert/coer-alert.component.ts +0 -249
  26. package/components/src/components.module.ts +0 -97
  27. package/esm2022/index.mjs +0 -2
  28. package/interfaces/index.ts +0 -6
  29. package/interfaces/src/IAppSource.interface.ts +0 -4
  30. package/interfaces/src/IBreadcrumb.interface.ts +0 -6
  31. package/interfaces/src/ICoerRef.interface.ts +0 -11
  32. package/interfaces/src/IGoBack.interface.ts +0 -6
  33. package/interfaces/src/IPatch.interface.ts +0 -5
  34. package/interfaces/src/IScreenSize.interface.ts +0 -5
  35. package/styles/index.scss +0 -98
  36. package/tools/index.ts +0 -8
  37. package/tools/src/Breadcrumbs.class.ts +0 -84
  38. package/tools/src/ControlValue.ts +0 -63
  39. package/tools/src/DateTime.class.ts +0 -27
  40. package/tools/src/Files.class.ts +0 -119
  41. package/tools/src/Page.class.ts +0 -197
  42. package/tools/src/Screen.class.ts +0 -50
  43. package/tools/src/Source.class.ts +0 -107
  44. package/tools/src/Tools.ts +0 -217
@@ -1,4 +1,313 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { RouterModule } from '@angular/router';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import * as bootstrap from 'bootstrap';
7
+ import Swal from 'sweetalert2';
8
+
9
+ class CoerAlert {
10
+ /** */
11
+ Success(message = null, title = null, icon = null, autohide = 3000) {
12
+ //Title
13
+ if (!title || title == '')
14
+ title = 'Success';
15
+ const alertSuccessTitle = document.getElementById('alert-success-title');
16
+ alertSuccessTitle.textContent = title;
17
+ //Icon
18
+ icon = this.GetIcon(title, icon, 'bi-check-circle fa-beat');
19
+ const alertSuccessIcon = document.getElementById('alert-success-icon');
20
+ this.SetIcon(alertSuccessIcon, icon);
21
+ //Message
22
+ if (!message)
23
+ message = '';
24
+ const alertSuccessMessage = document.getElementById('alert-success-message');
25
+ alertSuccessMessage.innerHTML = message;
26
+ //Toast
27
+ const alertSuccess = document.getElementById('alert-success');
28
+ this.SetAutoHide(alertSuccess, autohide);
29
+ const toast = bootstrap.Toast.getOrCreateInstance(alertSuccess);
30
+ toast.show();
31
+ }
32
+ /** */
33
+ Error(message = null, title = null, icon = null, autohide = 3000) {
34
+ //Title
35
+ if (!title || title == '')
36
+ title = 'Error';
37
+ const alertErrorTitle = document.getElementById('alert-error-title');
38
+ alertErrorTitle.textContent = title;
39
+ //Icon
40
+ icon = this.GetIcon(title, icon, 'bi-exclamation-octagon fa-beat');
41
+ const alertErrorIcon = document.getElementById('alert-error-icon');
42
+ this.SetIcon(alertErrorIcon, icon);
43
+ //Message
44
+ if (!message)
45
+ message = '';
46
+ const alertErrorBody = document.getElementById('alert-error-message');
47
+ alertErrorBody.innerHTML = message;
48
+ //Toast
49
+ const alertError = document.getElementById('alert-error');
50
+ this.SetAutoHide(alertError, autohide);
51
+ const toast = bootstrap.Toast.getOrCreateInstance(alertError);
52
+ toast.show();
53
+ }
54
+ /** */
55
+ Info(message = null, title = null, icon = null, autohide = 3000) {
56
+ //Title
57
+ if (!title || title == '')
58
+ title = 'Info';
59
+ const alertInfoTitle = document.getElementById('alert-info-title');
60
+ alertInfoTitle.textContent = title;
61
+ //Icon
62
+ icon = this.GetIcon(title, icon, 'bi-info-circle fa-beat');
63
+ const alertInfoIcon = document.getElementById('alert-info-icon');
64
+ this.SetIcon(alertInfoIcon, icon);
65
+ //Message
66
+ if (!message)
67
+ message = '';
68
+ const alertInfoBody = document.getElementById('alert-info-message');
69
+ alertInfoBody.innerHTML = message;
70
+ //Toast
71
+ const alertInfo = document.getElementById('alert-info');
72
+ this.SetAutoHide(alertInfo, autohide);
73
+ const toast = bootstrap.Toast.getOrCreateInstance(alertInfo);
74
+ toast.show();
75
+ }
76
+ /** */
77
+ Warning(message = null, title = null, icon = null, autohide = 3000) {
78
+ //Title
79
+ if (!title || title == '')
80
+ title = 'Warning';
81
+ const alertWarningTitle = document.getElementById('alert-warning-title');
82
+ alertWarningTitle.textContent = title;
83
+ //Icon
84
+ icon = this.GetIcon(title, icon, 'bi-exclamation-triangle-fill fa-beat');
85
+ const alertWarningIcon = document.getElementById('alert-warning-icon');
86
+ this.SetIcon(alertWarningIcon, icon);
87
+ //Message
88
+ if (!message)
89
+ message = '';
90
+ const alertWarningBody = document.getElementById('alert-warning-message');
91
+ alertWarningBody.innerHTML = message;
92
+ //Toast
93
+ const alertWarning = document.getElementById('alert-warning');
94
+ this.SetAutoHide(alertWarning, autohide);
95
+ const toast = bootstrap.Toast.getOrCreateInstance(alertWarning);
96
+ toast.show();
97
+ }
98
+ /** */
99
+ Close(alert) {
100
+ return new Promise(Resolve => {
101
+ const element = document.getElementById(alert);
102
+ const toast = bootstrap.Toast.getOrCreateInstance(element);
103
+ toast.hide();
104
+ setTimeout(() => { Resolve(); }, 200);
105
+ });
106
+ }
107
+ /** */
108
+ Confirm(message = 'Proceed?', alertType = 'warning', icon = null) {
109
+ return new Promise(Resolve => {
110
+ let color;
111
+ let iconType;
112
+ switch (alertType) {
113
+ case 'danger':
114
+ {
115
+ if (icon == null)
116
+ icon = 'bi-exclamation-octagon';
117
+ iconType = 'error';
118
+ color = '#dc3545'; //red
119
+ break;
120
+ }
121
+ ;
122
+ case 'success':
123
+ {
124
+ if (icon == null)
125
+ icon = 'bi-check-circle';
126
+ iconType = 'info';
127
+ color = '#198754'; //green
128
+ break;
129
+ }
130
+ ;
131
+ case 'info':
132
+ {
133
+ if (icon == null)
134
+ icon = 'bi-info-circle';
135
+ iconType = 'error';
136
+ color = '#0d6efd'; //blue
137
+ break;
138
+ }
139
+ ;
140
+ default: {
141
+ if (icon == null)
142
+ icon = 'bi-exclamation-triangle-fill';
143
+ iconType = 'warning';
144
+ color = '#ffc107'; //yellow
145
+ break;
146
+ }
147
+ }
148
+ switch (icon) {
149
+ case 'delete':
150
+ icon = 'fa-regular fa-trash-can';
151
+ break;
152
+ }
153
+ Swal.fire({
154
+ icon: iconType,
155
+ iconColor: 'transparent',
156
+ iconHtml: `<i class="${icon}" style="color: ${color};"></i>`,
157
+ html: message,
158
+ showConfirmButton: true,
159
+ confirmButtonText: 'Yes',
160
+ confirmButtonColor: color,
161
+ focusConfirm: true,
162
+ showDenyButton: true,
163
+ denyButtonColor: color,
164
+ focusDeny: false,
165
+ reverseButtons: true,
166
+ allowOutsideClick: false,
167
+ allowEscapeKey: false,
168
+ allowEnterKey: true,
169
+ customClass: {
170
+ denyButton: 'sweet-alert-button',
171
+ confirmButton: 'sweet-alert-button'
172
+ }
173
+ }).then(({ value }) => setTimeout(() => Resolve(value)));
174
+ });
175
+ }
176
+ /** */
177
+ SetIcon(element, icon) {
178
+ for (const item of [...element.classList.value.split(' ')]) {
179
+ if (item.length > 0) {
180
+ element.classList.remove(item);
181
+ element.classList.remove('q');
182
+ }
183
+ }
184
+ icon = icon.trim();
185
+ const hasWhiteSpaces = / /;
186
+ if (hasWhiteSpaces.test(icon)) {
187
+ const classes = icon.split(' ');
188
+ for (const icon of classes)
189
+ element.classList.add(icon);
190
+ }
191
+ else
192
+ element.classList.add(icon);
193
+ }
194
+ /** */
195
+ SetAutoHide(element, autohide) {
196
+ element.removeAttribute('data-bs-autohide');
197
+ element.removeAttribute('data-bs-delay');
198
+ if (autohide && autohide > 0) {
199
+ if (autohide < 1000)
200
+ autohide = 1000;
201
+ element.setAttribute('data-bs-autohide', 'true');
202
+ element.setAttribute('data-bs-delay', String(autohide));
203
+ }
204
+ else
205
+ element.setAttribute('data-bs-autohide', 'false');
206
+ }
207
+ /** */
208
+ GetIcon(title, icon, iconDefault) {
209
+ if (icon == null || icon == '') {
210
+ title = title.replaceAll(' ', '').toUpperCase();
211
+ switch (title) {
212
+ case 'ENABLED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
213
+ case 'ACTIVE': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
214
+ case 'ACTIVED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
215
+ case 'DISABLE': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
216
+ case 'DISABLED': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
217
+ case 'DELETE': return 'fa-regular fa-trash-can';
218
+ case 'DELETED': return 'fa-regular fa-trash-can';
219
+ default: return iconDefault;
220
+ }
221
+ }
222
+ return icon;
223
+ }
224
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
225
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CoerAlert, selector: "coer-alert", ngImport: i0, template: "<aside class=\"toast-container coer-alert\">\r\n <!-- Success -->\r\n <div id=\"alert-success\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-success-icon\"></i>\r\n <strong id=\"alert-success-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-success')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-success-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Error -->\r\n <div id=\"alert-error\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-error-icon\"></i>\r\n <strong id=\"alert-error-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-error')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-error-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Info -->\r\n <div id=\"alert-info\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-info-icon\"></i>\r\n <strong id=\"alert-info-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-info')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-info-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Warning -->\r\n <div id=\"alert-warning\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-warning-icon\"></i>\r\n <strong id=\"alert-warning-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-warning')\" class=\"btn-close\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-warning-message\"></pre>\r\n </div>\r\n </div>\r\n</aside>", styles: [".text-blue{color:#0d6efd!important}.text-blue-bold{color:#0d6efd!important;font-weight:700!important}.background-blue{background-color:#0d6efd!important}.background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}.border-blue{border-color:#0d6efd!important}.text-gray{color:#6c757d!important}.text-gray-bold{color:#6c757d!important;font-weight:700!important}.background-gray{background-color:#6c757d!important}.background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}.border-gray{border-color:#6c757d!important}.text-green{color:#198754!important}.text-green-bold{color:#198754!important;font-weight:700!important}.background-green{background-color:#198754!important}.background-border-green{background-color:#198754!important;border-color:#198754!important}.border-green{border-color:#198754!important}.text-yellow{color:#ffc107!important}.text-yellow-bold{color:#ffc107!important;font-weight:700!important}.background-yellow{background-color:#ffc107!important}.background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}.border-yellow{border-color:#ffc107!important}.text-red{color:#dc3545!important}.text-red-bold{color:#dc3545!important;font-weight:700!important}.background-red{background-color:#dc3545!important}.background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}.border-red{border-color:#dc3545!important}.text-white{color:#f5f5f5!important}.text-white-bold{color:#f5f5f5!important;font-weight:700!important}.background-white{background-color:#f5f5f5!important}.background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}.border-white{border-color:#f5f5f5!important}.text-black{color:#252525!important}.text-black-bold{color:#252525!important;font-weight:700!important}.background-black{background-color:#252525!important}.background-border-black{background-color:#252525!important;border-color:#252525!important}.border-black{border-color:#252525!important}.text-orange{color:#fd6031!important}.text-orange-bold{color:#fd6031!important;font-weight:700!important}.background-orange{background-color:#fd6031!important}.background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}.border-orange{border-color:#fd6031!important}aside.toast-container{position:fixed;bottom:0;right:0;padding:15px!important;z-index:2000!important}aside.toast-container i,aside.toast-container svg{display:flex;align-items:center}aside.toast-container strong{margin:0 auto 0 5px}aside.toast-container div.toast,aside.toast-container div.toast-header{border-top-left-radius:10px;border-top-right-radius:10px;color:#f5f5f5}aside.toast-container div.toast,aside.toast-container div.toast-body{border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#f5f5f5}aside.toast-container div.toast-body{min-height:36px}aside.toast-container pre{font-family:Roboto,RobotoFallback,Noto Kufi Arabic,Helvetica,Arial,sans-serif;white-space:pre-wrap;font-size:medium}aside.toast-container button{margin:0 2px!important;width:10px!important;height:10px!important;box-shadow:none!important;outline:none!important;border:none!important}aside.toast-container div#alert-success div.toast-header,aside.toast-container div#alert-success div.toast-body{background-color:#198754}aside.toast-container div#alert-info div.toast-header,aside.toast-container div#alert-info div.toast-body{background-color:#0d6efd}aside.toast-container div#alert-error div.toast-header,aside.toast-container div#alert-error div.toast-body{background-color:#dc3545}aside.toast-container div#alert-warning div.toast-header,aside.toast-container div#alert-warning div.toast-body{background-color:#ffc107;border-color:#252525;color:#252525}aside.toast-container div#alert-success:hover,aside.toast-container div#alert-info:hover,aside.toast-container div#alert-error:hover,aside.toast-container div#alert-warning:hover{transform:scale(1.01);box-shadow:2px 2px 10px #789;cursor:default}button.sweet-alert-button{width:100px!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0 5px!important;outline:none!important;border:none!important;box-shadow:none!important}aside.toast-container>*{border:none!important;z-index:2000!important;margin:15px 0 0!important}\n"] }); }
226
+ }
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerAlert, decorators: [{
228
+ type: Component,
229
+ args: [{ selector: 'coer-alert', template: "<aside class=\"toast-container coer-alert\">\r\n <!-- Success -->\r\n <div id=\"alert-success\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-success-icon\"></i>\r\n <strong id=\"alert-success-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-success')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-success-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Error -->\r\n <div id=\"alert-error\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-error-icon\"></i>\r\n <strong id=\"alert-error-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-error')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-error-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Info -->\r\n <div id=\"alert-info\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-info-icon\"></i>\r\n <strong id=\"alert-info-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-info')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-info-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Warning -->\r\n <div id=\"alert-warning\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-warning-icon\"></i>\r\n <strong id=\"alert-warning-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-warning')\" class=\"btn-close\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-warning-message\"></pre>\r\n </div>\r\n </div>\r\n</aside>", styles: [".text-blue{color:#0d6efd!important}.text-blue-bold{color:#0d6efd!important;font-weight:700!important}.background-blue{background-color:#0d6efd!important}.background-border-blue{background-color:#0d6efd!important;border-color:#0d6efd!important}.border-blue{border-color:#0d6efd!important}.text-gray{color:#6c757d!important}.text-gray-bold{color:#6c757d!important;font-weight:700!important}.background-gray{background-color:#6c757d!important}.background-border-gray{background-color:#6c757d!important;border-color:#6c757d!important}.border-gray{border-color:#6c757d!important}.text-green{color:#198754!important}.text-green-bold{color:#198754!important;font-weight:700!important}.background-green{background-color:#198754!important}.background-border-green{background-color:#198754!important;border-color:#198754!important}.border-green{border-color:#198754!important}.text-yellow{color:#ffc107!important}.text-yellow-bold{color:#ffc107!important;font-weight:700!important}.background-yellow{background-color:#ffc107!important}.background-border-yellow{background-color:#ffc107!important;border-color:#ffc107!important}.border-yellow{border-color:#ffc107!important}.text-red{color:#dc3545!important}.text-red-bold{color:#dc3545!important;font-weight:700!important}.background-red{background-color:#dc3545!important}.background-border-red{background-color:#dc3545!important;border-color:#dc3545!important}.border-red{border-color:#dc3545!important}.text-white{color:#f5f5f5!important}.text-white-bold{color:#f5f5f5!important;font-weight:700!important}.background-white{background-color:#f5f5f5!important}.background-border-white{background-color:#f5f5f5!important;border-color:#f5f5f5!important}.border-white{border-color:#f5f5f5!important}.text-black{color:#252525!important}.text-black-bold{color:#252525!important;font-weight:700!important}.background-black{background-color:#252525!important}.background-border-black{background-color:#252525!important;border-color:#252525!important}.border-black{border-color:#252525!important}.text-orange{color:#fd6031!important}.text-orange-bold{color:#fd6031!important;font-weight:700!important}.background-orange{background-color:#fd6031!important}.background-border-orange{background-color:#fd6031!important;border-color:#fd6031!important}.border-orange{border-color:#fd6031!important}aside.toast-container{position:fixed;bottom:0;right:0;padding:15px!important;z-index:2000!important}aside.toast-container i,aside.toast-container svg{display:flex;align-items:center}aside.toast-container strong{margin:0 auto 0 5px}aside.toast-container div.toast,aside.toast-container div.toast-header{border-top-left-radius:10px;border-top-right-radius:10px;color:#f5f5f5}aside.toast-container div.toast,aside.toast-container div.toast-body{border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#f5f5f5}aside.toast-container div.toast-body{min-height:36px}aside.toast-container pre{font-family:Roboto,RobotoFallback,Noto Kufi Arabic,Helvetica,Arial,sans-serif;white-space:pre-wrap;font-size:medium}aside.toast-container button{margin:0 2px!important;width:10px!important;height:10px!important;box-shadow:none!important;outline:none!important;border:none!important}aside.toast-container div#alert-success div.toast-header,aside.toast-container div#alert-success div.toast-body{background-color:#198754}aside.toast-container div#alert-info div.toast-header,aside.toast-container div#alert-info div.toast-body{background-color:#0d6efd}aside.toast-container div#alert-error div.toast-header,aside.toast-container div#alert-error div.toast-body{background-color:#dc3545}aside.toast-container div#alert-warning div.toast-header,aside.toast-container div#alert-warning div.toast-body{background-color:#ffc107;border-color:#252525;color:#252525}aside.toast-container div#alert-success:hover,aside.toast-container div#alert-info:hover,aside.toast-container div#alert-error:hover,aside.toast-container div#alert-warning:hover{transform:scale(1.01);box-shadow:2px 2px 10px #789;cursor:default}button.sweet-alert-button{width:100px!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0 5px!important;outline:none!important;border:none!important;box-shadow:none!important}aside.toast-container>*{border:none!important;z-index:2000!important;margin:15px 0 0!important}\n"] }]
230
+ }] });
231
+
232
+ //import { CoerButton } from './coer-button/coer-button.component';
233
+ //import { CoerCheckbox } from './coer-checkbox/coer-checkbox.component';
234
+ //import { CoerFilebox } from './coer-filebox/coer-filebox.component';
235
+ //import { CoerForm } from './coer-form/coer-form.component';
236
+ //import { CoerGrid } from './coer-grid/coer-grid.component';
237
+ //import { CoerModal } from './coer-modal/coer-modal.component';
238
+ //import { CoerNumberBox } from './coer-numberbox/coer-numberbox.component';
239
+ //import { CoerPageTitle } from './coer-page-title/coer-page-title.component';
240
+ //import { CoerSelectbox } from './coer-selectbox/coer-selectbox.component';
241
+ //import { CoerSwitch } from './coer-switch/coer-switch.component';
242
+ //import { CoerTab } from './coer-tab/coer-tab.component';
243
+ //import { CoerTextarea } from './coer-textarea/coer-textarea.component';
244
+ //import { CoerTextBox } from './coer-textbox/coer-textbox.component';
245
+ class ComponentsModule {
246
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
247
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, declarations: [CoerAlert], imports: [CommonModule,
248
+ RouterModule,
249
+ FormsModule,
250
+ ReactiveFormsModule], exports: [CoerAlert] }); }
251
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, imports: [CommonModule,
252
+ RouterModule,
253
+ FormsModule,
254
+ ReactiveFormsModule] }); }
255
+ }
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, decorators: [{
257
+ type: NgModule,
258
+ args: [{
259
+ imports: [
260
+ CommonModule,
261
+ RouterModule,
262
+ FormsModule,
263
+ ReactiveFormsModule,
264
+ //PipesModule,
265
+ //MatButtonModule,
266
+ //MatCheckboxModule,
267
+ //MatInputModule,
268
+ //MatFormFieldModule,
269
+ //MatSlideToggleModule,
270
+ //MatTabsModule,
271
+ //DirectivesModule
272
+ ],
273
+ declarations: [
274
+ CoerAlert,
275
+ //CoerButton,
276
+ //CoerCheckbox,
277
+ //CoerFilebox,
278
+ //CoerForm,
279
+ //CoerGrid,
280
+ //CoerModal,
281
+ //CoerNumberBox,
282
+ //CoerPageTitle,
283
+ //CoerSelectbox,
284
+ //CoerSwitch,
285
+ //CoerTextarea,
286
+ //CoerTab,
287
+ //CoerTextBox,
288
+ ],
289
+ exports: [
290
+ CoerAlert,
291
+ //CoerButton,
292
+ //CoerCheckbox,
293
+ //CoerFilebox,
294
+ //CoerForm,
295
+ //CoerGrid,
296
+ //CoerModal,
297
+ //CoerNumberBox,
298
+ //CoerPageTitle,
299
+ //CoerSelectbox,
300
+ //CoerSwitch,
301
+ //CoerTextarea,
302
+ //CoerTab,
303
+ //CoerTextBox,
304
+ ]
305
+ }]
306
+ }] });
307
+
1
308
  /**
2
309
  * Generated bundle index. Do not edit.
3
310
  */
311
+
312
+ export { CoerAlert, ComponentsModule };
4
313
  //# sourceMappingURL=coer-elements.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/coer-elements.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
1
+ {"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/src/components/lib/coer-alert/coer-alert.component.ts","../../../projects/coer-elements/src/components/lib/coer-alert/coer-alert.component.html","../../../projects/coer-elements/src/components/lib/components.module.ts","../../../projects/coer-elements/src/coer-elements.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport * as bootstrap from 'bootstrap';\r\nimport Swal from 'sweetalert2'\r\n\r\n@Component({\r\n selector: 'coer-alert',\r\n templateUrl: './coer-alert.component.html',\r\n styleUrls: ['./coer-alert.component.scss']\r\n})\r\nexport class CoerAlert {\r\n\r\n /** */\r\n public Success(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {\r\n //Title\r\n if (!title || title == '') title = 'Success';\r\n const alertSuccessTitle = document.getElementById('alert-success-title')!;\r\n alertSuccessTitle.textContent = title;\r\n\r\n //Icon\r\n icon = this.GetIcon(title, icon, 'bi-check-circle fa-beat');\r\n const alertSuccessIcon = document.getElementById('alert-success-icon')!;\r\n this.SetIcon(alertSuccessIcon, icon);\r\n\r\n //Message\r\n if (!message) message = '';\r\n const alertSuccessMessage = document.getElementById('alert-success-message')!;\r\n alertSuccessMessage.innerHTML = message;\r\n\r\n //Toast\r\n const alertSuccess = document.getElementById('alert-success')!;\r\n this.SetAutoHide(alertSuccess, autohide);\r\n\r\n const toast = bootstrap.Toast.getOrCreateInstance(alertSuccess);\r\n toast.show();\r\n }\r\n\r\n\r\n /** */\r\n public Error(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {\r\n //Title\r\n if (!title || title == '') title = 'Error';\r\n const alertErrorTitle = document.getElementById('alert-error-title')!;\r\n alertErrorTitle.textContent = title;\r\n\r\n //Icon\r\n icon = this.GetIcon(title, icon, 'bi-exclamation-octagon fa-beat');\r\n const alertErrorIcon = document.getElementById('alert-error-icon')!;\r\n this.SetIcon(alertErrorIcon, icon);\r\n\r\n //Message\r\n if (!message) message = '';\r\n const alertErrorBody = document.getElementById('alert-error-message')!;\r\n alertErrorBody.innerHTML = message;\r\n\r\n //Toast\r\n const alertError = document.getElementById('alert-error')!;\r\n this.SetAutoHide(alertError, autohide);\r\n\r\n const toast = bootstrap.Toast.getOrCreateInstance(alertError);\r\n toast.show();\r\n }\r\n\r\n\r\n /** */\r\n public Info(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {\r\n //Title\r\n if (!title || title == '') title = 'Info';\r\n const alertInfoTitle = document.getElementById('alert-info-title')!;\r\n alertInfoTitle.textContent = title;\r\n\r\n //Icon\r\n icon = this.GetIcon(title, icon, 'bi-info-circle fa-beat');\r\n const alertInfoIcon = document.getElementById('alert-info-icon')!;\r\n this.SetIcon(alertInfoIcon, icon);\r\n\r\n //Message\r\n if (!message) message = '';\r\n const alertInfoBody = document.getElementById('alert-info-message')!;\r\n alertInfoBody.innerHTML = message;\r\n\r\n //Toast\r\n const alertInfo = document.getElementById('alert-info')!;\r\n this.SetAutoHide(alertInfo, autohide);\r\n\r\n const toast = bootstrap.Toast.getOrCreateInstance(alertInfo);\r\n toast.show();\r\n }\r\n\r\n\r\n /** */\r\n public Warning(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {\r\n //Title\r\n if (!title || title == '') title = 'Warning';\r\n const alertWarningTitle = document.getElementById('alert-warning-title')!;\r\n alertWarningTitle.textContent = title;\r\n\r\n //Icon\r\n icon = this.GetIcon(title, icon, 'bi-exclamation-triangle-fill fa-beat');\r\n const alertWarningIcon = document.getElementById('alert-warning-icon')!;\r\n this.SetIcon(alertWarningIcon, icon);\r\n\r\n //Message\r\n if (!message) message = '';\r\n const alertWarningBody = document.getElementById('alert-warning-message')!;\r\n alertWarningBody.innerHTML = message;\r\n\r\n //Toast\r\n const alertWarning = document.getElementById('alert-warning')!;\r\n this.SetAutoHide(alertWarning, autohide);\r\n\r\n const toast = bootstrap.Toast.getOrCreateInstance(alertWarning);\r\n toast.show();\r\n }\r\n\r\n\r\n /** */\r\n protected Close(alert: 'alert-success' | 'alert-error' | 'alert-info' | 'alert-warning') {\r\n return new Promise<void>(Resolve => {\r\n const element = document.getElementById(alert)!;\r\n const toast = bootstrap.Toast.getOrCreateInstance(element);\r\n toast.hide();\r\n\r\n setTimeout(() => { Resolve() }, 200);\r\n })\r\n }\r\n\r\n\r\n /** */\r\n public Confirm(\r\n message: string = 'Proceed?',\r\n alertType: 'warning' | 'danger' | 'success' | 'info' = 'warning',\r\n icon: string | null = null) {\r\n return new Promise<boolean>(Resolve => {\r\n let color: string;\r\n let iconType: 'warning' | 'error' | 'success' | 'info';\r\n switch(alertType) {\r\n case 'danger': {\r\n if (icon == null) icon = 'bi-exclamation-octagon';\r\n iconType = 'error';\r\n color = '#dc3545'; //red\r\n break;\r\n };\r\n\r\n case 'success': {\r\n if (icon == null) icon = 'bi-check-circle';\r\n iconType = 'info';\r\n color = '#198754'; //green\r\n break;\r\n };\r\n\r\n case 'info': {\r\n if (icon == null) icon = 'bi-info-circle';\r\n iconType = 'error';\r\n color = '#0d6efd'; //blue\r\n break\r\n };\r\n\r\n default: {\r\n if (icon == null) icon = 'bi-exclamation-triangle-fill';\r\n iconType = 'warning';\r\n color = '#ffc107'; //yellow\r\n break;\r\n }\r\n }\r\n\r\n switch(icon) {\r\n case 'delete': icon = 'fa-regular fa-trash-can'; break;\r\n }\r\n\r\n Swal.fire({\r\n icon: iconType,\r\n iconColor: 'transparent',\r\n iconHtml: `<i class=\"${icon}\" style=\"color: ${color};\"></i>`,\r\n html: message,\r\n showConfirmButton: true,\r\n confirmButtonText: 'Yes',\r\n confirmButtonColor: color,\r\n focusConfirm: true,\r\n showDenyButton: true,\r\n denyButtonColor: color,\r\n focusDeny: false,\r\n reverseButtons: true,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: true,\r\n customClass: {\r\n denyButton: 'sweet-alert-button',\r\n confirmButton: 'sweet-alert-button'\r\n }\r\n }).then(({ value }) => setTimeout(() => Resolve(value)));\r\n });\r\n }\r\n\r\n\r\n /** */\r\n private SetIcon(element: HTMLElement, icon: string): void {\r\n for (const item of [...element.classList.value.split(' ')]) {\r\n if (item.length > 0) {\r\n element.classList.remove(item);\r\n element.classList.remove('q');\r\n }\r\n }\r\n\r\n icon = icon.trim();\r\n const hasWhiteSpaces: RegExp = / /;\r\n if (hasWhiteSpaces.test(icon)) {\r\n const classes = icon.split(' ');\r\n for (const icon of classes) element.classList.add(icon);\r\n }\r\n\r\n else element.classList.add(icon);\r\n }\r\n\r\n\r\n /** */\r\n private SetAutoHide(element: HTMLElement, autohide: number | null): void {\r\n element.removeAttribute('data-bs-autohide');\r\n element.removeAttribute('data-bs-delay');\r\n\r\n if (autohide && autohide > 0) {\r\n if (autohide < 1000) autohide = 1000;\r\n element.setAttribute('data-bs-autohide', 'true');\r\n element.setAttribute('data-bs-delay', String(autohide));\r\n }\r\n\r\n else element.setAttribute('data-bs-autohide', 'false');\r\n }\r\n\r\n\r\n /** */\r\n private GetIcon(title: string, icon: string | null, iconDefault: string): string {\r\n if (icon == null || icon == '') {\r\n title = title.replaceAll(' ', '').toUpperCase();\r\n\r\n switch(title) {\r\n case 'ENABLED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';\r\n case 'ACTIVE': return 'fa-solid fa-thumbs-up fa-flip-horizontal';\r\n case 'ACTIVED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';\r\n case 'DISABLE': return 'fa-solid fa-thumbs-down fa-flip-horizontal';\r\n case 'DISABLED': return 'fa-solid fa-thumbs-down fa-flip-horizontal';\r\n case 'DELETE': return 'fa-regular fa-trash-can';\r\n case 'DELETED': return 'fa-regular fa-trash-can';\r\n default: return iconDefault;\r\n }\r\n }\r\n\r\n return icon;\r\n }\r\n}","<aside class=\"toast-container coer-alert\">\r\n <!-- Success -->\r\n <div id=\"alert-success\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-success-icon\"></i>\r\n <strong id=\"alert-success-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-success')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-success-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Error -->\r\n <div id=\"alert-error\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-error-icon\"></i>\r\n <strong id=\"alert-error-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-error')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-error-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Info -->\r\n <div id=\"alert-info\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-info-icon\"></i>\r\n <strong id=\"alert-info-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-info')\" class=\"btn-close btn-close-white\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-info-message\"></pre>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Warning -->\r\n <div id=\"alert-warning\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" class=\"toast\">\r\n <div class=\"toast-header\">\r\n <i id=\"alert-warning-icon\"></i>\r\n <strong id=\"alert-warning-title\"></strong>\r\n <button type=\"button\" (click)=\"Close('alert-warning')\" class=\"btn-close\"></button>\r\n </div>\r\n\r\n <div class=\"toast-body\">\r\n <pre id=\"alert-warning-message\"></pre>\r\n </div>\r\n </div>\r\n</aside>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\n//import { DirectivesModule } from 'src/app/shared/directives/directives.module';\r\n//import { PipesModule } from 'src/app/shared/pipes/pipes.module';\r\n\r\n//Angular Material\r\n//import { MatButtonModule } from '@angular/material/button';\r\n//import { MatCheckboxModule } from '@angular/material/checkbox';\r\n//import { MatInputModule } from '@angular/material/input';\r\n//import { MatFormFieldModule } from '@angular/material/form-field';\r\n//import { MatSlideToggleModule } from '@angular/material/slide-toggle';\r\n//import { MatTabsModule } from '@angular/material/tabs';\r\n\r\n//Components\r\nimport { CoerAlert } from './coer-alert/coer-alert.component';\r\n//import { CoerButton } from './coer-button/coer-button.component';\r\n//import { CoerCheckbox } from './coer-checkbox/coer-checkbox.component';\r\n//import { CoerFilebox } from './coer-filebox/coer-filebox.component';\r\n//import { CoerForm } from './coer-form/coer-form.component';\r\n//import { CoerGrid } from './coer-grid/coer-grid.component';\r\n//import { CoerModal } from './coer-modal/coer-modal.component';\r\n//import { CoerNumberBox } from './coer-numberbox/coer-numberbox.component';\r\n//import { CoerPageTitle } from './coer-page-title/coer-page-title.component';\r\n//import { CoerSelectbox } from './coer-selectbox/coer-selectbox.component';\r\n//import { CoerSwitch } from './coer-switch/coer-switch.component';\r\n//import { CoerTab } from './coer-tab/coer-tab.component';\r\n//import { CoerTextarea } from './coer-textarea/coer-textarea.component';\r\n//import { CoerTextBox } from './coer-textbox/coer-textbox.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n //PipesModule,\r\n //MatButtonModule,\r\n //MatCheckboxModule,\r\n //MatInputModule,\r\n //MatFormFieldModule,\r\n //MatSlideToggleModule,\r\n //MatTabsModule,\r\n //DirectivesModule\r\n ],\r\n declarations: [\r\n CoerAlert,\r\n //CoerButton,\r\n //CoerCheckbox,\r\n //CoerFilebox,\r\n //CoerForm,\r\n //CoerGrid,\r\n //CoerModal,\r\n //CoerNumberBox,\r\n //CoerPageTitle,\r\n //CoerSelectbox,\r\n //CoerSwitch,\r\n //CoerTextarea,\r\n //CoerTab,\r\n //CoerTextBox,\r\n ],\r\n exports: [\r\n CoerAlert,\r\n //CoerButton,\r\n //CoerCheckbox,\r\n //CoerFilebox,\r\n //CoerForm,\r\n //CoerGrid,\r\n //CoerModal,\r\n //CoerNumberBox,\r\n //CoerPageTitle,\r\n //CoerSelectbox,\r\n //CoerSwitch,\r\n //CoerTextarea,\r\n //CoerTab,\r\n //CoerTextBox,\r\n ]\r\n})\r\nexport class ComponentsModule { }\r\n//export * from './coer-alert/coer-alert.component';\r\n//export * from './coer-button/coer-button.component';\r\n//export * from './coer-checkbox/coer-checkbox.component';\r\n//export * from './coer-filebox/coer-filebox.component';\r\n//export * from './coer-filebox/coer-filebox.interface';\r\n//export * from './coer-form/coer-form.component';\r\n//export * from './coer-grid/coer-grid.component';\r\n//export * from './coer-grid/coer-grid.interface';\r\n//export * from './coer-grid/coer-grid.templates';\r\n//export * from './coer-modal/coer-modal.component';\r\n//export * from './coer-numberbox/coer-numberbox.component';\r\n//export * from './coer-page-title/coer-page-title.component';\r\n//export * from './coer-page-title/pageTitle.interface';\r\n//export * from './coer-selectbox/coer-selectbox.component';\r\n//export * from './coer-switch/coer-switch.component';\r\n//export * from './coer-tab/coer-tab.component';\r\n//export * from './coer-textbox/coer-textbox.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MASa,SAAS,CAAA;;IAGX,OAAO,CAAC,OAAyB,GAAA,IAAI,EAAE,KAAA,GAAuB,IAAI,EAAE,IAAsB,GAAA,IAAI,EAAE,QAAA,GAA0B,IAAI,EAAA;;AAEjI,QAAA,IAAI,CAAC,KAAK,IAAI,KAAK,IAAI,EAAE;YAAE,KAAK,GAAG,SAAS,CAAC;QAC7C,MAAM,iBAAiB,GAAG,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAE,CAAC;AAC1E,QAAA,iBAAiB,CAAC,WAAW,GAAG,KAAK,CAAC;;QAGtC,IAAI,GAAG,IAAI,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AA,CAhCrB,SAAS,CAAA,EAAA,OAAA,EAAA,CAdT,YAAY;YACZ,YAAY;YACZ,WAAW;AACX,YAAA,mBAAmB,aA2BnB,SAAS,CAAA,EAAA,CAAA,CAAA,EAAA;AAgBJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YA9CrB,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FA2Cd,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhD5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,YAAY;wBACZ,WAAW;wBACX,mBAAmB;;;;;;;;;AAStB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,SAAS;;;;;;;;;;;;;;AAcZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,SAAS;;;;;;;;;;;;;;AAcZ,qBAAA;AACJ,iBAAA,CAAA;;;AC9ED;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1 +1,5 @@
1
- export {};
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="coer-elements" />
5
+ export * from './public_api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "coer",
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,15 @@
1
+ .tooltip-inner {
2
+ min-width: 125px;
3
+ max-width: 250px;
4
+ min-height: 35px;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ word-break: break-word;
9
+ }
10
+
11
+ .invisible {
12
+ visibility: hidden !important;
13
+ width: 0px !important;
14
+ height: 0px !important;
15
+ }
@@ -0,0 +1,29 @@
1
+ * {
2
+ font-family: sans-serif;
3
+ letter-spacing: normal;
4
+ }
5
+
6
+ h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
7
+ margin: 0px;
8
+ padding: 0px;
9
+ }
10
+
11
+ input[type="file"] {
12
+ display: none !important;
13
+ }
14
+
15
+ .readonly {
16
+ color: black !important;
17
+ background-color: #bbbbbb83 !important;
18
+ }
19
+
20
+ .no-selection::selection {
21
+ background-color: transparent !important;
22
+ }
23
+
24
+ @import "./colors.scss";
25
+ @import "./containers.scss";
26
+ @import "./cursores.scss";
27
+ @import "./scroll-bar.scss";
28
+ @import "./layout.scss";
29
+ @import "./bootstrap.scss";
@@ -1,3 +1,4 @@
1
+
1
2
  $blue: #0d6efd;
2
3
  $gray: #6c757d;
3
4
  $green: #198754;
@@ -10,7 +11,7 @@ $orange: #fd6031;
10
11
  //Blue
11
12
  .text-blue {
12
13
  color: $blue !important;
13
- }
14
+ }
14
15
 
15
16
  .text-blue-bold {
16
17
  color: $blue !important;
@@ -26,6 +27,9 @@ $orange: #fd6031;
26
27
  border-color: $blue !important;
27
28
  }
28
29
 
30
+ .border-blue {
31
+ border-color: $blue !important;
32
+ }
29
33
 
30
34
  //Gray
31
35
  .text-gray {
@@ -46,6 +50,9 @@ $orange: #fd6031;
46
50
  border-color: $gray !important;
47
51
  }
48
52
 
53
+ .border-gray {
54
+ border-color: $gray !important;
55
+ }
49
56
 
50
57
  //Green
51
58
  .text-green {
@@ -66,6 +73,9 @@ $orange: #fd6031;
66
73
  border-color: $green !important;
67
74
  }
68
75
 
76
+ .border-green {
77
+ border-color: $green !important;
78
+ }
69
79
 
70
80
  //Yellow
71
81
  .text-yellow {
@@ -86,6 +96,9 @@ $orange: #fd6031;
86
96
  border-color: $yellow !important;
87
97
  }
88
98
 
99
+ .border-yellow {
100
+ border-color: $yellow !important;
101
+ }
89
102
 
90
103
  //Red
91
104
  .text-red {
@@ -106,6 +119,9 @@ $orange: #fd6031;
106
119
  border-color: $red !important;
107
120
  }
108
121
 
122
+ .border-red {
123
+ border-color: $red !important;
124
+ }
109
125
 
110
126
  //White
111
127
  .text-white {
@@ -126,6 +142,9 @@ $orange: #fd6031;
126
142
  border-color: $white !important;
127
143
  }
128
144
 
145
+ .border-white {
146
+ border-color: $white !important;
147
+ }
129
148
 
130
149
  //Black
131
150
  .text-black {
@@ -146,6 +165,9 @@ $orange: #fd6031;
146
165
  border-color: $black !important;
147
166
  }
148
167
 
168
+ .border-black {
169
+ border-color: $black !important;
170
+ }
149
171
 
150
172
  //Orange
151
173
  .text-orange {
@@ -164,4 +186,8 @@ $orange: #fd6031;
164
186
  .background-border-orange {
165
187
  background-color: $orange !important;
166
188
  border-color: $orange !important;
189
+ }
190
+
191
+ .border-orange {
192
+ border-color: $orange !important;
167
193
  }
@@ -0,0 +1,34 @@
1
+ @keyframes fadeId {
2
+ from { opacity: 0; }
3
+ to { opacity: 1; }
4
+ }
5
+
6
+ @mixin Container() {
7
+ margin: 15px 30px 0px 30px;
8
+ padding: 10px;
9
+ box-shadow: 0px 0px 10px -10px black;
10
+ border-radius: 8px;
11
+ background-color: white;
12
+ animation-name: fadeId;
13
+ animation-duration: 1.5s;
14
+ animation-iteration-count: 1;
15
+ animation-fill-mode: both;
16
+ }
17
+
18
+ .coer-container {
19
+ @include Container();
20
+ }
21
+
22
+ .coer-container-tab {
23
+ @include Container();
24
+ padding: 0px;
25
+
26
+ .row {
27
+ margin: 12px 0px;
28
+ }
29
+ }
30
+
31
+ .coer-container-grid {
32
+ @include Container();
33
+ padding-bottom: 5px;
34
+ }
@@ -0,0 +1,11 @@
1
+ .cursor-default {
2
+ cursor: default !important;
3
+ }
4
+
5
+ .cursor-pointer {
6
+ cursor: pointer !important;
7
+ }
8
+
9
+ .cursor-wait {
10
+ cursor: wait !important;
11
+ }
@@ -0,0 +1,21 @@
1
+ .flex-center {
2
+ display: flex !important;
3
+ align-items: center !important;
4
+ justify-content: center !important;
5
+ }
6
+
7
+ .flex-center-left {
8
+ display: flex !important;
9
+ align-items: center !important;
10
+ justify-content: flex-start !important;
11
+ }
12
+
13
+ .flex-center-right {
14
+ display: flex !important;
15
+ align-items: center !important;
16
+ justify-content: flex-end !important;
17
+ }
18
+
19
+ .fill-space {
20
+ flex: 1 1 auto;
21
+ }
@@ -0,0 +1,20 @@
1
+ @import "./colors.scss";
2
+
3
+ *::-webkit-scrollbar {
4
+ background-color: lighten($gray, 48%);
5
+ width: 5px;
6
+ height: 5px;
7
+ }
8
+
9
+ *::-webkit-scrollbar-thumb{
10
+ background-color: lighten($gray, 35%);
11
+ border-radius: 4px;
12
+ }
13
+
14
+ *::-webkit-scrollbar-thumb:hover {
15
+ background-color: $gray;
16
+ }
17
+
18
+ *::-webkit-scrollbar-thumb:active {
19
+ background-color: $gray;
20
+ }