@designliquido/foles 0.3.2 → 0.3.4
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/README.md +4 -4
- package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +3 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +93 -58
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/lexador/lexador.d.ts +1 -0
- package/fontes/lexador/lexador.js +67 -27
- package/fontes/lexador/lexador.js.map +1 -1
- package/fontes/lexador/palavras-reservadas/foles.d.ts +12 -0
- package/fontes/lexador/palavras-reservadas/foles.js +15 -2
- package/fontes/lexador/palavras-reservadas/foles.js.map +1 -1
- package/fontes/modificadores/animacao.d.ts +5 -2
- package/fontes/modificadores/animacao.js +21 -5
- package/fontes/modificadores/animacao.js.map +1 -1
- package/fontes/modificadores/borda-mascara.js +5 -4
- package/fontes/modificadores/borda-mascara.js.map +1 -1
- package/fontes/modificadores/configuracoes-variacao-fonte.d.ts +5 -2
- package/fontes/modificadores/configuracoes-variacao-fonte.js +12 -2
- package/fontes/modificadores/configuracoes-variacao-fonte.js.map +1 -1
- package/fontes/modificadores/conteudo.d.ts +5 -2
- package/fontes/modificadores/conteudo.js +20 -2
- package/fontes/modificadores/conteudo.js.map +1 -1
- package/fontes/modificadores/cor-barra-rolagem.d.ts +5 -2
- package/fontes/modificadores/cor-barra-rolagem.js +8 -2
- package/fontes/modificadores/cor-barra-rolagem.js.map +1 -1
- package/fontes/modificadores/deslocamento.d.ts +5 -2
- package/fontes/modificadores/deslocamento.js +13 -1
- package/fontes/modificadores/deslocamento.js.map +1 -1
- package/fontes/modificadores/dicionario/dicionario-modificadores.d.ts +1 -2
- package/fontes/modificadores/dicionario/dicionario-modificadores.js.map +1 -1
- package/fontes/modificadores/estilo-lista-imagem.d.ts +3 -0
- package/fontes/modificadores/estilo-lista-imagem.js +8 -1
- package/fontes/modificadores/estilo-lista-imagem.js.map +1 -1
- package/fontes/modificadores/estilo-lista-tipo.js +1 -1
- package/fontes/modificadores/estilo-lista-tipo.js.map +1 -1
- package/fontes/modificadores/estilo-lista.js +2 -1
- package/fontes/modificadores/estilo-lista.js.map +1 -1
- package/fontes/modificadores/fatiar-imagem-borda.js +2 -1
- package/fontes/modificadores/fatiar-imagem-borda.js.map +1 -1
- package/fontes/modificadores/filtro-fundo.d.ts +5 -2
- package/fontes/modificadores/filtro-fundo.js +11 -2
- package/fontes/modificadores/filtro-fundo.js.map +1 -1
- package/fontes/modificadores/filtro.d.ts +3 -0
- package/fontes/modificadores/filtro.js +14 -1
- package/fontes/modificadores/filtro.js.map +1 -1
- package/fontes/modificadores/forma-externa.js +2 -1
- package/fontes/modificadores/forma-externa.js.map +1 -1
- package/fontes/modificadores/imagem-fundo.d.ts +2 -1
- package/fontes/modificadores/imagem-fundo.js +8 -2
- package/fontes/modificadores/imagem-fundo.js.map +1 -1
- package/fontes/modificadores/imagem-mascara.d.ts +3 -0
- package/fontes/modificadores/imagem-mascara.js +13 -1
- package/fontes/modificadores/imagem-mascara.js.map +1 -1
- package/fontes/modificadores/modelo-colunas-em-grade.d.ts +5 -2
- package/fontes/modificadores/modelo-colunas-em-grade.js +22 -2
- package/fontes/modificadores/modelo-colunas-em-grade.js.map +1 -1
- package/fontes/modificadores/modelo-em-grade.d.ts +5 -2
- package/fontes/modificadores/modelo-em-grade.js +26 -2
- package/fontes/modificadores/modelo-em-grade.js.map +1 -1
- package/fontes/modificadores/modelo-geral-em-grade.d.ts +5 -2
- package/fontes/modificadores/modelo-geral-em-grade.js +13 -2
- package/fontes/modificadores/modelo-geral-em-grade.js.map +1 -1
- package/fontes/modificadores/modelo-linhas-em-grade.d.ts +5 -2
- package/fontes/modificadores/modelo-linhas-em-grade.js +22 -2
- package/fontes/modificadores/modelo-linhas-em-grade.js.map +1 -1
- package/fontes/modificadores/origem-borda-mascara.js +2 -1
- package/fontes/modificadores/origem-borda-mascara.js.map +1 -1
- package/fontes/modificadores/recursos-fonte.d.ts +5 -2
- package/fontes/modificadores/recursos-fonte.js +10 -2
- package/fontes/modificadores/recursos-fonte.js.map +1 -1
- package/fontes/modificadores/sombra-texto.d.ts +2 -2
- package/fontes/modificadores/sombra-texto.js +11 -2
- package/fontes/modificadores/sombra-texto.js.map +1 -1
- package/fontes/modificadores/substituir-idioma-fonte.d.ts +5 -2
- package/fontes/modificadores/substituir-idioma-fonte.js +11 -2
- package/fontes/modificadores/substituir-idioma-fonte.js.map +1 -1
- package/fontes/modificadores/superclasse/modificador.d.ts +2 -1
- package/fontes/modificadores/superclasse/modificador.js.map +1 -1
- package/fontes/modificadores/trajeto-deslocamento.d.ts +5 -2
- package/fontes/modificadores/trajeto-deslocamento.js +16 -2
- package/fontes/modificadores/trajeto-deslocamento.js.map +1 -1
- package/fontes/modificadores/transformar.d.ts +5 -2
- package/fontes/modificadores/transformar.js +11 -2
- package/fontes/modificadores/transformar.js.map +1 -1
- package/fontes/modificadores/validacoes/comum.js +1 -2
- package/fontes/modificadores/validacoes/comum.js.map +1 -1
- package/fontes/modificadores/validacoes/cor.d.ts +2 -1
- package/fontes/modificadores/validacoes/cor.js +47 -52
- package/fontes/modificadores/validacoes/cor.js.map +1 -1
- package/fontes/modificadores/validacoes/numerica.js +1 -2
- package/fontes/modificadores/validacoes/numerica.js.map +1 -1
- package/fontes/tipos-de-simbolos/foles.d.ts +2 -0
- package/fontes/tipos-de-simbolos/foles.js +2 -0
- package/fontes/tipos-de-simbolos/foles.js.map +1 -1
- package/fontes/tradutor/tradutor.js +4 -18
- package/fontes/tradutor/tradutor.js.map +1 -1
- package/fontes/valores/metodos/curva-cubica.d.ts +1 -1
- package/fontes/valores/metodos/curva-cubica.js +1 -1
- package/fontes/valores/metodos/curva-cubica.js.map +1 -1
- package/fontes/valores/metodos/encaixar-conteudo.d.ts +2 -1
- package/fontes/valores/metodos/encaixar-conteudo.js +2 -1
- package/fontes/valores/metodos/encaixar-conteudo.js.map +1 -1
- package/fontes/valores/metodos/hex.d.ts +1 -1
- package/fontes/valores/metodos/hex.js +1 -1
- package/fontes/valores/metodos/hex.js.map +1 -1
- package/fontes/valores/metodos/hsl.d.ts +1 -1
- package/fontes/valores/metodos/hsl.js +1 -1
- package/fontes/valores/metodos/hsl.js.map +1 -1
- package/fontes/valores/metodos/hsla.d.ts +1 -1
- package/fontes/valores/metodos/hsla.js +1 -1
- package/fontes/valores/metodos/hsla.js.map +1 -1
- package/fontes/valores/metodos/limitar.d.ts +2 -1
- package/fontes/valores/metodos/limitar.js +2 -1
- package/fontes/valores/metodos/limitar.js.map +1 -1
- package/fontes/valores/metodos/linear.d.ts +2 -1
- package/fontes/valores/metodos/linear.js +2 -1
- package/fontes/valores/metodos/linear.js.map +1 -1
- package/fontes/valores/metodos/metodo.d.ts +1 -0
- package/fontes/valores/metodos/minmax.d.ts +3 -2
- package/fontes/valores/metodos/minmax.js +5 -4
- package/fontes/valores/metodos/minmax.js.map +1 -1
- package/fontes/valores/metodos/passos.d.ts +2 -1
- package/fontes/valores/metodos/passos.js +2 -1
- package/fontes/valores/metodos/passos.js.map +1 -1
- package/fontes/valores/metodos/rgb.d.ts +1 -1
- package/fontes/valores/metodos/rgb.js +1 -1
- package/fontes/valores/metodos/rgb.js.map +1 -1
- package/fontes/valores/metodos/rgba.d.ts +1 -1
- package/fontes/valores/metodos/rgba.js +1 -1
- package/fontes/valores/metodos/rgba.js.map +1 -1
- package/fontes/valores/metodos/url.d.ts +2 -1
- package/fontes/valores/metodos/url.js +2 -1
- package/fontes/valores/metodos/url.js.map +1 -1
- package/package.json +1 -1
- package/testes/listas/cores.d.ts +1 -0
- package/testes/listas/cores.js +28 -2
- package/testes/listas/cores.js.map +1 -1
- package/testes/listas/metodos.d.ts +1 -0
- package/testes/listas/metodos.js +38 -2
- package/testes/listas/metodos.js.map +1 -1
- package/testes/listas/palavras-reservadas.js +0 -1
- package/testes/listas/palavras-reservadas.js.map +1 -1
- package/testes/listas/status.js +7 -0
- package/testes/listas/status.js.map +1 -1
- package/testes/listas/url.d.ts +1 -0
- package/testes/listas/url.js +23 -1
- package/testes/listas/url.js.map +1 -1
- package/testes/listas/valor-global.js +0 -2
- package/testes/listas/valor-global.js.map +1 -1
- package/testes/listas/valor-quantificador.js +2 -0
- package/testes/listas/valor-quantificador.js.map +1 -1
- package/testes/modificadores/cores.test.js +15 -25
- package/testes/modificadores/cores.test.js.map +1 -1
- package/testes/modificadores/metodos.test.js +20 -34
- package/testes/modificadores/metodos.test.js.map +1 -1
- package/testes/modificadores/url.test.js +15 -17
- package/testes/modificadores/url.test.js.map +1 -1
|
@@ -1,65 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validarValorCor = void 0;
|
|
4
|
+
const hex_1 = require("../../valores/metodos/hex");
|
|
5
|
+
const metodo_1 = require("../../valores/metodos/metodo");
|
|
4
6
|
const cores_1 = require("../atributos/cores");
|
|
5
7
|
const globais_1 = require("../atributos/globais");
|
|
6
8
|
function validarValorCor(nomePropriedade, valor, valoresAceitos, valoresExtra) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (valoresAceitos === undefined && valoresExtra === undefined) {
|
|
14
|
-
if (!(valor in cores_1.cores) &&
|
|
15
|
-
validaçõesCor &&
|
|
16
|
-
validaçõesHEX &&
|
|
17
|
-
!(valor in globais_1.valoresGlobais)) {
|
|
18
|
-
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
19
|
-
rgb(), rgba(), hsl(), hsla(), #hex,
|
|
20
|
-
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
21
|
-
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
9
|
+
if (valor instanceof metodo_1.Metodo) {
|
|
10
|
+
if (valor instanceof hex_1.Hex) {
|
|
11
|
+
if (valor['codigo'].length !== 3 && valor['codigo'].length !== 6) {
|
|
12
|
+
throw new Error(`Propriedade '${nomePropriedade}' com hexadecimal inválido: '${valor['codigo']}'. Hexadecimais
|
|
13
|
+
devem ter 3 ou 6 caracteres após a cerquilha, sendo cada caracter de 0 até 9 ou de A até F.`);
|
|
14
|
+
}
|
|
22
15
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
validaçõesCor &&
|
|
27
|
-
validaçõesHEX &&
|
|
28
|
-
!(valor in valoresExtra) &&
|
|
29
|
-
!(valor in globais_1.valoresGlobais)) {
|
|
30
|
-
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
31
|
-
rgb(), rgba(), hsl(), hsla(), #hex,
|
|
32
|
-
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
33
|
-
${Object.keys(valoresExtra).reduce((final, atual) => final += `, ${atual}`)},
|
|
34
|
-
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
16
|
+
else if (!['rgb', 'rgba', 'hsl', 'hsla'].includes(valor.constructor.name.toLowerCase())) {
|
|
17
|
+
throw new Error(`Propriedade '${nomePropriedade}' com método '${valor.constructor.name}' inválido. Valores aceitos:
|
|
18
|
+
rgb(), rgba(), hsl(), hsla().`);
|
|
35
19
|
}
|
|
36
20
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
21
|
+
else {
|
|
22
|
+
// Cores pelo nome.
|
|
23
|
+
if (valoresAceitos === undefined) {
|
|
24
|
+
if (valoresExtra === undefined) {
|
|
25
|
+
if (!(valor in cores_1.cores) && !(valor in globais_1.valoresGlobais)) {
|
|
26
|
+
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
27
|
+
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
28
|
+
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
if (!(valor in cores_1.cores) && !(valor in valoresExtra) && !(valor in globais_1.valoresGlobais)) {
|
|
33
|
+
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
34
|
+
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
35
|
+
${Object.keys(valoresExtra).reduce((final, atual) => final += `, ${atual}`)},
|
|
36
|
+
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
48
39
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
else {
|
|
41
|
+
if (valoresExtra === undefined) {
|
|
42
|
+
if (!(valor in cores_1.cores) && !(valor in valoresAceitos) && !(valor in globais_1.valoresGlobais)) {
|
|
43
|
+
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
44
|
+
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
45
|
+
${Object.keys(valoresAceitos).reduce((final, atual) => final += `, ${atual}`)},
|
|
46
|
+
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
if (!(valor in cores_1.cores) && !(valor in valoresAceitos) && !(valor in valoresExtra) && !(valor in globais_1.valoresGlobais)) {
|
|
51
|
+
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
52
|
+
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
53
|
+
${Object.keys(valoresAceitos).reduce((final, atual) => final += `, ${atual}`)},
|
|
54
|
+
${Object.keys(valoresExtra).reduce((final, atual) => final += `, ${atual}`)},
|
|
55
|
+
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cor.js","sourceRoot":"","sources":["../../../../fontes/modificadores/validacoes/cor.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,kDAAsD;AAEtD,SAAgB,eAAe,CAC3B,eAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"cor.js","sourceRoot":"","sources":["../../../../fontes/modificadores/validacoes/cor.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,yDAAsD;AACtD,8CAA2C;AAC3C,kDAAsD;AAEtD,SAAgB,eAAe,CAC3B,eAAuB,EACvB,KAAsB,EACtB,cAAiD,EACjD,YAA+C;IAC/C,IAAI,KAAK,YAAY,eAAM,EAAE;QACzB,IAAI,KAAK,YAAY,SAAG,EAAE;YACtB,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9D,MAAM,IAAI,KAAK,CAAC,gBAAgB,eAAe,gCAAgC,KAAK,CAAC,QAAQ,CAAC;gHACE,CAAC,CAAC;aACrG;SACJ;aAAM,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE;YACvF,MAAM,IA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CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;sCAC3E,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;sCACzE,MAAM,CAAC,IAAI,CAAC,wBAAc,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;iBACrG;aACJ;SACJ;KACJ;AACL,CAAC;AAnDD,0CAmDC"}
|
|
@@ -22,11 +22,10 @@ function validarValorNumerico(nomePropriedade, valor, valoresAceitos, valoresExt
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
if (valoresAceitos !== undefined && valoresExtra !== undefined) {
|
|
25
|
-
const valorString = valor.toString();
|
|
26
25
|
let metodoValido = false;
|
|
27
26
|
for (let index = 0; index < valoresExtra.length; index++) {
|
|
28
27
|
if (metodoValido === false) {
|
|
29
|
-
metodoValido =
|
|
28
|
+
metodoValido = valor['traducao'] === valoresExtra[index];
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
if (Number.isNaN(parseInt(valor)) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numerica.js","sourceRoot":"","sources":["../../../../fontes/modificadores/validacoes/numerica.ts"],"names":[],"mappings":";;;AAAA,kDAAsD;AAEtD,SAAgB,oBAAoB,CAChC,eAAuB,EACvB,KAAU,EACV,cAAiD,EACjD,YAAkB;IAElB,IAAI,cAAc,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,EAAE;QAC5D,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC,CAAC,KAAK,IAAI,wBAAc,CAAC,EAC5B;YACE,MAAM,IAAI,K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cAAc,CAAC;YAC1B,CAAC,YAAY;YACb,CAAC,CAAC,KAAK,IAAI,wBAAc,CAAC,EAC5B;YACE,MAAM,IAAI,KAAK,CAAC,gBAAgB,eAAe,eAAe,KAAK;;cAEjE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;cAC3E,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;cAC5D,MAAM,CAAC,IAAI,CAAC,wBAAc,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC,GAAG,CAAC,CAAA;SACpF;KACJ;AACL,CAAC;AAhDD,oDAgDC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
ATRIBUTO: string;
|
|
3
|
+
BARRA: string;
|
|
3
4
|
CERQUILHA: string;
|
|
4
5
|
CHAVE_DIREITA: string;
|
|
5
6
|
CHAVE_ESQUERDA: string;
|
|
@@ -23,6 +24,7 @@ declare const _default: {
|
|
|
23
24
|
PSEUDO_CLASSE: string;
|
|
24
25
|
QUANTIFICADOR: string;
|
|
25
26
|
QUALITATIVO: string;
|
|
27
|
+
TEXTO: string;
|
|
26
28
|
TIL: string;
|
|
27
29
|
VIRGULA: string;
|
|
28
30
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
ATRIBUTO: "ATRIBUTO",
|
|
5
|
+
BARRA: "BARRA",
|
|
5
6
|
CERQUILHA: "CERQUILHA",
|
|
6
7
|
CHAVE_DIREITA: "CHAVE_DIREITA",
|
|
7
8
|
CHAVE_ESQUERDA: "CHAVE_ESQUERDA",
|
|
@@ -25,6 +26,7 @@ exports.default = {
|
|
|
25
26
|
PSEUDO_CLASSE: "PSEUDO_CLASSE",
|
|
26
27
|
QUANTIFICADOR: "QUANTIFICADOR",
|
|
27
28
|
QUALITATIVO: "QUALITATIVO",
|
|
29
|
+
TEXTO: "TEXTO",
|
|
28
30
|
TIL: "TIL",
|
|
29
31
|
VIRGULA: "VIRGULA"
|
|
30
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foles.js","sourceRoot":"","sources":["../../../fontes/tipos-de-simbolos/foles.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAC,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACrB,CAAA"}
|
|
1
|
+
{"version":3,"file":"foles.js","sourceRoot":"","sources":["../../../fontes/tipos-de-simbolos/foles.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAC,eAAe;IAC7B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACrB,CAAA"}
|
|
@@ -7,6 +7,7 @@ exports.Tradutor = void 0;
|
|
|
7
7
|
const gerais_1 = require("../modificadores/atributos/gerais");
|
|
8
8
|
const seletores_1 = require("../seletores");
|
|
9
9
|
const seletor_espaco_reservado_1 = require("../seletores/seletor-espaco-reservado");
|
|
10
|
+
const metodo_1 = require("../valores/metodos/metodo");
|
|
10
11
|
const estruturas_html_1 = __importDefault(require("./estruturas-html"));
|
|
11
12
|
class Tradutor {
|
|
12
13
|
traduzirModificador(modificador) {
|
|
@@ -21,9 +22,9 @@ class Tradutor {
|
|
|
21
22
|
const valorTraduzido = objetoValores[modificador.valor];
|
|
22
23
|
return `\t${modificador.propriedadeCss}: ${valorTraduzido};\n`;
|
|
23
24
|
}
|
|
24
|
-
// Caso 3: Valor é RGB, RGBA, HSL, HSLA ou HEX, ou seja, um
|
|
25
|
-
if (
|
|
26
|
-
return `\t${modificador.propriedadeCss}: ${modificador.valor
|
|
25
|
+
// Caso 3: Valor é RGB, RGBA, HSL, HSLA ou HEX, ou seja, um método.
|
|
26
|
+
if (modificador.valor instanceof metodo_1.Metodo) {
|
|
27
|
+
return `\t${modificador.propriedadeCss}: ${modificador.valor.paraTexto() || ""};\n`;
|
|
27
28
|
}
|
|
28
29
|
// Caso 4: É um valor genérico, cuja tradução está na lista 'valoresGerais'.
|
|
29
30
|
const valorTraduzido = gerais_1.valoresGerais[modificador.valor];
|
|
@@ -32,21 +33,6 @@ class Tradutor {
|
|
|
32
33
|
traduzir(declaracoes) {
|
|
33
34
|
let resultado = "";
|
|
34
35
|
for (const declaracao of declaracoes) {
|
|
35
|
-
/* if (declaracao.espacoReservado) {
|
|
36
|
-
const encontrarHtml = Object.keys(estruturasHtml).filter(
|
|
37
|
-
(estrutura) => declaracao.seletores[0] === estrutura
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
if (encontrarHtml.length !== 0) {
|
|
41
|
-
resultado += `${declaracao.espacoReservado}${
|
|
42
|
-
estruturasHtml[declaracao.seletores[0]]
|
|
43
|
-
} {\n`;
|
|
44
|
-
} else {
|
|
45
|
-
resultado += `${declaracao.espacoReservado}${declaracao.seletores[0]} {\n`;
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
resultado += `${estruturasHtml[declaracao.seletores[0]]} {\n`;
|
|
49
|
-
} */
|
|
50
36
|
let deveImprimir = true;
|
|
51
37
|
for (const seletor of declaracao.seletores) {
|
|
52
38
|
// Espaços reservados não são escritos diretamente no CSS.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tradutor.js","sourceRoot":"","sources":["../../../fontes/tradutor/tradutor.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAkE;AAClE,4CAAgD;AAChD,oFAA+E;
|
|
1
|
+
{"version":3,"file":"tradutor.js","sourceRoot":"","sources":["../../../fontes/tradutor/tradutor.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAkE;AAClE,4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cAAc,CAAC;IACnC,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"curva-cubica.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/curva-cubica.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,WAAY,SAAQ,eAAM;IAOnC,YAAY,MAAe,EAAE,MAAe,EAAE,MAAe,EAAE,MAAe;QAC1E,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;IACnC,CAAC;IAED,SAAS;QACL,OAAO,gBAAgB,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;IACzF,CAAC;CACJ;AAnBD,kCAmBC"}
|
|
@@ -7,8 +7,9 @@ class EncaixarConteudo extends metodo_1.Metodo {
|
|
|
7
7
|
super();
|
|
8
8
|
this.valor = Number(valor);
|
|
9
9
|
this.quantificador = quantificador;
|
|
10
|
+
this.traducao = 'fit-content';
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
paraTexto() {
|
|
12
13
|
return `fit-content(${this.valor}${this.quantificador})`;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encaixar-conteudo.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/encaixar-conteudo.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,gBAAiB,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"encaixar-conteudo.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/encaixar-conteudo.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,gBAAiB,SAAQ,eAAM;IAKxC,YAAY,KAAc,EAAE,aAAqB;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC;IAClC,CAAC;IAED,SAAS;QACL,OAAO,eAAe,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;IAC5D,CAAC;CACJ;AAfD,4CAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hex.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hex.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAG3B,YAAY,MAAc;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"hex.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hex.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAG3B,YAAY,MAAc;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,SAAS;QACL,OAAO,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;CACJ;AAXD,kBAWC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsl.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hsl.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAK3B,YAAY,KAAc,EAAE,SAAkB,EAAE,YAAqB;QACjE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"hsl.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hsl.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAK3B,YAAY,KAAc,EAAE,SAAkB,EAAE,YAAqB;QACjE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,SAAS;QACL,OAAO,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,MAAM,IAAI,CAAC,YAAY,IAAI,CAAA;IAC1E,CAAC;CACJ;AAfD,kBAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsla.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hsla.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,IAAK,SAAQ,eAAM;IAK5B,YAAY,KAAc,EAAE,SAAkB,EAAE,YAAqB;QACjE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"hsla.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/hsla.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,IAAK,SAAQ,eAAM;IAK5B,YAAY,KAAc,EAAE,SAAkB,EAAE,YAAqB;QACjE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,SAAS;QACL,OAAO,QAAQ,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,MAAM,IAAI,CAAC,YAAY,IAAI,CAAA;IAC3E,CAAC;CACJ;AAfD,oBAeC;AAED,qCAAqC;AACrC,oHAAoH;AACpH,kHAAkH;AAElH,8DAA8D"}
|
|
@@ -7,6 +7,7 @@ export declare class Limitar extends Metodo {
|
|
|
7
7
|
quantificadorMed: string;
|
|
8
8
|
valorMax: number;
|
|
9
9
|
quantificadorMax: string;
|
|
10
|
+
traducao: string;
|
|
10
11
|
constructor(valorMin: Simbolo, quantificadorMin: string, valorMed: number, quantificadorMed: string, valorMax: number, quantificadorMax: string);
|
|
11
|
-
|
|
12
|
+
paraTexto(): string;
|
|
12
13
|
}
|
|
@@ -11,8 +11,9 @@ class Limitar extends metodo_1.Metodo {
|
|
|
11
11
|
this.quantificadorMed = quantificadorMed['lexema'];
|
|
12
12
|
this.valorMax = Number(valorMax['lexema']);
|
|
13
13
|
this.quantificadorMax = quantificadorMax['lexema'];
|
|
14
|
+
this.traducao = 'clamp';
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
paraTexto() {
|
|
16
17
|
return `clamp(${this.valorMin}${this.quantificadorMin}, ${this.valorMed}${this.quantificadorMed}, ${this.valorMax}${this.quantificadorMax})`;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limitar.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/limitar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,OAAQ,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"limitar.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/limitar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,OAAQ,SAAQ,eAAM;IAS/B,YAAY,QAAiB,EAAE,gBAAwB,EAAE,QAAgB,EAAE,gBAAwB,EAAC,QAAgB,EAAE,gBAAwB;QAC1I,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,OAAO,SAAS,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,GAAG,CAAA;IAChJ,CAAC;CACJ;AAvBD,0BAuBC"}
|
|
@@ -8,8 +8,9 @@ class Linear extends metodo_1.Metodo {
|
|
|
8
8
|
this.inicio = Number(inicio.lexema);
|
|
9
9
|
this.meio = Number(meio.lexema);
|
|
10
10
|
this.fim = Number(fim.lexema);
|
|
11
|
+
this.traducao = 'linear';
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
paraTexto() {
|
|
13
14
|
return `linear(${this.inicio}, ${this.meio}, ${this.fim})`;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linear.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/linear.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"linear.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/linear.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;IAM9B,YAAY,MAAe,EAAE,IAAa,EAAE,GAAY;QACpD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,SAAS;QACL,OAAO,UAAU,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,GAAG,CAAA;IAC9D,CAAC;CACJ;AAjBD,wBAiBC"}
|
|
@@ -2,7 +2,8 @@ import { Metodo } from "./metodo";
|
|
|
2
2
|
export declare class MinMax extends Metodo {
|
|
3
3
|
minimo: number | string;
|
|
4
4
|
maximo: number | string;
|
|
5
|
-
traducao:
|
|
5
|
+
traducao: string;
|
|
6
|
+
traducaoValores: {
|
|
6
7
|
"conteudo-maximo": string;
|
|
7
8
|
"conte\u00FAdo-m\u00E1ximo": string;
|
|
8
9
|
"conteudo-minimo": string;
|
|
@@ -10,5 +11,5 @@ export declare class MinMax extends Metodo {
|
|
|
10
11
|
auto: string;
|
|
11
12
|
};
|
|
12
13
|
constructor(minimo: number | string, maximo: number | string);
|
|
13
|
-
|
|
14
|
+
paraTexto(): string;
|
|
14
15
|
}
|
|
@@ -5,17 +5,18 @@ const metodo_1 = require("./metodo");
|
|
|
5
5
|
class MinMax extends metodo_1.Metodo {
|
|
6
6
|
constructor(minimo, maximo) {
|
|
7
7
|
super();
|
|
8
|
-
this.
|
|
8
|
+
this.traducaoValores = {
|
|
9
9
|
"conteudo-maximo": "max-content",
|
|
10
10
|
"conteúdo-máximo": "max-content",
|
|
11
11
|
"conteudo-minimo": "min-content",
|
|
12
12
|
"conteúdo-mínimo": "min-content",
|
|
13
13
|
"auto": "auto",
|
|
14
14
|
};
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
15
|
+
this.traducaoValores[minimo] === undefined ? this.minimo = minimo : this.minimo = this.traducaoValores[minimo];
|
|
16
|
+
this.traducaoValores[maximo] === undefined ? this.maximo = maximo : this.maximo = this.traducaoValores[maximo];
|
|
17
|
+
this.traducao = 'minmax';
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
paraTexto() {
|
|
19
20
|
return `minmax(${this.minimo}, ${this.maximo})`;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minmax.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/minmax.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"minmax.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/minmax.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;IAa9B,YAAY,MAAuB,EAAE,MAAuB;QACxD,KAAK,EAAE,CAAC;QATZ,oBAAe,GAAG;YACd,iBAAiB,EAAE,aAAa;YAChC,iBAAiB,EAAE,aAAa;YAChC,iBAAiB,EAAE,aAAa;YAChC,iBAAiB,EAAE,aAAa;YAChC,MAAM,EAAE,MAAM;SACjB,CAAA;QAIG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/G,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/G,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,SAAS;QACL,OAAO,UAAU,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;IACnD,CAAC;CACJ;AAvBD,wBAuBC;AAED;;;;;;EAME"}
|
|
@@ -3,6 +3,7 @@ import { Metodo } from "./metodo";
|
|
|
3
3
|
export declare class Passos extends Metodo {
|
|
4
4
|
numero: number;
|
|
5
5
|
salto: string;
|
|
6
|
+
traducao: string;
|
|
6
7
|
saltos: {
|
|
7
8
|
"salto-inicial": string;
|
|
8
9
|
"salto-final": string;
|
|
@@ -12,5 +13,5 @@ export declare class Passos extends Metodo {
|
|
|
12
13
|
final: string;
|
|
13
14
|
};
|
|
14
15
|
constructor(numero: Simbolo, salto: string);
|
|
15
|
-
|
|
16
|
+
paraTexto(): string;
|
|
16
17
|
}
|
|
@@ -15,8 +15,9 @@ class Passos extends metodo_1.Metodo {
|
|
|
15
15
|
};
|
|
16
16
|
this.numero = Number(numero.lexema);
|
|
17
17
|
this.salto = this.saltos[salto['lexema']];
|
|
18
|
+
this.traducao = 'steps';
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
paraTexto() {
|
|
20
21
|
return `steps(${this.numero}, ${this.salto})`;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passos.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/passos.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;
|
|
1
|
+
{"version":3,"file":"passos.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/passos.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;IAc9B,YAAY,MAAe,EAAE,KAAa;QACtC,KAAK,EAAE,CAAC;QAVZ,WAAM,GAAG;YACL,eAAe,EAAE,YAAY;YAC7B,aAAa,EAAE,UAAU;YACzB,cAAc,EAAE,WAAW;YAC3B,gBAAgB,EAAE,WAAW;YAC7B,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE,KAAK;SACjB,CAAA;QAIG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,OAAO,SAAS,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,KAAK,GAAG,CAAA;IACjD,CAAC;CACJ;AAxBD,wBAwBC;AAED;;;;;;;;;EASE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rgb.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rgb.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAK3B,YAAY,QAAiB,EAAE,KAAc,EAAE,IAAa;QACxD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"rgb.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rgb.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,GAAI,SAAQ,eAAM;IAK3B,YAAY,QAAiB,EAAE,KAAc,EAAE,IAAa;QACxD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,SAAS;QACL,OAAO,OAAO,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,GAAG,CAAA;IAC/D,CAAC;CACJ;AAfD,kBAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rgba.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rgba.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,IAAK,SAAQ,eAAM;IAK5B,YAAY,QAAiB,EAAE,KAAc,EAAE,IAAa;QACxD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"rgba.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rgba.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,IAAK,SAAQ,eAAM;IAK5B,YAAY,QAAiB,EAAE,KAAc,EAAE,IAAa;QACxD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,SAAS;QACL,OAAO,QAAQ,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,GAAG,CAAA;IAChE,CAAC;CACJ;AAfD,oBAeC"}
|