coer-elements 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/components/index.d.ts +13 -0
  2. package/components/lib/coer-button/coer-button.component.d.ts +44 -0
  3. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +28 -0
  4. package/components/lib/coer-filebox/coer-filebox.component.d.ts +33 -0
  5. package/components/lib/coer-form/coer-form.component.d.ts +33 -0
  6. package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
  7. package/components/lib/coer-grid/coer-grid.extension.d.ts +105 -0
  8. package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
  9. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
  10. package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
  11. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
  12. package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
  13. package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
  14. package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
  15. package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
  16. package/components/lib/components.module.d.ts +25 -4
  17. package/directives/index.d.ts +3 -0
  18. package/directives/lib/coer-ref.directive.d.ts +14 -0
  19. package/directives/lib/directives.module.d.ts +8 -0
  20. package/directives/lib/life-cycle.directive.d.ts +14 -0
  21. package/esm2022/components/index.mjs +14 -1
  22. package/esm2022/components/lib/coer-button/coer-button.component.mjs +133 -0
  23. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +84 -0
  24. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +104 -0
  25. package/esm2022/components/lib/coer-form/coer-form.component.mjs +102 -0
  26. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +515 -0
  27. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +412 -0
  28. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +108 -0
  29. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +260 -0
  30. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
  31. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +339 -0
  32. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +94 -0
  33. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
  34. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +157 -0
  35. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +196 -0
  36. package/esm2022/components/lib/components.module.mjs +101 -59
  37. package/esm2022/directives/index.mjs +4 -0
  38. package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
  39. package/esm2022/directives/lib/directives.module.mjs +25 -0
  40. package/esm2022/directives/lib/life-cycle.directive.mjs +29 -0
  41. package/esm2022/interfaces/coer-filebox/index.mjs +3 -0
  42. package/esm2022/interfaces/coer-grid/index.mjs +21 -0
  43. package/esm2022/interfaces/index.mjs +1 -3
  44. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
  45. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
  46. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
  47. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
  48. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
  49. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
  50. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
  51. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
  52. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
  53. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
  54. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
  55. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
  56. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
  57. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
  58. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
  59. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
  60. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
  61. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
  62. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
  63. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
  64. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
  65. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
  66. package/esm2022/interfaces/lib/menu/menu-option-selected.interface.mjs +2 -0
  67. package/esm2022/interfaces/lib/menu/menu.interface.mjs +2 -0
  68. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
  69. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
  70. package/esm2022/interfaces/page-title/index.mjs +3 -0
  71. package/esm2022/pipes/index.mjs +5 -0
  72. package/esm2022/pipes/lib/html.pipe.mjs +18 -0
  73. package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
  74. package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
  75. package/esm2022/pipes/lib/pipes.module.mjs +31 -0
  76. package/esm2022/public_api.mjs +3 -1
  77. package/esm2022/signals/lib/breakpoint.signal.mjs +2 -2
  78. package/esm2022/signals/lib/is-loading.signal.mjs +2 -2
  79. package/esm2022/signals/lib/is-modal-open.signal.mjs +2 -2
  80. package/esm2022/tools/index.mjs +3 -2
  81. package/esm2022/tools/lib/breadcrumbs.class.mjs +2 -2
  82. package/esm2022/tools/lib/date-time.class.mjs +14 -7
  83. package/esm2022/tools/lib/files.class.mjs +2 -2
  84. package/esm2022/tools/lib/menu.class.mjs +23 -0
  85. package/esm2022/tools/lib/page.class.mjs +6 -6
  86. package/esm2022/tools/lib/screen.class.mjs +9 -1
  87. package/esm2022/tools/lib/source.class.mjs +3 -3
  88. package/esm2022/tools/lib/tools.mjs +220 -0
  89. package/fesm2022/coer-elements.mjs +3254 -455
  90. package/fesm2022/coer-elements.mjs.map +1 -1
  91. package/interfaces/coer-filebox/index.d.ts +2 -0
  92. package/interfaces/coer-grid/index.d.ts +20 -0
  93. package/interfaces/index.d.ts +0 -2
  94. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
  95. package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
  96. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
  97. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
  98. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
  99. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
  100. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
  101. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
  102. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
  103. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
  104. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
  105. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
  106. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
  107. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
  108. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
  109. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
  110. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
  111. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
  112. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
  113. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
  114. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
  115. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
  116. package/interfaces/lib/menu/menu-option-selected.interface.d.ts +9 -0
  117. package/interfaces/lib/menu/menu.interface.d.ts +6 -0
  118. package/interfaces/page-title/index.d.ts +2 -0
  119. package/package.json +1 -1
  120. package/pipes/index.d.ts +4 -0
  121. package/pipes/lib/html.pipe.d.ts +10 -0
  122. package/pipes/lib/no-image.pipe.d.ts +7 -0
  123. package/pipes/lib/numeric-format.pipe.d.ts +7 -0
  124. package/pipes/lib/pipes.module.d.ts +9 -0
  125. package/public_api.d.ts +2 -0
  126. package/signals/lib/is-loading.signal.d.ts +1 -1
  127. package/signals/lib/is-modal-open.signal.d.ts +1 -1
  128. package/src/interfaces/coer-filebox/index.ts +2 -0
  129. package/src/interfaces/coer-grid/index.ts +20 -0
  130. package/src/interfaces/index.ts +1 -3
  131. package/src/interfaces/lib/coer-filebox/file-image.interface.ts +14 -0
  132. package/src/interfaces/lib/coer-filebox/file.interface.ts +5 -0
  133. package/src/interfaces/lib/coer-grid/grid-button-by-row.interface.ts +7 -0
  134. package/src/interfaces/lib/coer-grid/grid-checkbox.interface.ts +5 -0
  135. package/src/interfaces/lib/coer-grid/grid-coer-numberbox.interface.ts +12 -0
  136. package/src/interfaces/lib/coer-grid/grid-coer-selectbox.interface.ts +9 -0
  137. package/src/interfaces/lib/coer-grid/grid-coer-switch.interface.ts +6 -0
  138. package/src/interfaces/lib/coer-grid/grid-coer-textbox.interface.ts +11 -0
  139. package/src/interfaces/lib/coer-grid/grid-column.interface.ts +23 -0
  140. package/src/interfaces/lib/coer-grid/grid-data-source.interface.ts +6 -0
  141. package/src/interfaces/lib/coer-grid/grid-header-button.interface.ts +8 -0
  142. package/src/interfaces/lib/coer-grid/grid-header-export-button.interface.ts +10 -0
  143. package/src/interfaces/lib/coer-grid/grid-header.interface.ts +5 -0
  144. package/src/interfaces/lib/coer-grid/grid-import.interface.ts +4 -0
  145. package/src/interfaces/lib/coer-grid/grid-input-checkbox.interface.ts +5 -0
  146. package/src/interfaces/lib/coer-grid/grid-input-switch-change.interface.ts +5 -0
  147. package/src/interfaces/lib/coer-grid/grid-input-textbox.interface.ts +5 -0
  148. package/src/interfaces/lib/coer-grid/grid-item.interface.ts +5 -0
  149. package/src/interfaces/lib/coer-grid/grid-keyup-enter.interface.ts +6 -0
  150. package/src/interfaces/lib/coer-grid/grid-length.interface.ts +5 -0
  151. package/src/interfaces/lib/coer-grid/grid-search.interface.ts +4 -0
  152. package/src/interfaces/lib/coer-grid/grid-sort.interface.ts +5 -0
  153. package/src/interfaces/lib/menu/menu-option-selected.interface.ts +10 -0
  154. package/src/interfaces/lib/menu/menu-selected.interface.ts +11 -0
  155. package/src/interfaces/lib/menu/menu.interface.ts +6 -0
  156. package/src/interfaces/menu/index.ts +3 -0
  157. package/src/interfaces/page-title/index.ts +2 -0
  158. package/tools/index.d.ts +2 -1
  159. package/tools/lib/breadcrumbs.class.d.ts +1 -1
  160. package/tools/lib/date-time.class.d.ts +4 -2
  161. package/tools/lib/menu.class.d.ts +8 -0
  162. package/tools/lib/page.class.d.ts +4 -3
  163. package/tools/lib/screen.class.d.ts +3 -1
  164. package/tools/lib/source.class.d.ts +1 -1
  165. package/tools/lib/{generi-tools.d.ts → tools.d.ts} +7 -5
  166. package/esm2022/interfaces/lib/breadcrumb.interface.mjs +0 -2
  167. package/esm2022/interfaces/lib/go-back.interface.mjs +0 -2
  168. package/esm2022/tools/lib/generi-tools.mjs +0 -199
  169. /package/interfaces/lib/{breadcrumb.interface.d.ts → page-title/breadcrumb.interface.d.ts} +0 -0
  170. /package/interfaces/lib/{go-back.interface.d.ts → page-title/go-back.interface.d.ts} +0 -0
  171. /package/src/interfaces/lib/{breadcrumb.interface.ts → page-title/breadcrumb.interface.ts} +0 -0
  172. /package/src/interfaces/lib/{go-back.interface.ts → page-title/go-back.interface.ts} +0 -0
  173. /package/src/styles/{coer-elements.scss → index.scss} +0 -0
