coer-elements 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/Signals/{index.d.ts → index.ts} +3 -3
  2. package/Signals/src/breakpoint.signal.ts +3 -0
  3. package/Signals/src/isLoading.signal.ts +2 -0
  4. package/Signals/src/isModalOpen.signal.ts +2 -0
  5. package/Tools/{index.d.ts → index.ts} +8 -8
  6. package/Tools/src/Breadcrumbs.class.ts +84 -0
  7. package/Tools/src/ControlValue.ts +63 -0
  8. package/Tools/src/DateTime.class.ts +27 -0
  9. package/Tools/src/Files.class.ts +119 -0
  10. package/Tools/src/Page.class.ts +195 -0
  11. package/Tools/src/Screen.class.ts +50 -0
  12. package/Tools/src/Source.class.ts +106 -0
  13. package/Tools/src/Tools.ts +217 -0
  14. package/components/index.ts +2 -0
  15. package/components/src/coer-alert/coer-alert.component.html +56 -0
  16. package/components/src/coer-alert/coer-alert.component.scss +100 -0
  17. package/components/src/coer-alert/coer-alert.component.ts +249 -0
  18. package/components/src/components.module.ts +97 -0
  19. package/esm2022/index.mjs +2 -4
  20. package/fesm2022/coer-elements.mjs +0 -1006
  21. package/fesm2022/coer-elements.mjs.map +1 -1
  22. package/index.d.ts +1 -3
  23. package/package.json +14 -1
  24. package/styles/index.css +249 -17
  25. package/styles/index.scss +98 -2
  26. package/README.md +0 -24
  27. package/Signals/src/breakpoint.signal.d.ts +0 -1
  28. package/Signals/src/isLoading.signal.d.ts +0 -1
  29. package/Signals/src/isModalOpen.signal.d.ts +0 -1
  30. package/Tools/src/Breadcrumbs.class.d.ts +0 -18
  31. package/Tools/src/ControlValue.d.ts +0 -23
  32. package/Tools/src/DateTime.class.d.ts +0 -11
  33. package/Tools/src/Files.class.d.ts +0 -16
  34. package/Tools/src/Page.class.d.ts +0 -66
  35. package/Tools/src/Screen.class.d.ts +0 -11
  36. package/Tools/src/Source.class.d.ts +0 -20
  37. package/Tools/src/Tools.d.ts +0 -33
  38. package/components/index.d.ts +0 -2
  39. package/components/src/coer-alert/coer-alert.component.d.ts +0 -23
  40. package/components/src/components.module.d.ts +0 -10
  41. package/esm2022/Signals/index.mjs +0 -4
  42. package/esm2022/Signals/src/breakpoint.signal.mjs +0 -4
  43. package/esm2022/Signals/src/isLoading.signal.mjs +0 -3
  44. package/esm2022/Signals/src/isModalOpen.signal.mjs +0 -3
  45. package/esm2022/Tools/index.mjs +0 -9
  46. package/esm2022/Tools/src/Breadcrumbs.class.mjs +0 -63
  47. package/esm2022/Tools/src/ControlValue.mjs +0 -44
  48. package/esm2022/Tools/src/DateTime.class.mjs +0 -22
  49. package/esm2022/Tools/src/Files.class.mjs +0 -93
  50. package/esm2022/Tools/src/Page.class.mjs +0 -160
  51. package/esm2022/Tools/src/Screen.class.mjs +0 -43
  52. package/esm2022/Tools/src/Source.class.mjs +0 -79
  53. package/esm2022/Tools/src/Tools.mjs +0 -200
  54. package/esm2022/components/index.mjs +0 -3
  55. package/esm2022/components/src/coer-alert/coer-alert.component.mjs +0 -227
  56. package/esm2022/components/src/components.module.mjs +0 -92
  57. package/esm2022/interfaces/index.mjs +0 -7
  58. package/esm2022/interfaces/src/IAppSource.interface.mjs +0 -2
  59. package/esm2022/interfaces/src/IBreadcrumb.interface.mjs +0 -2
  60. package/esm2022/interfaces/src/ICoerRef.interface.mjs +0 -2
  61. package/esm2022/interfaces/src/IGoBack.interface.mjs +0 -2
  62. package/esm2022/interfaces/src/IPatch.interface.mjs +0 -2
  63. package/esm2022/interfaces/src/IScreenSize.interface.mjs +0 -2
  64. package/interfaces/index.d.ts +0 -6
  65. package/interfaces/src/IAppSource.interface.d.ts +0 -4
  66. package/interfaces/src/IBreadcrumb.interface.d.ts +0 -6
  67. package/interfaces/src/ICoerRef.interface.d.ts +0 -10
  68. package/interfaces/src/IGoBack.interface.d.ts +0 -6
  69. package/interfaces/src/IPatch.interface.d.ts +0 -5
  70. package/interfaces/src/IScreenSize.interface.d.ts +0 -5
  71. package/styles/coer.scss +0 -96
