coer-elements 1.0.16 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. package/README.md +63 -1
  2. package/components/index.d.ts +5 -0
  3. package/components/lib/coer-accordion/coer-accordion.component.d.ts +32 -0
  4. package/components/lib/coer-button/coer-button.component.d.ts +46 -0
  5. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +29 -0
  6. package/components/lib/coer-datebox/coer-datebox.component.d.ts +58 -0
  7. package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +69 -0
  8. package/components/lib/coer-filebox/coer-filebox.component.d.ts +36 -0
  9. package/components/lib/coer-form/coer-form.component.d.ts +36 -0
  10. package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
  11. package/components/lib/coer-grid/coer-grid.extension.d.ts +111 -0
  12. package/components/lib/coer-list/coer-list.component.d.ts +57 -0
  13. package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
  14. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
  15. package/components/lib/coer-page-title/coer-page-title.component.d.ts +14 -0
  16. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +79 -0
  17. package/components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.d.ts +22 -0
  18. package/components/lib/coer-sidenav/coer-sidenav.component.d.ts +49 -0
  19. package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +32 -0
  20. package/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.d.ts +43 -0
  21. package/components/lib/coer-switch/coer-switch.component.d.ts +32 -0
  22. package/components/lib/coer-tab/coer-tab.component.d.ts +36 -0
  23. package/components/lib/coer-textarea/coer-textarea.component.d.ts +52 -0
  24. package/components/lib/coer-textbox/coer-textbox.component.d.ts +66 -0
  25. package/components/lib/components.module.d.ts +46 -0
  26. package/components/public-api.d.ts +21 -0
  27. package/directives/index.d.ts +5 -0
  28. package/directives/lib/coer-ref.directive.d.ts +14 -0
  29. package/directives/lib/directives.module.d.ts +8 -0
  30. package/directives/lib/life-cycle.directive.d.ts +16 -0
  31. package/directives/public-api.d.ts +3 -0
  32. package/extensions/index.d.ts +5 -0
  33. package/extensions/lib/object.extension.d.ts +1 -0
  34. package/extensions/lib/string.extension.d.ts +19 -0
  35. package/extensions/public-api.d.ts +2 -0
  36. package/fesm2022/coer-elements-components.mjs +4040 -0
  37. package/fesm2022/coer-elements-components.mjs.map +1 -0
  38. package/fesm2022/coer-elements-directives.mjs +84 -0
  39. package/fesm2022/coer-elements-directives.mjs.map +1 -0
  40. package/fesm2022/coer-elements-extensions.mjs +68 -0
  41. package/fesm2022/coer-elements-extensions.mjs.map +1 -0
  42. package/fesm2022/coer-elements-guards.mjs +28 -0
  43. package/fesm2022/coer-elements-guards.mjs.map +1 -0
  44. package/fesm2022/coer-elements-interceptors.mjs +64 -0
  45. package/fesm2022/coer-elements-interceptors.mjs.map +1 -0
  46. package/fesm2022/coer-elements-interfaces.mjs +6 -0
  47. package/fesm2022/coer-elements-interfaces.mjs.map +1 -0
  48. package/fesm2022/coer-elements-pages.mjs +441 -0
  49. package/fesm2022/coer-elements-pages.mjs.map +1 -0
  50. package/fesm2022/coer-elements-pipes.mjs +87 -0
  51. package/fesm2022/coer-elements-pipes.mjs.map +1 -0
  52. package/fesm2022/coer-elements-signals.mjs +35 -0
  53. package/fesm2022/coer-elements-signals.mjs.map +1 -0
  54. package/fesm2022/coer-elements-tools.mjs +1899 -0
  55. package/fesm2022/coer-elements-tools.mjs.map +1 -0
  56. package/fesm2022/coer-elements.mjs +68 -0
  57. package/fesm2022/coer-elements.mjs.map +1 -0
  58. package/guards/index.d.ts +5 -0
  59. package/guards/lib/login.guard.d.ts +2 -0
  60. package/guards/lib/page.guard.d.ts +2 -0
  61. package/guards/public-api.d.ts +2 -0
  62. package/images/loading.gif +0 -0
  63. package/images/no-image.png +0 -0
  64. package/images/no-user.png +0 -0
  65. package/index.d.ts +12 -0
  66. package/interceptors/index.d.ts +5 -0
  67. package/interceptors/lib/user.interceptor.d.ts +8 -0
  68. package/interceptors/lib/utc-offset.interceptor.d.ts +8 -0
  69. package/interceptors/public-api.d.ts +1 -0
  70. package/interfaces/index.d.ts +5 -0
  71. package/interfaces/lib/app-source.interface.d.ts +4 -0
  72. package/interfaces/lib/box-button.interface.d.ts +6 -0
  73. package/interfaces/lib/bulk-load.interface.d.ts +5 -0
  74. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
  75. package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
  76. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
  77. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
  78. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
  79. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
  80. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
  81. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
  82. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +24 -0
  83. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
  84. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
  85. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
  86. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
  87. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
  88. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
  89. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
  90. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
  91. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
  92. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
  93. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
  94. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +5 -0
  95. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
  96. package/interfaces/lib/coer-menu/menu-access.interface.d.ts +7 -0
  97. package/interfaces/lib/coer-menu/menu-option-selected.interface.d.ts +9 -0
  98. package/interfaces/lib/coer-menu/menu-selected.interface.d.ts +10 -0
  99. package/interfaces/lib/coer-menu/menu.interface.d.ts +10 -0
  100. package/interfaces/lib/coer-ref.interface.d.ts +10 -0
  101. package/interfaces/lib/image.interface.d.ts +11 -0
  102. package/interfaces/lib/login-response.interface.d.ts +10 -0
  103. package/interfaces/lib/login.interface.d.ts +4 -0
  104. package/interfaces/lib/page-title/breadcrumb.interface.d.ts +6 -0
  105. package/interfaces/lib/page-title/go-back.interface.d.ts +6 -0
  106. package/interfaces/lib/page-title/information.interface.d.ts +4 -0
  107. package/interfaces/lib/screen-size.interface.d.ts +5 -0
  108. package/interfaces/lib/service/http-request.interface.d.ts +10 -0
  109. package/interfaces/lib/service/http-response.interface.d.ts +6 -0
  110. package/interfaces/lib/service/patch.interface.d.ts +5 -0
  111. package/interfaces/lib/toolbar-menu.interface.d.ts +5 -0
  112. package/interfaces/public-api.d.ts +41 -0
  113. package/package.json +67 -34
  114. package/pages/index.d.ts +5 -0
  115. package/pages/lib/coer-loading/loading.component.d.ts +5 -0
  116. package/pages/lib/coer-menu/coer-menu.component.d.ts +12 -0
  117. package/pages/lib/coer-system/coer-system.component.d.ts +64 -0
  118. package/pages/lib/coer-system/login/login.component.d.ts +31 -0
  119. package/pages/lib/home/home.component.d.ts +7 -0
  120. package/pages/lib/pages.module.d.ts +18 -0
  121. package/pages/public-api.d.ts +5 -0
  122. package/pipes/index.d.ts +5 -0
  123. package/pipes/lib/html.pipe.d.ts +10 -0
  124. package/pipes/lib/no-image.pipe.d.ts +7 -0
  125. package/pipes/lib/numeric-format.pipe.d.ts +7 -0
  126. package/pipes/lib/pipes.module.d.ts +9 -0
  127. package/pipes/public-api.d.ts +4 -0
  128. package/signals/index.d.ts +5 -0
  129. package/signals/lib/breakpoint.signal.d.ts +1 -0
  130. package/signals/lib/is-loading.signal.d.ts +1 -0
  131. package/signals/lib/is-menu-open.signal.d.ts +1 -0
  132. package/signals/lib/is-modal-open.signal.d.ts +1 -0
  133. package/signals/lib/menu-selected.signal.d.ts +2 -0
  134. package/signals/lib/navigation.signal.d.ts +2 -0
  135. package/signals/public-api.d.ts +6 -0
  136. package/styles/angular-material.scss +20 -0
  137. package/styles/animations.scss +11 -0
  138. package/styles/bootstrap.scss +1 -14
  139. package/styles/coer-elements.css +2054 -0
  140. package/styles/colors.scss +90 -49
  141. package/styles/containers.scss +44 -0
  142. package/styles/cursores.scss +19 -0
  143. package/styles/index.scss +58 -0
  144. package/styles/layout.scss +49 -0
  145. package/styles/position.scss +7 -0
  146. package/styles/scroll-bar.scss +20 -0
  147. package/tools/index.d.ts +5 -0
  148. package/tools/lib/breadcrumbs.class.d.ts +18 -0
  149. package/tools/lib/coer-alert/coer-alert.component.d.ts +23 -0
  150. package/tools/lib/coer-grid.templates.d.ts +11 -0
  151. package/tools/lib/colors.class.d.ts +21 -0
  152. package/tools/lib/control-value.class.d.ts +25 -0
  153. package/tools/lib/date-time.class.d.ts +21 -0
  154. package/tools/lib/elements-html.class.d.ts +8 -0
  155. package/tools/lib/files.class.d.ts +16 -0
  156. package/tools/lib/filters.class.d.ts +11 -0
  157. package/tools/lib/menu.class.d.ts +9 -0
  158. package/tools/lib/page.class.d.ts +83 -0
  159. package/tools/lib/screen.class.d.ts +13 -0
  160. package/tools/lib/section.class.d.ts +33 -0
  161. package/tools/lib/service.class.d.ts +40 -0
  162. package/tools/lib/source.class.d.ts +20 -0
  163. package/tools/lib/tools.d.ts +42 -0
  164. package/tools/lib/user.class.d.ts +11 -0
  165. package/tools/public-api.d.ts +17 -0
  166. package/Signals/index.ts +0 -7
  167. package/Tools/Breadcrumbs.class.ts +0 -84
  168. package/Tools/ControlValue.ts +0 -63
  169. package/Tools/DateTime.class.ts +0 -27
  170. package/Tools/Files.class.ts +0 -119
  171. package/Tools/Page.class.ts +0 -197
  172. package/Tools/Screen.class.ts +0 -50
  173. package/Tools/Source.class.ts +0 -107
  174. package/Tools/Tools.ts +0 -212
  175. package/components/coer-alert/coer-alert.component.html +0 -56
  176. package/components/coer-alert/coer-alert.component.scss +0 -100
  177. package/components/coer-alert/coer-alert.component.ts +0 -249
  178. package/components/index.ts +0 -96
  179. package/index.ts +0 -8
  180. package/interfaces/index.ts +0 -47
  181. package/styles/coer.scss +0 -95
  182. package/tsconfig.json +0 -29
