caplink-saas-ui-shared-component-library 1.105.0 → 1.106.0
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/dist/features/spreadsheet/core/validators/mask-validator.d.ts +1 -19
- package/dist/features/spreadsheet/lib/alphanumeric-mask.d.ts +26 -0
- package/dist/index.es.js +9512 -9510
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +56 -56
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Mask validation module
|
|
3
|
-
* Validates string values against digit-based mask patterns
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Validates if a value matches a digit-based mask pattern
|
|
7
|
-
* Mask format: '0' represents a digit placeholder, '|' separates alternative masks
|
|
8
|
-
*
|
|
9
|
-
* @param value - Value to validate
|
|
10
|
-
* @param maskData - Mask pattern(s) separated by '|' for alternatives
|
|
11
|
-
* @returns True if value matches any of the masks
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* validateMask('12345', '00000') // true (5 digits)
|
|
15
|
-
* validateMask('123', '00000|000') // true (matches second mask)
|
|
16
|
-
* validateMask('12-345', '00000') // true (non-digits ignored)
|
|
17
|
-
* validateMask('12', '00000') // false (not enough digits)
|
|
18
|
-
*/
|
|
19
|
-
export declare function validateMask(value: unknown, maskData: string): boolean;
|
|
1
|
+
export { validateMask } from '../../lib/validate-mask';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const maskDefinitions: {
|
|
2
|
+
X: {
|
|
3
|
+
mask: RegExp;
|
|
4
|
+
prepareChar: (char: string) => string;
|
|
5
|
+
};
|
|
6
|
+
x: {
|
|
7
|
+
mask: RegExp;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function buildDynamicMasks(maskData?: string | null): {
|
|
11
|
+
mask: RegExp;
|
|
12
|
+
}[] | ({
|
|
13
|
+
mask: string;
|
|
14
|
+
lazy: boolean;
|
|
15
|
+
definitions: {
|
|
16
|
+
X: {
|
|
17
|
+
mask: RegExp;
|
|
18
|
+
prepareChar: (char: string) => string;
|
|
19
|
+
};
|
|
20
|
+
x: {
|
|
21
|
+
mask: RegExp;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
} | {
|
|
25
|
+
mask: string;
|
|
26
|
+
})[];
|