@energycap/components 0.27.6 → 0.27.7

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.
@@ -13,4 +13,8 @@ export declare class CustomValidators {
13
13
  * Returns a validation error if the control's value is not valid JSON.
14
14
  */
15
15
  static json: ValidatorFn;
16
+ /**
17
+ * Returns a validation error if the control's value is not a valid domain.
18
+ */
19
+ static domain: ValidatorFn;
16
20
  }
@@ -1,4 +1,4 @@
1
- import { ValidationErrors } from "@angular/forms";
1
+ import { ValidationErrors } from '@angular/forms';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
3
  import { DateDisplayPipe } from '../shared/display/pipes/date-display.pipe';
4
4
  /**
@@ -13,6 +13,8 @@ export declare const dateInputFormatRegex: RegExp;
13
13
  * invalidate if just a minus sign is entered in the input, any digit `0-9` is allowed
14
14
  */
15
15
  export declare const integerPattern: RegExp;
16
+ /** Pattern to validate most public domains */
17
+ export declare const domainPattern: RegExp;
16
18
  /**
17
19
  * Function to return a decimal RegExp. Takes in the number of decimals to validate
18
20
  * against
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -36,5 +36,6 @@
36
36
  "PageBaseUnknownSaveError_SC": "An unknown error occurred while saving your changes. Please try again later.",
37
37
  "PasswordInvalidValidationMessage_LC": "does not meet all requirements",
38
38
  "Next_TC": "Next",
39
- "Back_TC": "Back"
39
+ "Back_TC": "Back",
40
+ "DomainValidationMessage_SC": "must be a valid domain name"
40
41
  }