@abp/ng.core 6.0.0-rc.1 → 6.0.0-rc.4

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.
@@ -2,6 +2,9 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/co
2
2
  import { FormGroupDirective } from '@angular/forms';
3
3
  import { SubscriptionService } from '../services/subscription.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @deprecated FormSubmitDirective will be removed in V7.0.0. Use `ngSubmit` instead.
7
+ */
5
8
  export declare class FormSubmitDirective implements OnInit {
6
9
  private formGroupDirective;
7
10
  private host;
@@ -1,6 +1,7 @@
1
1
  export declare function noop(): () => void;
2
2
  export declare function isUndefinedOrEmptyString(value: unknown): boolean;
3
3
  export declare function isNullOrUndefined(obj: any): boolean;
4
+ export declare function isNullOrEmpty(obj: any): boolean;
4
5
  export declare function exists(obj: any): boolean;
5
6
  export declare function isObject(obj: any): boolean;
6
7
  export declare function isArray(obj: any): boolean;
@@ -5,6 +5,7 @@ import { validateRange } from './range.validator';
5
5
  import { validateRequired } from './required.validator';
6
6
  import { validateStringLength } from './string-length.validator';
7
7
  import { validateUrl } from './url.validator';
8
+ import { validateUsername } from './username.validator';
8
9
  export * from './age.validator';
9
10
  export * from './credit-card.validator';
10
11
  export * from './range.validator';
@@ -19,4 +20,5 @@ export declare const AbpValidators: {
19
20
  required: typeof validateRequired;
20
21
  stringLength: typeof validateStringLength;
21
22
  url: typeof validateUrl;
23
+ username: typeof validateUsername;
22
24
  };
@@ -0,0 +1,10 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface UsernamePatternError {
3
+ usernamePattern: {
4
+ actualValue: string;
5
+ };
6
+ }
7
+ export interface UsernameOptions {
8
+ pattern?: RegExp;
9
+ }
10
+ export declare function validateUsername({ pattern }?: UsernameOptions): ValidatorFn;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abp/ng.core",
3
- "version": "6.0.0-rc.1",
3
+ "version": "6.0.0-rc.4",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "dependencies": {
10
- "@abp/utils": "~6.0.0-rc.1",
10
+ "@abp/utils": "~6.0.0-rc.4",
11
11
  "angular-oauth2-oidc": "^13.0.1",
12
12
  "just-clone": "^3.2.1",
13
13
  "just-compare": "^1.4.0",