coer-elements 0.0.23 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. package/components/index.d.ts +5 -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 +103 -0
  8. package/components/lib/coer-grid/coer-grid.templates.d.ts +9 -0
  9. package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
  10. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +55 -0
  11. package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
  12. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
  13. package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
  14. package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
  15. package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
  16. package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
  17. package/components/lib/components.module.d.ts +30 -0
  18. package/components/public-api.d.ts +15 -0
  19. package/directives/index.d.ts +5 -0
  20. package/directives/lib/coer-ref.directive.d.ts +14 -0
  21. package/directives/lib/directives.module.d.ts +8 -0
  22. package/directives/lib/life-cycle.directive.d.ts +16 -0
  23. package/directives/public-api.d.ts +3 -0
  24. package/esm2022/components/coer-elements-components.mjs +5 -0
  25. package/esm2022/components/lib/coer-button/coer-button.component.mjs +133 -0
  26. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +83 -0
  27. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +102 -0
  28. package/esm2022/components/lib/coer-form/coer-form.component.mjs +101 -0
  29. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +512 -0
  30. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +408 -0
  31. package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +30 -0
  32. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +107 -0
  33. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +258 -0
  34. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
  35. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +338 -0
  36. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +93 -0
  37. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
  38. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +156 -0
  39. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +195 -0
  40. package/esm2022/components/lib/components.module.mjs +129 -0
  41. package/esm2022/components/public-api.mjs +16 -0
  42. package/esm2022/directives/coer-elements-directives.mjs +5 -0
  43. package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
  44. package/esm2022/directives/lib/directives.module.mjs +25 -0
  45. package/esm2022/directives/lib/life-cycle.directive.mjs +33 -0
  46. package/esm2022/directives/public-api.mjs +4 -0
  47. package/esm2022/interfaces/coer-elements-interfaces.mjs +5 -0
  48. package/esm2022/interfaces/lib/app-source.interface.mjs +2 -0
  49. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
  50. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
  51. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
  52. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
  53. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
  54. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
  55. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
  56. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
  57. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
  58. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
  59. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
  60. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
  61. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
  62. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
  63. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
  64. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
  65. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
  66. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
  67. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
  68. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
  69. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
  70. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
  71. package/esm2022/interfaces/lib/coer-menu/menu-option-selected.interface.mjs +2 -0
  72. package/esm2022/interfaces/lib/coer-menu/menu-selected.interface.mjs +2 -0
  73. package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +2 -0
  74. package/esm2022/interfaces/lib/coer-ref.interface.mjs +2 -0
  75. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
  76. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
  77. package/esm2022/interfaces/lib/screen-size.interface.mjs +2 -0
  78. package/esm2022/interfaces/lib/service/http-request.interface.mjs +2 -0
  79. package/esm2022/interfaces/lib/service/http-response.interface.mjs +2 -0
  80. package/esm2022/interfaces/lib/service/patch.interface.mjs +2 -0
  81. package/esm2022/interfaces/public-api.mjs +39 -0
  82. package/esm2022/pipes/coer-elements-pipes.mjs +5 -0
  83. package/esm2022/pipes/lib/html.pipe.mjs +18 -0
  84. package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
  85. package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
  86. package/esm2022/pipes/lib/pipes.module.mjs +31 -0
  87. package/esm2022/pipes/public-api.mjs +5 -0
  88. package/esm2022/signals/coer-elements-signals.mjs +5 -0
  89. package/esm2022/signals/lib/breakpoint.signal.mjs +4 -0
  90. package/esm2022/signals/lib/is-loading.signal.mjs +3 -0
  91. package/esm2022/signals/lib/is-menu-open.signal.mjs +3 -0
  92. package/esm2022/signals/lib/is-modal-open.signal.mjs +3 -0
  93. package/esm2022/signals/lib/menu.signal.mjs +3 -0
  94. package/esm2022/signals/public-api.mjs +6 -0
  95. package/esm2022/tools/coer-elements-tools.mjs +5 -0
  96. package/esm2022/tools/lib/breadcrumbs.class.mjs +63 -0
  97. package/esm2022/tools/lib/coer-alert/coer-alert.component.mjs +228 -0
  98. package/esm2022/tools/lib/control-value.class.mjs +46 -0
  99. package/esm2022/tools/lib/date-time.class.mjs +29 -0
  100. package/esm2022/tools/lib/files.class.mjs +91 -0
  101. package/esm2022/tools/lib/menu.class.mjs +23 -0
  102. package/esm2022/tools/lib/page.class.mjs +156 -0
  103. package/esm2022/tools/lib/screen.class.mjs +51 -0
  104. package/esm2022/tools/lib/service.class.mjs +247 -0
  105. package/esm2022/tools/lib/source.class.mjs +80 -0
  106. package/esm2022/tools/lib/tools.mjs +220 -0
  107. package/esm2022/tools/public-api.mjs +12 -0
  108. package/fesm2022/coer-elements-components.mjs +2718 -0
  109. package/fesm2022/coer-elements-components.mjs.map +1 -0
  110. package/fesm2022/coer-elements-directives.mjs +82 -0
  111. package/fesm2022/coer-elements-directives.mjs.map +1 -0
  112. package/fesm2022/coer-elements-interfaces.mjs +6 -0
  113. package/fesm2022/coer-elements-interfaces.mjs.map +1 -0
  114. package/fesm2022/coer-elements-pipes.mjs +83 -0
  115. package/fesm2022/coer-elements-pipes.mjs.map +1 -0
  116. package/fesm2022/coer-elements-signals.mjs +19 -0
  117. package/fesm2022/coer-elements-signals.mjs.map +1 -0
  118. package/fesm2022/coer-elements-tools.mjs +1223 -0
  119. package/fesm2022/coer-elements-tools.mjs.map +1 -0
  120. package/interfaces/index.d.ts +5 -0
  121. package/interfaces/lib/app-source.interface.d.ts +4 -0
  122. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
  123. package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
  124. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
  125. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
  126. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
  127. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
  128. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
  129. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
  130. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
  131. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
  132. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
  133. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
  134. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
  135. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
  136. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
  137. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
  138. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
  139. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
  140. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
  141. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
  142. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
  143. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
  144. package/interfaces/lib/coer-menu/menu-option-selected.interface.d.ts +9 -0
  145. package/interfaces/lib/coer-menu/menu-selected.interface.d.ts +10 -0
  146. package/interfaces/lib/coer-menu/menu.interface.d.ts +6 -0
  147. package/interfaces/lib/coer-ref.interface.d.ts +10 -0
  148. package/interfaces/lib/page-title/breadcrumb.interface.d.ts +6 -0
  149. package/interfaces/lib/page-title/go-back.interface.d.ts +6 -0
  150. package/interfaces/lib/screen-size.interface.d.ts +5 -0
  151. package/interfaces/lib/service/http-request.interface.d.ts +10 -0
  152. package/interfaces/lib/service/http-response.interface.d.ts +6 -0
  153. package/interfaces/lib/service/patch.interface.d.ts +5 -0
  154. package/interfaces/public-api.d.ts +33 -0
  155. package/package.json +37 -1
  156. package/pipes/index.d.ts +5 -0
  157. package/pipes/lib/html.pipe.d.ts +10 -0
  158. package/pipes/lib/no-image.pipe.d.ts +7 -0
  159. package/pipes/lib/numeric-format.pipe.d.ts +7 -0
  160. package/pipes/lib/pipes.module.d.ts +9 -0
  161. package/pipes/public-api.d.ts +4 -0
  162. package/signals/index.d.ts +5 -0
  163. package/signals/lib/breakpoint.signal.d.ts +1 -0
  164. package/signals/lib/is-loading.signal.d.ts +1 -0
  165. package/signals/lib/is-menu-open.signal.d.ts +1 -0
  166. package/signals/lib/is-modal-open.signal.d.ts +1 -0
  167. package/signals/lib/menu.signal.d.ts +2 -0
  168. package/signals/public-api.d.ts +5 -0
  169. package/tools/index.d.ts +5 -0
  170. package/tools/lib/breadcrumbs.class.d.ts +18 -0
  171. package/tools/lib/coer-alert/coer-alert.component.d.ts +23 -0
  172. package/tools/lib/control-value.class.d.ts +25 -0
  173. package/tools/lib/date-time.class.d.ts +13 -0
  174. package/tools/lib/files.class.d.ts +16 -0
  175. package/tools/lib/menu.class.d.ts +8 -0
  176. package/tools/lib/page.class.d.ts +60 -0
  177. package/tools/lib/screen.class.d.ts +13 -0
  178. package/tools/lib/service.class.d.ts +39 -0
  179. package/tools/lib/source.class.d.ts +20 -0
  180. package/tools/lib/tools.d.ts +34 -0
  181. package/tools/public-api.d.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "coer",
