mapa-library-ui 0.25.3 → 0.26.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.
Files changed (54) hide show
  1. package/esm2020/lib/core/js-brasil/index.mjs +16 -0
  2. package/esm2020/lib/core/js-brasil/src/create.mjs +455 -0
  3. package/esm2020/lib/core/js-brasil/src/createNumberMask.mjs +115 -0
  4. package/esm2020/lib/core/js-brasil/src/estados.mjs +34 -0
  5. package/esm2020/lib/core/js-brasil/src/index.mjs +34 -0
  6. package/esm2020/lib/core/js-brasil/src/inscricaoestadual.mjs +702 -0
  7. package/esm2020/lib/core/js-brasil/src/interfaces.mjs +2 -0
  8. package/esm2020/lib/core/js-brasil/src/iptu.mjs +25 -0
  9. package/esm2020/lib/core/js-brasil/src/iptu_create.mjs +60 -0
  10. package/esm2020/lib/core/js-brasil/src/iptu_mask.mjs +38 -0
  11. package/esm2020/lib/core/js-brasil/src/iptu_validate.mjs +67 -0
  12. package/esm2020/lib/core/js-brasil/src/mask.mjs +579 -0
  13. package/esm2020/lib/core/js-brasil/src/name.mjs +371 -0
  14. package/esm2020/lib/core/js-brasil/src/placa.mjs +162 -0
  15. package/esm2020/lib/core/js-brasil/src/rg.mjs +63 -0
  16. package/esm2020/lib/core/js-brasil/src/saude.mjs +62 -0
  17. package/esm2020/lib/core/js-brasil/src/utils.mjs +304 -0
  18. package/esm2020/lib/core/js-brasil/src/validate.mjs +627 -0
  19. package/esm2020/lib/core/pipes/cpf.mjs +17 -0
  20. package/esm2020/public-api.mjs +3 -1
  21. package/esm2020/src/lib/components/table/lib/components/table/public-api.mjs +2 -1
  22. package/esm2020/src/lib/components/table/lib/components/table/src/table.module.mjs +10 -3
  23. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs +31 -24
  24. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  25. package/fesm2015/mapa-library-ui.mjs +3675 -2
  26. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  27. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs +31 -24
  28. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  29. package/fesm2020/mapa-library-ui.mjs +3682 -2
  30. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  31. package/lib/core/js-brasil/index.d.ts +15 -0
  32. package/lib/core/js-brasil/src/create.d.ts +37 -0
  33. package/lib/core/js-brasil/src/createNumberMask.d.ts +13 -0
  34. package/lib/core/js-brasil/src/estados.d.ts +7 -0
  35. package/lib/core/js-brasil/src/index.d.ts +34 -0
  36. package/lib/core/js-brasil/src/inscricaoestadual.d.ts +7 -0
  37. package/lib/core/js-brasil/src/interfaces.d.ts +51 -0
  38. package/lib/core/js-brasil/src/iptu.d.ts +3 -0
  39. package/lib/core/js-brasil/src/iptu_create.d.ts +5 -0
  40. package/lib/core/js-brasil/src/iptu_mask.d.ts +2 -0
  41. package/lib/core/js-brasil/src/iptu_validate.d.ts +10 -0
  42. package/lib/core/js-brasil/src/mask.d.ts +53 -0
  43. package/lib/core/js-brasil/src/name.d.ts +9 -0
  44. package/lib/core/js-brasil/src/placa.d.ts +6 -0
  45. package/lib/core/js-brasil/src/rg.d.ts +5 -0
  46. package/lib/core/js-brasil/src/saude.d.ts +84 -0
  47. package/lib/core/js-brasil/src/utils.d.ts +71 -0
  48. package/lib/core/js-brasil/src/validate.d.ts +90 -0
  49. package/lib/core/pipes/cpf.d.ts +7 -0
  50. package/mapa-library-ui-0.26.0.tgz +0 -0
  51. package/package.json +1 -1
  52. package/public-api.d.ts +2 -0
  53. package/src/lib/components/table/lib/components/table/public-api.d.ts +1 -0
  54. package/mapa-library-ui-0.25.3.tgz +0 -0