@@ -1 +1 @@
1
- {"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/components/src/coer-alert/coer-alert.component.ts","../../../projects/coer-elements/components/src/coer-alert/coer-alert.component.html","../../../projects/coer-elements/components/src/components.module.ts","../../../projects/coer-elements/Tools/src/Breadcrumbs.class.ts","../../../projects/coer-elements/Tools/src/ControlValue.ts","../../../projects/coer-elements/Tools/src/DateTime.class.ts","../../../projects/coer-elements/Tools/src/Files.class.ts","../../../projects/coer-elements/Tools/src/Page.class.ts","../../../projects/coer-elements/Tools/src/Screen.class.ts","../../../projects/coer-elements/Tools/src/Source.class.ts","../../../projects/coer-elements/Tools/src/Tools.ts","../../../projects/coer-elements/Signals/src/breakpoint.signal.ts","../../../projects/coer-elements/Signals/src/isLoading.signal.ts","../../../projects/coer-elements/Signals/src/isModalOpen.signal.ts","../../../projects/coer-elements/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';","import { IAppSource } from \"../../interfaces\";\r\nimport { Tools } from '../';\r\n\r\nexport class Breadcrumbs {\r\n\r\n private static readonly storage = 'COER-System';\r\n\r\n /** */\r\n public static Add(page: string, path: string): void {\r\n const breadcrumbs = this.Get();\r\n const paths = breadcrumbs.map(item => item.path);\r\n\r\n if (!paths.includes(path)) {\r\n breadcrumbs.push({ page, path });\r\n this.Save(breadcrumbs);\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public static Get(): IAppSource[] {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n\r\n if (storage) {\r\n storage = JSON.parse(storage);\r\n\r\n if (storage.hasOwnProperty('breadcrumbs')) {\r\n return Tools.BreakReference(storage.breadcrumbs);\r\n }\r\n }\r\n\r\n return [];\r\n }\r\n\r\n\r\n /** Source */\r\n public static GetFirst(): IAppSource | null {\r\n const breadcrumbs = this.Get();\r\n return (breadcrumbs.length > 0) ? breadcrumbs.shift()! : null;\r\n }\r\n\r\n\r\n /** */\r\n public static Save(breadcrumbs: IAppSource[]): void {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n if (storage) storage = JSON.parse(storage);\r\n storage = Object.assign({}, storage, { breadcrumbs });\r\n sessionStorage.setItem(this.storage, JSON.stringify(storage));\r\n }\r\n\r\n\r\n /** */\r\n public static Remove(path: string): void {\r\n let breadcrumbs = this.Get();\r\n const index = breadcrumbs.findIndex(x => x.path.toLowerCase().trim() === path.toLowerCase().trim());\r\n\r\n if (index >= 0) {\r\n breadcrumbs = Tools.BreakReference(breadcrumbs).splice(0, index + 1);\r\n this.Save(breadcrumbs);\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public static SetLast(page: string, path: string): void {\r\n const breadcrumbs = this.Get();\r\n\r\n if (breadcrumbs.length > 0) {\r\n breadcrumbs[breadcrumbs.length - 1] = { page, path };\r\n this.Save(breadcrumbs);\r\n }\r\n }\r\n\r\n\r\n /** */\r\n public static RemoveLast(): void {\r\n const breadcrumbs = this.Get();\r\n\r\n if (breadcrumbs.length > 0) {\r\n breadcrumbs.pop();\r\n this.Save(breadcrumbs);\r\n }\r\n }\r\n}","import { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\r\nimport { forwardRef } from \"@angular/core\";\r\n\r\nexport const CONTROL_VALUE = <T>(component: T) => {\r\n return {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => component),\r\n multi: true\r\n }\r\n}\r\n\r\n\r\nexport class ControlValue implements ControlValueAccessor {\r\n\r\n //Variables\r\n protected _value: any;\r\n private _isTouched: boolean = false;\r\n protected _UpdateValue!: Function;\r\n private _IsTouched!: Function;\r\n\r\n\r\n public get isTouched() {\r\n return this._isTouched;\r\n }\r\n\r\n\r\n /** */\r\n protected SetValue(value: any): void {\r\n if(typeof this._UpdateValue === 'function') {\r\n this._UpdateValue(value);\r\n }\r\n\r\n this._value = value;\r\n }\r\n\r\n\r\n /** */\r\n public SetTouched(isTouched: boolean): void {\r\n if(typeof this._IsTouched === 'function') {\r\n this._IsTouched(isTouched);\r\n }\r\n\r\n this._isTouched = isTouched;\r\n }\r\n\r\n\r\n /** */\r\n public writeValue(value: any): void {\r\n this._value = value;\r\n }\r\n\r\n\r\n /** */\r\n public registerOnChange(callback: Function): void {\r\n this._UpdateValue = callback;\r\n }\r\n\r\n\r\n /** */\r\n public registerOnTouched(callback: Function): void {\r\n this._IsTouched = callback;\r\n }\r\n}","import moment from \"moment\";\r\n\r\nexport class DateTime {\r\n /** Get UTC Offset */\r\n public static GetUTCOffset(): number {\r\n return moment().utcOffset();\r\n }\r\n\r\n\r\n /** Convert UTC Date to Local Zone */\r\n public static ToLocalZone(utcDate: string | Date | moment.Moment): string {\r\n return moment(utcDate).add(DateTime.GetUTCOffset(), 'minutes').format('YYYY-MM-DD HH:mm:ss');\r\n }\r\n\r\n\r\n /** Convert Local Zone Date to UTC */\r\n public static ToUTC(utcDate: string | Date | moment.Moment): string {\r\n return moment(utcDate).subtract(DateTime.GetUTCOffset(), 'minutes').format('YYYY-MM-DD HH:mm:ss');\r\n }\r\n\r\n\r\n /** DD MMM YYYY */\r\n public static GetDateFormat(date: string | Date | moment.Moment): string {\r\n if ((typeof date === 'string')) date = date.replaceAll('/', '-');\r\n return moment(date).parseZone().local(true).format('DD MMM YYYY');\r\n }\r\n}","import { Tools } from \"../\";\r\nimport * as XLSX from 'xlsx';\r\n\r\nexport class Files {\r\n public static readonly EXCEL_EXTENSIONS: string[] = ['xls', 'xlsx', 'csv'];\r\n\r\n /** Get Extension File */\r\n public static GetExtension(file: File): string | null {\r\n const fileName = file.name;\r\n\r\n if (fileName.includes('.')) {\r\n let worlds = fileName.split('.') as string[];\r\n\r\n if (worlds.length > 0) {\r\n let extension = worlds.pop()!;\r\n extension = extension.trim().toLowerCase();\r\n if (extension.length > 0) return extension;\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n\r\n /** Is Excel File */\r\n public static IsExcel(file: File): boolean {\r\n const EXTENSION = Files.GetExtension(file);\r\n\r\n return Tools.IsNotNull(EXTENSION)\r\n ? this.EXCEL_EXTENSIONS.includes(EXTENSION!)\r\n : false;\r\n }\r\n\r\n\r\n /** Read excel file */\r\n public static ReadExcel<T>(file: File) {\r\n return new Promise<{ columns: string[]; rows: T[]; }>(Resolve => {\r\n let columns: string[] = [];\r\n let rows: T[] = [];\r\n\r\n const reader = new FileReader();\r\n reader.readAsArrayBuffer(file);\r\n\r\n reader.onload = () => {\r\n const dataBytes = new Uint8Array(reader.result as any);\r\n\r\n if (dataBytes) {\r\n const workbook = XLSX.read(dataBytes, {});\r\n const sheet = workbook.Sheets[workbook.SheetNames[0]];\r\n let dataSheet: any[] = XLSX.utils.sheet_to_json(sheet, {\r\n header: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']\r\n });\r\n\r\n //Get Headers\r\n for(const column in dataSheet[0]) {\r\n columns.push(Tools.FirstCharToLower(String(dataSheet[0][column]).replaceAll(' ', '')));\r\n }\r\n\r\n //Get Rows\r\n rows = XLSX.utils.sheet_to_json(sheet, { header: columns });\r\n rows.shift();\r\n\r\n rows = rows.map(row => {\r\n const item = Tools.BreakReference<any>(row);\r\n delete item['__rowNum__'];\r\n return item;\r\n });\r\n }\r\n\r\n Resolve({ columns, rows });\r\n }\r\n\r\n reader.onerror = () => { Resolve({ columns, rows }) }\r\n });\r\n }\r\n\r\n\r\n /** Export to excel file */\r\n public static ExportExcel<T>(data: T[], fileName: string = 'coer_report', sheetName: string = 'Sheet1') {\r\n sheetName = Tools.CleanUpBlanks(sheetName);\r\n fileName = Tools.CleanUpBlanks(fileName);\r\n\r\n if(fileName.endsWith('.xls') || fileName.endsWith('.xlsx') || fileName.endsWith('.csv')) {\r\n if (fileName.includes('.xls')) {\r\n fileName = fileName.replaceAll('.xls', '.xlsx');\r\n }\r\n\r\n if (fileName.includes('.csv')) {\r\n fileName = fileName.replaceAll('.csv', '.xlsx');\r\n }\r\n }\r\n\r\n else {\r\n fileName += '.xlsx';\r\n }\r\n\r\n const WORK_SHEET = XLSX.utils.json_to_sheet(data);\r\n const WORK_BOOK = XLSX.utils.book_new();\r\n XLSX.utils.book_append_sheet(WORK_BOOK, WORK_SHEET, 'Sheet1');\r\n XLSX.writeFile(WORK_BOOK, fileName);\r\n }\r\n\r\n\r\n /** Convert file to string base64 */\r\n public static ConvertToBase64(file: File) {\r\n return new Promise<string>(Resolve => {\r\n const reader = new FileReader();\r\n reader.readAsDataURL(file);\r\n\r\n reader.onload = () => {\r\n Resolve(reader.result?.toString() || '');\r\n }\r\n\r\n reader.onerror = () => {\r\n Resolve('');\r\n }\r\n });\r\n }\r\n}","import { ActivatedRoute, Router } from '@angular/router';\r\nimport { AfterViewInit, Component, Inject, inject, OnDestroy } from '@angular/core';\r\nimport { IAppSource, IBreadcrumb, IGoBack } from '../../interfaces';\r\nimport { CoerAlert } from '../../components'; \r\nimport { Breadcrumbs, Source, Tools } from '../';\r\n\r\n@Component({ template: '' })\r\nexport class Page implements AfterViewInit, OnDestroy {\r\n\r\n //Injection\r\n protected readonly alert = inject(CoerAlert);\r\n protected readonly router = inject(Router);\r\n private readonly activatedRoute = inject(ActivatedRoute);\r\n\r\n /** */\r\n protected isUpdate: boolean = false;\r\n\r\n /** */\r\n protected isLoading: boolean = false;\r\n\r\n /** */\r\n protected isReady: boolean = false;\r\n\r\n /** */\r\n protected enableAnimations: boolean = false;\r\n\r\n /** */\r\n protected routeParams: any;\r\n\r\n /** */\r\n protected queryParams: any;\r\n\r\n /** */\r\n protected breadcrumbs: IBreadcrumb[] = [];\r\n\r\n /** */\r\n protected pageResponse: any = null;\r\n\r\n /** */\r\n protected goBack: IGoBack = { show: false };\r\n\r\n //Private Variables\r\n private _page: string = '';\r\n private _source: IAppSource | null = null;\r\n private _preventDestroy: boolean = false;\r\n\r\n\r\n constructor(@Inject(String) page: string) {\r\n this.SetPageName(page);\r\n this.SetSource();\r\n this.GetSource();\r\n this.GetNavigation();\r\n this.SetGoBack();\r\n this.GetPageResponse();\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.routeParams = this.activatedRoute.snapshot.params;\r\n this.queryParams = this.activatedRoute.snapshot.queryParams;\r\n\r\n setTimeout(() => {\r\n this.isReady = true;\r\n this.RunPage();\r\n setTimeout(() => { this.enableAnimations = true }, 1000);\r\n });\r\n\r\n }\r\n\r\n ngOnDestroy() {\r\n if (!this._preventDestroy) Source.ClearPageResponse();\r\n }\r\n\r\n /** Main method. Starts after ngAfterViewInit() */\r\n protected RunPage(): void {};\r\n\r\n\r\n /** Rename the last breadcrumb and update the url id */\r\n protected SetPageName(name: string, id: string | number | null = null): void {\r\n this._page = name;\r\n\r\n let path = this.router.url;\r\n if (path.includes('?')) path = path.split('?')[0];\r\n\r\n if (id) {\r\n const PATH_ARRAY = path.split('/');\r\n const PATH_ID = Tools.BreakReference(PATH_ARRAY).pop();\r\n if (PATH_ID) {\r\n PATH_ARRAY[PATH_ARRAY.length - 1] = String(id);\r\n path = PATH_ARRAY.join('/');\r\n }\r\n }\r\n\r\n if (this.breadcrumbs.length > 0) {\r\n this.breadcrumbs[this.breadcrumbs.length - 1].page = name;\r\n this.breadcrumbs[this.breadcrumbs.length - 1].path = path;\r\n Breadcrumbs.SetLast(name, path);\r\n }\r\n\r\n this.router.navigateByUrl(path)\r\n }\r\n\r\n\r\n /** */\r\n private SetSource(): void {\r\n Source.Set(this._page);\r\n }\r\n\r\n\r\n /** */\r\n private GetSource(): void {\r\n this._source = Source.Get();\r\n }\r\n\r\n\r\n /** */\r\n protected GetPageResponse(): void {\r\n this.pageResponse = Source.GetPageResponse();\r\n }\r\n\r\n\r\n /** */\r\n private GetNavigation(): void {\r\n if (this._source) {\r\n this.breadcrumbs = Breadcrumbs.Get().map(item => Object.assign({\r\n page: item.page,\r\n path: item.path,\r\n click: this.GoBack(item.path)\r\n }));\r\n }\r\n\r\n else this.breadcrumbs = [{ page: this._page }];\r\n }\r\n\r\n\r\n /** */\r\n private SetGoBack(): void {\r\n if (this._source) {\r\n this.goBack = {\r\n show: true,\r\n path: this._source.path,\r\n click: this.GoBack()\r\n };\r\n }\r\n }\r\n\r\n\r\n /** */\r\n private GoBack = (path?: string) => (() => {\r\n if (path) Breadcrumbs.Remove(path);\r\n else Breadcrumbs.RemoveLast();\r\n });\r\n\r\n\r\n /** Navigate to previous page */\r\n protected GoToSource<T>(pageResponse: T | null = null): void {\r\n if(this._source) {\r\n Breadcrumbs.RemoveLast();\r\n this.SetPageResponse(pageResponse);\r\n Tools.Sleep().then(_ => this.router.navigateByUrl(this._source!.path));\r\n }\r\n };\r\n\r\n\r\n /** */\r\n protected SetPageResponse<T>(pageResponse: T | null = null): void {\r\n if (Tools.IsNotNull(pageResponse)) {\r\n this._preventDestroy = true;\r\n Source.SetPageResponse(pageResponse);\r\n }\r\n };\r\n\r\n\r\n /** */\r\n protected ReloadPage(): void {\r\n Breadcrumbs.RemoveLast();\r\n Tools.Sleep().then(_ => window.location.reload());\r\n }\r\n\r\n\r\n /** */\r\n protected Log(value: any, log: string | null = null): void {\r\n if (Tools.IsNotNull(log)) console.log({ log, value });\r\n else console.log(value);\r\n }\r\n\r\n\r\n /** Returns true if the value is null or undefined, false otherwise */\r\n protected IsNotNull = Tools.IsNotNull;\r\n\r\n /** Returns true if the value is null or undefined, false otherwise */\r\n protected IsNull = Tools.IsNull;\r\n\r\n /** Returns true if the value is null or undefined or contains only whitespace, false otherwise */\r\n protected IsOnlyWhiteSpace = Tools.IsOnlyWhiteSpace;\r\n}","import { IScreenSize } from \"../../interfaces\";\r\nimport { Observable } from \"rxjs\";\r\n\r\nexport class Screen {\r\n\r\n public static get WINDOW_WIDTH(): number {\r\n return window.innerWidth;\r\n }\r\n\r\n\r\n public static get WINDOW_HEIGHT(): number {\r\n return window.innerHeight;\r\n }\r\n\r\n\r\n public static get DEVICE_WIDTH(): number {\r\n return window.screen.width;\r\n }\r\n\r\n\r\n public static get DEVICE_HEIGHT(): number {\r\n return window.screen.height;\r\n }\r\n\r\n\r\n public static get BREAKPOINT(): 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' {\r\n if (window.innerWidth < 576) return 'xs';\r\n else if (window.innerWidth >= 576 && window.innerWidth < 768) return 'sm';\r\n else if (window.innerWidth >= 768 && window.innerWidth < 992) return 'md';\r\n else if (window.innerWidth >= 992 && window.innerWidth < 1200) return 'lg';\r\n else if (window.innerWidth >= 1200 && window.innerWidth < 1400) return 'xl';\r\n else return 'xxl';\r\n }\r\n\r\n\r\n /** */\r\n public static Resize = new Observable<IScreenSize>(subscriber => {\r\n window.addEventListener(\"load\", () => {\r\n window.dispatchEvent(new Event('resize'));\r\n });\r\n\r\n window.onresize = () => {\r\n subscriber.next({\r\n width: window.innerWidth,\r\n height: window.innerHeight,\r\n breakpoin: this.BREAKPOINT\r\n });\r\n }\r\n });\r\n}","import { Router } from '@angular/router';\r\nimport { inject } from \"@angular/core\";\r\nimport { IAppSource } from '../../interfaces';\r\nimport { Breadcrumbs, Tools } from '../../Tools';\r\n\r\nexport class Source {\r\n\r\n private static readonly storage = 'COER-System';\r\n\r\n /** */\r\n public static Set(page: string): void {\r\n const ROUTER = inject(Router);\r\n\r\n let path = ROUTER.url;\r\n if (path.includes('?')) path = path.split('?')[0];\r\n\r\n Breadcrumbs.Add(page, path);\r\n\r\n const breadcrumbs = Breadcrumbs.Get();\r\n\r\n if(breadcrumbs.length >= 2) {\r\n breadcrumbs.pop();\r\n const breadcrumb = breadcrumbs.pop()!;\r\n this.Save({ page: breadcrumb.page, path: breadcrumb.path });\r\n }\r\n\r\n else this.Save(null);\r\n }\r\n\r\n\r\n /** */\r\n private static Save(source: IAppSource | null): void {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n if (storage) storage = JSON.parse(storage);\r\n storage = Object.assign({}, storage, { source });\r\n sessionStorage.setItem(this.storage, JSON.stringify(storage));\r\n }\r\n\r\n\r\n /** */\r\n public static Get(): IAppSource | null {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n\r\n if (storage) {\r\n storage = JSON.parse(storage);\r\n\r\n if (storage.hasOwnProperty('source')) {\r\n return storage.source;\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n\r\n /** */\r\n public static GetRoot(): IAppSource | null {\r\n const breadcrumbs = Breadcrumbs.Get();\r\n return (breadcrumbs.length > 0) ? breadcrumbs.shift()! : null;\r\n }\r\n\r\n\r\n /** */\r\n public static SetPageResponse<T>(pageResponse: T): void {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n storage = JSON.parse(storage);\r\n storage = Object.assign({}, storage, { pageResponse });\r\n sessionStorage.setItem(this.storage, JSON.stringify(storage));\r\n }\r\n\r\n\r\n /** */\r\n public static GetPageResponse<T>(): T | null {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n\r\n if (storage) {\r\n storage = JSON.parse(storage);\r\n\r\n if (storage.hasOwnProperty('pageResponse')) {\r\n return Tools.BreakReference(storage.pageResponse);\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n\r\n /** */\r\n public static ClearPageResponse(): void {\r\n let storage = sessionStorage.getItem(this.storage) as any;\r\n storage = JSON.parse(storage);\r\n\r\n if (storage.hasOwnProperty('pageResponse')) {\r\n delete storage.pageResponse;\r\n }\r\n\r\n storage = Object.assign({}, storage);\r\n sessionStorage.setItem(this.storage, JSON.stringify(storage));\r\n }\r\n\r\n\r\n /** Clear Source */\r\n public static Reset(): void {\r\n sessionStorage.removeItem(this.storage);\r\n }\r\n}","import { signal } from \"@angular/core\";\r\nconst reference_signal = signal<any>({});\r\n\r\nexport const Tools = {\r\n /** Generate a Guid */\r\n GetGuid: (seed: string = 'coer-system') => {\r\n let time = new Date().getTime();\r\n seed = seed.toString().trim()\r\n return seed + `-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g, (c) => {\r\n const random = (time + Math.random() * 16) % 16 | 0\r\n time = Math.floor(time / 16)\r\n return (c == 'x' ? random : (random & 0x3 | 0x8)).toString(16)\r\n })\r\n },\r\n\r\n\r\n /** Returns true if the value is null or undefined, false otherwise */\r\n IsNull: <T>(value: T | null | undefined): boolean => {\r\n if (value === undefined) return true;\r\n if (value === null) return true;\r\n return false;\r\n },\r\n\r\n\r\n /** Returns true if the value is not null or undefined, false otherwise */\r\n IsNotNull: <T>(value: T | null | undefined): boolean => {\r\n if (value === undefined) return false;\r\n if (value === null) return false;\r\n return true;\r\n },\r\n\r\n\r\n /** Returns true if the value is null or undefined or contains only whitespace, false otherwise */\r\n IsOnlyWhiteSpace: <T>(value: T | null | undefined): boolean => {\r\n if (value === undefined) return true;\r\n if (value === null) return true;\r\n if((value as string).toString().trim() === '') return true;\r\n return false;\r\n },\r\n\r\n\r\n /** Break reference of a object or array */\r\n BreakReference: <T>(object: T): T => {\r\n if (object === undefined) return undefined as T;\r\n if (object === null) return null as T;\r\n const OBJECT = JSON.parse(JSON.stringify(object))\r\n return (Array.isArray(OBJECT)) ? [...OBJECT] : { ...OBJECT }\r\n },\r\n\r\n\r\n /** Clean extra whitespaces */\r\n CleanUpBlanks: (text: string | number): string => {\r\n if(Tools.IsNull(text)) return '';\r\n let worlds: string[] = String(text).split(' ');\r\n worlds = worlds.filter(x => x.length > 0);\r\n return worlds.join(' ');\r\n },\r\n\r\n\r\n /** Get properties of an object */\r\n GetObjectProperties: <T>(obj: T | null | undefined): string[] => {\r\n const properties: string[] = [];\r\n if(Tools.IsNull(obj)) return properties;\r\n for(const property in obj) properties.push(String(property));\r\n return properties;\r\n },\r\n\r\n\r\n /**\r\n * Set an index and merge more arrays of the same type\r\n * @returns A new array\r\n * */\r\n SetIndex: <T>(array: T[], ...args: T[][]): T[] => {\r\n let index = 0;\r\n for (const arg of args) {\r\n array = Tools.BreakReference(array).concat(Tools.BreakReference(arg));\r\n }\r\n\r\n return Tools.BreakReference(array).map(item => Object.assign({ index: index++ }, item));\r\n },\r\n\r\n\r\n /** Set First Char To Lower */\r\n FirstCharToLower: (text: string | null | undefined): string => {\r\n if (Tools.IsNull(text)) return '';\r\n\r\n const textArray: string[] = [];\r\n for(let i = 0; i < text!.length; i++) {\r\n if(i === 0) textArray.push(text![i].toLowerCase());\r\n else textArray.push(text![i]);\r\n }\r\n\r\n return textArray.join('');\r\n },\r\n\r\n\r\n /** Set First Char To Upper */\r\n FirstCharToUpper: (text: string | null | undefined): string => {\r\n if (Tools.IsNull(text)) return '';\r\n\r\n const textArray: string[] = [];\r\n for(let i = 0; i < text!.length; i++) {\r\n if(i === 0) textArray.push(text![i].toUpperCase());\r\n else textArray.push(text![i]);\r\n }\r\n\r\n return textArray.join('');\r\n },\r\n\r\n\r\n /** Sort an array in ascending order by property */\r\n SortBy: <T>(array: T[], property: string, propertyType: 'string' | 'number' = 'string'): T[] => {\r\n switch (propertyType) {\r\n case 'string': {\r\n return array.sort((x: any, y: any) => {\r\n if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim()) return -1;\r\n else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim()) return 1;\r\n else return 0;\r\n });\r\n }\r\n\r\n case 'number': {\r\n return array.sort((x: any, y: any) => Number(x[property] - Number(y[property])));\r\n }\r\n }\r\n },\r\n\r\n\r\n /** Sort an array in descending order by property */\r\n SortByDesc: <T>(array: T[], property: string, propertyType: 'string' | 'number' = 'string'): T[] => {\r\n switch (propertyType) {\r\n case 'string': {\r\n return array.sort((x: any, y: any) => {\r\n if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim()) return 1;\r\n else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim()) return -1;\r\n else return 0;\r\n });\r\n }\r\n\r\n case 'number': {\r\n return array.sort((x: any, y: any) => Number(Number(y[property])) - x[property]);\r\n }\r\n }\r\n },\r\n\r\n\r\n /** Return a string with forman numeric */\r\n GetNumericFormat: (value: string | number | null | undefined, decimals: number = 0): string => {\r\n if (value == undefined\r\n || value == null\r\n || value.toString().trim() == ''\r\n || isNaN(Number(value))) {\r\n return '0';\r\n }\r\n\r\n let valueInteger = '';\r\n let valueDecimal = '';\r\n value = value.toString().replaceAll(' ', '');\r\n\r\n if (value.includes('.') || (decimals > 0)) {\r\n valueInteger = value.includes('.') ? value.split('.')[0] : value;\r\n\r\n if (decimals > 0) {\r\n const PADDING = decimals - valueDecimal.length;\r\n valueDecimal = value.includes('.') ? value.split('.')[1] : '';\r\n for(let i = 0; i < PADDING; i++) valueDecimal += '0';\r\n valueDecimal = valueDecimal.substring(0, decimals);\r\n valueDecimal = `.${valueDecimal}`;\r\n }\r\n }\r\n\r\n else {\r\n valueInteger = value;\r\n }\r\n\r\n let counter = 0;\r\n const VALUE_INTEGER_ARRAY: string[] = [];\r\n for(const char of valueInteger.split('').reverse()) {\r\n if (counter == 3) {\r\n VALUE_INTEGER_ARRAY.push(',');\r\n counter = 0;\r\n }\r\n\r\n VALUE_INTEGER_ARRAY.push(char);\r\n ++counter;\r\n }\r\n\r\n valueInteger = VALUE_INTEGER_ARRAY.reverse().join('');\r\n return `${valueInteger}${valueDecimal}`;\r\n },\r\n\r\n\r\n /** Wait the time indicated */\r\n Sleep: (milliseconds: number = 0, reference: string | null = null) => {\r\n if (Tools.IsNull(reference)) {\r\n return new Promise(Resolve => setTimeout(Resolve, milliseconds));\r\n }\r\n\r\n else return new Promise<void>(Resolve => {\r\n reference = reference!.replaceAll(' ', '_').toLowerCase();\r\n\r\n if (reference_signal().hasOwnProperty(reference)) {\r\n clearInterval(reference_signal()[reference!]);\r\n }\r\n\r\n reference_signal.set(Object.assign(reference_signal(), {\r\n [reference!]: setTimeout(() => {\r\n Resolve();\r\n clearInterval(reference_signal()[reference!]);\r\n const _reference = { ...reference_signal() };\r\n delete _reference[reference!];\r\n reference_signal.set({ ..._reference });\r\n }, milliseconds)\r\n }));\r\n });\r\n }\r\n};","import { Screen } from '../../Tools';\r\nimport { signal } from '@angular/core';\r\nexport const breakpointSIG = signal<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'>(Screen?.BREAKPOINT || 'xs');","import { signal } from \"@angular/core\";\r\nexport const isLoadingSIG = signal<boolean>(false);","import { signal } from \"@angular/core\";\r\nexport const isModalOpenSIG = signal<boolean>(false);","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\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,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,yBAAyB,CAAC,CAAC;QAC5D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAE,CAAC;AACxE,QAAA,IAAI,CAAC,OAAO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n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
package/index.d.ts CHANGED
@@ -1,3 +1 @@
1
- export * from './components';
2
- export * from './Signals';
3
- export * from './Tools';
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,19 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
+ "author": "Christian Omar Escamilla Rodríguez",
5
+ "keywords": [
6
+ "coer",
7
+ "tools",
8
+ "components"
9
+ ],
10
+ "description": "",
11
+ "license": "MIT",
12
+ "homepage": "https://github.com/Chris19910804/coer-elements",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/Chris19910804/coer-elements"
16
+ },
4
17
  "peerDependencies": {
5
18
  "@angular/common": "^17.3.0",
6
19
  "@angular/core": "^17.3.0"
package/styles/index.css CHANGED
@@ -1,18 +1,250 @@
1
- /* Error: Undefined variable.
2
- * ,
3
- * 80 | background-color: lighten($gray, 48%);
4
- * | ^^^^^
5
- * '
6
- * projects\coer-elements\styles\coer.scss 80:31 @import
7
- * projects\coer-elements\styles\index.scss 1:9 root stylesheet */
8
-
9
- body::before {
10
- font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",
11
- "Droid Sans Mono", monospace, monospace;
12
- white-space: pre;
13
- display: block;
14
- padding: 1em;
15
- margin-bottom: 1em;
16
- border-bottom: 2px solid black;
17
- content: "Error: Undefined variable.\a \2577 \a 80 \2502 background-color: lighten($gray, 48%);\d\a \2502 ^^^^^\a \2575 \a projects\\coer-elements\\styles\\coer.scss 80:31 @import\a projects\\coer-elements\\styles\\index.scss 1:9 root stylesheet";
1
+ .text-blue {
2
+ color: #0d6efd !important;
3
+ }
4
+
5
+ .text-blue-bold {
6
+ color: #0d6efd !important;
7
+ font-weight: bold !important;
8
+ }
9
+
10
+ .background-blue {
11
+ background-color: #0d6efd !important;
12
+ }
13
+
14
+ .background-border-blue {
15
+ background-color: #0d6efd !important;
16
+ border-color: #0d6efd !important;
17
+ }
18
+
19
+ .text-gray {
20
+ color: #6c757d !important;
21
+ }
22
+
23
+ .text-gray-bold {
24
+ color: #6c757d !important;
25
+ font-weight: bold !important;
26
+ }
27
+
28
+ .background-gray {
29
+ background-color: #6c757d !important;
30
+ }
31
+
32
+ .background-border-gray {
33
+ background-color: #6c757d !important;
34
+ border-color: #6c757d !important;
35
+ }
36
+
37
+ .text-green {
38
+ color: #198754 !important;
39
+ }
40
+
41
+ .text-green-bold {
42
+ color: #198754 !important;
43
+ font-weight: bold !important;
44
+ }
45
+
46
+ .background-green {
47
+ background-color: #198754 !important;
48
+ }
49
+
50
+ .background-border-green {
51
+ background-color: #198754 !important;
52
+ border-color: #198754 !important;
53
+ }
54
+
55
+ .text-yellow {
56
+ color: #ffc107 !important;
57
+ }
58
+
59
+ .text-yellow-bold {
60
+ color: #ffc107 !important;
61
+ font-weight: bold !important;
62
+ }
63
+
64
+ .background-yellow {
65
+ background-color: #ffc107 !important;
66
+ }
67
+
68
+ .background-border-yellow {
69
+ background-color: #ffc107 !important;
70
+ border-color: #ffc107 !important;
71
+ }
72
+
73
+ .text-red {
74
+ color: #dc3545 !important;
75
+ }
76
+
77
+ .text-red-bold {
78
+ color: #dc3545 !important;
79
+ font-weight: bold !important;
80
+ }
81
+
82
+ .background-red {
83
+ background-color: #dc3545 !important;
84
+ }
85
+
86
+ .background-border-red {
87
+ background-color: #dc3545 !important;
88
+ border-color: #dc3545 !important;
89
+ }
90
+
91
+ .text-white {
92
+ color: #f5f5f5 !important;
93
+ }
94
+
95
+ .text-white-bold {
96
+ color: #f5f5f5 !important;
97
+ font-weight: bold !important;
98
+ }
99
+
100
+ .background-white {
101
+ background-color: #f5f5f5 !important;
102
+ }
103
+
104
+ .background-border-white {
105
+ background-color: #f5f5f5 !important;
106
+ border-color: #f5f5f5 !important;
107
+ }
108
+
109
+ .text-black {
110
+ color: #252525 !important;
111
+ }
112
+
113
+ .text-black-bold {
114
+ color: #252525 !important;
115
+ font-weight: bold !important;
116
+ }
117
+
118
+ .background-black {
119
+ background-color: #252525 !important;
120
+ }
121
+
122
+ .background-border-black {
123
+ background-color: #252525 !important;
124
+ border-color: #252525 !important;
125
+ }
126
+
127
+ .text-orange {
128
+ color: #fd6031 !important;
129
+ }
130
+
131
+ .text-orange-bold {
132
+ color: #fd6031 !important;
133
+ font-weight: bold !important;
134
+ }
135
+
136
+ .background-orange {
137
+ background-color: #fd6031 !important;
138
+ }
139
+
140
+ .background-border-orange {
141
+ background-color: #fd6031 !important;
142
+ border-color: #fd6031 !important;
143
+ }
144
+
145
+ * {
146
+ font-family: sans-serif;
147
+ letter-spacing: normal;
148
+ }
149
+
150
+ .fill-space {
151
+ flex: 1 1 auto;
152
+ }
153
+
154
+ h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
155
+ margin: 0px;
156
+ padding: 0px;
157
+ }
158
+
159
+ .coer-container {
160
+ margin: 15px 30px 0px 30px;
161
+ padding: 10px;
162
+ box-shadow: 0px 0px 10px -10px black;
163
+ border-radius: 8px;
164
+ background-color: white;
165
+ animation-name: fadeId;
166
+ animation-duration: 1.5s;
167
+ animation-iteration-count: 1;
168
+ animation-fill-mode: both;
169
+ }
170
+
171
+ .coer-container-tab {
172
+ margin: 15px 30px 0px 30px;
173
+ padding: 10px;
174
+ box-shadow: 0px 0px 10px -10px black;
175
+ border-radius: 8px;
176
+ background-color: white;
177
+ animation-name: fadeId;
178
+ animation-duration: 1.5s;
179
+ animation-iteration-count: 1;
180
+ animation-fill-mode: both;
181
+ padding: 0px;
182
+ }
183
+ .coer-container-tab .row {
184
+ margin: 12px 0px;
185
+ }
186
+
187
+ .coer-container-grid {
188
+ margin: 15px 30px 0px 30px;
189
+ padding: 10px;
190
+ box-shadow: 0px 0px 10px -10px black;
191
+ border-radius: 8px;
192
+ background-color: white;
193
+ animation-name: fadeId;
194
+ animation-duration: 1.5s;
195
+ animation-iteration-count: 1;
196
+ animation-fill-mode: both;
197
+ padding-bottom: 5px;
198
+ }
199
+
200
+ @keyframes fadeId {
201
+ from {
202
+ opacity: 0;
203
+ }
204
+ to {
205
+ opacity: 1;
206
+ }
207
+ }
208
+ .cursor-default {
209
+ cursor: default !important;
210
+ }
211
+
212
+ .cursor-pointer {
213
+ cursor: pointer !important;
214
+ }
215
+
216
+ .cursor-wait {
217
+ cursor: wait !important;
218
+ }
219
+
220
+ input[type=file] {
221
+ display: none !important;
222
+ }
223
+
224
+ .readonly {
225
+ color: black !important;
226
+ background-color: rgba(187, 187, 187, 0.5137254902) !important;
227
+ }
228
+
229
+ .no-selection::selection {
230
+ background-color: transparent !important;
231
+ }
232
+
233
+ *::-webkit-scrollbar {
234
+ background-color: #eeeff0;
235
+ width: 5px;
236
+ height: 5px;
237
+ }
238
+
239
+ *::-webkit-scrollbar-thumb {
240
+ background-color: #caced1;
241
+ border-radius: 4px;
242
+ }
243
+
244
+ *::-webkit-scrollbar-thumb:hover {
245
+ background-color: #6c757d;
246
+ }
247
+
248
+ *::-webkit-scrollbar-thumb:active {
249
+ background-color: #6c757d;
18
250
  }
package/styles/index.scss CHANGED
@@ -1,2 +1,98 @@
1
- @import "./coer.scss";
2
- @import "./colors.scss";
1
+ @import "./colors.scss";
2
+
3
+ * {
4
+ font-family: sans-serif;
5
+ letter-spacing: normal;
6
+ }
7
+
8
+ .fill-space {
9
+ flex: 1 1 auto;
10
+ }
11
+
12
+ h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
13
+ margin: 0px;
14
+ padding: 0px;
15
+ }
16
+
17
+ //Containers
18
+ @mixin Container() {
19
+ margin: 15px 30px 0px 30px;
20
+ padding: 10px;
21
+ box-shadow: 0px 0px 10px -10px black;
22
+ border-radius: 8px;
23
+ background-color: white;
24
+ animation-name: fadeId;
25
+ animation-duration: 1.5s;
26
+ animation-iteration-count: 1;
27
+ animation-fill-mode: both;
28
+ }
29
+
30
+ .coer-container {
31
+ @include Container();
32
+ }
33
+
34
+ .coer-container-tab {
35
+ @include Container();
36
+ padding: 0px;
37
+
38
+ .row {
39
+ margin: 12px 0px;
40
+ }
41
+ }
42
+
43
+ .coer-container-grid {
44
+ @include Container();
45
+ padding-bottom: 5px;
46
+ }
47
+
48
+ @keyframes fadeId {
49
+ from { opacity: 0; }
50
+ to { opacity: 1; }
51
+ }
52
+
53
+ //Cursor
54
+ .cursor-default {
55
+ cursor: default !important;
56
+ }
57
+
58
+ .cursor-pointer {
59
+ cursor: pointer !important;
60
+ }
61
+
62
+ .cursor-wait {
63
+ cursor: wait !important;
64
+ }
65
+
66
+ //Input
67
+ input[type="file"] {
68
+ display: none !important;
69
+ }
70
+
71
+ .readonly {
72
+ color: black !important;
73
+ background-color: #bbbbbb83 !important;
74
+ }
75
+
76
+ //Scrollbar
77
+ .no-selection::selection {
78
+ background-color: transparent !important;
79
+ }
80
+
81
+ *::-webkit-scrollbar {
82
+ background-color: lighten($gray, 48%);
83
+ width: 5px;
84
+ height: 5px;
85
+ }
86
+
87
+ *::-webkit-scrollbar-thumb{
88
+ background-color: lighten($gray, 35%);
89
+ border-radius: 4px;
90
+ }
91
+
92
+ *::-webkit-scrollbar-thumb:hover {
93
+ background-color: $gray;
94
+ }
95
+
96
+ *::-webkit-scrollbar-thumb:active {
97
+ background-color: $gray;
98
+ }
package/README.md DELETED
@@ -1,24 +0,0 @@
1
- # CoerElements
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project coer-elements` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project coer-elements`.
8
- > Note: Don't forget to add `--project coer-elements` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build coer-elements` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build coer-elements`, go to the dist folder `cd dist/coer-elements` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test coer-elements` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- 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.
@@ -1 +0,0 @@
1
- export declare const breakpointSIG: import("@angular/core").WritableSignal<"xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
@@ -1 +0,0 @@
1
- export declare const isLoadingSIG: import("@angular/core").WritableSignal<boolean>;
@@ -1 +0,0 @@
1
- export declare const isModalOpenSIG: import("@angular/core").WritableSignal<boolean>;
@@ -1,18 +0,0 @@
1
- import { IAppSource } from "../../interfaces";
2
- export declare class Breadcrumbs {
3
- private static readonly storage;
4
- /** */
5
- static Add(page: string, path: string): void;
6
- /** */
7
- static Get(): IAppSource[];
8
- /** Source */
9
- static GetFirst(): IAppSource | null;
10
- /** */
11
- static Save(breadcrumbs: IAppSource[]): void;
12
- /** */
13
- static Remove(path: string): void;
14
- /** */
15
- static SetLast(page: string, path: string): void;
16
- /** */
17
- static RemoveLast(): void;
18
- }
@@ -1,23 +0,0 @@
1
- import { ControlValueAccessor } from "@angular/forms";
2
- export declare const CONTROL_VALUE: <T>(component: T) => {
3
- provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
4
- useExisting: import("@angular/core").Type<any>;
5
- multi: boolean;
6
- };
7
- export declare class ControlValue implements ControlValueAccessor {
8
- protected _value: any;
9
- private _isTouched;
10
- protected _UpdateValue: Function;
11
- private _IsTouched;
12
- get isTouched(): boolean;
13
- /** */
14
- protected SetValue(value: any): void;
15
- /** */
16
- SetTouched(isTouched: boolean): void;
17
- /** */
18
- writeValue(value: any): void;
19
- /** */
20
- registerOnChange(callback: Function): void;
21
- /** */
22
- registerOnTouched(callback: Function): void;
23
- }