@@ -33,6 +33,42 @@
33
33
  "esm2022": "./esm2022/coer-elements.mjs",
34
34
  "esm": "./esm2022/coer-elements.mjs",
35
35
  "default": "./fesm2022/coer-elements.mjs"
36
+ },
37
+ "./components": {
38
+ "types": "./components/index.d.ts",
39
+ "esm2022": "./esm2022/components/coer-elements-components.mjs",
40
+ "esm": "./esm2022/components/coer-elements-components.mjs",
41
+ "default": "./fesm2022/coer-elements-components.mjs"
42
+ },
43
+ "./directives": {
44
+ "types": "./directives/index.d.ts",
45
+ "esm2022": "./esm2022/directives/coer-elements-directives.mjs",
46
+ "esm": "./esm2022/directives/coer-elements-directives.mjs",
47
+ "default": "./fesm2022/coer-elements-directives.mjs"
48
+ },
49
+ "./interfaces": {
50
+ "types": "./interfaces/index.d.ts",
51
+ "esm2022": "./esm2022/interfaces/coer-elements-interfaces.mjs",
52
+ "esm": "./esm2022/interfaces/coer-elements-interfaces.mjs",
53
+ "default": "./fesm2022/coer-elements-interfaces.mjs"
54
+ },
55
+ "./pipes": {
56
+ "types": "./pipes/index.d.ts",
57
+ "esm2022": "./esm2022/pipes/coer-elements-pipes.mjs",
58
+ "esm": "./esm2022/pipes/coer-elements-pipes.mjs",
59
+ "default": "./fesm2022/coer-elements-pipes.mjs"
60
+ },
61
+ "./signals": {
62
+ "types": "./signals/index.d.ts",
63
+ "esm2022": "./esm2022/signals/coer-elements-signals.mjs",
64
+ "esm": "./esm2022/signals/coer-elements-signals.mjs",
65
+ "default": "./fesm2022/coer-elements-signals.mjs"
66
+ },
67
+ "./tools": {
68
+ "types": "./tools/index.d.ts",
69
+ "esm2022": "./esm2022/tools/coer-elements-tools.mjs",
70
+ "esm": "./esm2022/tools/coer-elements-tools.mjs",
71
+ "default": "./fesm2022/coer-elements-tools.mjs"
36
72
  }