@@ -0,0 +1,15 @@
1
+ export * from './src';
2
+ export * from './src/create';
3
+ export * from './src/estados';
4
+ export * from './src/inscricaoestadual';
5
+ export * from './src/interfaces';
6
+ export * from './src/iptu_create';
7
+ export * from './src/iptu_mask';
8
+ export * from './src/iptu_validate';
9
+ export * from './src/iptu';
10
+ export * from './src/name';
11
+ export * from './src/placa';
12
+ export * from './src/rg';
13
+ export * from './src/saude';
14
+ export * from './src/utils';
15
+ export * from './src/validate';
@@ -0,0 +1,37 @@
1
+ /**
2
+ *
3
+ * @param uf - UF do número da guia. Ex: 35(SP), 81(PE)
4
+ * @param ano - ANO do número da guia. Ex: 2018, 2019
5
+ * @param tipo - TIPO da guia. Aih = 1, APAC = 2
6
+ */
7
+ export declare function create_aih(value: string | number | any[]): string;
8
+ export declare function create_certidao(value: string): any;
9
+ export declare function create_cnhespelho(value: string): string;
10
+ export declare function create_renachestadual(value: string): string | false;
11
+ /**
12
+ *
13
+ * @param value
14
+ * @returns
15
+ */
16
+ export declare function create_renachseguranca(value: string): string | false;
17
+ /**
18
+ * Dígito verificador da CNH não é mais o módulo 11 conforme últimas resoluções
19
+ * @param value
20
+ * @returns
21
+ */
22
+ export declare function create_cnh(value: string): string | false;
23
+ export declare function create_cnpj(cnpj: string): false | number[];
24
+ export declare function create_cns(number: string): string;
25
+ export declare function create_cpf(strCPF: string): string | false;
26
+ export declare function create_cartaocredito(number: string): number;
27
+ export declare function create_ect(number: string): number;
28
+ export declare function create_pispasep(number: string): number;
29
+ export declare function create_renavam(renavam: string): number;
30
+ /**
31
+ *
32
+ * Font: http://ghiorzi.org/index.htm
33
+ * @param number
34
+ */
35
+ export declare function create_processo(number: string): string;
36
+ export declare function create_titulo_atual(titulo: string): string;
37
+ export declare function create_titulo(titNum: string): any;
@@ -0,0 +1,13 @@
1
+ export default function createNumberMask({ prefix, suffix, includeThousandsSeparator, thousandsSeparatorSymbol, allowDecimal, decimalSymbol, decimalLimit, requireDecimal, allowNegative, allowLeadingZeroes, integerLimit, }?: {
2
+ prefix?: string | undefined;
3
+ suffix?: string | undefined;
4
+ includeThousandsSeparator?: boolean | undefined;
5
+ thousandsSeparatorSymbol?: string | undefined;
6
+ allowDecimal?: boolean | undefined;
7
+ decimalSymbol?: string | undefined;
8
+ decimalLimit?: number | undefined;
9
+ requireDecimal?: boolean | undefined;
10
+ allowNegative?: boolean | undefined;
11
+ allowLeadingZeroes?: boolean | undefined;
12
+ integerLimit?: null | undefined;
13
+ }): (rawValue?: string) => (string | RegExp)[];
@@ -0,0 +1,7 @@
1
+ export declare const ESTADOS_SIGLA: any;
2
+ export type EstadosType = 'ac' | 'al' | 'am' | 'ap' | 'ba' | 'ce' | 'df' | 'es' | 'go' | 'ma' | 'mg' | 'ms' | 'mt' | 'pa' | 'pb' | 'pe' | 'pi' | 'pr' | 'rj' | 'rn' | 'ro' | 'rr' | 'rs' | 'sc' | 'se' | 'sp' | 'to';
3
+ export declare const ESTADOS: {
4
+ name: string;
5
+ shortname: string;
6
+ slug: string;
7
+ }[];
@@ -0,0 +1,34 @@
1
+ import { isPresent, isArray, isString, isNumber, isNil, processCaretTraps, allNumbersAreSame, getAllDigits, getAllWords, currencyToNumber, numberToCurrency, slugify, fillString, randArray, rand, randomNumber, randomLetter, randomLetterOrNumber, getSpecialProperty } from './utils';
2
+ export { validateBr } from './validate';
3
+ import { BigObject } from './interfaces';
4
+ export declare const utilsBr: {
5
+ isPresent: typeof isPresent;
6
+ isArray: typeof isArray;
7
+ isString: typeof isString;
8
+ isNumber: typeof isNumber;
9
+ isNil: typeof isNil;
10
+ processCaretTraps: typeof processCaretTraps;
11
+ allNumbersAreSame: typeof allNumbersAreSame;
12
+ getAllDigits: typeof getAllDigits;
13
+ getAllWords: typeof getAllWords;
14
+ currencyToNumber: typeof currencyToNumber;
15
+ modulo11: (value: string) => number;
16
+ numberToCurrency: typeof numberToCurrency;
17
+ slugify: typeof slugify;
18
+ fillString: typeof fillString;
19
+ randArray: typeof randArray;
20
+ rand: typeof rand;
21
+ randomNumber: typeof randomNumber;
22
+ randomLetter: typeof randomLetter;
23
+ randomLetterOrNumber: typeof randomLetterOrNumber;
24
+ getSpecialProperty: typeof getSpecialProperty;
25
+ MASKS: BigObject<import("./interfaces").MaskType>;
26
+ MASKSIE: BigObject<import("./interfaces").MaskType>;
27
+ PLACAS_RANGE: string[][];
28
+ ESTADOS: {
29
+ name: string;
30
+ shortname: string;
31
+ slug: string;
32
+ }[];
33
+ };
34
+ export declare const maskBr: BigObject<Function>;
@@ -0,0 +1,7 @@
1
+ import { BigObject, MaskType } from './interfaces';
2
+ /**
3
+ * BASED ON https://github.com/gammasoft/ie/
4
+ */
5
+ export declare const generateInscricaoEstadual: BigObject<Function>;
6
+ export declare function validate_inscricaoestadual(ie: string | Array<string>, estado: any): any;
7
+ export declare const MASKSIE: BigObject<MaskType>;
@@ -0,0 +1,51 @@
1
+ export interface BigObject<T> {
2
+ [index: string]: T;
3
+ }
4
+ export interface MaskType {
5
+ text?: string;
6
+ textMask: false | (string | RegExp)[] | ((raw: string) => (string | RegExp)[]);
7
+ numberToString?: Function;
8
+ textMaskFunction?: Function;
9
+ }
10
+ export interface Masks {
11
+ aih: MaskType;
12
+ cartaocredito: MaskType;
13
+ celular: MaskType;
14
+ cep: MaskType;
15
+ certidao: MaskType;
16
+ chassi: MaskType;
17
+ cid: MaskType;
18
+ cnae: MaskType;
19
+ cnh: MaskType;
20
+ cnhespelho: MaskType;
21
+ renachestadual: MaskType;
22
+ renachseguranca: MaskType;
23
+ cnpj: MaskType;
24
+ cns: MaskType;
25
+ contabanco: MaskType;
26
+ cpf: MaskType;
27
+ cpfcnpj: MaskType;
28
+ currency: MaskType;
29
+ data: MaskType;
30
+ datahora: MaskType;
31
+ date: MaskType;
32
+ datetime: MaskType;
33
+ ect: MaskType;
34
+ endereco: MaskType;
35
+ iptu: MaskType;
36
+ number: MaskType;
37
+ porcentagem: MaskType;
38
+ pispasep: MaskType;
39
+ placa: MaskType;
40
+ processo: MaskType;
41
+ renavam: MaskType;
42
+ rg: MaskType;
43
+ sped: MaskType;
44
+ telefone: MaskType;
45
+ time: MaskType;
46
+ titulo: MaskType;
47
+ utils: MaskType;
48
+ }
49
+ export interface MasksIE {
50
+ [index: string]: MaskType;
51
+ }
@@ -0,0 +1,3 @@
1
+ export declare const create_iptu: (number: string, estado: string | number, cidade: string | number) => any;
2
+ export declare const mask_iptu: (number: string, estado: string, cidade: string) => string | import("mapa-library-ui").MaskType;
3
+ export declare const validate_iptu: (number: string, estado: string | number, cidade: string | number) => any;
@@ -0,0 +1,5 @@
1
+ import { BigObject } from './interfaces';
2
+ export declare function create_iptu_ctba(number: string): number;
3
+ export declare function create_iptu_sp(number: string): number;
4
+ export declare const faker_iptu: (estado: string | number, cidade: string | number) => any;
5
+ export declare const IPTUCREATE: BigObject<BigObject<Function>>;
@@ -0,0 +1,2 @@
1
+ import { BigObject, MaskType } from './interfaces';
2
+ export declare const IPTUMASKS: BigObject<BigObject<MaskType>>;
@@ -0,0 +1,10 @@
1
+ import { BigObject } from './interfaces';
2
+ export declare function validate_iptu_ctba(value: string | any[]): boolean;
3
+ /**
4
+ * Índice Cadastral, ou inscrição imobiliária, é o número de identificação do imóvel no cadastro da Prefeitura de Contagem.
5
+ * O índice é composto por 12 (doze) ou 13 (treze) números, sendo: 2 (dois) para a zona fiscal;
6
+ * 3 (três) ou 4 (quatro) para a quadra fiscal; 4 (quatro) para o lote fiscal; e 3 (três) para a unidade.
7
+ */
8
+ export declare function validate_iptu_contagem(number: any): boolean;
9
+ export declare function validate_iptu_sp(value: string | any[]): boolean;
10
+ export declare const IPTUVALIDATE: BigObject<BigObject<Function>>;
@@ -0,0 +1,53 @@
1
+ import { BigObject, MaskType } from './interfaces';
2
+ export { MASKSIE } from './inscricaoestadual';
3
+ export declare const MASKS: BigObject<MaskType>;
4
+ export declare const maskBr: {
5
+ aih: (value: string) => string;
6
+ celular: (value: string) => string;
7
+ cep: (value: string) => string;
8
+ certidao: (value: string) => string;
9
+ chassi: (value: string) => string;
10
+ cnae: (value: string) => string;
11
+ cnh: (value: string) => string;
12
+ renachseguranca: (value: string) => string;
13
+ renachestadual: (value: string) => string;
14
+ cnhespelho: (value: string) => string;
15
+ cnpj: (value: string) => string;
16
+ cns: (value: string) => string;
17
+ contabanco: (value: string) => string;
18
+ cpf: (value: string) => string;
19
+ cpfcnpj: (value: string) => string;
20
+ cartaocredito: (value: string) => string;
21
+ currency: (currencyValueInput: string | number, decimalsFormat?: number) => string;
22
+ data: (value: string) => string;
23
+ date: (value: string) => string;
24
+ datetime: (value: string) => string;
25
+ datahora: (value: string) => string;
26
+ ect: (value: string) => string;
27
+ endereco: (value: string) => string;
28
+ inscricaoestadual: (inscricaoestadualValue: string, estado: string) => string;
29
+ iptu: (iptuValue: string, estado: string, cidade: string) => string;
30
+ number: (numberValue: any, decimalsFormat?: number) => string;
31
+ porcentagem: (porcentagemValue: string, decimalsFormat?: number) => string;
32
+ pispasep: (value: string) => string;
33
+ placa: (value: string) => string;
34
+ processo: (value: string) => string;
35
+ renavam: (value: string) => string;
36
+ rg: (value: string) => string;
37
+ sped: (value: string) => string;
38
+ telefone: (value: string) => string;
39
+ time: (value: string | Date) => string;
40
+ titulo: (value: string) => string;
41
+ };
42
+ /**
43
+ * FROM TEXT-MASK
44
+ */
45
+ export declare const placeholderChar = "_";
46
+ export declare const strFunction = "function";
47
+ export declare function conformToMask(inputValue?: String | Date, mask?: any, config?: any): {
48
+ conformedValue: string;
49
+ meta: {
50
+ someCharsRejected: boolean;
51
+ };
52
+ };
53
+ export declare function convertMaskToPlaceholder(mask?: any, placeholderChar?: string): any;
@@ -0,0 +1,9 @@
1
+ export declare const LOCALIZACAO_RUAS: string[];
2
+ export declare const LOCALIZACAO_LOGRADOUROS: string[];
3
+ export declare const LOCALIZACAO_COMPLEMENTOS: string[];
4
+ export declare const LOCALIZACAO_BAIRROS: string[];
5
+ export declare const LOCALIZACAO_ESTADOS: {
6
+ nome: string;
7
+ uf: string;
8
+ }[];
9
+ export declare const LOCALIZACAO_CIDADES: string[][];
@@ -0,0 +1,6 @@
1
+ export declare const PLACAS_RANGE: string[][];
2
+ export declare const PLACAS_INVALID: {
3
+ start: string;
4
+ end: string;
5
+ };
6
+ export declare function validate_placa(placa: string | number, incluiMercosul?: boolean): boolean;
@@ -0,0 +1,5 @@
1
+ import { BigObject } from './interfaces';
2
+ export declare function rg_sp(number: string): any;
3
+ export declare function rg_rj(number: string): number;
4
+ declare const RG: BigObject<Function>;
5
+ export default RG;
@@ -0,0 +1,84 @@
1
+ export declare const AIH_ESTADOS: {
2
+ AC: string;
3
+ AL: string;
4
+ AP: string;
5
+ AM: string;
6
+ BA: string;
7
+ CE: string;
8
+ DF: string;
9
+ ES: string;
10
+ GO: string;
11
+ MA: string;
12
+ MT: string;
13
+ MS: string;
14
+ MG: string;
15
+ PA: string;
16
+ PB: string;
17
+ PR: string;
18
+ PE: string;
19
+ PI: string;
20
+ RJ: string;
21
+ RN: string;
22
+ RS: string;
23
+ RO: string;
24
+ RR: string;
25
+ SC: string;
26
+ SP: string;
27
+ SE: string;
28
+ TO: string;
29
+ };
30
+ export declare const AIH_TIPOS: {
31
+ '1': string;
32
+ '2': string;
33
+ '3': string;
34
+ '4': string;
35
+ '5': string;
36
+ };
37
+ export declare const CID_NAME: {
38
+ 'A00-B99': string;
39
+ 'C00-D48': string;
40
+ 'D50-D89': string;
41
+ 'E00-E90': string;
42
+ 'F00-F99': string;
43
+ 'G00-G99': string;
44
+ 'H00-H59': string;
45
+ 'H60-H95': string;
46
+ 'I00-I99': string;
47
+ 'J00-J99': string;
48
+ 'K00-K93': string;
49
+ 'L00-L99': string;
50
+ 'M00-M99': string;
51
+ 'N00-N99': string;
52
+ 'O00-O99': string;
53
+ 'P00-P96': string;
54
+ 'Q00-Q99': string;
55
+ 'R00-R99': string;
56
+ 'S00-T98': string;
57
+ 'V01-Y98': string;
58
+ 'Z00-Z99': string;
59
+ 'U00-U99': string;
60
+ };
61
+ export declare const CID_REGEX: {
62
+ 'A00-B99': RegExp;
63
+ 'C00-D48': RegExp;
64
+ 'D50-D89': RegExp;
65
+ 'E00-E90': RegExp;
66
+ 'F00-F99': RegExp;
67
+ 'G00-G99': RegExp;
68
+ 'H00-H59': RegExp;
69
+ 'H60-H95': RegExp;
70
+ 'I00-I99': RegExp;
71
+ 'J00-J99': RegExp;
72
+ 'K00-K93': RegExp;
73
+ 'L00-L99': RegExp;
74
+ 'M00-M99': RegExp;
75
+ 'N00-N99': RegExp;
76
+ 'O00-O99': RegExp;
77
+ 'P00-P96': RegExp;
78
+ 'Q00-Q99': RegExp;
79
+ 'R00-R99': RegExp;
80
+ 'S00-T98': RegExp;
81
+ 'V01-Y98': RegExp;
82
+ 'Z00-Z99': RegExp;
83
+ 'U00-U99': RegExp;
84
+ };
@@ -0,0 +1,71 @@
1
+ import { BigObject } from './interfaces';
2
+ export declare function isPresent(obj: any): boolean;
3
+ export declare function isArray(value: any): boolean;
4
+ export declare function isString(value: any): boolean;
5
+ export declare function isNumber(value: any): boolean;
6
+ export declare function isNil(value: any): boolean;
7
+ export declare function processCaretTraps(mask: any): {
8
+ maskWithoutCaretTraps: any;
9
+ indexes: number[];
10
+ };
11
+ export declare const modulo11: (value: string) => number;
12
+ export declare const modulo11Custom: (string: string, size: number, maxMult?: number, by10?: boolean) => string;
13
+ export declare const modulo11a: (string: string, size: number, mod: number) => number;
14
+ /**
15
+ *
16
+ * @param input
17
+ * ^ - Match line start
18
+ (\d) - match first digit and capture it in back reference #1 i.e. \1
19
+ (?!..) is a negative lookahead
20
+ (?!\1+$) means disallow the match if first digit is followed by same digit (captured group) till end.
21
+ \d{11}$ match next 11 digit followed by line end
22
+ */
23
+ export declare function allNumbersAreSame(inputValue: string): boolean;
24
+ export declare function getAllDigits(input: string): string;
25
+ export declare function getAllWords(input: string): string;
26
+ export declare function currencyToNumber(input: string | number): number;
27
+ export declare function numberToCurrency(value: number): string;
28
+ export declare function slugify(value: string): string;
29
+ /**
30
+ *
31
+ * @param string ex. 12345
32
+ * @param size 11
33
+ * @param fill 0
34
+ *
35
+ * Returns: 00000012345
36
+ */
37
+ export declare function fillString(string: string, size: number, fill: string): string;
38
+ export declare function randArray(array: string | any[]): any;
39
+ export declare function rand(length: number, ...ranges: any[]): string;
40
+ export declare function randomNumber(begin: number, end: number): number;
41
+ export declare function randomLetter(size?: number, onlyCapitals?: boolean): string;
42
+ export declare function randomLetterOrNumber(size?: number, onlyCapitals?: boolean): string;
43
+ export declare const randomEstadoSigla: () => any;
44
+ export declare const CORES: string[];
45
+ export declare function getSpecialProperty<TModel, TKey extends keyof TModel>(model: TModel, key: TKey): TModel[TKey];
46
+ /**
47
+ *
48
+ */
49
+ export declare const makeGenericFaker: (val: any, options?: BigObject<Function> | null) => () => any;
50
+ declare const utilsBr: {
51
+ isPresent: typeof isPresent;
52
+ isArray: typeof isArray;
53
+ isString: typeof isString;
54
+ isNumber: typeof isNumber;
55
+ isNil: typeof isNil;
56
+ processCaretTraps: typeof processCaretTraps;
57
+ allNumbersAreSame: typeof allNumbersAreSame;
58
+ getAllDigits: typeof getAllDigits;
59
+ getAllWords: typeof getAllWords;
60
+ currencyToNumber: typeof currencyToNumber;
61
+ numberToCurrency: typeof numberToCurrency;
62
+ slugify: typeof slugify;
63
+ fillString: typeof fillString;
64
+ randArray: typeof randArray;
65
+ rand: typeof rand;
66
+ randomNumber: typeof randomNumber;
67
+ randomLetter: typeof randomLetter;
68
+ randomLetterOrNumber: typeof randomLetterOrNumber;
69
+ getSpecialProperty: typeof getSpecialProperty;
70
+ };
71
+ export default utilsBr;
@@ -0,0 +1,90 @@
1
+ import { BigObject } from './interfaces';
2
+ export declare function validate_aih(aih: string): boolean;
3
+ export declare function validate_celular(cel: any): boolean;
4
+ export declare const CEPRange: BigObject<RegExp>;
5
+ export declare function validate_cep(cep: string): boolean;
6
+ export declare function cep_ranges(cep: string | number): boolean;
7
+ export declare function validate_certidao(value: string): boolean;
8
+ /**
9
+ *
10
+ * @param chassi
11
+ */
12
+ export declare function validate_chassi(chassi: string): boolean;
13
+ /**
14
+ *
15
+ * II - Número do Espelho da CNH - segundo número de identificação nacional,
16
+ * que será formado por 9 (nove) caracteres mais 1 (um) dígito verificador de segurança,
17
+ * autorizado e controlado pelo DENATRAN, e identificará cada espelho de CNH expedida.
18
+ * https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-denatran/resolucoes-contran
19
+ * https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao5112014.pdf
20
+ * 598: https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao59820162.pdf
21
+ * @param value
22
+ */
23
+ export declare function validate_cnhespelho(value: string): boolean;
24
+ /**
25
+ *
26
+ * III – Número do formulário RENACH - número de identificação
27
+ * estadual, documento de coleta de dados do candidato/condutor gerado a cada serviço,
28
+ * composto, obrigatoriamente, por 11 (onze) caracteres, sendo as duas primeiras
29
+ * posições formadas pela sigla da Unidade de Federação expedidora, facultada a
30
+ * utilização da última posição como dígito verificador de segurança.
31
+ * a) O número do formulário RENACH identificará a Unidade da
32
+ * Federação onde o condutor foi habilitado ou realizou alterações de dados no seu
33
+ * cadastro pela última vez.
34
+ * b) O Formulário RENACH que dá origem às informações na
35
+ * BINCO e autorização para a impressão da CNH deverá ficar arquivado em seg
36
+ * 598 - https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao59820162.pdf
37
+ * 718 - https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao7182017.pdf
38
+ * @param value
39
+ */
40
+ export declare function validate_renachestadual(value: string): boolean;
41
+ export declare function validate_renachseguranca(value: string): boolean;
42
+ /**
43
+ * BINCO
44
+ * I – o primeiro número de identificação nacional – Registro Nacional,
45
+ * será gerado pelo sistema informatizado da Base Índice Nacional de Condutores –
46
+ * BINCO, composto de 9 (nove) caracteres mais 2 (dois) dígitos verificadores de
47
+ * segurança, sendo único para cada condutor e o acompanhará durante toda a
48
+ * sua existência como condutor, não sendo permitida a sua reutilização para
49
+ * outro condutor.
50
+ * @param value
51
+ * @returns
52
+ */
53
+ export declare function validate_cnh(value: string): boolean;
54
+ export declare function validate_cnpj(cnpj: any): boolean;
55
+ /**
56
+ * Referencia: http://www.receita.fazenda.gov.br/aplicacoes/atcta/funcoes.js
57
+ * @param strCPF
58
+ * @returns
59
+ */
60
+ export declare function validate_cpf(strCPF: any): boolean;
61
+ export declare function validate_cns(value: string): boolean;
62
+ export declare function validate_cartaocredito(input: string | number): boolean;
63
+ /**
64
+ * A hash of valid CC abbreviations and regular expressions
65
+ mc: Mastercard
66
+ ec: Eurocard
67
+ vi: Visa
68
+ ax: American Express
69
+ dc: Diners Club
70
+ bl: Carte Blanch
71
+ di: Discover
72
+ jcb: JCB
73
+ er: Enroute
74
+ */
75
+ export declare const creditCardValidator: BigObject<RegExp>;
76
+ export declare function validate_currency(currency: string | number): boolean;
77
+ export declare function validate_datetime(time: string | number, options?: any): boolean;
78
+ export declare function validate_datahora(time: string | number, options?: any): boolean;
79
+ export declare function validate_ect(number: string): boolean;
80
+ export declare function validate_number(number: string): boolean;
81
+ export declare function validate_porcentagem(porcentagem: string): boolean;
82
+ export declare function validate_processo(processo: any): boolean;
83
+ export declare function validate_pispasep(number: string): boolean;
84
+ export declare function validate_renavam(renavam: any): boolean;
85
+ export declare function validate_rg(rg: string): any;
86
+ export declare function validate_sped(sped: string): boolean;
87
+ export declare function validate_telefone(tel: any): boolean;
88
+ export declare function validate_time(time: string | number, options?: any): boolean;
89
+ export declare function validate_titulo(titulo: any): boolean;
90
+ export declare const validateBr: BigObject<Function>;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class CPFPipe implements PipeTransform {
4
+ transform(cpfValue: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CPFPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<CPFPipe, "cpf", false>;
7
+ }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "0.25.3",
3
+ "version": "0.26.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0"
package/public-api.d.ts CHANGED
@@ -10,3 +10,5 @@ export * from './lib/core/interfaces/dialog-data.interface';
10
10
  export * from './lib/core/interfaces/element-option.interface';
11
11
  export * from './lib/core/directives/mat-input-autosize.directive';
12
12
  export * from './lib/core/directives/custom-paginator-legacy.directive';
13
+ export * from './lib/core/pipes/cpf';
14
+ export * from './lib/core/js-brasil';
@@ -1,2 +1,3 @@
1
+ export * from '../table/src/paginator_customization';
1
2
  export * from '../table/src/table.component';
2
3
  export * from '../table/src/table.module';
Binary file