@@ -1,100 +0,0 @@
1
- @import "../../styles/colors.scss";
2
-
3
- aside.toast-container {
4
- position: fixed;
5
- bottom: 0px;
6
- right: 0px;
7
- padding: 15px !important;
8
- z-index: 2000 !important;
9
-
10
- i, svg {
11
- display: flex;
12
- align-items: center;
13
- }
14
-
15
- strong {
16
- margin: 0px auto 0px 5px;
17
- }
18
-
19
- div.toast,
20
- div.toast-header {
21
- border-top-left-radius: 10px;
22
- border-top-right-radius: 10px;
23
- color: $white;
24
- }
25
-
26
- div.toast,
27
- div.toast-body {
28
- border-bottom-left-radius: 10px;
29
- border-bottom-right-radius: 10px;
30
- color: $white;
31
- }
32
-
33
- div.toast-body {
34
- min-height: 36px;
35
- }
36
-
37
- pre {
38
- font-family: Roboto, RobotoFallback, "Noto Kufi Arabic", Helvetica, Arial, sans-serif;
39
- white-space: pre-wrap;
40
- font-size: medium;
41
- }
42
-
43
- button {
44
- margin: 0px 2px !important;
45
- width: 10px !important;
46
- height: 10px !important;
47
- box-shadow: none !important;
48
- outline: none !important;
49
- border: none !important;
50
- }
51
-
52
- div#alert-success div.toast-header,
53
- div#alert-success div.toast-body {
54
- background-color: $green;
55
- }
56
-
57
- div#alert-info div.toast-header,
58
- div#alert-info div.toast-body {
59
- background-color: $blue;
60
- }
61
-
62
- div#alert-error div.toast-header,
63
- div#alert-error div.toast-body {
64
- background-color: $red;
65
- }
66
-
67
- div#alert-warning div.toast-header,
68
- div#alert-warning div.toast-body {
69
- background-color: $yellow;
70
- border-color: $black;
71
- color: $black;
72
- }
73
-
74
- div#alert-success:hover,
75
- div#alert-info:hover,
76
- div#alert-error:hover,
77
- div#alert-warning:hover {
78
- transform: scale(1.01);
79
- box-shadow: 2px 2px 10px lightslategray;
80
- cursor: default;
81
- }
82
- }
83
-
84
- button.sweet-alert-button {
85
- width: 100px !important;
86
- height: 40px !important;
87
- display: flex !important;
88
- align-items: center !important;
89
- justify-content: center !important;
90
- margin: 0px 5px !important;
91
- outline: none !important;
92
- border: none !important;
93
- box-shadow: none !important;
94
- }
95
-
96
- aside.toast-container > * {
97
- border: none !important;
98
- z-index: 2000 !important;
99
- margin: 15px 0px 0px 0px !important;
100
- }
@@ -1,249 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as bootstrap from 'bootstrap';
3
- import Swal from 'sweetalert2'
4
-
5
- @Component({
6
- selector: 'coer-alert',
7
- templateUrl: './coer-alert.component.html',
8
- styleUrls: ['./coer-alert.component.scss']
9
- })
10
- export class CoerAlert {
11
-
12
- /** */
13
- public Success(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {
14
- //Title
15
- if (!title || title == '') title = 'Success';
16
- const alertSuccessTitle = document.getElementById('alert-success-title')!;
17
- alertSuccessTitle.textContent = title;
18
-
19
- //Icon
20
- icon = this.GetIcon(title, icon, 'bi-check-circle fa-beat');
21
- const alertSuccessIcon = document.getElementById('alert-success-icon')!;
22
- this.SetIcon(alertSuccessIcon, icon);
23
-
24
- //Message
25
- if (!message) message = '';
26
- const alertSuccessMessage = document.getElementById('alert-success-message')!;
27
- alertSuccessMessage.innerHTML = message;
28
-
29
- //Toast
30
- const alertSuccess = document.getElementById('alert-success')!;
31
- this.SetAutoHide(alertSuccess, autohide);
32
-
33
- const toast = bootstrap.Toast.getOrCreateInstance(alertSuccess);
34
- toast.show();
35
- }
36
-
37
-
38
- /** */
39
- public Error(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {
40
- //Title
41
- if (!title || title == '') title = 'Error';
42
- const alertErrorTitle = document.getElementById('alert-error-title')!;
43
- alertErrorTitle.textContent = title;
44
-
45
- //Icon
46
- icon = this.GetIcon(title, icon, 'bi-exclamation-octagon fa-beat');
47
- const alertErrorIcon = document.getElementById('alert-error-icon')!;
48
- this.SetIcon(alertErrorIcon, icon);
49
-
50
- //Message
51
- if (!message) message = '';
52
- const alertErrorBody = document.getElementById('alert-error-message')!;
53
- alertErrorBody.innerHTML = message;
54
-
55
- //Toast
56
- const alertError = document.getElementById('alert-error')!;
57
- this.SetAutoHide(alertError, autohide);
58
-
59
- const toast = bootstrap.Toast.getOrCreateInstance(alertError);
60
- toast.show();
61
- }
62
-
63
-
64
- /** */
65
- public Info(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {
66
- //Title
67
- if (!title || title == '') title = 'Info';
68
- const alertInfoTitle = document.getElementById('alert-info-title')!;
69
- alertInfoTitle.textContent = title;
70
-
71
- //Icon
72
- icon = this.GetIcon(title, icon, 'bi-info-circle fa-beat');
73
- const alertInfoIcon = document.getElementById('alert-info-icon')!;
74
- this.SetIcon(alertInfoIcon, icon);
75
-
76
- //Message
77
- if (!message) message = '';
78
- const alertInfoBody = document.getElementById('alert-info-message')!;
79
- alertInfoBody.innerHTML = message;
80
-
81
- //Toast
82
- const alertInfo = document.getElementById('alert-info')!;
83
- this.SetAutoHide(alertInfo, autohide);
84
-
85
- const toast = bootstrap.Toast.getOrCreateInstance(alertInfo);
86
- toast.show();
87
- }
88
-
89
-
90
- /** */
91
- public Warning(message: string | null = null, title: string | null = null, icon: string | null = null, autohide: number | null = 3000): void {
92
- //Title
93
- if (!title || title == '') title = 'Warning';
94
- const alertWarningTitle = document.getElementById('alert-warning-title')!;
95
- alertWarningTitle.textContent = title;
96
-
97
- //Icon
98
- icon = this.GetIcon(title, icon, 'bi-exclamation-triangle-fill fa-beat');
99
- const alertWarningIcon = document.getElementById('alert-warning-icon')!;
100
- this.SetIcon(alertWarningIcon, icon);
101
-
102
- //Message
103
- if (!message) message = '';
104
- const alertWarningBody = document.getElementById('alert-warning-message')!;
105
- alertWarningBody.innerHTML = message;
106
-
107
- //Toast
108
- const alertWarning = document.getElementById('alert-warning')!;
109
- this.SetAutoHide(alertWarning, autohide);
110
-
111
- const toast = bootstrap.Toast.getOrCreateInstance(alertWarning);
112
- toast.show();
113
- }
114
-
115
-
116
- /** */
117
- protected Close(alert: 'alert-success' | 'alert-error' | 'alert-info' | 'alert-warning') {
118
- return new Promise<void>(Resolve => {
119
- const element = document.getElementById(alert)!;
120
- const toast = bootstrap.Toast.getOrCreateInstance(element);
121
- toast.hide();
122
-
123
- setTimeout(() => { Resolve() }, 200);
124
- })
125
- }
126
-
127
-
128
- /** */
129
- public Confirm(
130
- message: string = 'Proceed?',
131
- alertType: 'warning' | 'danger' | 'success' | 'info' = 'warning',
132
- icon: string | null = null) {
133
- return new Promise<boolean>(Resolve => {
134
- let color: string;
135
- let iconType: 'warning' | 'error' | 'success' | 'info';
136
- switch(alertType) {
137
- case 'danger': {
138
- if (icon == null) icon = 'bi-exclamation-octagon';
139
- iconType = 'error';
140
- color = '#dc3545';
141
- break;
142
- };
143
-
144
- case 'success': {
145
- if (icon == null) icon = 'bi-check-circle';
146
- iconType = 'info';
147
- color = '#198754';
148
- break;
149
- };
150
-
151
- case 'info': {
152
- if (icon == null) icon = 'bi-info-circle';
153
- iconType = 'error';
154
- color = '#0d6efd';
155
- break
156
- };
157
-
158
- default: {
159
- if (icon == null) icon = 'bi-exclamation-triangle-fill';
160
- iconType = 'warning';
161
- color = '#ffc107';
162
- break;
163
- }
164
- }
165
-
166
- switch(icon) {
167
- case 'delete': icon = 'fa-regular fa-trash-can'; break;
168
- }
169
-
170
- Swal.fire({
171
- icon: iconType,
172
- iconColor: 'transparent',
173
- iconHtml: `<i class="${icon}" style="color: ${color};"></i>`,
174
- html: message,
175
- showConfirmButton: true,
176
- confirmButtonText: 'Yes',
177
- confirmButtonColor: color,
178
- focusConfirm: true,
179
- showDenyButton: true,
180
- denyButtonColor: color,
181
- focusDeny: false,
182
- reverseButtons: true,
183
- allowOutsideClick: false,
184
- allowEscapeKey: false,
185
- allowEnterKey: true,
186
- customClass: {
187
- denyButton: 'sweet-alert-button',
188
- confirmButton: 'sweet-alert-button'
189
- }
190
- }).then(({ value }) => setTimeout(() => Resolve(value)));
191
- });
192
- }
193
-
194
-
195
- /** */
196
- private SetIcon(element: HTMLElement, icon: string): void {
197
- for (const item of [...element.classList.value.split(' ')]) {
198
- if (item.length > 0) {
199
- element.classList.remove(item);
200
- element.classList.remove('q');
201
- }
202
- }
203
-
204
- icon = icon.trim();
205
- const hasWhiteSpaces: RegExp = / /;
206
- if (hasWhiteSpaces.test(icon)) {
207
- const classes = icon.split(' ');
208
- for (const icon of classes) element.classList.add(icon);
209
- }
210
-
211
- else element.classList.add(icon);
212
- }
213
-
214
-
215
- /** */
216
- private SetAutoHide(element: HTMLElement, autohide: number | null): void {
217
- element.removeAttribute('data-bs-autohide');
218
- element.removeAttribute('data-bs-delay');
219
-
220
- if (autohide && autohide > 0) {
221
- if (autohide < 1000) autohide = 1000;
222
- element.setAttribute('data-bs-autohide', 'true');
223
- element.setAttribute('data-bs-delay', String(autohide));
224
- }
225
-
226
- else element.setAttribute('data-bs-autohide', 'false');
227
- }
228
-
229
-
230
- /** */
231
- private GetIcon(title: string, icon: string | null, iconDefault: string): string {
232
- if (icon == null || icon == '') {
233
- title = title.replaceAll(' ', '').toUpperCase();
234
-
235
- switch(title) {
236
- case 'ENABLED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
237
- case 'ACTIVE': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
238
- case 'ACTIVED': return 'fa-solid fa-thumbs-up fa-flip-horizontal';
239
- case 'DISABLE': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
240
- case 'DISABLED': return 'fa-solid fa-thumbs-down fa-flip-horizontal';
241
- case 'DELETE': return 'fa-regular fa-trash-can';
242
- case 'DELETED': return 'fa-regular fa-trash-can';
243
- default: return iconDefault;
244
- }
245
- }
246
-
247
- return icon;
248
- }
249
- }
@@ -1,96 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { RouterModule } from '@angular/router';
4
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
- //import { DirectivesModule } from 'src/app/shared/directives/directives.module';
6
- //import { PipesModule } from 'src/app/shared/pipes/pipes.module';
7
-
8
- //Angular Material
9
- //import { MatButtonModule } from '@angular/material/button';
10
- //import { MatCheckboxModule } from '@angular/material/checkbox';
11
- //import { MatInputModule } from '@angular/material/input';
12
- //import { MatFormFieldModule } from '@angular/material/form-field';
13
- //import { MatSlideToggleModule } from '@angular/material/slide-toggle';
14
- //import { MatTabsModule } from '@angular/material/tabs';
15
-
16
- //Components
17
- import { CoerAlert } from './coer-alert/coer-alert.component';
18
- //import { CoerButton } from './coer-button/coer-button.component';
19
- //import { CoerCheckbox } from './coer-checkbox/coer-checkbox.component';
20
- //import { CoerFilebox } from './coer-filebox/coer-filebox.component';
21
- //import { CoerForm } from './coer-form/coer-form.component';
22
- //import { CoerGrid } from './coer-grid/coer-grid.component';
23
- //import { CoerModal } from './coer-modal/coer-modal.component';
24
- //import { CoerNumberBox } from './coer-numberbox/coer-numberbox.component';
25
- //import { CoerPageTitle } from './coer-page-title/coer-page-title.component';
26
- //import { CoerSelectbox } from './coer-selectbox/coer-selectbox.component';
27
- //import { CoerSwitch } from './coer-switch/coer-switch.component';
28
- //import { CoerTab } from './coer-tab/coer-tab.component';
29
- //import { CoerTextarea } from './coer-textarea/coer-textarea.component';
30
- //import { CoerTextBox } from './coer-textbox/coer-textbox.component';
31
-
32
- @NgModule({
33
- imports: [
34
- CommonModule,
35
- RouterModule,
36
- FormsModule,
37
- ReactiveFormsModule,
38
- //PipesModule,
39
- //MatButtonModule,
40
- //MatCheckboxModule,
41
- //MatInputModule,
42
- //MatFormFieldModule,
43
- //MatSlideToggleModule,
44
- //MatTabsModule,
45
- //DirectivesModule
46
- ],
47
- declarations: [
48
- CoerAlert,
49
- //CoerButton,
50
- //CoerCheckbox,
51
- //CoerFilebox,
52
- //CoerForm,
53
- //CoerGrid,
54
- //CoerModal,
55
- //CoerNumberBox,
56
- //CoerPageTitle,
57
- //CoerSelectbox,
58
- //CoerSwitch,
59
- //CoerTextarea,
60
- //CoerTab,
61
- //CoerTextBox,
62
- ],
63
- exports: [
64
- CoerAlert,
65
- //CoerButton,
66
- //CoerCheckbox,
67
- //CoerFilebox,
68
- //CoerForm,
69
- //CoerGrid,
70
- //CoerModal,
71
- //CoerNumberBox,
72
- //CoerPageTitle,
73
- //CoerSelectbox,
74
- //CoerSwitch,
75
- //CoerTextarea,
76
- //CoerTab,
77
- //CoerTextBox,
78
- ]
79
- })
80
- export class ComponentsModule { }
81
- //export * from './coer-button/coer-button.component';
82
- //export * from './coer-checkbox/coer-checkbox.component';
83
- //export * from './coer-filebox/coer-filebox.component';
84
- //export * from './coer-filebox/coer-filebox.interface';
85
- //export * from './coer-form/coer-form.component';
86
- //export * from './coer-grid/coer-grid.component';
87
- //export * from './coer-grid/coer-grid.interface';
88
- //export * from './coer-grid/coer-grid.templates';
89
- //export * from './coer-modal/coer-modal.component';
90
- //export * from './coer-numberbox/coer-numberbox.component';
91
- //export * from './coer-page-title/coer-page-title.component';
92
- //export * from './coer-page-title/pageTitle.interface';
93
- //export * from './coer-selectbox/coer-selectbox.component';
94
- //export * from './coer-switch/coer-switch.component';
95
- //export * from './coer-tab/coer-tab.component';
96
- //export * from './coer-textbox/coer-textbox.component';
package/index.ts DELETED
@@ -1,8 +0,0 @@
1
- export * from './Tools/Breadcrumbs.class';
2
- export * from './Tools/ControlValue';
3
- export * from './Tools/DateTime.class';
4
- export * from './Tools/Files.class';
5
- export * from './Tools/Page.class';
6
- export * from './Tools/Screen.class';
7
- export * from './Tools/Source.class';
8
- export * from './Tools/Tools'
@@ -1,47 +0,0 @@
1
- import { TemplateRef, WritableSignal } from '@angular/core';
2
-
3
- export interface IPatch {
4
- op: 'remove' | 'add' | 'replace';
5
- path: string;
6
- value: any;
7
- }
8
-
9
-
10
- export interface IScreenSize {
11
- width: number;
12
- height: number;
13
- breakpoin: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
14
- }
15
-
16
-
17
- export interface IAppSource {
18
- page: string;
19
- path: string;
20
- }
21
-
22
-
23
- export interface IBreadcrumb {
24
- page: string;
25
- path?: string | null;
26
- queryParams?: any;
27
- click?: (() => any);
28
- }
29
-
30
-
31
- export interface IGoBack {
32
- show: boolean;
33
- path?: string | null;
34
- queryParams?: any;
35
- click?: (() => any);
36
- }
37
-
38
-
39
- export interface ICoerRef {
40
- coerRef: WritableSignal<string>;
41
- title: WritableSignal<string>;
42
- icon: WritableSignal<string>;
43
- isDisabled: WritableSignal<boolean>;
44
- show: WritableSignal<boolean>;
45
- tooltip: WritableSignal<string>;
46
- template: TemplateRef<any>;
47
- }
package/styles/coer.scss DELETED
@@ -1,95 +0,0 @@
1
- * {
2
- font-family: sans-serif;
3
- letter-spacing: normal;
4
- }
5
-
6
- .fill-space {
7
- flex: 1 1 auto;
8
- }
9
-
10
- h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
11
- margin: 0px;
12
- padding: 0px;
13
- }
14
-
15
- //Containers
16
- @mixin Container() {
17
- margin: 15px 30px 0px 30px;
18
- padding: 10px;
19
- box-shadow: 0px 0px 10px -10px black;
20
- border-radius: 8px;
21
- background-color: white;
22
- animation-name: fadeId;
23
- animation-duration: 1.5s;
24
- animation-iteration-count: 1;
25
- animation-fill-mode: both;
26
- }
27
-
28
- .coer-container {
29
- @include Container();
30
- }
31
-
32
- .coer-container-tab {
33
- @include Container();
34
- padding: 0px;
35
-
36
- .row {
37
- margin: 12px 0px;
38
- }
39
- }
40
-
41
- .coer-container-grid {
42
- @include Container();
43
- padding-bottom: 5px;
44
- }
45
-
46
- @keyframes fadeId {
47
- from { opacity: 0; }
48
- to { opacity: 1; }
49
- }
50
-
51
- //Cursor
52
- .cursor-default {
53
- cursor: default !important;
54
- }
55
-
56
- .cursor-pointer {
57
- cursor: pointer !important;
58
- }
59
-
60
- .cursor-wait {
61
- cursor: wait !important;
62
- }
63
-
64
- //Input
65
- input[type="file"] {
66
- display: none !important;
67
- }
68
-
69
- .readonly {
70
- color: black !important;
71
- background-color: #bbbbbb83 !important;
72
- }
73
-
74
- .no-selection::selection {
75
- background-color: transparent !important;
76
- }
77
-
78
- *::-webkit-scrollbar {
79
- background-color: lighten($gray, 48%);
80
- width: 5px;
81
- height: 5px;
82
- }
83
-
84
- *::-webkit-scrollbar-thumb{
85
- background-color: lighten($gray, 35%);
86
- border-radius: 4px;
87
- }
88
-
89
- *::-webkit-scrollbar-thumb:hover {
90
- background-color: $gray;
91
- }
92
-
93
- *::-webkit-scrollbar-thumb:active {
94
- background-color: $gray;
95
- }
package/tsconfig.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "compileOnSave": false,
3
- "compilerOptions": {
4
- "outDir": "./dist/out-tsc",
5
- "strict": true,
6
- "noImplicitOverride": true,
7
- "noPropertyAccessFromIndexSignature": true,
8
- "noImplicitReturns": true,
9
- "noFallthroughCasesInSwitch": true,
10
- "skipLibCheck": true,
11
- "esModuleInterop": true,
12
- "sourceMap": true,
13
- "declaration": false,
14
- "experimentalDecorators": true,
15
- "moduleResolution": "node",
16
- "importHelpers": true,
17
- "target": "ES2022",
18
- "module": "ES2022",
19
- "useDefineForClassFields": false,
20
- "lib": ["ES2022", "dom"],
21
- "baseUrl": "./"
22
- },
23
- "angularCompilerOptions": {
24
- "enableI18nLegacyMessageIdFormat": false,
25
- "strictInjectionParameters": true,
26
- "strictInputAccessModifiers": true,
27
- "strictTemplates": true
28
- }
29
- }