@tapsellorg/angular-material-library
Version:
Angular library for Tapsell
79 lines (78 loc) • 2.67 kB
TypeScript
export declare const PGH_DEFAULT_ERROR_MESSAGES: {
required: string;
pattern: string;
email: string;
password: string;
url: string;
entity: string;
phoneNumber: string;
uppercase: string;
postalCode: string;
sheba: string;
shebaIr: string;
debitCard: string;
nationalCode: string;
unknownOption: string;
forbiddenOption: string;
forbiddenFileName: string;
forbiddenFileType: string;
illegalSize: string;
};
export declare const REGEX: {
/** Matches HTTP and HTTPS URLs (e.g., https://example.com/path) */
URL: RegExp;
/** Matches entity URIs like `any://something` */
ENTITY: RegExp;
/** Matches valid domain names (e.g., example.com) */
DOMAIN: RegExp;
/** Matches simple slug strings used in URLs (e.g., my-post-title) */
SLUG: RegExp;
/** Matches various international phone number formats */
PHONE_NUMBER: RegExp;
/** Simplified but practical email validation */
EMAIL: RegExp;
/** Matches usernames (2–30 chars, letters/numbers/underscores) */
USERNAME: RegExp;
/** Strong password: upper, lower, number, special char, 8–64 length */
PASSWORD_STRONG: RegExp;
/** Integer numbers (e.g., 42, -5) */
INTEGER: RegExp;
/** Floating-point numbers (e.g., 3.14, -0.001) */
FLOAT: RegExp;
/** Currency-like values (e.g., 1,234.56 or $99.00) */
CURRENCY: RegExp;
/** Iranian Sheba number with "IR" prefix */
SHABA_WITH_IR: RegExp;
/** Iranian Sheba number without "IR" prefix */
SHABA_NO_IR: RegExp;
/** Debit card numbers (16 digits) */
DEBIT_CARD: RegExp;
/** Iranian national code (10 or 12 digits) */
NATIONAL_CODE: RegExp;
/** Iranian phone numbers (optional +98 or 0 prefix) */
IR_PHONE: RegExp;
/** Disallows uppercase letters */
NO_UPPERCASE: RegExp;
/** Contains at least one digit */
HAS_NUMBER: RegExp;
/** Contains at least one uppercase letter */
HAS_CAPITAL_CASE: RegExp;
/** Contains at least one lowercase letter */
HAS_SMALL_CASE: RegExp;
/** Non-empty string without leading or trailing whitespace */
TRIMMED_STRING: RegExp;
/** 10-digit postal code (Iran format) */
POSTAL_CODE: RegExp;
/** Valid CSS class name */
CSS_CLASS: RegExp;
/** Valid CSS ID selector (starts with #) */
CSS_ID: RegExp;
/** Simple HTML tag pattern (e.g., <div>, </span>) */
HTML_TAG: RegExp;
/** ISO date format (YYYY-MM-DD) */
DATE_ISO: RegExp;
/** 24-hour time format (HH:mm or HH:mm:ss) */
TIME_24H: RegExp;
/** ISO datetime format (YYYY-MM-DDTHH:mm:ssZ) */
DATETIME_ISO: RegExp;
};