coer-elements 0.0.128 → 0.0.130
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -8,7 +8,7 @@ export declare class CoerAccordion {
|
|
8
8
|
expanded: import("@angular/core").InputSignal<boolean>;
|
9
9
|
onOpen: import("@angular/core").OutputEmitterRef<void>;
|
10
10
|
onClose: import("@angular/core").OutputEmitterRef<void>;
|
11
|
-
protected IsNotOnlyWhiteSpace:
|
11
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
12
12
|
get isExpanded(): boolean;
|
13
13
|
get isCollapsed(): boolean;
|
14
14
|
/** */
|
@@ -19,7 +19,7 @@ export declare class CoerDateBox extends ControlValue implements OnInit {
|
|
19
19
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
20
20
|
isInvalid: import("@angular/core").InputSignal<boolean>;
|
21
21
|
isValid: import("@angular/core").InputSignal<boolean>;
|
22
|
-
textPosition: import("@angular/core").InputSignal<"
|
22
|
+
textPosition: import("@angular/core").InputSignal<"center" | "left" | "right">;
|
23
23
|
width: import("@angular/core").InputSignal<string>;
|
24
24
|
minWidth: import("@angular/core").InputSignal<string>;
|
25
25
|
maxWidth: import("@angular/core").InputSignal<string>;
|
@@ -5,9 +5,9 @@ import { CoerAlert } from 'coer-elements/tools';
|
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class CoerFilebox {
|
7
7
|
protected readonly alert: CoerAlert;
|
8
|
-
protected IsNull:
|
9
|
-
protected IsNotNull:
|
10
|
-
protected IsNotOnlyWhiteSpace:
|
8
|
+
protected IsNull: (value: any) => boolean;
|
9
|
+
protected IsNotNull: (value: any) => boolean;
|
10
|
+
protected IsNotOnlyWhiteSpace: (value: any) => boolean;
|
11
11
|
protected inputFileImage: import("@angular/core").Signal<ElementRef<any>>;
|
12
12
|
protected modal: import("@angular/core").Signal<CoerModal>;
|
13
13
|
protected base64: string;
|
@@ -13,7 +13,7 @@ export declare class CoerModal implements OnInit {
|
|
13
13
|
title: import("@angular/core").InputSignal<string>;
|
14
14
|
icon: import("@angular/core").InputSignal<string>;
|
15
15
|
showCloseButton: import("@angular/core").InputSignal<boolean>;
|
16
|
-
width: import("@angular/core").InputSignal<"
|
16
|
+
width: import("@angular/core").InputSignal<"small" | "auto" | "full">;
|
17
17
|
height: import("@angular/core").InputSignal<string>;
|
18
18
|
maxHeight: import("@angular/core").InputSignal<string>;
|
19
19
|
get isOpen(): boolean;
|
@@ -26,8 +26,8 @@ export declare class CoerModal implements OnInit {
|
|
26
26
|
protected _icon: import("@angular/core").Signal<string>;
|
27
27
|
onOpen: import("@angular/core").OutputEmitterRef<void>;
|
28
28
|
onClose: import("@angular/core").OutputEmitterRef<void>;
|
29
|
-
protected IsNull:
|
30
|
-
protected IsNotNull:
|
29
|
+
protected IsNull: (value: any) => boolean;
|
30
|
+
protected IsNotNull: (value: any) => boolean;
|
31
31
|
ngOnInit(): void;
|
32
32
|
/** */
|
33
33
|
Open(): void;
|
@@ -30,7 +30,7 @@ export declare class CoerNumberBox extends ControlValue implements OnInit {
|
|
30
30
|
isReadonly: import("@angular/core").InputSignal<boolean>;
|
31
31
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
32
32
|
selectOnFocus: import("@angular/core").InputSignal<boolean>;
|
33
|
-
textPosition: import("@angular/core").InputSignal<"
|
33
|
+
textPosition: import("@angular/core").InputSignal<"center" | "left" | "right">;
|
34
34
|
onKeyupEnter: import("@angular/core").OutputEmitterRef<string | number>;
|
35
35
|
onInput: import("@angular/core").OutputEmitterRef<string | number>;
|
36
36
|
ngOnInit(): void;
|
@@ -28,7 +28,7 @@ export declare class CoerTextarea extends ControlValue implements OnInit {
|
|
28
28
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
29
29
|
showFooter: import("@angular/core").InputSignal<boolean>;
|
30
30
|
resize: import("@angular/core").InputSignal<boolean>;
|
31
|
-
textPosition: import("@angular/core").InputSignal<"
|
31
|
+
textPosition: import("@angular/core").InputSignal<"center" | "left" | "right">;
|
32
32
|
onInput: import("@angular/core").OutputEmitterRef<string | number>;
|
33
33
|
ngOnInit(): void;
|
34
34
|
get value(): string | number | null | undefined;
|
@@ -32,7 +32,7 @@ export declare class CoerTextBox extends ControlValue implements OnInit {
|
|
32
32
|
isReadonly: import("@angular/core").InputSignal<boolean>;
|
33
33
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
34
34
|
selectOnFocus: import("@angular/core").InputSignal<boolean>;
|
35
|
-
textPosition: import("@angular/core").InputSignal<"
|
35
|
+
textPosition: import("@angular/core").InputSignal<"center" | "left" | "right">;
|
36
36
|
onKeyupEnter: import("@angular/core").OutputEmitterRef<string | number>;
|
37
37
|
onInput: import("@angular/core").OutputEmitterRef<string | number>;
|
38
38
|
onClickClear: import("@angular/core").OutputEmitterRef<void>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
declare global {
|
2
|
+
interface String {
|
3
|
+
/** */
|
4
|
+
removeAccents(): string;
|
5
|
+
/** Clean extra whitespaces */
|
6
|
+
cleanUpBlanks(): string;
|
7
|
+
/** Set First Char To Lower */
|
8
|
+
firstCharToLower(): string;
|
9
|
+
/** Set First Char To Upper */
|
10
|
+
firstCharToUpper(): string;
|
11
|
+
/** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
|
12
|
+
isOnlyWhiteSpace(): boolean;
|
13
|
+
/** Returns true if has string value and is not only whitespace, false otherwise */
|
14
|
+
isNotOnlyWhiteSpace(): boolean;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
export {};
|
@@ -720,7 +720,7 @@ class CoerForm {
|
|
720
720
|
Focus(formControl = null) {
|
721
721
|
const formControlCollection = new Map();
|
722
722
|
const formControlErrorCollection = new Map();
|
723
|
-
for (const property of Tools.
|
723
|
+
for (const property of Tools.GetPropertyList(this.formGroup().controls)) {
|
724
724
|
formControlErrorCollection.set(property, this.formGroup().controls[property].errors);
|
725
725
|
const htmlElement = document.querySelector(`[formcontrolname='${property}'] input`);
|
726
726
|
if (Tools.IsNotNull(htmlElement))
|