coer-elements 0.0.128 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/lib/coer-accordion/coer-accordion.component.d.ts +1 -1
- package/components/lib/coer-datebox/coer-datebox.component.d.ts +1 -1
- package/components/lib/coer-filebox/coer-filebox.component.d.ts +3 -3
- package/components/lib/coer-modal/coer-modal.component.d.ts +3 -3
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +1 -1
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +1 -1
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +1 -1
- package/extensions/index.d.ts +5 -0
- package/extensions/lib/object.extension.d.ts +1 -0
- package/extensions/lib/string.extension.d.ts +17 -0
- package/extensions/public-api.d.ts +2 -0
- package/fesm2022/coer-elements-components.mjs +1 -1
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-extensions.mjs +53 -0
- package/fesm2022/coer-elements-extensions.mjs.map +1 -0
- package/fesm2022/coer-elements-guards.mjs +29 -0
- package/fesm2022/coer-elements-guards.mjs.map +1 -0
- package/fesm2022/coer-elements-interceptors.mjs +64 -0
- package/fesm2022/coer-elements-interceptors.mjs.map +1 -0
- package/fesm2022/coer-elements-tools.mjs +10 -30
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/fesm2022/coer-elements.mjs +1 -0
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/guards/index.d.ts +5 -0
- package/guards/lib/login.guard.d.ts +2 -0
- package/guards/lib/page.guard.d.ts +2 -0
- package/guards/public-api.d.ts +2 -0
- package/index.d.ts +1 -0
- package/interceptors/index.d.ts +5 -0
- package/interceptors/lib/user.interceptor.d.ts +8 -0
- package/interceptors/lib/utc-offset.interceptor.d.ts +8 -0
- package/interceptors/public-api.d.ts +1 -0
- package/package.json +14 -2
- package/pages/lib/coer-system/coer-system.component.d.ts +2 -2
- package/pages/lib/coer-system/login/login.component.d.ts +1 -1
- package/tools/lib/page.class.d.ts +4 -4
- package/tools/lib/section.class.d.ts +4 -4
- package/tools/lib/tools.d.ts +6 -6
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { NgModule } from '@angular/core';
|
3
|
+
import 'coer-elements/extensions';
|
3
4
|
import { CoerAlert } from 'coer-elements/tools';
|
4
5
|
import * as components from 'coer-elements/components';
|
5
6
|
import * as pages from 'coer-elements/pages';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/index.ts","../../../projects/coer-elements/coer-elements.ts"],"sourcesContent":["import { NgModule } from '@angular/core';
|
1
|
+
{"version":3,"file":"coer-elements.mjs","sources":["../../../projects/coer-elements/index.ts","../../../projects/coer-elements/coer-elements.ts"],"sourcesContent":["import { NgModule } from '@angular/core'; \r\nimport 'coer-elements/extensions';\r\n\r\n//Components \r\nimport { CoerAlert } from 'coer-elements/tools';\r\nimport * as components from 'coer-elements/components';\r\nimport * as pages from 'coer-elements/pages';\r\nimport * as directives from 'coer-elements/directives';\r\nimport * as pipes from 'coer-elements/pipes'; \r\n\r\n@NgModule({ \r\n imports: [ \r\n components.ComponentsModule, \r\n pages.PagesModule,\r\n directives.DirectivesModule,\r\n pipes.PipesModule,\r\n CoerAlert,\r\n ],\r\n exports: [ \r\n CoerAlert,\r\n pages.COERSystem,\r\n pages.CoerMenuPage,\r\n pages.HomePage, \r\n pages.LoadingPage,\r\n components.CoerAccordion,\r\n components.CoerButton,\r\n components.CoerCheckbox,\r\n components.CoerDateBox,\r\n components.CoerFilebox,\r\n components.CoerForm,\r\n components.CoerGrid,\r\n components.CoerList, \r\n components.CoerModal,\r\n components.CoerNumberBox,\r\n components.CoerPageTitle,\r\n components.CoerSelectbox,\r\n components.CoerDropdown,\r\n components.CoerSidenav,\r\n components.CoerSwitch,\r\n components.CoerTextarea,\r\n components.CoerTab,\r\n components.CoerTextBox,\r\n components.CoerToolbar, \r\n directives.CoerRefDirective,\r\n directives.LifeCycleDirective,\r\n pipes.HtmlPipe,\r\n pipes.NoImagePipe,\r\n pipes.NumericFormatPipe\r\n ]\r\n})\r\nexport class CoerElementsModule { } \r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i4"],"mappings":";;;;;;;;;MAkDa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAlB,kBAAkB,EAAA,OAAA,EAAA,CAAAA,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAAAC,UAAA,CAAA,gBAAA,EAAAC,KAAA,CAAA,WAAA,EAlCvB,SAAS,CAAA,EAAA,OAAA,EAAA,CAGT,SAAS,EAAAF,KAAA,CAAA,UAAA,EAAAA,KAAA,CAAA,YAAA,EAAAA,KAAA,CAAA,QAAA,EAAAA,KAAA,CAAA,WAAA,EAAAD,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,UAAA,EAAAA,UAAA,CAAA,YAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,QAAA,EAAAA,UAAA,CAAA,QAAA,EAAAA,UAAA,CAAA,QAAA,EAAAA,UAAA,CAAA,SAAA,EAAAA,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,aAAA,EAAAA,UAAA,CAAA,YAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,UAAA,EAAAA,UAAA,CAAA,YAAA,EAAAA,UAAA,CAAA,OAAA,EAAAA,UAAA,CAAA,WAAA,EAAAA,UAAA,CAAA,WAAA,EAAAE,UAAA,CAAA,gBAAA,EAAAA,UAAA,CAAA,kBAAA,EAAAC,KAAA,CAAA,QAAA,EAAAA,KAAA,CAAA,WAAA,EAAAA,KAAA,C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ACtB,wBAAA,UAAU,CAAC,WAAW;AACtB,wBAAA,UAAU,CAAC,gBAAgB;AAC3B,wBAAA,UAAU,CAAC,kBAAkB;AAC7B,wBAAA,KAAK,CAAC,QAAQ;AACd,wBAAA,KAAK,CAAC,WAAW;AACjB,wBAAA,KAAK,CAAC;AACT;AACJ,iBAAA;;;ACjDD;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class USER_INTERCEPTOR implements HttpInterceptor {
|
5
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<USER_INTERCEPTOR, never>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<USER_INTERCEPTOR>;
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class UTC_OFFSET_INTERCEPTOR implements HttpInterceptor {
|
5
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UTC_OFFSET_INTERCEPTOR, never>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UTC_OFFSET_INTERCEPTOR>;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const INTERCEPTORS: any[];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "coer-elements",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.130",
|
4
4
|
"author": "Christian Omar Escamilla Rodríguez",
|
5
5
|
"keywords": [
|
6
6
|
"COER",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"dependencies": {
|
24
24
|
"tslib": "^2.3.0"
|
25
25
|
},
|
26
|
-
"sideEffects":
|
26
|
+
"sideEffects": true,
|
27
27
|
"module": "fesm2022/coer-elements.mjs",
|
28
28
|
"typings": "index.d.ts",
|
29
29
|
"exports": {
|
@@ -42,6 +42,18 @@
|
|
42
42
|
"types": "./directives/index.d.ts",
|
43
43
|
"default": "./fesm2022/coer-elements-directives.mjs"
|
44
44
|
},
|
45
|
+
"./extensions": {
|
46
|
+
"types": "./extensions/index.d.ts",
|
47
|
+
"default": "./fesm2022/coer-elements-extensions.mjs"
|
48
|
+
},
|
49
|
+
"./guards": {
|
50
|
+
"types": "./guards/index.d.ts",
|
51
|
+
"default": "./fesm2022/coer-elements-guards.mjs"
|
52
|
+
},
|
53
|
+
"./interceptors": {
|
54
|
+
"types": "./interceptors/index.d.ts",
|
55
|
+
"default": "./fesm2022/coer-elements-interceptors.mjs"
|
56
|
+
},
|
45
57
|
"./interfaces": {
|
46
58
|
"types": "./interfaces/index.d.ts",
|
47
59
|
"default": "./fesm2022/coer-elements-interfaces.mjs"
|
@@ -34,8 +34,8 @@ export declare class COERSystem {
|
|
34
34
|
onUpdateProfile: import("@angular/core").OutputEmitterRef<any>;
|
35
35
|
onUploadUserImage: import("@angular/core").OutputEmitterRef<IFile>;
|
36
36
|
onDeleteUserImage: import("@angular/core").OutputEmitterRef<void>;
|
37
|
-
protected IsNotNull:
|
38
|
-
protected IsNotOnlyWhiteSpace:
|
37
|
+
protected IsNotNull: (value: any) => boolean;
|
38
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
39
39
|
protected get enableButton(): boolean;
|
40
40
|
protected _toolbarMenu: import("@angular/core").Signal<IToolbarMenu[]>;
|
41
41
|
protected userName: import("@angular/core").Signal<string>;
|
@@ -13,7 +13,7 @@ export declare class LoginPage {
|
|
13
13
|
protected show: 'login' | 'recovery';
|
14
14
|
onLogin: import("@angular/core").OutputEmitterRef<ILogIn>;
|
15
15
|
onRecovery: import("@angular/core").OutputEmitterRef<string>;
|
16
|
-
protected IsNotOnlyWhiteSpace:
|
16
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
17
17
|
protected get enableButton(): boolean;
|
18
18
|
protected get enableRecoveryButton(): boolean;
|
19
19
|
/** */
|
@@ -68,10 +68,10 @@ export declare class Page implements AfterViewInit, OnDestroy {
|
|
68
68
|
protected coerSwitchTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerSwitch;
|
69
69
|
protected coerTextboxTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerTextBox;
|
70
70
|
protected coerIconTemplate: (icon: string, color?: string) => string;
|
71
|
-
protected IsNull:
|
72
|
-
protected IsNotNull:
|
73
|
-
protected IsOnlyWhiteSpace:
|
74
|
-
protected IsNotOnlyWhiteSpace:
|
71
|
+
protected IsNull: (value: any) => boolean;
|
72
|
+
protected IsNotNull: (value: any) => boolean;
|
73
|
+
protected IsOnlyWhiteSpace: (value: any) => boolean;
|
74
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
75
75
|
protected Sleep: (milliseconds?: number, reference?: string | null) => Promise<unknown>;
|
76
76
|
protected IsInvalidElement: (element: any) => boolean;
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<Page, never>;
|
@@ -22,10 +22,10 @@ export declare class Section<T> implements AfterViewInit, OnDestroy {
|
|
22
22
|
protected coerSwitchTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerSwitch;
|
23
23
|
protected coerTextboxTemplate: (item: import("coer-elements/interfaces").IGridItem<any>) => import("coer-elements/interfaces").IGridCoerTextBox;
|
24
24
|
protected coerIconTemplate: (icon: string, color?: string) => string;
|
25
|
-
protected IsNull:
|
26
|
-
protected IsNotNull:
|
27
|
-
protected IsOnlyWhiteSpace:
|
28
|
-
protected IsNotOnlyWhiteSpace:
|
25
|
+
protected IsNull: (value: any) => boolean;
|
26
|
+
protected IsNotNull: (value: any) => boolean;
|
27
|
+
protected IsOnlyWhiteSpace: (value: any) => boolean;
|
28
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
29
29
|
protected Sleep: (milliseconds?: number, reference?: string | null) => Promise<unknown>;
|
30
30
|
protected IsInvalidElement: (element: any) => boolean;
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<Section<any>, never>;
|
package/tools/lib/tools.d.ts
CHANGED
@@ -2,23 +2,23 @@ export declare const Tools: {
|
|
2
2
|
/** Generate a Guid */
|
3
3
|
GetGuid: (seed?: string) => string;
|
4
4
|
/** Returns true if the value is null or undefined, false otherwise */
|
5
|
-
IsNull:
|
5
|
+
IsNull: (value: any) => boolean;
|
6
6
|
/** Returns true if the value is not null or undefined, false otherwise */
|
7
|
-
IsNotNull:
|
7
|
+
IsNotNull: (value: any) => boolean;
|
8
8
|
/** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
|
9
|
-
IsOnlyWhiteSpace:
|
9
|
+
IsOnlyWhiteSpace: (value: any) => boolean;
|
10
10
|
/** Returns true if has string value and is not only whitespace, false otherwise */
|
11
|
-
IsNotOnlyWhiteSpace:
|
11
|
+
IsNotOnlyWhiteSpace: (value: any) => boolean;
|
12
12
|
/** Avoid Null value */
|
13
13
|
AvoidNull: <T>(value: T | null | undefined, type?: "string" | "number" | "boolean" | null) => T;
|
14
|
-
/**
|
14
|
+
/** */
|
15
15
|
RemoveAccents: (value: string | null | undefined) => string;
|
16
16
|
/** Break reference of a object or array */
|
17
17
|
BreakReference: <T>(object: T) => T;
|
18
18
|
/** Clean extra whitespaces */
|
19
19
|
CleanUpBlanks: (text: string | number) => string;
|
20
20
|
/** Get properties of an object */
|
21
|
-
|
21
|
+
GetPropertyList: <T>(obj: T | null | undefined) => string[];
|
22
22
|
/**
|
23
23
|
* Set an index and merge more arrays of the same type
|
24
24
|
* */
|