coer-elements 0.0.21 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/esm2022/coer-elements.mjs +2 -2
  2. package/esm2022/index.mjs +2 -0
  3. package/fesm2022/coer-elements.mjs +0 -4081
  4. package/fesm2022/coer-elements.mjs.map +1 -1
  5. package/index.d.ts +1 -5
  6. package/package.json +1 -1
  7. package/styles/angular-material.scss +8 -11
  8. package/styles/bootstrap.scss +3 -3
  9. package/components/index.d.ts +0 -16
  10. package/components/lib/coer-alert/coer-alert.component.d.ts +0 -23
  11. package/components/lib/coer-button/coer-button.component.d.ts +0 -44
  12. package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +0 -28
  13. package/components/lib/coer-filebox/coer-filebox.component.d.ts +0 -33
  14. package/components/lib/coer-form/coer-form.component.d.ts +0 -33
  15. package/components/lib/coer-grid/coer-grid.component.d.ts +0 -53
  16. package/components/lib/coer-grid/coer-grid.extension.d.ts +0 -105
  17. package/components/lib/coer-grid/coer-grid.templates.d.ts +0 -9
  18. package/components/lib/coer-modal/coer-modal.component.d.ts +0 -38
  19. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +0 -56
  20. package/components/lib/coer-page-title/coer-page-title.component.d.ts +0 -12
  21. package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +0 -75
  22. package/components/lib/coer-switch/coer-switch.component.d.ts +0 -31
  23. package/components/lib/coer-tab/coer-tab.component.d.ts +0 -35
  24. package/components/lib/coer-textarea/coer-textarea.component.d.ts +0 -51
  25. package/components/lib/coer-textbox/coer-textbox.component.d.ts +0 -57
  26. package/components/lib/components.module.d.ts +0 -31
  27. package/directives/index.d.ts +0 -3
  28. package/directives/lib/coer-ref.directive.d.ts +0 -14
  29. package/directives/lib/directives.module.d.ts +0 -8
  30. package/directives/lib/life-cycle.directive.d.ts +0 -16
  31. package/esm2022/components/index.mjs +0 -17
  32. package/esm2022/components/lib/coer-alert/coer-alert.component.mjs +0 -227
  33. package/esm2022/components/lib/coer-button/coer-button.component.mjs +0 -133
  34. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +0 -84
  35. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +0 -104
  36. package/esm2022/components/lib/coer-form/coer-form.component.mjs +0 -102
  37. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +0 -515
  38. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +0 -412
  39. package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +0 -30
  40. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +0 -108
  41. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +0 -260
  42. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +0 -44
  43. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +0 -339
  44. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +0 -94
  45. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +0 -116
  46. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +0 -157
  47. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +0 -196
  48. package/esm2022/components/lib/components.module.mjs +0 -134
  49. package/esm2022/directives/index.mjs +0 -4
  50. package/esm2022/directives/lib/coer-ref.directive.mjs +0 -23
  51. package/esm2022/directives/lib/directives.module.mjs +0 -25
  52. package/esm2022/directives/lib/life-cycle.directive.mjs +0 -33
  53. package/esm2022/interfaces/index.mjs +0 -39
  54. package/esm2022/interfaces/lib/app-source.interface.mjs +0 -2
  55. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +0 -2
  56. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +0 -2
  57. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +0 -2
  58. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +0 -2
  59. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +0 -2
  60. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +0 -2
  61. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +0 -2
  62. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +0 -2
  63. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +0 -2
  64. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +0 -2
  65. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +0 -2
  66. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +0 -2
  67. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +0 -2
  68. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +0 -2
  69. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +0 -2
  70. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +0 -2
  71. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +0 -2
  72. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +0 -2
  73. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +0 -2
  74. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +0 -2
  75. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +0 -2
  76. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +0 -2
  77. package/esm2022/interfaces/lib/coer-menu/menu-option-selected.interface.mjs +0 -2
  78. package/esm2022/interfaces/lib/coer-menu/menu-selected.interface.mjs +0 -2
  79. package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +0 -2
  80. package/esm2022/interfaces/lib/coer-ref.interface.mjs +0 -2
  81. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +0 -2
  82. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +0 -2
  83. package/esm2022/interfaces/lib/screen-size.interface.mjs +0 -2
  84. package/esm2022/interfaces/lib/service/http-request.interface.mjs +0 -2
  85. package/esm2022/interfaces/lib/service/http-response.interface.mjs +0 -2
  86. package/esm2022/interfaces/lib/service/patch.interface.mjs +0 -2
  87. package/esm2022/pipes/index.mjs +0 -5
  88. package/esm2022/pipes/lib/html.pipe.mjs +0 -18
  89. package/esm2022/pipes/lib/no-image.pipe.mjs +0 -23
  90. package/esm2022/pipes/lib/numeric-format.pipe.mjs +0 -15
  91. package/esm2022/pipes/lib/pipes.module.mjs +0 -31
  92. package/esm2022/public_api.mjs +0 -6
  93. package/esm2022/signals/index.mjs +0 -6
  94. package/esm2022/signals/lib/breakpoint.signal.mjs +0 -4
  95. package/esm2022/signals/lib/is-loading.signal.mjs +0 -3
  96. package/esm2022/signals/lib/is-menu-open.signal.mjs +0 -3
  97. package/esm2022/signals/lib/is-modal-open.signal.mjs +0 -3
  98. package/esm2022/signals/lib/menu.signal.mjs +0 -3
  99. package/esm2022/tools/index.mjs +0 -11
  100. package/esm2022/tools/lib/breadcrumbs.class.mjs +0 -63
  101. package/esm2022/tools/lib/control-value.class.mjs +0 -46
  102. package/esm2022/tools/lib/date-time.class.mjs +0 -29
  103. package/esm2022/tools/lib/files.class.mjs +0 -91
  104. package/esm2022/tools/lib/menu.class.mjs +0 -23
  105. package/esm2022/tools/lib/page.class.mjs +0 -156
  106. package/esm2022/tools/lib/screen.class.mjs +0 -51
  107. package/esm2022/tools/lib/service.class.mjs +0 -248
  108. package/esm2022/tools/lib/source.class.mjs +0 -80
  109. package/esm2022/tools/lib/tools.mjs +0 -220
  110. package/interfaces/index.d.ts +0 -33
  111. package/interfaces/lib/app-source.interface.d.ts +0 -4
  112. package/interfaces/lib/coer-filebox/file-image.interface.d.ts +0 -14
  113. package/interfaces/lib/coer-filebox/file.interface.d.ts +0 -5
  114. package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +0 -6
  115. package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +0 -5
  116. package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +0 -12
  117. package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +0 -9
  118. package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +0 -6
  119. package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +0 -11
  120. package/interfaces/lib/coer-grid/grid-column.interface.d.ts +0 -22
  121. package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +0 -6
  122. package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +0 -8
  123. package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +0 -10
  124. package/interfaces/lib/coer-grid/grid-header.interface.d.ts +0 -5
  125. package/interfaces/lib/coer-grid/grid-import.interface.d.ts +0 -4
  126. package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +0 -5
  127. package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +0 -5
  128. package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +0 -5
  129. package/interfaces/lib/coer-grid/grid-item.interface.d.ts +0 -5
  130. package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +0 -6
  131. package/interfaces/lib/coer-grid/grid-length.interface.d.ts +0 -5
  132. package/interfaces/lib/coer-grid/grid-search.interface.d.ts +0 -4
  133. package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +0 -5
  134. package/interfaces/lib/coer-menu/menu-option-selected.interface.d.ts +0 -9
  135. package/interfaces/lib/coer-menu/menu-selected.interface.d.ts +0 -10
  136. package/interfaces/lib/coer-menu/menu.interface.d.ts +0 -6
  137. package/interfaces/lib/coer-ref.interface.d.ts +0 -10
  138. package/interfaces/lib/page-title/breadcrumb.interface.d.ts +0 -6
  139. package/interfaces/lib/page-title/go-back.interface.d.ts +0 -6
  140. package/interfaces/lib/screen-size.interface.d.ts +0 -5
  141. package/interfaces/lib/service/http-request.interface.d.ts +0 -10
  142. package/interfaces/lib/service/http-response.interface.d.ts +0 -6
  143. package/interfaces/lib/service/patch.interface.d.ts +0 -5
  144. package/pipes/index.d.ts +0 -4
  145. package/pipes/lib/html.pipe.d.ts +0 -10
  146. package/pipes/lib/no-image.pipe.d.ts +0 -7
  147. package/pipes/lib/numeric-format.pipe.d.ts +0 -7
  148. package/pipes/lib/pipes.module.d.ts +0 -9
  149. package/public_api.d.ts +0 -1
  150. package/signals/index.d.ts +0 -5
  151. package/signals/lib/breakpoint.signal.d.ts +0 -1
  152. package/signals/lib/is-loading.signal.d.ts +0 -1
  153. package/signals/lib/is-menu-open.signal.d.ts +0 -1
  154. package/signals/lib/is-modal-open.signal.d.ts +0 -1
  155. package/signals/lib/menu.signal.d.ts +0 -2
  156. package/tools/index.d.ts +0 -10
  157. package/tools/lib/breadcrumbs.class.d.ts +0 -18
  158. package/tools/lib/control-value.class.d.ts +0 -25
  159. package/tools/lib/date-time.class.d.ts +0 -13
  160. package/tools/lib/files.class.d.ts +0 -16
  161. package/tools/lib/menu.class.d.ts +0 -8
  162. package/tools/lib/page.class.d.ts +0 -60
  163. package/tools/lib/screen.class.d.ts +0 -13
  164. package/tools/lib/service.class.d.ts +0 -39
  165. package/tools/lib/source.class.d.ts +0 -20
  166. package/tools/lib/tools.d.ts +0 -34
