monkey-front-core 0.0.23 → 0.0.28

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.
Files changed (74) hide show
  1. package/bundles/monkey-front-core.umd.js +423 -194
  2. package/bundles/monkey-front-core.umd.js.map +1 -1
  3. package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.component.js +4 -4
  4. package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.module.js +5 -5
  5. package/esm2015/lib/components/progress-bar/progress-bar.component.js +4 -4
  6. package/esm2015/lib/components/progress-bar/progress-bar.module.js +5 -5
  7. package/esm2015/lib/components/progress-bar/progress-bar.service.js +4 -4
  8. package/esm2015/lib/components/version-changed/version-changed.component.js +4 -4
  9. package/esm2015/lib/components/version-changed/version-changed.module.js +5 -5
  10. package/esm2015/lib/core/directives/monkeyecx-directives-module.js +5 -5
  11. package/esm2015/lib/core/directives/monkeyecx-drag-drop.js +4 -4
  12. package/esm2015/lib/core/directives/monkeyecx-format-currency.js +4 -4
  13. package/esm2015/lib/core/directives/monkeyecx-format-upper.js +4 -4
  14. package/esm2015/lib/core/directives/monkeyecx-only-alpha-numeric-directive.js +4 -4
  15. package/esm2015/lib/core/directives/monkeyecx-only-number-directive.js +4 -4
  16. package/esm2015/lib/core/directives/monkeyecx-security-directive.js +4 -4
  17. package/esm2015/lib/core/directives/monkeyecx-tooltip-directive.js +4 -4
  18. package/esm2015/lib/core/interceptors/monkeyecx-http-config-error.interceptor.js +4 -4
  19. package/esm2015/lib/core/interceptors/monkeyecx-http-config-header.interceptor.js +4 -4
  20. package/esm2015/lib/core/interceptors/monkeyecx-http-config-interceptor.module.js +5 -5
  21. package/esm2015/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.js +4 -4
  22. package/esm2015/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.js +4 -4
  23. package/esm2015/lib/core/pipes/monkeyecx-display-first-name.js +4 -4
  24. package/esm2015/lib/core/pipes/monkeyecx-format-currency.js +4 -4
  25. package/esm2015/lib/core/pipes/monkeyecx-format-date-timelapse.js +4 -4
  26. package/esm2015/lib/core/pipes/monkeyecx-format-document.js +4 -4
  27. package/esm2015/lib/core/pipes/monkeyecx-format-number.js +4 -4
  28. package/esm2015/lib/core/pipes/monkeyecx-format-size.js +4 -4
  29. package/esm2015/lib/core/pipes/monkeyecx-format-type-document.js +4 -4
  30. package/esm2015/lib/core/pipes/monkeyecx-format-value.js +4 -4
  31. package/esm2015/lib/core/pipes/monkeyecx-format-zipcode.js +4 -4
  32. package/esm2015/lib/core/pipes/monkeyecx-pipes.module.js +5 -5
  33. package/esm2015/lib/core/pipes/monkeyecx-text-truncate.js +4 -4
  34. package/esm2015/lib/core/pipes/monkeyecx-truncate-qtd.js +4 -4
  35. package/esm2015/lib/core/services/auth/monkeyecx-auth-guard-login.service.js +4 -4
  36. package/esm2015/lib/core/services/auth/monkeyecx-auth-guard.service.js +4 -4
  37. package/esm2015/lib/core/services/auth/monkeyecx-authentication.service.js +4 -4
  38. package/esm2015/lib/core/services/config/monkeyecx-config.module.js +5 -5
  39. package/esm2015/lib/core/services/config/monkeyecx-config.service.js +4 -4
  40. package/esm2015/lib/core/services/config/monkeyecx-feature-toggle.service.js +4 -4
  41. package/esm2015/lib/core/services/config/monkeyecx-i18n-config.service.js +4 -4
  42. package/esm2015/lib/core/services/config/monkeyecx-logs-config.service.js +4 -4
  43. package/esm2015/lib/core/services/config/monkeyecx-maintenance-config.service.js +4 -4
  44. package/esm2015/lib/core/services/config/monkeyecx-security-console-config.service.js +4 -4
  45. package/esm2015/lib/core/services/config/monkeyecx-service-worker-config.service.js +4 -4
  46. package/esm2015/lib/core/services/error/monkeyecx-error-handling.module.js +5 -5
  47. package/esm2015/lib/core/services/error/monkeyecx-error-handling.service.js +4 -4
  48. package/esm2015/lib/core/services/error/monkeyecx-http-error-handling.service.js +4 -4
  49. package/esm2015/lib/core/services/error/monkeyecx-others-errors-handling.service.js +4 -4
  50. package/esm2015/lib/core/services/logged/monkeyecx-logged-handling.service.js +4 -4
  51. package/esm2015/lib/core/services/monkeyecx-handling.service.js +4 -4
  52. package/esm2015/lib/core/services/monkeyecx-service.service.js +4 -4
  53. package/esm2015/lib/core/services/request-download/monkeyecx-request-download-handling.service.js +4 -4
  54. package/esm2015/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.js +4 -4
  55. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.js +4 -4
  56. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.js +4 -4
  57. package/esm2015/lib/core/services/routes/monkeyecx-dicovery-params.service.js +4 -4
  58. package/esm2015/lib/core/services/schedules/monkeyecx-request-schedule.service.js +4 -4
  59. package/esm2015/lib/core/services/storage/monkeyecx-cookie-storage.service.js +4 -4
  60. package/esm2015/lib/core/services/storage/monkeyecx-token-storage.service.js +4 -4
  61. package/esm2015/lib/core/utils/index.js +2 -1
  62. package/esm2015/lib/core/utils/utils.js +4 -2
  63. package/esm2015/lib/core/utils/validate-utils.js +17 -1
  64. package/esm2015/lib/core/utils/validators.js +194 -0
  65. package/esm2015/lib/monkey-front-core.module.js +5 -5
  66. package/fesm2015/monkey-front-core.js +406 -195
  67. package/fesm2015/monkey-front-core.js.map +1 -1
  68. package/lib/core/utils/index.d.ts +1 -0
  69. package/lib/core/utils/utils.d.ts +1 -1
  70. package/lib/core/utils/validate-utils.d.ts +5 -0
  71. package/lib/core/utils/validators.d.ts +27 -0
  72. package/monkey-front-core-0.0.28.tgz +0 -0
  73. package/package.json +3 -3
  74. package/monkey-front-core-0.0.23.tgz +0 -0
@@ -3,3 +3,4 @@ import * as ValidateUtils from './validate-utils';
3
3
  import * as DecoratorsUtils from './decorators-utils';
4
4
  import * as Statics from './statics';
5
5
  export { MonkeyEcxUtils, ValidateUtils, DecoratorsUtils, Statics };
6
+ export * from './validators';
@@ -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;
@@ -59,3 +59,8 @@ export declare class UnlockRegisterSponsorValidator {
59
59
  invalidUnlockRegister: boolean;
60
60
  };
61
61
  }
62
+ export declare class DateRangeValidator {
63
+ static do(control: AbstractControl): {
64
+ invalidDateRange: boolean;
65
+ };
66
+ }
@@ -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.23",
3
+ "version": "0.0.28",
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": "^2.19.2",
11
+ "launchdarkly-js-client-sdk": "2.19.2",
12
12
  "moment": "^2.29.1",
13
- "monkey-style-guide": "^2.0.1",
13
+ "monkey-style-guide": "^2.0.48",
14
14
  "ngx-mask": "^12.0.0",
15
15
  "rxjs": "^6.6.3"
16
16
  },
Binary file