@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.
Files changed (197) hide show
  1. package/README.md +501 -504
  2. package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.d.ts +4 -2
  3. package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js +2 -1
  4. package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js.map +1 -1
  5. package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +7 -2
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js +19 -5
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  8. package/fontes/foles.d.ts +11 -0
  9. package/fontes/foles.js +26 -46
  10. package/fontes/foles.js.map +1 -1
  11. package/fontes/importador/importador.d.ts +12 -0
  12. package/fontes/importador/importador.js +65 -0
  13. package/fontes/importador/importador.js.map +1 -0
  14. package/fontes/importador/index.d.ts +1 -0
  15. package/fontes/importador/index.js +18 -0
  16. package/fontes/importador/index.js.map +1 -0
  17. package/fontes/interfaces/avaliador-sintatico-interface.d.ts +5 -0
  18. package/fontes/interfaces/avaliador-sintatico-interface.js +3 -0
  19. package/fontes/interfaces/avaliador-sintatico-interface.js.map +1 -0
  20. package/fontes/interfaces/importador-interface.d.ts +4 -0
  21. package/fontes/interfaces/importador-interface.js +3 -0
  22. package/fontes/interfaces/importador-interface.js.map +1 -0
  23. package/fontes/interfaces/index.d.ts +3 -0
  24. package/fontes/interfaces/index.js +3 -0
  25. package/fontes/interfaces/index.js.map +1 -1
  26. package/fontes/interfaces/lexador-interface.d.ts +2 -0
  27. package/fontes/interfaces/resultado-lexador-interface.d.ts +4 -0
  28. package/fontes/interfaces/resultado-lexador-interface.js +3 -0
  29. package/fontes/interfaces/resultado-lexador-interface.js.map +1 -0
  30. package/fontes/lexador/lexador-reverso.d.ts +2 -1
  31. package/fontes/lexador/lexador-reverso.js.map +1 -1
  32. package/fontes/lexador/lexador.d.ts +9 -6
  33. package/fontes/lexador/lexador.js +31 -10
  34. package/fontes/lexador/lexador.js.map +1 -1
  35. package/fontes/lexador/palavras-reservadas/foles.d.ts +12 -0
  36. package/fontes/lexador/palavras-reservadas/foles.js +15 -2
  37. package/fontes/lexador/palavras-reservadas/foles.js.map +1 -1
  38. package/fontes/modificadores/animacao.d.ts +5 -2
  39. package/fontes/modificadores/animacao.js +24 -5
  40. package/fontes/modificadores/animacao.js.map +1 -1
  41. package/fontes/modificadores/borda-mascara.js +5 -4
  42. package/fontes/modificadores/borda-mascara.js.map +1 -1
  43. package/fontes/modificadores/configuracoes-variacao-fonte.d.ts +5 -2
  44. package/fontes/modificadores/configuracoes-variacao-fonte.js +12 -2
  45. package/fontes/modificadores/configuracoes-variacao-fonte.js.map +1 -1
  46. package/fontes/modificadores/conteudo.d.ts +5 -2
  47. package/fontes/modificadores/conteudo.js +20 -2
  48. package/fontes/modificadores/conteudo.js.map +1 -1
  49. package/fontes/modificadores/cor-barra-rolagem.d.ts +5 -2
  50. package/fontes/modificadores/cor-barra-rolagem.js +8 -2
  51. package/fontes/modificadores/cor-barra-rolagem.js.map +1 -1
  52. package/fontes/modificadores/deslocamento.d.ts +5 -2
  53. package/fontes/modificadores/deslocamento.js +13 -1
  54. package/fontes/modificadores/deslocamento.js.map +1 -1
  55. package/fontes/modificadores/espacamento-em-grade.d.ts +2 -2
  56. package/fontes/modificadores/espacamento-em-grade.js +9 -2
  57. package/fontes/modificadores/espacamento-em-grade.js.map +1 -1
  58. package/fontes/modificadores/espacamento-linha-em-grade.d.ts +2 -2
  59. package/fontes/modificadores/espacamento-linha-em-grade.js +9 -2
  60. package/fontes/modificadores/espacamento-linha-em-grade.js.map +1 -1
  61. package/fontes/modificadores/estilo-lista-imagem.d.ts +3 -0
  62. package/fontes/modificadores/estilo-lista-imagem.js +8 -1
  63. package/fontes/modificadores/estilo-lista-imagem.js.map +1 -1
  64. package/fontes/modificadores/estilo-lista-tipo.d.ts +2 -2
  65. package/fontes/modificadores/estilo-lista-tipo.js +2 -2
  66. package/fontes/modificadores/estilo-lista-tipo.js.map +1 -1
  67. package/fontes/modificadores/estilo-lista.js +2 -1
  68. package/fontes/modificadores/estilo-lista.js.map +1 -1
  69. package/fontes/modificadores/fatiar-imagem-borda.js +2 -1
  70. package/fontes/modificadores/fatiar-imagem-borda.js.map +1 -1
  71. package/fontes/modificadores/filtro-fundo.d.ts +5 -2
  72. package/fontes/modificadores/filtro-fundo.js +11 -2
  73. package/fontes/modificadores/filtro-fundo.js.map +1 -1
  74. package/fontes/modificadores/filtro.d.ts +5 -2
  75. package/fontes/modificadores/filtro.js +15 -2
  76. package/fontes/modificadores/filtro.js.map +1 -1
  77. package/fontes/modificadores/forma-externa.js +2 -1
  78. package/fontes/modificadores/forma-externa.js.map +1 -1
  79. package/fontes/modificadores/imagem-borda.d.ts +5 -2
  80. package/fontes/modificadores/imagem-borda.js +9 -2
  81. package/fontes/modificadores/imagem-borda.js.map +1 -1
  82. package/fontes/modificadores/imagem-mascara.d.ts +3 -0
  83. package/fontes/modificadores/imagem-mascara.js +13 -1
  84. package/fontes/modificadores/imagem-mascara.js.map +1 -1
  85. package/fontes/modificadores/largura-borda.d.ts +5 -2
  86. package/fontes/modificadores/largura-borda.js +15 -2
  87. package/fontes/modificadores/largura-borda.js.map +1 -1
  88. package/fontes/modificadores/modelo-colunas-em-grade.d.ts +5 -2
  89. package/fontes/modificadores/modelo-colunas-em-grade.js +22 -2
  90. package/fontes/modificadores/modelo-colunas-em-grade.js.map +1 -1
  91. package/fontes/modificadores/modelo-em-grade.d.ts +5 -2
  92. package/fontes/modificadores/modelo-em-grade.js +26 -2
  93. package/fontes/modificadores/modelo-em-grade.js.map +1 -1
  94. package/fontes/modificadores/modelo-geral-em-grade.d.ts +5 -2
  95. package/fontes/modificadores/modelo-geral-em-grade.js +13 -2
  96. package/fontes/modificadores/modelo-geral-em-grade.js.map +1 -1
  97. package/fontes/modificadores/modelo-linhas-em-grade.d.ts +5 -2
  98. package/fontes/modificadores/modelo-linhas-em-grade.js +22 -2
  99. package/fontes/modificadores/modelo-linhas-em-grade.js.map +1 -1
  100. package/fontes/modificadores/nome-animacao.d.ts +3 -0
  101. package/fontes/modificadores/nome-animacao.js +5 -0
  102. package/fontes/modificadores/nome-animacao.js.map +1 -1
  103. package/fontes/modificadores/origem-borda-mascara.js +2 -1
  104. package/fontes/modificadores/origem-borda-mascara.js.map +1 -1
  105. package/fontes/modificadores/origem-imagem-borda.d.ts +5 -2
  106. package/fontes/modificadores/origem-imagem-borda.js +11 -2
  107. package/fontes/modificadores/origem-imagem-borda.js.map +1 -1
  108. package/fontes/modificadores/raio-borda.js +1 -1
  109. package/fontes/modificadores/raio-borda.js.map +1 -1
  110. package/fontes/modificadores/recursos-fonte.d.ts +5 -2
  111. package/fontes/modificadores/recursos-fonte.js +10 -2
  112. package/fontes/modificadores/recursos-fonte.js.map +1 -1
  113. package/fontes/modificadores/sombra-texto.d.ts +2 -2
  114. package/fontes/modificadores/sombra-texto.js +11 -2
  115. package/fontes/modificadores/sombra-texto.js.map +1 -1
  116. package/fontes/modificadores/substituir-idioma-fonte.d.ts +5 -2
  117. package/fontes/modificadores/substituir-idioma-fonte.js +11 -2
  118. package/fontes/modificadores/substituir-idioma-fonte.js.map +1 -1
  119. package/fontes/modificadores/trajeto-deslocamento.d.ts +5 -2
  120. package/fontes/modificadores/trajeto-deslocamento.js +16 -2
  121. package/fontes/modificadores/trajeto-deslocamento.js.map +1 -1
  122. package/fontes/modificadores/transformar.d.ts +5 -2
  123. package/fontes/modificadores/transformar.js +11 -2
  124. package/fontes/modificadores/transformar.js.map +1 -1
  125. package/fontes/modificadores/validacoes/comum.js +1 -2
  126. package/fontes/modificadores/validacoes/comum.js.map +1 -1
  127. package/fontes/modificadores/validacoes/cor.js +36 -39
  128. package/fontes/modificadores/validacoes/cor.js.map +1 -1
  129. package/fontes/modificadores/validacoes/numerica.js +1 -2
  130. package/fontes/modificadores/validacoes/numerica.js.map +1 -1
  131. package/fontes/tipos-de-simbolos/foles.d.ts +1 -0
  132. package/fontes/tipos-de-simbolos/foles.js +1 -0
  133. package/fontes/tipos-de-simbolos/foles.js.map +1 -1
  134. package/fontes/valores/metodos/encaixar-conteudo.d.ts +1 -0
  135. package/fontes/valores/metodos/encaixar-conteudo.js +1 -0
  136. package/fontes/valores/metodos/encaixar-conteudo.js.map +1 -1
  137. package/fontes/valores/metodos/limitar.d.ts +1 -0
  138. package/fontes/valores/metodos/limitar.js +1 -0
  139. package/fontes/valores/metodos/limitar.js.map +1 -1
  140. package/fontes/valores/metodos/linear.d.ts +1 -0
  141. package/fontes/valores/metodos/linear.js +1 -0
  142. package/fontes/valores/metodos/linear.js.map +1 -1
  143. package/fontes/valores/metodos/minmax.d.ts +2 -1
  144. package/fontes/valores/metodos/minmax.js +4 -3
  145. package/fontes/valores/metodos/minmax.js.map +1 -1
  146. package/fontes/valores/metodos/passos.d.ts +1 -0
  147. package/fontes/valores/metodos/passos.js +1 -0
  148. package/fontes/valores/metodos/passos.js.map +1 -1
  149. package/fontes/valores/metodos/url.d.ts +1 -0
  150. package/fontes/valores/metodos/url.js +1 -0
  151. package/fontes/valores/metodos/url.js.map +1 -1
  152. package/package.json +1 -1
  153. package/testes/avaliador-sintatico.test.js +10 -7
  154. package/testes/avaliador-sintatico.test.js.map +1 -1
  155. package/testes/listas/cores.d.ts +1 -0
  156. package/testes/listas/cores.js +28 -2
  157. package/testes/listas/cores.js.map +1 -1
  158. package/testes/listas/metodos.d.ts +1 -0
  159. package/testes/listas/metodos.js +38 -2
  160. package/testes/listas/metodos.js.map +1 -1
  161. package/testes/listas/palavras-reservadas.js +0 -1
  162. package/testes/listas/palavras-reservadas.js.map +1 -1
  163. package/testes/listas/status.js +7 -0
  164. package/testes/listas/status.js.map +1 -1
  165. package/testes/listas/url.d.ts +1 -0
  166. package/testes/listas/url.js +23 -1
  167. package/testes/listas/url.js.map +1 -1
  168. package/testes/listas/valor-global.js +0 -2
  169. package/testes/listas/valor-global.js.map +1 -1
  170. package/testes/listas/valor-quantificador.js +2 -0
  171. package/testes/listas/valor-quantificador.js.map +1 -1
  172. package/testes/modificadores/atribuicao-abreviada.test.js +4 -1
  173. package/testes/modificadores/atribuicao-abreviada.test.js.map +1 -1
  174. package/testes/modificadores/cores.test.js +24 -31
  175. package/testes/modificadores/cores.test.js.map +1 -1
  176. package/testes/modificadores/estilo.test.js +4 -1
  177. package/testes/modificadores/estilo.test.js.map +1 -1
  178. package/testes/modificadores/metodos.test.js +25 -36
  179. package/testes/modificadores/metodos.test.js.map +1 -1
  180. package/testes/modificadores/palavras-reservadas.test.js +4 -1
  181. package/testes/modificadores/palavras-reservadas.test.js.map +1 -1
  182. package/testes/modificadores/posicao.test.js +4 -1
  183. package/testes/modificadores/posicao.test.js.map +1 -1
  184. package/testes/modificadores/status.test.js +4 -1
  185. package/testes/modificadores/status.test.js.map +1 -1
  186. package/testes/modificadores/url.test.js +19 -18
  187. package/testes/modificadores/url.test.js.map +1 -1
  188. package/testes/modificadores/valor-global.test.js +10 -7
  189. package/testes/modificadores/valor-global.test.js.map +1 -1
  190. package/testes/modificadores/valor-numerico.test.js +4 -1
  191. package/testes/modificadores/valor-numerico.test.js.map +1 -1
  192. package/testes/modificadores/valor-quantificador.test.js +13 -16
  193. package/testes/modificadores/valor-quantificador.test.js.map +1 -1
  194. package/testes/tradutor-reverso.test.js +4 -1
  195. package/testes/tradutor-reverso.test.js.map +1 -1
  196. package/testes/tradutor.test.js +4 -1
  197. 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;AAEhE,MAAa,YAAa,SAAQ,yBAAW;IACzC,YAAY,KAAa,EAAE,aAAsB,EAAE,OAA4B;QAC3E,KAAK,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,EAAE,gBAAgB,CAAC,CAAC;QAE5D;;;;;;;UAOE;QAEF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAlBD,oCAkBC"}
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
- (0, comum_1.validarValores)('origem-borda-máscara', valor, this.valoresAceitos);
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;QAEpD,IAAA,sBAAc,EAAC,sBAAsB,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,2BAA2B;QAC3B,sCAAsC;IAC1C,CAAC;CACJ;AAtBD,gDAsBC"}
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
- constructor(valor: string, quantificador: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,iBAAkB,SAAQ,yBAAW;IAC9C,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;QACpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,8CAMC"}
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.comprimentos, quantificadores_1.ListaDeValorPercentual);
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,iEAAmF;AACnF,+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,8BAAY,EAAE,wCAAsB,CAAC,CAAC;YAExF,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACtC;IACL,CAAC;CACJ;AAlBD,8BAkBC"}
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
- constructor(valor: string, quantificador: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,aAAc,SAAQ,yBAAW;IAC1C,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,gBAAgB,EAAE,uBAAuB,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,sCAMC"}
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: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,WAAY,SAAQ,yBAAW;IACxC,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,kCAMC"}
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
- constructor(valor: string, quantificador: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,qBAAsB,SAAQ,yBAAW;IAClD,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;QAC3D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,sDAMC"}
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
- constructor(valor: string, quantificador: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,mBAAoB,SAAQ,yBAAW;IAChD,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,kDAMC"}
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
- constructor(valor: string, quantificador: string);
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
- this.quantificador = quantificador;
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;AAEhE,MAAa,WAAY,SAAQ,yBAAW;IACxC,YAAY,KAAa,EAAE,aAAqB;QAC5C,KAAK,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ;AAND,kCAMC"}
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 = valorString.includes(valoresExtra[index]);
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.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AAC,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 (!['rgb', 'rgba', 'hsl', 'hsla'].includes(valor.constructor.name.toLowerCase())) {
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
- const valorString = String(valor);
16
- if (valorString.startsWith('#')) {
17
- if (valorString.length !== 4 && valorString.length !== 7) {
18
- throw new Error(`Propriedade '${nomePropriedade}' com hexadecimal inválido: '${valorString}'. Hexadecimais
19
- devem ter 3 ou 6 caracteres após a cerquilha, sendo cada caracter de 0 até 9 ou de A até F.`);
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
- // Cores pelo nome.
25
- if (valoresAceitos === undefined) {
26
- if (valoresExtra === undefined) {
27
- if (!(valor in cores_1.cores) && !(valor in globais_1.valoresGlobais)) {
28
- throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
29
- ${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
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 === undefined) {
44
- if (!(valor in cores_1.cores) && !(valor in valoresAceitos) && !(valor in globais_1.valoresGlobais)) {
45
- throw new Error(`Propriedade '${nomePropriedade}' com valor ${valor} inválido. Valores aceitos:
46
- ${Object.keys(cores_1.cores).reduce((final, atual) => final += `, ${atual}`)},
47
- ${Object.keys(valoresAceitos).reduce((final, atual) => final += `, ${atual}`)},
48
- ${Object.keys(globais_1.valoresGlobais).reduce((final, atual) => final += `, ${atual}`)}.`);
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;IAE/C,IAAI,KAAK,YAAY,eAAM,EAAE;QACzB,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE;YAChF,MAAM,IAAI,KAAK,CAAC,gBAAgB,eAAe,iBAAiB,KAAK,CAAC,WAAW,CAAC,IAAI;8CACpD,CAAC,CAAC;SACvC;KACJ;SAAM;QACH,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAClC,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YAC7B,IAAI,WAAW,CAAC,MAAM,K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AE,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 = valorString.includes(valoresExtra[index]);
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,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AI,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"}
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  ESTRUTURA: string;
12
12
  IDENTIFICADOR: string;
13
13
  ID_DO_ELEMENTO: string;
14
+ IMPORTAR: string;
14
15
  MAIOR: string;
15
16
  METODO: string;
16
17
  NUMERO: string;
@@ -13,6 +13,7 @@ exports.default = {
13
13
  ESTRUTURA: "ESTRUTURA",
14
14
  IDENTIFICADOR: "IDENTIFICADOR",
15
15
  ID_DO_ELEMENTO: "ID_DO_ELEMENTO",
16
+ IMPORTAR: "IMPORTAR",
16
17
  MAIOR: "MAIOR",
17
18
  METODO: "METODO",
18
19
  NUMERO: "NUMERO",
@@ -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,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"}
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,QAAQ,EAAE,UAAU;IACpB,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"}
@@ -3,6 +3,7 @@ import { Metodo } from "./metodo";
3
3
  export declare class EncaixarConteudo extends Metodo {
4
4
  valor: number;
5
5
  quantificador: string;
6
+ traducao: string;
6
7
  constructor(valor: Simbolo, quantificador: string);
7
8
  paraTexto(): string;
8
9
  }
@@ -7,6 +7,7 @@ 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})`;
@@ -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;IAIxC,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;IACvC,CAAC;IAED,SAAS;QACL,OAAO,eAAe,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;IAC5D,CAAC;CACJ;AAbD,4CAaC"}
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;IAQ/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;IACvD,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;AArBD,0BAqBC"}
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"}
@@ -4,6 +4,7 @@ export declare class Linear extends Metodo {
4
4
  inicio: number;
5
5
  meio: number;
6
6
  fim: number;
7
+ traducao: string;
7
8
  constructor(inicio: Simbolo, meio: Simbolo, fim: Simbolo);
8
9
  paraTexto(): string;
9
10
  }
@@ -8,6 +8,7 @@ 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})`;
@@ -1 +1 @@
1
- {"version":3,"file":"linear.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/linear.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,MAAO,SAAQ,eAAM;IAK9B,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;IAClC,CAAC;IAED,SAAS;QACL,OAAO,UAAU,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,GAAG,CAAA;IAC9D,CAAC;CACJ;AAfD,wBAeC"}
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.traducao = {
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.traducao[minimo] === undefined ? this.minimo = minimo : this.minimo = this.traducao[minimo];
16
- this.traducao[maximo] === undefined ? this.maximo = maximo : this.maximo = this.traducao[maximo];
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})`;