monkey-front-core 0.0.24 → 0.0.29
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/bundles/monkey-front-core.umd.js +423 -194
- package/bundles/monkey-front-core.umd.js.map +1 -1
- package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.component.js +4 -4
- package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.module.js +5 -5
- package/esm2015/lib/components/progress-bar/progress-bar.component.js +4 -4
- package/esm2015/lib/components/progress-bar/progress-bar.module.js +5 -5
- package/esm2015/lib/components/progress-bar/progress-bar.service.js +4 -4
- package/esm2015/lib/components/version-changed/version-changed.component.js +4 -4
- package/esm2015/lib/components/version-changed/version-changed.module.js +5 -5
- package/esm2015/lib/core/directives/monkeyecx-directives-module.js +5 -5
- package/esm2015/lib/core/directives/monkeyecx-drag-drop.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-format-currency.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-format-upper.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-only-alpha-numeric-directive.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-only-number-directive.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-security-directive.js +4 -4
- package/esm2015/lib/core/directives/monkeyecx-tooltip-directive.js +4 -4
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-error.interceptor.js +4 -4
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-header.interceptor.js +4 -4
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-interceptor.module.js +5 -5
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.js +4 -4
- package/esm2015/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-display-first-name.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-currency.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-date-timelapse.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-document.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-number.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-size.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-type-document.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-value.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-format-zipcode.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-pipes.module.js +5 -5
- package/esm2015/lib/core/pipes/monkeyecx-text-truncate.js +4 -4
- package/esm2015/lib/core/pipes/monkeyecx-truncate-qtd.js +4 -4
- package/esm2015/lib/core/services/auth/monkeyecx-auth-guard-login.service.js +4 -4
- package/esm2015/lib/core/services/auth/monkeyecx-auth-guard.service.js +4 -4
- package/esm2015/lib/core/services/auth/monkeyecx-authentication.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-config.module.js +5 -5
- package/esm2015/lib/core/services/config/monkeyecx-config.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-feature-toggle.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-i18n-config.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-logs-config.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-maintenance-config.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-security-console-config.service.js +4 -4
- package/esm2015/lib/core/services/config/monkeyecx-service-worker-config.service.js +4 -4
- package/esm2015/lib/core/services/error/monkeyecx-error-handling.module.js +5 -5
- package/esm2015/lib/core/services/error/monkeyecx-error-handling.service.js +4 -4
- package/esm2015/lib/core/services/error/monkeyecx-http-error-handling.service.js +4 -4
- package/esm2015/lib/core/services/error/monkeyecx-others-errors-handling.service.js +4 -4
- package/esm2015/lib/core/services/logged/monkeyecx-logged-handling.service.js +4 -4
- package/esm2015/lib/core/services/monkeyecx-handling.service.js +4 -4
- package/esm2015/lib/core/services/monkeyecx-service.service.js +4 -4
- package/esm2015/lib/core/services/request-download/monkeyecx-request-download-handling.service.js +4 -4
- package/esm2015/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.js +4 -4
- package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.js +4 -4
- package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.js +4 -4
- package/esm2015/lib/core/services/routes/monkeyecx-dicovery-params.service.js +4 -4
- package/esm2015/lib/core/services/schedules/monkeyecx-request-schedule.service.js +4 -4
- package/esm2015/lib/core/services/storage/monkeyecx-cookie-storage.service.js +4 -4
- package/esm2015/lib/core/services/storage/monkeyecx-token-storage.service.js +4 -4
- package/esm2015/lib/core/utils/index.js +2 -1
- package/esm2015/lib/core/utils/utils.js +4 -2
- package/esm2015/lib/core/utils/validate-utils.js +17 -1
- package/esm2015/lib/core/utils/validators.js +194 -0
- package/esm2015/lib/monkey-front-core.module.js +5 -5
- package/fesm2015/monkey-front-core.js +406 -195
- package/fesm2015/monkey-front-core.js.map +1 -1
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/core/utils/utils.d.ts +1 -1
- package/lib/core/utils/validate-utils.d.ts +5 -0
- package/lib/core/utils/validators.d.ts +27 -0
- package/monkey-front-core-0.0.29.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-core-0.0.24.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class MonkeyEcxUtils {
|
|
2
2
|
static persistNullEmptyUndefined(tp: any): boolean;
|
|
3
|
-
static getDocumentType(doc: string): "" | "CPF" | "CNPJ";
|
|
3
|
+
static getDocumentType(doc: string, country?: string): "" | "CPF" | "CNPJ" | "RUT";
|
|
4
4
|
static getDocumentMask(type: string): "000.000.000-00" | "00.000.000/0000-00";
|
|
5
5
|
static formatDocumentWithMask(doc: string, withType?: boolean, country?: string): string;
|
|
6
6
|
static cutFirstLastName(value: string, tp?: string): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
export declare function emailValidator(control: AbstractControl): ValidationErrors | null;
|
|
3
|
+
export declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
|
|
4
|
+
export declare function registerValidator(control: AbstractControl, type: string): ValidationErrors | null;
|
|
5
|
+
export declare function dateStartEndValidator(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
export declare function urlValidator(control: AbstractControl): ValidationErrors | null;
|
|
7
|
+
export declare function passwordConfirmValidator(control: AbstractControl): ValidationErrors | null;
|
|
8
|
+
export declare function trueValidator(control: AbstractControl): ValidationErrors | null;
|
|
9
|
+
export declare function comboValidator(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
export declare function zipCodeValidator(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
export declare function documentValidator(control: AbstractControl, country: string): ValidationErrors | null;
|
|
12
|
+
export declare function dateValidator(control: AbstractControl): ValidationErrors | null;
|
|
13
|
+
export declare class Validators {
|
|
14
|
+
static email(control: AbstractControl): ValidationErrors | null;
|
|
15
|
+
static dateRange(control: AbstractControl): ValidationErrors | null;
|
|
16
|
+
static unlockSponsorRegister(control: AbstractControl): ValidationErrors | null;
|
|
17
|
+
static unlockBuyerRegister(control: AbstractControl): ValidationErrors | null;
|
|
18
|
+
static dateStartEnd(control: AbstractControl): ValidationErrors | null;
|
|
19
|
+
static url(control: AbstractControl): ValidationErrors | null;
|
|
20
|
+
static passwordConfirm(control: AbstractControl): ValidationErrors | null;
|
|
21
|
+
static true(control: AbstractControl): ValidationErrors | null;
|
|
22
|
+
static combo(control: AbstractControl): ValidationErrors | null;
|
|
23
|
+
static zipCode(control: AbstractControl): ValidationErrors | null;
|
|
24
|
+
static documentBR(control: AbstractControl): ValidationErrors | null;
|
|
25
|
+
static documentCL(control: AbstractControl): ValidationErrors | null;
|
|
26
|
+
static date(control: AbstractControl): ValidationErrors | null;
|
|
27
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monkey-front-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~12.2.0",
|
|
6
6
|
"@angular/core": "~12.2.0",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@datadog/browser-rum": "^3.6.12",
|
|
9
9
|
"@ngx-translate/core": "^13.0.0",
|
|
10
10
|
"@ngx-translate/http-loader": "^6.0.0",
|
|
11
|
-
"launchdarkly-js-client-sdk": "
|
|
11
|
+
"launchdarkly-js-client-sdk": "2.19.2",
|
|
12
12
|
"moment": "^2.29.1",
|
|
13
|
-
"monkey-style-guide": "^2.0.
|
|
13
|
+
"monkey-style-guide": "^2.0.48",
|
|
14
14
|
"ngx-mask": "^12.0.0",
|
|
15
15
|
"rxjs": "^6.6.3"
|
|
16
16
|
},
|
|
Binary file
|