@@ -1,9 +1,9 @@
1
- import { Component, Inject, inject } from '@angular/core';
2
1
  import { ActivatedRoute, Router } from '@angular/router';
3
- import { CoerAlert } from '../../components';
4
- import { Breadcrumbs } from './breadcrumbs.class';
5
- import { Source } from './source.class';
6
- import { Tools } from './generi-tools';
2
+ import { Component, Inject, inject } from '@angular/core';
3
+ import { CoerAlert } from '../../components/lib/coer-alert/coer-alert.component';
4
+ import { Breadcrumbs } from '../lib/breadcrumbs.class';
5
+ import { Source } from '../lib/source.class';
6
+ import { Tools } from './tools';
7
7
  import * as i0 from "@angular/core";
8
8
  export class Page {
9
9
  constructor(page) {
@@ -153,4 +153,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
153
153
  type: Inject,
154
154
  args: [String]
155
155
  }] }] });
156
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3Rvb2xzL2xpYi9wYWdlLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQWEsTUFBTSxlQUFlLENBQUM7QUFDcEYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QyxPQUFPLE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iAgICAgICAgfVxyXG5cclxuICAgICAgICBlbHNlIHRoaXMuYnJlYWRjcnVtYnMgPSBbeyBwYWdlOiB0aGlzLl9wYWdlIH1dO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByaXZhdGUgU2V0R29CYWNrKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLl9zb3VyY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5nb0JhY2sgPSB7XHJcbiAgICAgICAgICAgICAgICBzaG93OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgcGF0aDogdGhpcy5fc291cmNlLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soKVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIEdvQmFjayA9IChwYXRoPzogc3RyaW5nKSA9PiAoKCkgPT4ge1xyXG4gICAgICAgIGlmIChwYXRoKSBCcmVhZGNydW1icy5SZW1vdmUocGF0aCk7XHJcbiAgICAgICAgZWxzZSBCcmVhZGNydW1icy5SZW1vdmVMYXN0KCk7XHJcbiAgICB9KTtcclxuXHJcblxyXG4gICAgLyoqIE5hdmlnYXRlIHRvIHByZXZpb3VzIHBhZ2UgKi9cclxuICAgIHByb3RlY3RlZCBHb1RvU291cmNlPFQ+KHBhZ2VSZXNwb25zZTogVCB8IG51bGwgPSBudWxsKTogdm9pZCB7XHJcbiAgICAgICAgaWYodGhpcy5fc291cmNlKSB7XHJcbiAgICAgICAgICAgIEJyZWFkY3J1bWJzLlJlbW92ZUxhc3QoKTtcclxuICAgICAgICAgICAgdGhpcy5TZXRQYWdlUmVzcG9uc2UocGFnZVJlc3BvbnNlKTtcclxuICAgICAgICAgICAgVG9vbHMuU2xlZXAoKS50aGVuKF8gPT4gdGhpcy5yb3V0ZXIubmF2aWdhdGVCeVVybCh0aGlzLl9zb3VyY2UhLnBhdGgpKTtcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBTZXRQYWdlUmVzcG9uc2U8VD4ocGFnZVJlc3BvbnNlOiBUIHwgbnVsbCA9IG51bGwpOiB2b2lkIHtcclxuICAgICAgICBpZiAoVG9vbHMuSXNOb3ROdWxsKHBhZ2VSZXNwb25zZSkpIHtcclxuICAgICAgICAgICAgdGhpcy5fcHJldmVudERlc3Ryb3kgPSB0cnVlO1xyXG4gICAgICAgICAgICBTb3VyY2UuU2V0UGFnZVJlc3BvbnNlKHBhZ2VSZXNwb25zZSk7XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcm90ZWN0ZWQgUmVsb2FkUGFnZSgpOiB2b2lkIHtcclxuICAgICAgICBCcmVhZGNydW1icy5SZW1vdmVMYXN0KCk7XHJcbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB3aW5kb3cubG9jYXRpb24ucmVsb2FkKCkpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBMb2codmFsdWU6IGFueSwgbG9nOiBzdHJpbmcgfCBudWxsID0gbnVsbCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChUb29scy5Jc05vdE51bGwobG9nKSkgY29uc29sZS5sb2coeyBsb2csIHZhbHVlIH0pO1xyXG4gICAgICAgIGVsc2UgY29uc29sZS5sb2codmFsdWUpO1xyXG4gICAgfVxyXG59Il19
156
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3Rvb2xzL2xpYi9wYWdlLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibW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pOiB2b2lkIHtcclxuICAgICAgICB0aGlzLl9zb3VyY2UgPSBTb3VyY2UuR2V0KCk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHJvdGVjdGVkIEdldFBhZ2VSZXNwb25zZSgpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLnBhZ2VSZXNwb25zZSA9IFNvdXJjZS5HZXRQYWdlUmVzcG9uc2UoKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIEdldE5hdmlnYXRpb24oKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuX3NvdXJjZSkge1xyXG4gICAgICAgICAgICB0aGlzLmJyZWFkY3J1bWJzID0gQnJlYWRjcnVtYnMuR2V0KCkubWFwKGl0ZW0gPT4gT2JqZWN0LmFzc2lnbih7XHJcbiAgICAgICAgICAgICAgICBwYWdlOiBpdGVtLnBhZ2UsXHJcbiAgICAgICAgICAgICAgICBwYXRoOiBpdGVtLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soaXRlbS5wYXRoKVxyXG4gICAgICAgICAgICB9KSk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBlbHNlIHRoaXMuYnJlYWRjcnVtYnMgPSBbeyBwYWdlOiB0aGlzLl9wYWdlIH1dO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByaXZhdGUgU2V0R29CYWNrKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLl9zb3VyY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5nb0JhY2sgPSB7XHJcbiAgICAgICAgICAgICAgICBzaG93OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgcGF0aDogdGhpcy5fc291cmNlLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soKVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgIC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WN0ZWQgUmVsb2FkUGFnZSgpOiB2b2lkIHtcclxuICAgICAgICBCcmVhZGNydW1icy5SZW1vdmVMYXN0KCk7XHJcbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB3aW5kb3cubG9jYXRpb24ucmVsb2FkKCkpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBMb2codmFsdWU6IGFueSwgbG9nOiBzdHJpbmcgfCBudWxsID0gbnVsbCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChUb29scy5Jc05vdE51bGwobG9nKSkgY29uc29sZS5sb2coeyBsb2csIHZhbHVlIH0pO1xyXG4gICAgICAgIGVsc2UgY29uc29sZS5sb2codmFsdWUpO1xyXG4gICAgfVxyXG59Il19
@@ -39,5 +39,13 @@ export class Screen {
39
39
  });
