@designliquido/foles 0.3.3 → 0.4.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/README.md +501 -504
- package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.d.ts +4 -2
- package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js +2 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js.map +1 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +7 -2
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +19 -5
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/foles.d.ts +11 -0
- package/fontes/foles.js +26 -46
- package/fontes/foles.js.map +1 -1
- package/fontes/importador/importador.d.ts +12 -0
- package/fontes/importador/importador.js +65 -0
- package/fontes/importador/importador.js.map +1 -0
- package/fontes/importador/index.d.ts +1 -0
- package/fontes/importador/index.js +18 -0
- package/fontes/importador/index.js.map +1 -0
- package/fontes/interfaces/avaliador-sintatico-interface.d.ts +5 -0
- package/fontes/interfaces/avaliador-sintatico-interface.js +3 -0
- package/fontes/interfaces/avaliador-sintatico-interface.js.map +1 -0
- package/fontes/interfaces/importador-interface.d.ts +4 -0
- package/fontes/interfaces/importador-interface.js +3 -0
- package/fontes/interfaces/importador-interface.js.map +1 -0
- package/fontes/interfaces/index.d.ts +3 -0
- package/fontes/interfaces/index.js +3 -0
- package/fontes/interfaces/index.js.map +1 -1
- package/fontes/interfaces/lexador-interface.d.ts +2 -0
- package/fontes/interfaces/resultado-lexador-interface.d.ts +4 -0
- package/fontes/interfaces/resultado-lexador-interface.js +3 -0
- package/fontes/interfaces/resultado-lexador-interface.js.map +1 -0
- package/fontes/lexador/lexador-reverso.d.ts +2 -1
- package/fontes/lexador/lexador-reverso.js.map +1 -1
- package/fontes/lexador/lexador.d.ts +9 -6
- package/fontes/lexador/lexador.js +31 -10
- 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 +24 -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/espacamento-em-grade.d.ts +2 -2
- package/fontes/modificadores/espacamento-em-grade.js +9 -2
- package/fontes/modificadores/espacamento-em-grade.js.map +1 -1
- package/fontes/modificadores/espacamento-linha-em-grade.d.ts +2 -2
- package/fontes/modificadores/espacamento-linha-em-grade.js +9 -2
- package/fontes/modificadores/espacamento-linha-em-grade.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.d.ts +2 -2
- package/fontes/modificadores/estilo-lista-tipo.js +2 -2
- 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 +5 -2
- package/fontes/modificadores/filtro.js +15 -2
- 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-borda.d.ts +5 -2
- package/fontes/modificadores/imagem-borda.js +9 -2
- package/fontes/modificadores/imagem-borda.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/largura-borda.d.ts +5 -2
- package/fontes/modificadores/largura-borda.js +15 -2
- package/fontes/modificadores/largura-borda.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/nome-animacao.d.ts +3 -0
- package/fontes/modificadores/nome-animacao.js +5 -0
- package/fontes/modificadores/nome-animacao.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/origem-imagem-borda.d.ts +5 -2
- package/fontes/modificadores/origem-imagem-borda.js +11 -2
- package/fontes/modificadores/origem-imagem-borda.js.map +1 -1
- package/fontes/modificadores/raio-borda.js +1 -1
- package/fontes/modificadores/raio-borda.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/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.js +36 -39
- 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 +1 -0
- package/fontes/tipos-de-simbolos/foles.js +1 -0
- package/fontes/tipos-de-simbolos/foles.js.map +1 -1
- package/fontes/valores/metodos/encaixar-conteudo.d.ts +1 -0
- package/fontes/valores/metodos/encaixar-conteudo.js +1 -0
- package/fontes/valores/metodos/encaixar-conteudo.js.map +1 -1
- package/fontes/valores/metodos/limitar.d.ts +1 -0
- package/fontes/valores/metodos/limitar.js +1 -0
- package/fontes/valores/metodos/limitar.js.map +1 -1
- package/fontes/valores/metodos/linear.d.ts +1 -0
- package/fontes/valores/metodos/linear.js +1 -0
- package/fontes/valores/metodos/linear.js.map +1 -1
- package/fontes/valores/metodos/minmax.d.ts +2 -1
- package/fontes/valores/metodos/minmax.js +4 -3
- package/fontes/valores/metodos/minmax.js.map +1 -1
- package/fontes/valores/metodos/passos.d.ts +1 -0
- package/fontes/valores/metodos/passos.js +1 -0
- package/fontes/valores/metodos/passos.js.map +1 -1
- package/fontes/valores/metodos/url.d.ts +1 -0
- package/fontes/valores/metodos/url.js +1 -0
- package/fontes/valores/metodos/url.js.map +1 -1
- package/package.json +1 -1
- package/testes/avaliador-sintatico.test.js +10 -7
- package/testes/avaliador-sintatico.test.js.map +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/atribuicao-abreviada.test.js +4 -1
- package/testes/modificadores/atribuicao-abreviada.test.js.map +1 -1
- package/testes/modificadores/cores.test.js +24 -31
- package/testes/modificadores/cores.test.js.map +1 -1
- package/testes/modificadores/estilo.test.js +4 -1
- package/testes/modificadores/estilo.test.js.map +1 -1
- package/testes/modificadores/metodos.test.js +25 -36
- package/testes/modificadores/metodos.test.js.map +1 -1
- package/testes/modificadores/palavras-reservadas.test.js +4 -1
- package/testes/modificadores/palavras-reservadas.test.js.map +1 -1
- package/testes/modificadores/posicao.test.js +4 -1
- package/testes/modificadores/posicao.test.js.map +1 -1
- package/testes/modificadores/status.test.js +4 -1
- package/testes/modificadores/status.test.js.map +1 -1
- package/testes/modificadores/url.test.js +19 -18
- package/testes/modificadores/url.test.js.map +1 -1
- package/testes/modificadores/valor-global.test.js +10 -7
- package/testes/modificadores/valor-global.test.js.map +1 -1
- package/testes/modificadores/valor-numerico.test.js +4 -1
- package/testes/modificadores/valor-numerico.test.js.map +1 -1
- package/testes/modificadores/valor-quantificador.test.js +13 -16
- package/testes/modificadores/valor-quantificador.test.js.map +1 -1
- package/testes/tradutor-reverso.test.js +4 -1
- package/testes/tradutor-reverso.test.js.map +1 -1
- package/testes/tradutor.test.js +4 -1
- package/testes/tradutor.test.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nome-animacao.js","sourceRoot":"","sources":["../../../fontes/modificadores/nome-animacao.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"nome-animacao.js","sourceRoot":"","sources":["../../../fontes/modificadores/nome-animacao.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,YAAa,SAAQ,yBAAW;IAKzC,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,EAAE,gBAAgB,CAAC,CAAC;QALhE,mBAAc,GAAqC;YAC/C,QAAQ,EAAE,MAAM;SACnB,CAAA;QAKG;;;;;;;UAOE;QAEF,IAAA,sBAAc,EAAC,eAAe,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAvBD,oCAuBC"}
|
|
@@ -12,7 +12,8 @@ class OrigemBordaMascara extends superclasse_1.Modificador {
|
|
|
12
12
|
// OBS.: Também aceita receber valores do tipo URL (link externo da imagem).
|
|
13
13
|
// A lógica abaixo cobre somente o recebimento dos valores aceitos listados.
|
|
14
14
|
// TODO: Adaptar lógica para cobrir os demais casos.
|
|
15
|
-
|
|
15
|
+
const valoresExtra = ['url'];
|
|
16
|
+
(0, comum_1.validarValores)('origem-borda-máscara', valor, this.valoresAceitos, valoresExtra);
|
|
16
17
|
this.valor = valor;
|
|
17
18
|
// Não recebe quantificador
|
|
18
19
|
// this.quantificador = quantificador;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"origem-borda-mascara.js","sourceRoot":"","sources":["../../../fontes/modificadores/origem-borda-mascara.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,kBAAmB,SAAQ,yBAAW;IAK/C,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CACD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,oBAAoB,CACvB,CAAC;QARN,mBAAc,GAAqC;YAC/C,SAAS,EAAE,MAAM;SACpB,CAAA;QAQG,6EAA6E;QAC7E,6EAA6E;QAC7E,oDAAoD;
|
|
1
|
+
{"version":3,"file":"origem-borda-mascara.js","sourceRoot":"","sources":["../../../fontes/modificadores/origem-borda-mascara.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,kBAAmB,SAAQ,yBAAW;IAK/C,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CACD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAChD,oBAAoB,CACvB,CAAC;QARN,mBAAc,GAAqC;YAC/C,SAAS,EAAE,MAAM;SACpB,CAAA;QAQG,6EAA6E;QAC7E,6EAA6E;QAC7E,oDAAoD;QACpD,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAA,sBAAc,EAAC,sBAAsB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAEjF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAtBD,gDAsBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class OrigemImagemBorda extends Modificador {
|
|
3
|
-
|
|
3
|
+
valoresAceitos: {
|
|
4
|
+
[valorFoles: string]: string;
|
|
5
|
+
};
|
|
6
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
7
|
}
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OrigemImagemBorda = void 0;
|
|
4
4
|
const superclasse_1 = require("./superclasse");
|
|
5
|
+
const comum_1 = require("./validacoes/comum");
|
|
5
6
|
class OrigemImagemBorda extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
7
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
8
|
super("origem-imagem-borda", "border-image-source");
|
|
9
|
+
this.valoresAceitos = {
|
|
10
|
+
"nenhuma": "none",
|
|
11
|
+
};
|
|
12
|
+
// OBS.: Também pode receber a função linear-gradient
|
|
13
|
+
// TODO: Adaptar lógica no futuro para cobrir todos os casos
|
|
14
|
+
const valoresExtra = ['url'];
|
|
15
|
+
(0, comum_1.validarValores)('origem-imagem-borda', valor, this.valoresAceitos, valoresExtra);
|
|
8
16
|
this.valor = valor;
|
|
9
|
-
|
|
17
|
+
// Não recebe quantificador
|
|
18
|
+
// this.quantificador = quantificador;
|
|
10
19
|
}
|
|
11
20
|
}
|
|
12
21
|
exports.OrigemImagemBorda = OrigemImagemBorda;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"origem-imagem-borda.js","sourceRoot":"","sources":["../../../fontes/modificadores/origem-imagem-borda.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"origem-imagem-borda.js","sourceRoot":"","sources":["../../../fontes/modificadores/origem-imagem-borda.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,iBAAkB,SAAQ,yBAAW;IAK9C,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;QALxD,mBAAc,GAAqC;YAC/C,SAAS,EAAE,MAAM;SACpB,CAAA;QAKG,qDAAqD;QACrD,4DAA4D;QAC5D,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAA,sBAAc,EAAC,qBAAqB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAChF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAjBD,8CAiBC"}
|
|
@@ -14,7 +14,7 @@ class RaioBorda extends superclasse_1.Modificador {
|
|
|
14
14
|
(0, numerica_1.validarValorNumerico)('raio-borda', valor);
|
|
15
15
|
this.valor = valor;
|
|
16
16
|
if (quantificador !== undefined) {
|
|
17
|
-
(0, quantificador_1.validarQuantificador)('raio-borda', quantificador, quantificadores_1.
|
|
17
|
+
(0, quantificador_1.validarQuantificador)('raio-borda', quantificador, quantificadores_1.unidadesMedida);
|
|
18
18
|
this.quantificador = quantificador;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raio-borda.js","sourceRoot":"","sources":["../../../fontes/modificadores/raio-borda.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"raio-borda.js","sourceRoot":"","sources":["../../../fontes/modificadores/raio-borda.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,+CAAgE;AAChE,oDAA6D;AAC7D,8DAAkE;AAElE,MAAa,SAAU,SAAQ,yBAAW;IACtC,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAErC,2FAA2F;QAC3F,gCAAgC;QAChC,+DAA+D;QAE/D,IAAA,+BAAoB,EAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAE1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,aAAa,KAAK,SAAS,EAAE;YAC7B,IAAA,oCAAoB,EAAC,YAAY,EAAE,aAAa,EAAE,gCAAc,CAAC,CAAC;YAElE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACtC;IACL,CAAC;CACJ;AAlBD,8BAkBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class RecursosFonte extends Modificador {
|
|
3
|
-
|
|
3
|
+
valoresAceitos: {
|
|
4
|
+
[valorFoles: string]: string;
|
|
5
|
+
};
|
|
6
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
7
|
}
|
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecursosFonte = void 0;
|
|
4
4
|
const superclasse_1 = require("./superclasse");
|
|
5
|
+
const comum_1 = require("./validacoes/comum");
|
|
5
6
|
class RecursosFonte extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
7
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
8
|
super("recursos-fonte", "font-feature-settings");
|
|
9
|
+
this.valoresAceitos = {
|
|
10
|
+
"normal": "normal",
|
|
11
|
+
};
|
|
12
|
+
// OBS.: Também aceita receber o valor do tipo <feature-tag-value>
|
|
13
|
+
// TODO: Adaptar lógica para cobrir todos os casos de valores
|
|
14
|
+
(0, comum_1.validarValores)('recursos-fonte', valor, this.valoresAceitos);
|
|
8
15
|
this.valor = valor;
|
|
9
|
-
|
|
16
|
+
// Não recebe quantificador
|
|
17
|
+
// this.quantificador = quantificador;
|
|
10
18
|
}
|
|
11
19
|
}
|
|
12
20
|
exports.RecursosFonte = RecursosFonte;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recursos-fonte.js","sourceRoot":"","sources":["../../../fontes/modificadores/recursos-fonte.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"recursos-fonte.js","sourceRoot":"","sources":["../../../fontes/modificadores/recursos-fonte.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,aAAc,SAAQ,yBAAW;IAK1C,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC;QALrD,mBAAc,GAAqC;YAC/C,QAAQ,EAAE,QAAQ;SACrB,CAAA;QAKG,kEAAkE;QAClE,6DAA6D;QAC7D,IAAA,sBAAc,EAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAhBD,sCAgBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class SombraTexto extends Modificador {
|
|
3
|
-
constructor(valor: string, quantificador
|
|
3
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
4
|
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SombraTexto = void 0;
|
|
4
|
+
const quantificadores_1 = require("./atributos/quantificadores");
|
|
4
5
|
const superclasse_1 = require("./superclasse");
|
|
6
|
+
const numerica_1 = require("./validacoes/numerica");
|
|
7
|
+
const quantificador_1 = require("./validacoes/quantificador");
|
|
5
8
|
class SombraTexto extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
9
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
10
|
super("sombra-texto", "text-shadow");
|
|
11
|
+
// OBS.: Também aceita receber múltiplos valores, sendo um dos parâmetros do tipo COR
|
|
12
|
+
// Ex.: text-shadow: 1px 1px 2px black;
|
|
13
|
+
(0, numerica_1.validarValorNumerico)('sombra-texto', valor);
|
|
8
14
|
this.valor = valor;
|
|
9
|
-
|
|
15
|
+
if (quantificador !== undefined) {
|
|
16
|
+
(0, quantificador_1.validarQuantificador)('sombra-texto', quantificador, quantificadores_1.unidadesMedida);
|
|
17
|
+
this.quantificador = quantificador;
|
|
18
|
+
}
|
|
10
19
|
}
|
|
11
20
|
}
|
|
12
21
|
exports.SombraTexto = SombraTexto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sombra-texto.js","sourceRoot":"","sources":["../../../fontes/modificadores/sombra-texto.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"sombra-texto.js","sourceRoot":"","sources":["../../../fontes/modificadores/sombra-texto.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,+CAAgE;AAChE,oDAA6D;AAC7D,8DAAkE;AAElE,MAAa,WAAY,SAAQ,yBAAW;IACxC,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAErC,qFAAqF;QACrF,uCAAuC;QACvC,IAAA,+BAAoB,EAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAG,aAAa,KAAK,SAAS,EAAE;YAC5B,IAAA,oCAAoB,EAAC,cAAc,EAAE,aAAa,EAAE,gCAAc,CAAC,CAAC;YACpE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACtC;IACL,CAAC;CACJ;AAdD,kCAcC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class SubstituirIdiomaFonte extends Modificador {
|
|
3
|
-
|
|
3
|
+
valoresAceitos: {
|
|
4
|
+
[valorFoles: string]: string;
|
|
5
|
+
};
|
|
6
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
7
|
}
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubstituirIdiomaFonte = void 0;
|
|
4
4
|
const superclasse_1 = require("./superclasse");
|
|
5
|
+
const comum_1 = require("./validacoes/comum");
|
|
5
6
|
class SubstituirIdiomaFonte extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
7
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
8
|
super("substituir-idioma-fonte", "font-language-override");
|
|
9
|
+
this.valoresAceitos = {
|
|
10
|
+
"normal": "normal",
|
|
11
|
+
};
|
|
12
|
+
// OBS.: Também aceita receber valores do tipo <string> que representem o idioma
|
|
13
|
+
// Ex.: substituir-idioma-fonte: "ENG";
|
|
14
|
+
// TODO: Adaptar lógica para cobrir todos os casos
|
|
15
|
+
(0, comum_1.validarValores)('substituir-idioma-fonte', valor, this.valoresAceitos);
|
|
8
16
|
this.valor = valor;
|
|
9
|
-
|
|
17
|
+
// Não recebe quantificador
|
|
18
|
+
// this.quantificador = quantificador;
|
|
10
19
|
}
|
|
11
20
|
}
|
|
12
21
|
exports.SubstituirIdiomaFonte = SubstituirIdiomaFonte;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"substituir-idioma-fonte.js","sourceRoot":"","sources":["../../../fontes/modificadores/substituir-idioma-fonte.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"substituir-idioma-fonte.js","sourceRoot":"","sources":["../../../fontes/modificadores/substituir-idioma-fonte.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,qBAAsB,SAAQ,yBAAW;IAKlD,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;QAL/D,mBAAc,GAAqC;YAC/C,QAAQ,EAAE,QAAQ;SACrB,CAAA;QAKG,gFAAgF;QAChF,uCAAuC;QAEvC,kDAAkD;QAElD,IAAA,sBAAc,EAAC,yBAAyB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAnBD,sDAmBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class TrajetoDeslocamento extends Modificador {
|
|
3
|
-
|
|
3
|
+
valoresAceitos: {
|
|
4
|
+
[valorFoles: string]: string;
|
|
5
|
+
};
|
|
6
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
7
|
}
|
|
@@ -2,11 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TrajetoDeslocamento = void 0;
|
|
4
4
|
const superclasse_1 = require("./superclasse");
|
|
5
|
+
const comum_1 = require("./validacoes/comum");
|
|
5
6
|
class TrajetoDeslocamento extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
7
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
8
|
super("trajeto-deslocamento", "offset-path");
|
|
9
|
+
this.valoresAceitos = {
|
|
10
|
+
"nenhum": "none",
|
|
11
|
+
"margem-caixa": "margin-box",
|
|
12
|
+
"caixa-batida": "stroke-box",
|
|
13
|
+
};
|
|
14
|
+
// OBS.: Também pode receber a função ray()
|
|
15
|
+
// Ex.: offset-path: ray(45deg);
|
|
16
|
+
// E funções do tipo <basic-shape>
|
|
17
|
+
// Ex.: offset-path: circle(50% at 25% 25%);
|
|
18
|
+
// TODO: Adaptar lógica
|
|
19
|
+
const valoresExtra = ['url'];
|
|
20
|
+
(0, comum_1.validarValores)('trajeto-deslocamento', valor, this.valoresAceitos, valoresExtra);
|
|
8
21
|
this.valor = valor;
|
|
9
|
-
|
|
22
|
+
// Não recebe quantificador - mas as funções <basic-shape> recebem. Descomentar ao resolver TODO acima.
|
|
23
|
+
// this.quantificador = quantificador;
|
|
10
24
|
}
|
|
11
25
|
}
|
|
12
26
|
exports.TrajetoDeslocamento = TrajetoDeslocamento;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trajeto-deslocamento.js","sourceRoot":"","sources":["../../../fontes/modificadores/trajeto-deslocamento.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"trajeto-deslocamento.js","sourceRoot":"","sources":["../../../fontes/modificadores/trajeto-deslocamento.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,mBAAoB,SAAQ,yBAAW;IAOhD,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;QAPjD,mBAAc,GAAqC;YAC/C,QAAQ,EAAE,MAAM;YAChB,cAAc,EAAE,YAAY;YAC5B,cAAc,EAAE,YAAY;SAC/B,CAAA;QAKG,2CAA2C;QAC3C,gCAAgC;QAEhC,kCAAkC;QAClC,4CAA4C;QAE5C,uBAAuB;QAEvB,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAA,sBAAc,EAAC,sBAAsB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QACjF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,uGAAuG;QACvG,sCAAsC;IAC1C,CAAC;CACJ;AAzBD,kDAyBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Modificador } from "./superclasse";
|
|
1
|
+
import { Modificador, PragmasModificador } from "./superclasse";
|
|
2
2
|
export declare class Transformar extends Modificador {
|
|
3
|
-
|
|
3
|
+
valoresAceitos: {
|
|
4
|
+
[valorFoles: string]: string;
|
|
5
|
+
};
|
|
6
|
+
constructor(valor: string, quantificador?: string, pragmas?: PragmasModificador);
|
|
4
7
|
}
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Transformar = void 0;
|
|
4
4
|
const superclasse_1 = require("./superclasse");
|
|
5
|
+
const comum_1 = require("./validacoes/comum");
|
|
5
6
|
class Transformar extends superclasse_1.Modificador {
|
|
6
|
-
constructor(valor, quantificador) {
|
|
7
|
+
constructor(valor, quantificador, pragmas) {
|
|
7
8
|
super("transformar", "transform");
|
|
9
|
+
this.valoresAceitos = {
|
|
10
|
+
"nenhum": "none",
|
|
11
|
+
};
|
|
12
|
+
// OBS.: Também aceita receber as funções do tipo <transform-function>
|
|
13
|
+
// Checar documentação: https://developer.mozilla.org/en-US/docs/Web/CSS/transform
|
|
14
|
+
// TODO: Adaptar lógica
|
|
15
|
+
(0, comum_1.validarValores)('transformar', valor, this.valoresAceitos);
|
|
8
16
|
this.valor = valor;
|
|
9
|
-
|
|
17
|
+
// Não recebe quantificador
|
|
18
|
+
// this.quantificador = quantificador;
|
|
10
19
|
}
|
|
11
20
|
}
|
|
12
21
|
exports.Transformar = Transformar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformar.js","sourceRoot":"","sources":["../../../fontes/modificadores/transformar.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;
|
|
1
|
+
{"version":3,"file":"transformar.js","sourceRoot":"","sources":["../../../fontes/modificadores/transformar.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAChE,8CAAoD;AAEpD,MAAa,WAAY,SAAQ,yBAAW;IAKxC,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;QALtC,mBAAc,GAAqC;YAC/C,QAAQ,EAAE,MAAM;SACnB,CAAA;QAKG,sEAAsE;QACtE,mFAAmF;QACnF,uBAAuB;QAEvB,IAAA,sBAAc,EAAC,aAAa,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAlBD,kCAkBC"}
|
|
@@ -12,11 +12,10 @@ function validarValores(nomePropriedade, valor, valoresAceitos, valoresExtra) {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
|
-
const valorString = valor.toString();
|
|
16
15
|
let metodoValido = false;
|
|
17
16
|
for (let index = 0; index < valoresExtra.length; index++) {
|
|
18
17
|
if (metodoValido === false) {
|
|
19
|
-
metodoValido =
|
|
18
|
+
metodoValido = valor['traducao'] === valoresExtra[index];
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
if (!(valor in valoresAceitos) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comum.js","sourceRoot":"","sources":["../../../../fontes/modificadores/validacoes/comum.ts"],"names":[],"mappings":";;;AAAA,kDAAsD;AAEtD,SAAgB,cAAc,CAC1B,eAAuB,EACvB,KAAU,EACV,cAAgD,EAChD,YAAkB;IAGlB,IAAI,YAAY,KAAK,SAAS,EAAE;QA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,EAAE,KAAK,GAAG,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACtD,IAAG,YAAY,KAAK,KAAK,EAAE;gBACvB,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC;aAC5D;SACJ;QAED,IACA,CAAC,CAAC,KAAK,IAAI,cAAc,CAAC;YAC1B,CAAC,YAAY;YACb,CAAC,CAAC,KAAK,IAAI,wBAAc,CAAC,EAC5B;YACE,MAAM,IAAI,KAAK,CAAC,gBAAgB,eAAe,eAAe,KAAK;cAC7D,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;SACxF;KACA;AAEL,CAAC;AAnCD,wCAmCC"}
|
|
@@ -1,61 +1,58 @@
|
|
|
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");
|
|
4
5
|
const metodo_1 = require("../../valores/metodos/metodo");
|
|
5
6
|
const cores_1 = require("../atributos/cores");
|
|
6
7
|
const globais_1 = require("../atributos/globais");
|
|
7
8
|
function validarValorCor(nomePropriedade, valor, valoresAceitos, valoresExtra) {
|
|
8
9
|
if (valor instanceof metodo_1.Metodo) {
|
|
9
|
-
if (
|
|
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
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else if (!['rgb', 'rgba', 'hsl', 'hsla'].includes(valor.constructor.name.toLowerCase())) {
|
|
10
17
|
throw new Error(`Propriedade '${nomePropriedade}' com método '${valor.constructor.name}' inválido. Valores aceitos:
|
|
11
18
|
rgb(), rgba(), hsl(), hsla().`);
|
|
12
19
|
}
|
|
13
20
|
}
|
|
14
21
|
else {
|
|
15
|
-
|
|
16
|
-
if (
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
}
|
|
20
38
|
}
|
|
21
|
-
// TODO(Vitor): validação Hex aqui para 3 ou 6 caracteres hex.
|
|
22
39
|
}
|
|
23
40
|
else {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
if (!(valor in cores_1.cores) && !(valor in valoresExtra) && !(valor in globais_1.valoresGlobais)) {
|
|
35
|
-
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
36
|
-
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
37
|
-
${Object.keys(valoresExtra).reduce((final, atual) => final += `, ${atual}`)},
|
|
38
|
-
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
39
|
-
}
|
|
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}`)}.`);
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
else {
|
|
43
|
-
if (valoresExtra
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
if (!(valor in cores_1.cores) && !(valor in valoresAceitos) && !(valor in valoresExtra) && !(valor in globais_1.valoresGlobais)) {
|
|
53
|
-
throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
|
|
54
|
-
${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
|
|
55
|
-
${Object.keys(valoresAceitos).reduce((final, atual) => final += `, ${atual}`)},
|
|
56
|
-
${Object.keys(valoresExtra).reduce((final, atual) => final += `, ${atual}`)},
|
|
57
|
-
${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
|
|
58
|
-
}
|
|
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}`)}.`);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cor.js","sourceRoot":"","sources":["../../../../fontes/modificadores/validacoes/cor.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AACtD,8CAA2C;AAC3C,kDAAsD;AAEtD,SAAgB,eAAe,CAC3B,eAAuB,EACvB,KAAsB,EACtB,cAAiD,EACjD,YAA+C;
|
|
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,EAA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M;gBACH,IAAI,CAAC,CAAC,KAAK,IAAI,aAAK,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,wBAAc,CAAC,EAAE;oBAC3G,MAAM,IAAI,KAAK,CAAC,gBAAgB,eAAe,eAAe,KAAK;sCACjD,MAAM,CAAC,IAAI,CAAC,aAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;sCAClE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,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,KAAK,CAAC,gBAAgB,eAAe,eAAe,KAAK;;cAEjE,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;IAED,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,cAAc,CAAC;YAC1B,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,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;K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;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"}
|
|
@@ -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"}
|
|
@@ -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,6 +11,7 @@ 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})`;
|
|
@@ -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"}
|
|
@@ -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;
|
|
@@ -5,15 +5,16 @@ 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})`;
|