@kato-lee/utilities 1.0.0 → 2.0.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/LICENSE +1 -1
- package/fesm2022/kato-lee-utilities-models.mjs +69 -0
- package/fesm2022/kato-lee-utilities-models.mjs.map +1 -0
- package/fesm2022/kato-lee-utilities-pipes.mjs +149 -0
- package/fesm2022/kato-lee-utilities-pipes.mjs.map +1 -0
- package/fesm2022/kato-lee-utilities-services.mjs +276 -0
- package/fesm2022/kato-lee-utilities-services.mjs.map +1 -0
- package/fesm2022/kato-lee-utilities-types.mjs +65 -0
- package/fesm2022/kato-lee-utilities-types.mjs.map +1 -0
- package/fesm2022/kato-lee-utilities-validators.mjs +20 -0
- package/fesm2022/kato-lee-utilities-validators.mjs.map +1 -0
- package/fesm2022/kato-lee-utilities.mjs.map +1 -1
- package/index.d.ts +94 -4
- package/js/_clone-deep.js +826 -826
- package/js/_order-by.js +1287 -1287
- package/js/index.js +2 -2
- package/models/index.d.ts +32 -0
- package/models/package.json +3 -0
- package/package.json +25 -3
- package/pipes/index.d.ts +51 -0
- package/pipes/package.json +3 -0
- package/services/index.d.ts +56 -0
- package/services/package.json +3 -0
- package/types/index.d.ts +36 -0
- package/types/package.json +3 -0
- package/validators/index.d.ts +16 -0
- package/validators/package.json +3 -0
- package/_either.d.ts +0 -12
- package/_group-by-key.d.ts +0 -6
- package/_lodash.d.ts +0 -71
- package/_path.d.ts +0 -1
- package/esm2022/_either.mjs +0 -49
- package/esm2022/_group-by-key.mjs +0 -19
- package/esm2022/_lodash.mjs +0 -91
- package/esm2022/_path.mjs +0 -17
- package/esm2022/index.mjs +0 -8
- package/esm2022/js/_clone-deep.mjs +0 -619
- package/esm2022/js/_order-by.mjs +0 -948
- package/esm2022/kato-lee-utilities.mjs +0 -5
- package/js/_clone-deep.d.ts +0 -2
- package/js/_order-by.d.ts +0 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Validators } from '@angular/forms';
|
|
2
|
+
|
|
3
|
+
const PATTERN_EMAIL = '^[^@]+@[^@]+.[a-zA-Z]{2,}$';
|
|
4
|
+
const PATTERN_NUMERIC = /^[0-9.]+$/;
|
|
5
|
+
const PATTERN_OUT_SPACES = /^[^\s]+$/;
|
|
6
|
+
const required = Validators.required;
|
|
7
|
+
const max = (max) => Validators.max(max);
|
|
8
|
+
const min = (min) => Validators.min(min);
|
|
9
|
+
const maxLength = (maxLength) => Validators.maxLength(maxLength);
|
|
10
|
+
const minLength = (minLength) => Validators.minLength(minLength);
|
|
11
|
+
const withOutSpaces = Validators.pattern(PATTERN_OUT_SPACES);
|
|
12
|
+
const onlyNumber = Validators.pattern(PATTERN_NUMERIC);
|
|
13
|
+
const email = Validators.pattern(PATTERN_EMAIL);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Generated bundle index. Do not edit.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export { PATTERN_EMAIL, PATTERN_NUMERIC, PATTERN_OUT_SPACES, email, max, maxLength, min, minLength, onlyNumber, required, withOutSpaces };
|
|
20
|
+
//# sourceMappingURL=kato-lee-utilities-validators.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kato-lee-utilities-validators.mjs","sources":["../../../libraries/utilities/validators/index.ts","../../../libraries/utilities/validators/kato-lee-utilities-validators.ts"],"sourcesContent":["import { Validators } from '@angular/forms';\r\n\r\nexport const PATTERN_EMAIL = '^[^@]+@[^@]+.[a-zA-Z]{2,}$';\r\nexport const PATTERN_NUMERIC = /^[0-9.]+$/;\r\nexport const PATTERN_OUT_SPACES = /^[^\\s]+$/;\r\n\r\nexport const required = Validators.required;\r\n\r\nexport const max = (max: number) => Validators.max(max);\r\nexport const min = (min: number) => Validators.min(min);\r\n\r\nexport const maxLength = (maxLength: number) => Validators.maxLength(maxLength);\r\nexport const minLength = (minLength: number) => Validators.minLength(minLength);\r\n\r\nexport const withOutSpaces = Validators.pattern(PATTERN_OUT_SPACES);\r\nexport const onlyNumber = Validators.pattern(PATTERN_NUMERIC);\r\nexport const email = Validators.pattern(PATTERN_EMAIL);\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEO,MAAM,aAAa,GAAG;AACtB,MAAM,eAAe,GAAG;AACxB,MAAM,kBAAkB,GAAG;AAE3B,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,GAAG,GAAG,CAAC,GAAW,KAAK,UAAU,CAAC,GAAG,CAAC,GAAG;AAC/C,MAAM,GAAG,GAAG,CAAC,GAAW,KAAK,UAAU,CAAC,GAAG,CAAC,GAAG;AAE/C,MAAM,SAAS,GAAG,CAAC,SAAiB,KAAK,UAAU,CAAC,SAAS,CAAC,SAAS;AACvE,MAAM,SAAS,GAAG,CAAC,SAAiB,KAAK,UAAU,CAAC,SAAS,CAAC,SAAS;AAEvE,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB;AAC3D,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,eAAe;AACrD,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,aAAa;;AChBrD;;AAEG;;;;"}
|