@@ -1,6 +0,0 @@
1
- export interface IBreadcrumb {
2
- page: string;
3
- path?: string | null;
4
- queryParams?: any;
5
- click?: (() => any);
6
- }
@@ -1,6 +0,0 @@
1
- export interface IGoBack {
2
- show: boolean;
3
- path?: string | null;
4
- queryParams?: any;
5
- click?: (() => any);
6
- }
@@ -1,5 +0,0 @@
1
- export interface IScreenSize {
2
- width: number;
3
- height: number;
4
- breakpoin: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
- }
@@ -1,10 +0,0 @@
1
- import { HttpHeaders, HttpParams } from "@angular/common/http";
2
- import { IPatch } from "./patch.interface";
3
- export interface IHttpRequest<T> {
4
- url: string;
5
- body?: T | IPatch[] | {};
6
- queryParams?: HttpParams;
7
- headers?: HttpHeaders;
8
- alertSuccess?: string;
9
- alertError?: string;
10
- }
@@ -1,6 +0,0 @@
1
- export interface IHttpResponse<T> {
2
- body: T;
3
- status: number;
4
- message: string;
5
- ok: boolean;
6
- }
@@ -1,5 +0,0 @@
1
- export interface IPatch {
2
- op: 'remove' | 'add' | 'replace';
3
- path: string;
4
- value: any;
5
- }
package/pipes/index.d.ts DELETED
@@ -1,4 +0,0 @@
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';
@@ -1,10 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
package/public_api.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
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';
@@ -1 +0,0 @@
1
- export declare const breakpointSIGNAL: import("@angular/core").WritableSignal<"xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
@@ -1 +0,0 @@
1
- export declare const isLoadingSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -1 +0,0 @@
1
- export declare const isMenuOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -1 +0,0 @@
1
- export declare const isModalOpenSIGNAL: import("@angular/core").WritableSignal<boolean>;
@@ -1,2 +0,0 @@
1
- import { IMenu } from "../../interfaces";
2
- export declare const menuSIGNAL: import("@angular/core").WritableSignal<IMenu[]>;
package/tools/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './lib/breadcrumbs.class';
2
- export * from './lib/control-value.class';
3
- export * from './lib/date-time.class';
4
- export * from './lib/files.class';
5
- export * from './lib/menu.class';
6
- export * from './lib/page.class';
7
- export * from './lib/screen.class';
8
- export * from './lib/service.class';
9
- export * from './lib/source.class';
10
- export * from './lib/tools';
@@ -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
- /** */
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,25 +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
- /** */
24
- setDisabledState(isDisabled: boolean): void;
25
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
1
- import { IMenuOptionSelected } from "../../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
- }
@@ -1,60 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import { AfterViewInit, OnDestroy } from '@angular/core';
3
- import { IBreadcrumb, IGoBack } from '../../interfaces';
4
- import { CoerAlert } from '../../components/lib/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
- }
@@ -1,13 +0,0 @@
1
- import { IScreenSize } from "../../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
- }
@@ -1,39 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { CoerAlert } from "../../components/lib/coer-alert/coer-alert.component";
3
- import { IHttpRequest, IHttpResponse } from "../../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
- }
@@ -1,20 +0,0 @@
1
- import { IAppSource } from "../../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
- }
@@ -1,34 +0,0 @@
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
- };