40
40
  };
41
41
  }); }
42
+ /** */
43
+ static { this.BackButtonBrowser = new Observable(subscriber => {
44
+ window.addEventListener('popstate', popStateEvent => {
45
+ if (popStateEvent.state && popStateEvent.target) {
46
+ subscriber.next(popStateEvent.target.location.href);
47
+ }
48
+ });
49
+ }); }
42
50
  }
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyZWVuLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvdG9vbHMvbGliL3NjcmVlbi5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBR2xDLE1BQU0sT0FBTyxNQUFNO0lBRVIsTUFBTSxLQUFLLFlBQVk7UUFDMUIsT0FBTyxNQUFNLENBQUMsVUFBVSxDQUFDO0lBQzdCLENBQUM7SUFHTSxNQUFNLEtBQUssYUFBYTtRQUMzQixPQUFPLE1BQU0sQ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XSURUSCxcclxuICAgICAgICAgICAgICAgIGhlaWdodDogdGhpcy5XSU5ET1dfSEVJR0hULFxyXG4gICAgICAgICAgICAgICAgYnJlYWtwb2luOiB0aGlzLkJSRUFLUE9JTlRcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgfSk7XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBCYWNrQnV0dG9uQnJvd3NlciA9IG5ldyBPYnNlcnZhYmxlPHN0cmluZz4oc3Vic2NyaWJlciA9PiB7XHJcbiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ3BvcHN0YXRlJywgcG9wU3RhdGVFdmVudCA9PiB7XHJcbiAgICAgICAgICAgIGlmIChwb3BTdGF0ZUV2ZW50LnN0YXRlICYmIHBvcFN0YXRlRXZlbnQudGFyZ2V0KSB7XHJcbiAgICAgICAgICAgICAgICBzdWJzY3JpYmVyLm5leHQoKHBvcFN0YXRlRXZlbnQudGFyZ2V0IGFzIGFueSkubG9jYXRpb24uaHJlZik7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH0pO1xyXG59Il19
@@ -1,7 +1,7 @@
1
1
  import { inject } from "@angular/core";