37
73
  }
38
74
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="coer-elements/pipes" />
5
+ export * from './public-api';
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HtmlPipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: string): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<HtmlPipe, "html", false>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NoImagePipe implements PipeTransform {
4
+ transform(value: string | File | null | undefined): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoImagePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NoImagePipe, "noImage", false>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NumericFormatPipe implements PipeTransform {
4
+ transform(value: string | number | null | undefined, decimals?: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumericFormatPipe, "numericFormat", false>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./html.pipe";
3
+ import * as i2 from "./no-image.pipe";
4
+ import * as i3 from "./numeric-format.pipe";
5
+ export declare class PipesModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe], never, [typeof i1.HtmlPipe, typeof i2.NoImagePipe, typeof i3.NumericFormatPipe]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
9
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/pipes.module';
2
+ export * from './lib/html.pipe';
3
+ export * from './lib/no-image.pipe';
4
+ export * from './lib/numeric-format.pipe';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="coer-elements/signals" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export declare const breakpointSIGNAL: import("@angular/core").WritableSignal<"xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
@@ -0,0 +1 @@
1
+ export declare const isLoadingSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -0,0 +1 @@
1
+ export declare const isMenuOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -0,0 +1 @@
1
+ export declare const isModalOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -0,0 +1,2 @@
1
+ import { IMenu } from "coer-elements/interfaces";
2
+ export declare const menuSIGNAL: import("@angular/core").WritableSignal<IMenu[]>;
@@ -0,0 +1,5 @@
1
+ export * from './lib/breakpoint.signal';
2
+ export * from './lib/is-loading.signal';
3
+ export * from './lib/is-menu-open.signal';
4
+ export * from './lib/is-modal-open.signal';
5
+ export * from './lib/menu.signal';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="coer-elements/tools" />
5
+ export * from './public-api';
@@ -0,0 +1,18 @@
1
+ import { IAppSource } from "coer-elements/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
+ /** */
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
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CoerAlert {
3
+ /** */
4
+ Success(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
5
+ /** */
6
+ Error(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
7
+ /** */
8
+ Info(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
9
+ /** */
10
+ Warning(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
11
+ /** */
12
+ protected Close(alert: 'alert-success' | 'alert-error' | 'alert-info' | 'alert-warning'): Promise<void>;
13
+ /** */
14
+ Confirm(message?: string, alertType?: 'warning' | 'danger' | 'success' | 'info', icon?: string | null): Promise<boolean>;
15
+ /** */
16
+ private SetIcon;
17
+ /** */
18
+ private SetAutoHide;
19
+ /** */
20
+ private GetIcon;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoerAlert, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoerAlert, "coer-alert", never, {}, {}, never, never, true, never>;
23
+ }
@@ -0,0 +1,25 @@
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
+ /** */
24
+ setDisabledState(isDisabled: boolean): void;
25
+ }
@@ -0,0 +1,13 @@
1
+ import moment from "moment";
2
+ export declare class DateTime {
3
+ /** Get UTC Offset */
4
+ static GetOffset(): number;
5
+ /** YYYY-MM-DD HH:mm:ss */
6
+ static GetFormatDB(date: string | Date | moment.Moment): string;
7
+ /** Convert UTC Date to Local Zone */
8
+ static ToLocalZone(date: string | Date | moment.Moment): string;
9
+ /** Convert Local Zone Date to UTC */
10
+ static ToUTC(date: string | Date | moment.Moment): string;
11
+ /** DD MMM YYYY */
12
+ static GetDateFormat(date: string | Date | moment.Moment): string;
13
+ }
@@ -0,0 +1,16 @@
1
+ export declare class Files {
2
+ static readonly EXCEL_EXTENSIONS: string[];
3
+ /** Get Extension File */
4
+ static GetExtension(file: File): string | null;
5
+ /** Is Excel File */
6
+ static IsExcel(file: File): boolean;
7
+ /** Read excel file */
8
+ static ReadExcel<T>(file: File): Promise<{
9
+ columns: string[];
10
+ rows: T[];
11
+ }>;
12
+ /** Export to excel file */
13
+ static ExportExcel<T>(data: T[], fileName?: string, sheetName?: string): void;
14
+ /** Convert file to string base64 */
15
+ static ConvertToBase64(file: File): Promise<string>;
16
+ }
@@ -0,0 +1,8 @@
1
+ import { IMenuOptionSelected } from "coer-elements/interfaces";
2
+ export declare class Menu {
3
+ private static readonly storage;
4
+ /** */
5
+ static Set(menu: IMenuOptionSelected): void;
6
+ /** */
7
+ static Get(): IMenuOptionSelected | null;
8
+ }
@@ -0,0 +1,60 @@
1
+ import { Router } from '@angular/router';
2
+ import { AfterViewInit, OnDestroy } from '@angular/core';
3
+ import { IBreadcrumb, IGoBack } from 'coer-elements/interfaces';
4
+ import { CoerAlert } from './coer-alert/coer-alert.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class Page implements AfterViewInit, OnDestroy {
7
+ protected readonly alert: CoerAlert;
8
+ protected readonly router: Router;
9
+ private readonly activatedRoute;
10
+ /** */
11
+ protected isUpdate: boolean;
12
+ /** */
13
+ protected isLoading: boolean;
14
+ /** */
15
+ protected isReadyPage: boolean;
16
+ /** */
17
+ protected enableAnimations: boolean;
18
+ /** */
19
+ protected routeParams: any;
20
+ /** */
21
+ protected queryParams: any;
22
+ /** */
23
+ protected breadcrumbs: IBreadcrumb[];
24
+ /** */
25
+ protected pageResponse: any;
26
+ /** */
27
+ protected goBack: IGoBack;
28
+ private _page;
29
+ private _source;
30
+ private _preventDestroy;
31
+ constructor(page: string);
32
+ ngAfterViewInit(): void;
33
+ ngOnDestroy(): void;
34
+ /** Main method. Starts after ngAfterViewInit() */
35
+ protected RunPage(): void;
36
+ /** Rename the last breadcrumb and update the url id */
37
+ protected SetPageName(name: string, id?: string | number | null): void;
38
+ /** */
39
+ private SetSource;
40
+ /** */
41
+ private GetSource;
42
+ /** */
43
+ protected GetPageResponse(): void;
44
+ /** */
45
+ private GetNavigation;
46
+ /** */
47
+ private SetGoBack;
48
+ /** */
49
+ private GoBack;
50
+ /** Navigate to previous page */
51
+ protected GoToSource<T>(pageResponse?: T | null): void;
52
+ /** */
53
+ protected SetPageResponse<T>(pageResponse?: T | null): void;
54
+ /** */
55
+ protected ReloadPage(): void;
56
+ /** */
57
+ protected Log(value: any, log?: string | null): void;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<Page, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<Page, "ng-component", never, {}, {}, never, never, false, never>;
60
+ }
@@ -0,0 +1,13 @@
1
+ import { IScreenSize } from "coer-elements/interfaces";
2
+ import { Observable } from "rxjs";
3
+ export declare class Screen {
4
+ static get WINDOW_WIDTH(): number;
5
+ static get WINDOW_HEIGHT(): number;
6
+ static get DEVICE_WIDTH(): number;
7
+ static get DEVICE_HEIGHT(): number;
8
+ static get BREAKPOINT(): 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
9
+ /** */
10
+ static Resize: Observable<IScreenSize>;
11
+ /** */
12
+ static BackButtonBrowser: Observable<string>;
13
+ }
@@ -0,0 +1,39 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CoerAlert } from "./coer-alert/coer-alert.component";
3
+ import { IHttpRequest, IHttpResponse } from "coer-elements/interfaces";
4
+ export declare class Service {
5
+ protected readonly alert: CoerAlert;
6
+ protected readonly http: HttpClient;
7
+ protected httpCode: {
8
+ Ok: number;
9
+ Created: number;
10
+ NoContent: number;
11
+ BadRequest: number;
12
+ Unauthorize: number;
13
+ NotFound: number;
14
+ NotAllowed: number;
15
+ NotAcceptable: number;
16
+ Conflict: number;
17
+ PayloadTooLarge: number;
18
+ InnerError: number;
19
+ };
20
+ private _GET$;
21
+ private _POST$;
22
+ private _PUT$;
23
+ private _PATCH$;
24
+ private _DELETE$;
25
+ /** */
26
+ private ReleaseSubscription;
27
+ /** HTTP GET */
28
+ protected HTTP_GET<T>(request: IHttpRequest<T>): Promise<IHttpResponse<T>>;
29
+ /** HTTP POST */
30
+ protected HTTP_POST<T>(request: IHttpRequest<T>): Promise<IHttpResponse<T>>;
31
+ /** HTTP PUT */
32
+ protected HTTP_PUT<T>(request: IHttpRequest<T>): Promise<IHttpResponse<void>>;
33
+ /** HTTP PATCH */
34
+ protected HTTP_PATCH<T>(request: IHttpRequest<T>): Promise<IHttpResponse<void>>;
35
+ /** HTTP DELETE */
36
+ protected HTTP_DELETE<T>(request: IHttpRequest<T>): Promise<IHttpResponse<void>>;
37
+ /** */
38
+ private AlertError;
39
+ }
@@ -0,0 +1,20 @@
1
+ import { IAppSource } from "coer-elements/interfaces";
2
+ export declare class Source {
3
+ private static readonly storage;
4
+ /** */
5
+ static Set(page: string): void;
6
+ /** */
7
+ private static Save;
8
+ /** */
9
+ static Get(): IAppSource | null;
10
+ /** */
11
+ static GetRoot(): IAppSource | null;
12
+ /** */
13
+ static SetPageResponse<T>(pageResponse: T): void;
14
+ /** */
15
+ static GetPageResponse<T>(): T | null;
16
+ /** */
17
+ static ClearPageResponse(): void;
18
+ /** */
19
+ static Reset(): void;
20
+ }
@@ -0,0 +1,34 @@
1
+ export declare const Tools: {
2
+ /** Generate a Guid */
3
+ GetGuid: (seed?: string) => string;
4
+ /** Returns true if the value is null or undefined, false otherwise */
5
+ IsNull: <T>(value: T | null | undefined) => boolean;
6
+ /** Returns true if the value is not null or undefined, false otherwise */
7
+ IsNotNull: <T_1>(value: T_1 | null | undefined) => boolean;
8
+ /** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
9
+ IsOnlyWhiteSpace: <T_2>(value: T_2 | null | undefined) => boolean;
10
+ /** Returns true if has string value and is not only whitespace, false otherwise */
11
+ IsNotOnlyWhiteSpace: <T_3>(value: T_3 | null | undefined) => boolean;
12
+ /** Break reference of a object or array */
13
+ BreakReference: <T_4>(object: T_4) => T_4;
14
+ /** Clean extra whitespaces */
15
+ CleanUpBlanks: (text: string | number) => string;
16
+ /** Get properties of an object */
17
+ GetObjectProperties: <T_5>(obj: T_5 | null | undefined) => string[];
18
+ /**
19
+ * Set an index and merge more arrays of the same type
20
+ * */
21
+ SetIndex: <T_6>(array: T_6[], ...args: T_6[][]) => T_6[];
22
+ /** Set First Char To Lower */
23
+ FirstCharToLower: (text: string | null | undefined) => string;
24
+ /** Set First Char To Upper */
25
+ FirstCharToUpper: (text: string | null | undefined) => string;
26
+ /** Sort an array in ascending order by property */
27
+ SortBy: <T_7>(array: T_7[], property: string, propertyType?: 'string' | 'number') => T_7[];
28
+ /** Sort an array in descending order by property */
29
+ SortByDesc: <T_8>(array: T_8[], property: string, propertyType?: 'string' | 'number') => T_8[];
30
+ /** Return a string with forman numeric */
31
+ GetNumericFormat: (value: string | number | null | undefined, decimals?: number) => string;
32
+ /** Wait the time indicated */
33
+ Sleep: (milliseconds?: number, reference?: string | null) => Promise<unknown>;
34
+ };
@@ -0,0 +1,11 @@
1
+ export * from './lib/coer-alert/coer-alert.component';
2
+ export * from './lib/breadcrumbs.class';
3
+ export * from './lib/control-value.class';
4
+ export * from './lib/date-time.class';
5
+ export * from './lib/files.class';
6
+ export * from './lib/menu.class';
7
+ export * from './lib/page.class';
8
+ export * from './lib/screen.class';
9
+ export * from './lib/service.class';
10
+ export * from './lib/source.class';
11
+ export * from './lib/tools';