2
2
  import { Router } from '@angular/router';
3
- import { Breadcrumbs } from "./breadcrumbs.class";
4
- import { Tools } from './generi-tools';
3
+ import { Breadcrumbs } from "../lib/breadcrumbs.class";
4
+ import { Tools } from "../lib/tools";
5
5
  export class Source {
6
6
  static { this.storage = 'COER-System'; }
7
7
  /** */
@@ -77,4 +77,4 @@ export class Source {
77
77
  sessionStorage.removeItem(this.storage);
78
78
  }
79
79
  }
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmM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AgICAgICB9XHJcblxyXG4gICAgICAgIHN0b3JhZ2UgPSBPYmplY3QuYXNzaWduKHt9LCBzdG9yYWdlKTtcclxuICAgICAgICBzZXNzaW9uU3RvcmFnZS5zZXRJdGVtKHRoaXMuc3RvcmFnZSwgSlNPTi5zdHJpbmdpZnkoc3RvcmFnZSkpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgUmVzZXQoKTogdm9pZCB7XHJcbiAgICAgICAgc2Vzc2lvblN0b3JhZ2UucmVtb3ZlSXRlbSh0aGlzLnN0b3JhZ2UpO1xyXG4gICAgfVxyXG59Il19
@@ -0,0 +1,220 @@
1
+ import { signal } from "@angular/core";
2
+ const reference_signal = signal({});
3
+ export const Tools = {
4
+ /** Generate a Guid */
5
+ GetGuid: (seed = 'coer-system') => {
6
+ let time = new Date().getTime();
7
+ seed = seed.toString().trim();
8
+ return seed + `-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
9
+ const random = (time + Math.random() * 16) % 16 | 0;
10
+ time = Math.floor(time / 16);
11
+ return (c == 'x' ? random : (random & 0x3 | 0x8)).toString(16);
12
+ });
13
+ },
14
+ /** Returns true if the value is null or undefined, false otherwise */
15
+ IsNull: (value) => {
16
+ if (value === undefined)
17
+ return true;
18
+ if (value === null)
19
+ return true;
20
+ return false;
21
+ },
22
+ /** Returns true if the value is not null or undefined, false otherwise */
23
+ IsNotNull: (value) => {
24
+ if (value === undefined)
25
+ return false;
26
+ if (value === null)
27
+ return false;
28
+ return true;
29
+ },
30
+ /** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
31
+ IsOnlyWhiteSpace: (value) => {
32
+ if (value === undefined)
33
+ return true;
34
+ if (value === null)
35
+ return true;
36
+ if (typeof value === 'string' && value.trim() === '')
37
+ return true;
38
+ return false;
39
+ },
40
+ /** Returns true if has string value and is not only whitespace, false otherwise */
41
+ IsNotOnlyWhiteSpace: (value) => {
42
+ if (value === undefined)
43
+ return false;
44
+ if (value === null)
45
+ return false;
46
+ if (typeof value === 'string' && value.trim() === '')
47
+ return false;
48
+ return true;
49
+ },
50
+ /** Break reference of a object or array */
51
+ BreakReference: (object) => {
52
+ if (object === null)
53
+ return object;
54
+ if (typeof object === 'undefined')
55
+ return object;
56
+ if (typeof object === 'string')
57
+ return object;
58
+ if (typeof object === 'number')
59
+ return object;
60
+ if (typeof object === 'boolean')
61
+ return object;
62
+ const OBJECT = JSON.parse(JSON.stringify(object));
63
+ return (Array.isArray(OBJECT)) ? [...OBJECT] : { ...OBJECT };
64
+ },
65
+ /** Clean extra whitespaces */
66
+ CleanUpBlanks: (text) => {
67
+ if (Tools.IsNull(text))
68
+ return '';
69
+ let worlds = String(text).split(' ');
70
+ worlds = worlds.filter(x => x.length > 0);
71
+ return worlds.join(' ');
72
+ },
73
+ /** Get properties of an object */
74
+ GetObjectProperties: (obj) => {
75
+ const properties = [];
76
+ if (obj === null)
77
+ return properties;
78
+ if (typeof obj === 'undefined')
79
+ return properties;
80
+ if (typeof obj === 'string')
81
+ return properties;
82
+ if (typeof obj === 'number')
83
+ return properties;
84
+ if (typeof obj === 'boolean')
85
+ return properties;
86
+ for (const property in obj)
87
+ properties.push(String(property));
88
+ return properties;
89
+ },
90
+ /**
91
+ * Set an index and merge more arrays of the same type
92
+ * */
93
+ SetIndex: (array, ...args) => {
94
+ let index = 0;
95
+ for (const arg of args) {
96
+ array = Tools.BreakReference(array).concat(Tools.BreakReference(arg));
97
+ }
98
+ return Tools.BreakReference(array).map(item => Object.assign({ index: index++ }, item));
99
+ },
100
+ /** Set First Char To Lower */
101
+ FirstCharToLower: (text) => {
102
+ if (Tools.IsOnlyWhiteSpace(text))
103
+ return '';
104
+ const textArray = [];
105
+ for (let i = 0; i < text.length; i++) {
106
+ if (i === 0)
107
+ textArray.push(text[i].toLowerCase());
108
+ else
109
+ textArray.push(text[i]);
110
+ }
111
+ return textArray.join('');
112
+ },
113
+ /** Set First Char To Upper */
114
+ FirstCharToUpper: (text) => {
115
+ if (Tools.IsOnlyWhiteSpace(text))
116
+ return '';
117
+ const textArray = [];
118
+ for (let i = 0; i < text.length; i++) {
119
+ if (i === 0)
120
+ textArray.push(text[i].toUpperCase());
121
+ else
122
+ textArray.push(text[i]);
123
+ }
124
+ return textArray.join('');
125
+ },
126
+ /** Sort an array in ascending order by property */
127
+ SortBy: (array, property, propertyType = 'string') => {
128
+ switch (propertyType) {
129
+ case 'string': {
130
+ return array.sort((x, y) => {
131
+ if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim())
132
+ return -1;
133
+ else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim())
134
+ return 1;
135
+ else
136
+ return 0;
137
+ });
138
+ }
139
+ case 'number': {
140
+ return array.sort((x, y) => Number(x[property] - Number(y[property])));
141
+ }
142
+ }
143
+ },
144
+ /** Sort an array in descending order by property */
145
+ SortByDesc: (array, property, propertyType = 'string') => {
146
+ switch (propertyType) {
147
+ case 'string': {
148
+ return array.sort((x, y) => {
149
+ if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim())
150
+ return 1;
151
+ else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim())
152
+ return -1;
153
+ else
154
+ return 0;
155
+ });
156
+ }
157
+ case 'number': {
158
+ return array.sort((x, y) => Number(Number(y[property])) - x[property]);
159
+ }
160
+ }
161
+ },
162
+ /** Return a string with forman numeric */
163
+ GetNumericFormat: (value, decimals = 0) => {
164
+ if (Tools.IsOnlyWhiteSpace(value) || isNaN(Number(value))) {
165
+ return '0';
166
+ }
167
+ let valueInteger = '';
168
+ let valueDecimal = '';
169
+ value = value.toString().replaceAll(' ', '');
170
+ if (value.includes('.') || (decimals > 0)) {
171
+ valueInteger = value.includes('.') ? value.split('.')[0] : value;
172
+ if (decimals > 0) {
173
+ const PADDING = decimals - valueDecimal.length;
174
+ valueDecimal = value.includes('.') ? value.split('.')[1] : '';
175
+ for (let i = 0; i < PADDING; i++)
176
+ valueDecimal += '0';
177
+ valueDecimal = valueDecimal.substring(0, decimals);
178
+ valueDecimal = `.${valueDecimal}`;
179
+ }
180
+ }
181
+ else {
182
+ valueInteger = value;
183
+ }
184
+ let counter = 0;
185
+ const VALUE_INTEGER_ARRAY = [];
186
+ for (const char of valueInteger.split('').reverse()) {
187
+ if (counter == 3) {
188
+ VALUE_INTEGER_ARRAY.push(',');
189
+ counter = 0;
190
+ }
191
+ VALUE_INTEGER_ARRAY.push(char);
192
+ ++counter;
193
+ }
194
+ valueInteger = VALUE_INTEGER_ARRAY.reverse().join('');
195
+ return `${valueInteger}${valueDecimal}`;
196
+ },
197
+ /** Wait the time indicated */
198
+ Sleep: (milliseconds = 0, reference = null) => {
199
+ if (Tools.IsNull(reference)) {
200
+ return new Promise(Resolve => setTimeout(Resolve, milliseconds));
201
+ }
202
+ else
203
+ return new Promise(Resolve => {
204
+ reference = reference.replaceAll(' ', '_').toLowerCase();
205
+ if (reference_signal().hasOwnProperty(reference)) {
206
+ clearInterval(reference_signal()[reference]);
207
+ }
208
+ reference_signal.set(Object.assign(reference_signal(), {
209
+ [reference]: setTimeout(() => {
210
+ Resolve();
211
+ clearInterval(reference_signal()[reference]);
212
+ const _reference = { ...reference_signal() };
213
+ delete _reference[reference];
214
+ reference_signal.set({ ..._reference });
215
+ }, milliseconds)
216
+ }));
217
+ });
218
+ }
219
+ };
220
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy90b29scy9saWIvdG9vbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2QyxNQUFNLGdCQUFnQixHQUFH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biAgICAgICAgaWYgKHR5cGVvZiBvYmplY3QgPT09ICdudW1iZXInKSByZXR1cm4gb2JqZWN0O1xyXG4gICAgICAgIGlmICh0eXBlb2Ygb2JqZWN0ID09PSAnYm9vbGVhbicpIHJldHVybiBvYmplY3Q7XHJcbiAgICAgICAgY29uc3QgT0JKRUNUID0gSlNPTi5wYXJzZShKU09OLnN0cmluZ2lmeShvYmplY3QpKVxyXG4gICAgICAgIHJldHVybiAoQXJyYXkuaXNBcnJheShPQkpFQ1QpKSA/IFsuLi5PQkpFQ1RdIDogeyAuLi5PQkpFQ1QgfVxyXG4gICAgfSxcclxuXHJcblxyXG4gICAgLyoqIENsZWFuIGV4dHJhIHdoaXRlc3BhY2VzICovXHJcbiAgICBDbGVhblVwQmxhbmtzOiAodGV4dDogc3RyaW5nIHwgbnVtYmVyKTogc3RyaW5nID0+IHtcclxuICAgICAgICBpZihUb29scy5Jc051bGwodGV4dCkpIHJldHVybiAnJztcclxuICAgICAgICBsZXQgd29ybGRzOiBzdHJpbmdbXSA9IFN0cmluZyh0ZXh0KS5zcGxpdCgnICcpO1xyXG4gICAgICAgIHdvcmxkcyA9IHdvcmxkcy5maWx0ZXIoeCA9PiB4Lmxlbmd0aCA+IDApO1xyXG4gICAgICAgIHJldHVybiB3b3JsZHMuam9pbignICcpO1xyXG4gICAgfSxcclxuXHJcblxyXG4gICAgLyoqIEdldCBwcm9wZXJ0aWVzIG9mIGFuIG9iamVjdCAqL1xyXG4gICAgR2V0T2JqZWN0UHJvcGVydGllczogPFQ+KG9iajogVCB8IG51bGwgfCB1bmRlZmluZWQpOiBzdHJpbmdbXSA9PiB7XHJcbiAgICAgICAgY29uc3QgcHJvcGVydGllczogc3RyaW5nW10gPSBbXTtcclxuICAgICAgICBpZiAob2JqID09PSBudWxsKSByZXR1cm4gcHJvcGVydGllcztcclxuICAgICAgICBpZiAodHlwZW9mIG9iaiA9PT0gJ3VuZGVmaW5lZCcpIHJldHVybiBwcm9wZXJ0aWVzO1xy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ydHkgKi9cclxuICAgIFNvcnRCeTogPFQ+KGFycmF5OiBUW10sIHByb3BlcnR5OiBzdHJpbmcsIHByb3BlcnR5VHlwZTogJ3N0cmluZycgfCAnbnVtYmVyJyA9ICdzdHJpbmcnKTogVFtdID0+IHtcclxuICAgICAgICBzd2l0Y2ggKHByb3BlcnR5VHlwZSkge1xyXG4gICAgICAgICAgICBjYXNlICdzdHJpbmcnOiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXkuc29ydCgoeDogYW55LCB5OiBhbnkpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoU3RyaW5nKHhbcHJvcGVydHldKS50b1VwcGVyQ2FzZSgpLnRyaW0oKSA8IFN0cmluZyh5W3Byb3BlcnR5XSkudG9VcHBlckNhc2UoKS50cmltKCkpIHJldHVybiAtMTtcclxuICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIChTdHJpbmcoeFtwcm9wZXJ0eV0pLnRvVXBwZXJDYXNlKCkudHJpbSgpID4gU3RyaW5nKHlbcHJvcGVydHldKS50b1VwcGVyQ2FzZSgpLnRyaW0oKSkgcmV0dXJuIDE7XHJcbiAgICAgICAgICAgICAgICAgICAgZWxzZSByZXR1cm4gMDtcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBjYXNlICdudW1iZXInOiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXkuc29ydCgoeDogYW55LCB5OiBhbnkpID0+IE51bWJlcih4W3Byb3BlcnR5XSAtIE51bWJlcih5W3Byb3BlcnR5XSkpKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH0sXHJcblxyXG5cclxuICAgIC8qKiBTb3J0IGFuIGFycmF5IGluIGRlc2NlbmRpbmcgb3JkZXIgYnkgcHJvcGVydHkgKi9cclxuICAgIFNvcnRCeURlc2M6IDxUPihhcnJheTogVFtdLCBwcm9wZXJ0eTogc3R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iBuZXcgUHJvbWlzZTx2b2lkPihSZXNvbHZlID0+IHtcclxuICAgICAgICAgICAgcmVmZXJlbmNlID0gcmVmZXJlbmNlIS5yZXBsYWNlQWxsKCcgJywgJ18nKS50b0xvd2VyQ2FzZSgpO1xyXG5cclxuICAgICAgICAgICAgaWYgKHJlZmVyZW5jZV9zaWduYWwoKS5oYXNPd25Qcm9wZXJ0eShyZWZlcmVuY2UpKSB7XHJcbiAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHJlZmVyZW5jZV9zaWduYWwoKVtyZWZlcmVuY2UhXSk7XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIHJlZmVyZW5jZV9zaWduYWwuc2V0KE9iamVjdC5hc3NpZ24ocmVmZXJlbmNlX3NpZ25hbCgpLCB7XHJcbiAgICAgICAgICAgICAgICBbcmVmZXJlbmNlIV06IHNldFRpbWVvdXQoKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIFJlc29sdmUoKTtcclxuICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHJlZmVyZW5jZV9zaWduYWwoKVtyZWZlcmVuY2UhXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgX3JlZmVyZW5jZSA9IHsgLi4ucmVmZXJlbmNlX3NpZ25hbCgpIH07XHJcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIF9yZWZlcmVuY2VbcmVmZXJlbmNlIV07XHJcbiAgICAgICAgICAgICAgICAgICAgcmVmZXJlbmNlX3NpZ25hbC5zZXQoeyAuLi5fcmVmZXJlbmNlIH0pO1xyXG4gICAgICAgICAgICAgICAgfSwgbWlsbGlzZWNvbmRzKVxyXG4gICAgICAgICAgICB9KSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn07Il19