@designliquido/foles 0.9.4 → 0.9.6
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/execucao.js +9 -2
- package/execucao.js.map +1 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js +288 -211
- package/fontes/avaliador-sintatico/avaliador-sintatico-reverso.js.map +1 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +87 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/estruturas/estrutura.d.ts +1 -0
- package/fontes/estruturas/estrutura.js.map +1 -1
- package/fontes/foles.js +5 -4
- package/fontes/foles.js.map +1 -1
- package/fontes/lexador/palavras-reservadas/css.d.ts +21 -13
- package/fontes/lexador/palavras-reservadas/css.js +21 -13
- package/fontes/lexador/palavras-reservadas/css.js.map +1 -1
- package/fontes/lexador/palavras-reservadas/foles.d.ts +10 -0
- package/fontes/lexador/palavras-reservadas/foles.js +10 -0
- package/fontes/lexador/palavras-reservadas/foles.js.map +1 -1
- package/fontes/modificadores/borda-mascara.js +3 -3
- package/fontes/modificadores/caminho-recorte.d.ts +9 -0
- package/fontes/modificadores/caminho-recorte.js +39 -0
- package/fontes/modificadores/caminho-recorte.js.map +1 -0
- package/fontes/modificadores/conteudo.js +2 -2
- package/fontes/modificadores/conteudo.js.map +1 -1
- package/fontes/modificadores/dicionario/dicionario-modificadores.js +2 -0
- package/fontes/modificadores/dicionario/dicionario-modificadores.js.map +1 -1
- package/fontes/modificadores/dicionario/dicionario-reverso-modificadores.js +16 -0
- package/fontes/modificadores/dicionario/dicionario-reverso-modificadores.js.map +1 -1
- package/fontes/modificadores/imagem-borda.d.ts +3 -1
- package/fontes/modificadores/imagem-borda.js +1 -1
- package/fontes/modificadores/imagem-borda.js.map +1 -1
- package/fontes/modificadores/imagem-fundo.d.ts +2 -1
- package/fontes/modificadores/imagem-fundo.js.map +1 -1
- package/fontes/modificadores/limite-forma-imagem.js +1 -1
- package/fontes/modificadores/sombra-caixa.d.ts +3 -1
- package/fontes/modificadores/sombra-caixa.js +1 -1
- package/fontes/modificadores/sombra-caixa.js.map +1 -1
- package/fontes/modificadores/superclasse/modificador.d.ts +2 -1
- package/fontes/modificadores/superclasse/modificador.js.map +1 -1
- package/fontes/modificadores/superclasse/seletor-modificador.d.ts +2 -1
- package/fontes/modificadores/superclasse/seletor-modificador.js.map +1 -1
- package/fontes/modificadores/transformar.js +1 -0
- package/fontes/modificadores/transformar.js.map +1 -1
- package/fontes/modificadores/validacoes/atribuicao-abreviada.d.ts +3 -1
- package/fontes/modificadores/validacoes/atribuicao-abreviada.js +18 -6
- package/fontes/modificadores/validacoes/atribuicao-abreviada.js.map +1 -1
- package/fontes/modificadores/validacoes/comum.d.ts +3 -1
- package/fontes/modificadores/validacoes/comum.js +15 -3
- package/fontes/modificadores/validacoes/comum.js.map +1 -1
- package/fontes/modificadores/validacoes/condicao-extra.d.ts +3 -1
- package/fontes/modificadores/validacoes/condicao-extra.js +16 -4
- package/fontes/modificadores/validacoes/condicao-extra.js.map +1 -1
- package/fontes/modificadores/validacoes/cor.d.ts +2 -1
- package/fontes/modificadores/validacoes/cor.js +17 -6
- package/fontes/modificadores/validacoes/cor.js.map +1 -1
- package/fontes/modificadores/validacoes/fonte.d.ts +3 -1
- package/fontes/modificadores/validacoes/fonte.js +15 -3
- package/fontes/modificadores/validacoes/fonte.js.map +1 -1
- package/fontes/modificadores/validacoes/identificacao-personalizada.d.ts +3 -1
- package/fontes/modificadores/validacoes/identificacao-personalizada.js.map +1 -1
- package/fontes/modificadores/validacoes/multiplos-qualitativos.d.ts +3 -1
- package/fontes/modificadores/validacoes/multiplos-qualitativos.js +27 -16
- package/fontes/modificadores/validacoes/multiplos-qualitativos.js.map +1 -1
- package/fontes/modificadores/validacoes/numerica.d.ts +3 -1
- package/fontes/modificadores/validacoes/numerica.js +21 -9
- package/fontes/modificadores/validacoes/numerica.js.map +1 -1
- package/fontes/modificadores/validacoes/quantificador.js +3 -3
- package/fontes/modificadores/variacao-fonte-alternativa.d.ts +3 -1
- package/fontes/modificadores/variacao-fonte-alternativa.js +14 -1
- package/fontes/modificadores/variacao-fonte-alternativa.js.map +1 -1
- package/fontes/seletores/seletor-estrutura.js.map +1 -1
- package/fontes/serializadores/serializador.js +39 -22
- package/fontes/serializadores/serializador.js.map +1 -1
- package/fontes/tradutores/tradutor.js +3 -2
- package/fontes/tradutores/tradutor.js.map +1 -1
- package/fontes/valores/dicionario-valores.js +18 -0
- package/fontes/valores/dicionario-valores.js.map +1 -1
- package/fontes/valores/metodos/css/annotation.d.ts +8 -0
- package/fontes/valores/metodos/css/annotation.js +25 -0
- package/fontes/valores/metodos/css/annotation.js.map +1 -0
- package/fontes/valores/metodos/css/character-variant.d.ts +8 -0
- package/fontes/valores/metodos/css/character-variant.js +19 -0
- package/fontes/valores/metodos/css/character-variant.js.map +1 -0
- package/fontes/valores/metodos/css/counter.d.ts +10 -0
- package/fontes/valores/metodos/css/counter.js +55 -0
- package/fontes/valores/metodos/css/counter.js.map +1 -0
- package/fontes/valores/metodos/css/ornaments.d.ts +8 -0
- package/fontes/valores/metodos/css/ornaments.js +25 -0
- package/fontes/valores/metodos/css/ornaments.js.map +1 -0
- package/fontes/valores/metodos/css/rotate3d.d.ts +12 -0
- package/fontes/valores/metodos/css/rotate3d.js +26 -0
- package/fontes/valores/metodos/css/rotate3d.js.map +1 -0
- package/fontes/valores/metodos/css/styleset.d.ts +10 -0
- package/fontes/valores/metodos/css/styleset.js +29 -0
- package/fontes/valores/metodos/css/styleset.js.map +1 -0
- package/fontes/valores/metodos/css/stylistic.d.ts +8 -0
- package/fontes/valores/metodos/css/stylistic.js +19 -0
- package/fontes/valores/metodos/css/stylistic.js.map +1 -0
- package/fontes/valores/metodos/css/swash.d.ts +8 -0
- package/fontes/valores/metodos/css/swash.js +19 -0
- package/fontes/valores/metodos/css/swash.js.map +1 -0
- package/fontes/valores/metodos/foles/anotacao.d.ts +8 -0
- package/fontes/valores/metodos/foles/anotacao.js +25 -0
- package/fontes/valores/metodos/foles/anotacao.js.map +1 -0
- package/fontes/valores/metodos/foles/conjunto-estilos.d.ts +10 -0
- package/fontes/valores/metodos/foles/conjunto-estilos.js +29 -0
- package/fontes/valores/metodos/foles/conjunto-estilos.js.map +1 -0
- package/fontes/valores/metodos/foles/contador.d.ts +10 -0
- package/fontes/valores/metodos/foles/contador.js +70 -0
- package/fontes/valores/metodos/foles/contador.js.map +1 -0
- package/fontes/valores/metodos/foles/espirrar.d.ts +8 -0
- package/fontes/valores/metodos/foles/espirrar.js +19 -0
- package/fontes/valores/metodos/foles/espirrar.js.map +1 -0
- package/fontes/valores/metodos/foles/estilistico.d.ts +8 -0
- package/fontes/valores/metodos/foles/estilistico.js +19 -0
- package/fontes/valores/metodos/foles/estilistico.js.map +1 -0
- package/fontes/valores/metodos/foles/ornamentos.d.ts +8 -0
- package/fontes/valores/metodos/foles/ornamentos.js +25 -0
- package/fontes/valores/metodos/foles/ornamentos.js.map +1 -0
- package/fontes/valores/metodos/foles/rotacionar-3d.d.ts +12 -0
- package/fontes/valores/metodos/foles/rotacionar-3d.js +29 -0
- package/fontes/valores/metodos/foles/rotacionar-3d.js.map +1 -0
- package/fontes/valores/metodos/foles/variar-caractere.d.ts +8 -0
- package/fontes/valores/metodos/foles/variar-caractere.js +19 -0
- package/fontes/valores/metodos/foles/variar-caractere.js.map +1 -0
- package/package.json +1 -1
- package/testes/modificadores/atribuicao-abreviada.test.js.map +1 -1
- package/testes/modificadores/metodos-reversos.test.js +69 -0
- package/testes/modificadores/metodos-reversos.test.js.map +1 -1
- package/testes/modificadores/metodos.test.js +545 -0
- package/testes/modificadores/metodos.test.js.map +1 -1
- package/testes/serializador.test.js +102 -6
- package/testes/serializador.test.js.map +1 -1
- package/testes/tradutor.test.js +1 -1
- package/testes/tradutor.test.js.map +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Counter = void 0;
|
|
4
|
+
const metodo_css_1 = require("./metodo-css");
|
|
5
|
+
class Counter extends metodo_css_1.MetodoCss {
|
|
6
|
+
constructor(nome, estilo) {
|
|
7
|
+
super();
|
|
8
|
+
this.nome = nome.lexema;
|
|
9
|
+
this.estilo = estilo ? estilo.lexema : null;
|
|
10
|
+
this.traducao = "counter";
|
|
11
|
+
this.estilosAceitos = {
|
|
12
|
+
"decimal": "decimal",
|
|
13
|
+
"decimal-leading-zero": "decimal-zero-esquerda",
|
|
14
|
+
"lower-roman": "romano-minúsculo",
|
|
15
|
+
"upper-roman": "romano-maiúsculo",
|
|
16
|
+
"lower-alpha": "alfa-minúsculo",
|
|
17
|
+
"upper-alpha": "alfa-maiúsculo",
|
|
18
|
+
"lower-latin": "latino-minúsculo",
|
|
19
|
+
"upper-latin": "latino-maiúsculo",
|
|
20
|
+
"georgian": "georgiano",
|
|
21
|
+
"armenian": "armênio",
|
|
22
|
+
"cjk-ideographic": "cjk-ideográfico",
|
|
23
|
+
"hiragana": "hiragana",
|
|
24
|
+
"hiragana-iroha": "hiragana-iroha",
|
|
25
|
+
"katakana": "katakana",
|
|
26
|
+
"katakana-iroha": "katakana-iroha",
|
|
27
|
+
"korean-hangul-formal": "coreano-hangul-formal",
|
|
28
|
+
"korean-hanja-formal": "coreano-hanja-formal",
|
|
29
|
+
"korean-hanja-informal": "coreano-hanja-informal",
|
|
30
|
+
"japanese-formal": "japonês-formal",
|
|
31
|
+
"japanese-informal": "japonês-informal",
|
|
32
|
+
"simp-chinese-formal": "simp-chinês-formal",
|
|
33
|
+
"simp-chinese-informal": "simp-chinês-informal",
|
|
34
|
+
"trad-chinese-formal": "trad-chinês-formal",
|
|
35
|
+
"trad-chinese-informal": "trad-chinês-informal",
|
|
36
|
+
"ethiopic-numeric": "etíope-numérico",
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
paraTexto() {
|
|
40
|
+
if (this.estilo) {
|
|
41
|
+
const listagemEstilos = Object.keys(this.estilosAceitos);
|
|
42
|
+
if (listagemEstilos.includes(this.estilo)) {
|
|
43
|
+
this.estilo = this.estilosAceitos[this.estilo];
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
throw new Error(`Valor de estilo ${this.estilo} inválido para a função counter(). Valores aceitos:
|
|
47
|
+
${Object.keys(this.estilosAceitos).reduce((final, atual) => (final += `, ${atual}`))},`);
|
|
48
|
+
}
|
|
49
|
+
return `contador(${this.nome}, ${this.estilo})`;
|
|
50
|
+
}
|
|
51
|
+
return `contador(${this.nome})`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Counter = Counter;
|
|
55
|
+
//# sourceMappingURL=counter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counter.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/counter.ts"],"names":[],"mappings":";;;AACA,6CAAyC;AAEzC,MAAa,OAAQ,SAAQ,sBAAS;IAMlC,YAAY,IAAa,EAAE,MAAe;QACtC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAE1B,IAAI,CAAC,cAAc,GAAG;YAClB,SAAS,EAAE,SAAS;YACpB,sBAAsB,EAAE,uBAAuB;YAC/C,aAAa,EAAE,kBAAkB;YACjC,aAAa,EAAE,kBAAkB;YACjC,aAAa,EAAE,gBAAgB;YAC/B,aAAa,EAAE,gBAAgB;YAC/B,aAAa,EAAE,kBAAkB;YACjC,aAAa,EAAE,kBAAkB;YACjC,UAAU,EAAE,WAAW;YACvB,UAAU,EAAE,SAAS;YACrB,iBAAiB,EAAE,iBAAiB;YACpC,UAAU,EAAE,UAAU;YACtB,gB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aments = void 0;
|
|
4
|
+
const identificacao_personalizada_1 = require("../../../modificadores/validacoes/identificacao-personalizada");
|
|
5
|
+
const metodo_css_1 = require("./metodo-css");
|
|
6
|
+
class Ornaments extends metodo_css_1.MetodoCss {
|
|
7
|
+
constructor(valor) {
|
|
8
|
+
super();
|
|
9
|
+
this.valor = valor.tipo === 'NUMERO' ? Number(valor.lexema) : valor.lexema;
|
|
10
|
+
this.traducao = "ornaments";
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (typeof this.valor === 'number') {
|
|
14
|
+
if (this.valor < 1 || this.valor > 99) {
|
|
15
|
+
throw new Error('O valor da função ornaments() deve estar entre 1 e 99');
|
|
16
|
+
}
|
|
17
|
+
return `ornamentos(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
const valorSemAspas = this.valor.replace(/^['"]|['"]$/g, '');
|
|
20
|
+
(0, identificacao_personalizada_1.validarIdentificacaoPersonalizada)('variação-fonte-alternativa', valorSemAspas);
|
|
21
|
+
return `ornamentos("${this.valor}")`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Ornaments = Ornaments;
|
|
25
|
+
//# sourceMappingURL=ornaments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ornaments.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/ornaments.ts"],"names":[],"mappings":";;;AACA,+GAAkH;AAClH,6CAAyC;AAEzC,MAAa,SAAU,SAAQ,sBAAS;IAIpC,YAAY,KAAc;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;QAC3E,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;IAChC,CAAC;IAED,SAAS;QACL,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;YAC7E,CAAC;YACD,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAC;QACvC,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QAC7D,IAAA,+DAAiC,EAAC,4BAA4B,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,eAAe,IAAI,CAAC,KAAK,IAAI,CAAC;IACzC,CAAC;CACJ;AAtBD,8BAsBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Simbolo } from "../../../lexador";
|
|
2
|
+
import { MetodoCss } from "./metodo-css";
|
|
3
|
+
export declare class Rotate3d extends MetodoCss {
|
|
4
|
+
valor1: number;
|
|
5
|
+
valor2: number;
|
|
6
|
+
valor3: number;
|
|
7
|
+
valor4: number;
|
|
8
|
+
quantificador: string;
|
|
9
|
+
traducao: string;
|
|
10
|
+
constructor(valor1: Simbolo, valor2: Simbolo, valor3: Simbolo, valor4: Simbolo, quantificador: Simbolo);
|
|
11
|
+
paraTexto(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rotate3d = void 0;
|
|
4
|
+
const quantificadores_1 = require("../../../modificadores/atributos/quantificadores");
|
|
5
|
+
const quantificador_1 = require("../../../modificadores/validacoes/quantificador");
|
|
6
|
+
const metodo_css_1 = require("./metodo-css");
|
|
7
|
+
class Rotate3d extends metodo_css_1.MetodoCss {
|
|
8
|
+
constructor(valor1, valor2, valor3, valor4, quantificador) {
|
|
9
|
+
super();
|
|
10
|
+
this.valor1 = Number(valor1.lexema);
|
|
11
|
+
this.valor2 = Number(valor2.lexema);
|
|
12
|
+
this.valor3 = Number(valor3.lexema);
|
|
13
|
+
this.valor4 = Number(valor4.lexema);
|
|
14
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
15
|
+
this.traducao = "rotate3d";
|
|
16
|
+
}
|
|
17
|
+
paraTexto() {
|
|
18
|
+
if (this.quantificador) {
|
|
19
|
+
(0, quantificador_1.validarQuantificador)('transformar', this.quantificador, quantificadores_1.angulos);
|
|
20
|
+
return `rotacionar-3d(${this.valor1}, ${this.valor2}, ${this.valor3}, ${this.valor4}${this.quantificador})`;
|
|
21
|
+
}
|
|
22
|
+
return `rotacionar-3d(${this.valor1}, ${this.valor2}, ${this.valor3}, ${this.valor4})`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Rotate3d = Rotate3d;
|
|
26
|
+
//# sourceMappingURL=rotate3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate3d.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/rotate3d.ts"],"names":[],"mappings":";;;AACA,sFAA2E;AAC3E,mFAAuF;AACvF,6CAAyC;AAEzC,MAAa,QAAS,SAAQ,sBAAS;IAQnC,YAAY,MAAe,EAAE,MAAe,EAAE,MAAe,EAAE,MAAe,EAAE,aAAsB;QAClG,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAA,oCAAoB,EAAC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,yBAAO,CAAC,CAAC;YAEjE,OAAO,iBAAiB,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,aAAa,GAAG,CAAC;QAChH,CAAC;QAED,OAAO,iBAAiB,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;IAC3F,CAAC;CACJ;AA3BD,4BA2BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Simbolo } from "../../../lexador";
|
|
2
|
+
import { MetodoCss } from "./metodo-css";
|
|
3
|
+
export declare class Styleset extends MetodoCss {
|
|
4
|
+
valor1: number;
|
|
5
|
+
valor2: number;
|
|
6
|
+
valor3: number;
|
|
7
|
+
traducao: string;
|
|
8
|
+
constructor(valor1: Simbolo, valor2: Simbolo, valor3: Simbolo);
|
|
9
|
+
paraTexto(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Styleset = void 0;
|
|
4
|
+
const metodo_css_1 = require("./metodo-css");
|
|
5
|
+
class Styleset extends metodo_css_1.MetodoCss {
|
|
6
|
+
constructor(valor1, valor2, valor3) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.valor2 = valor2 ? Number(valor2.lexema) : null;
|
|
10
|
+
this.valor3 = valor3 ? Number(valor3.lexema) : null;
|
|
11
|
+
this.traducao = "styleset";
|
|
12
|
+
}
|
|
13
|
+
paraTexto() {
|
|
14
|
+
if ((this.valor1 < 1 || this.valor1 > 20)
|
|
15
|
+
|| (this.valor2 && this.valor2 < 1 || this.valor2 > 20)
|
|
16
|
+
|| (this.valor3 && this.valor3 < 1 || this.valor3 > 20)) {
|
|
17
|
+
throw new Error('Os valores da função styleset() devem estar entre 1 e 20');
|
|
18
|
+
}
|
|
19
|
+
if (this.valor2 && this.valor3) {
|
|
20
|
+
return `conjunto-estilos(${this.valor1}, ${this.valor2}, ${this.valor3})`;
|
|
21
|
+
}
|
|
22
|
+
if (this.valor2) {
|
|
23
|
+
return `conjunto-estilos(${this.valor1}, ${this.valor2})`;
|
|
24
|
+
}
|
|
25
|
+
return `conjunto-estilos(${this.valor1})`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Styleset = Styleset;
|
|
29
|
+
//# sourceMappingURL=styleset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleset.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/styleset.ts"],"names":[],"mappings":";;;AACA,6CAAyC;AAEzC,MAAa,QAAS,SAAQ,sBAAS;IAMnC,YAAY,MAAe,EAAE,MAAe,EAAE,MAAe;QACzD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,SAAS;QACL,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;eAClC,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;eACpD,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EACzD,CAAC;YACC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAChF,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7B,OAAO,oBAAoB,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;QAC9E,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,oBAAoB,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;QAC9D,CAAC;QAED,OAAO,oBAAoB,IAAI,CAAC,MAAM,GAAG,CAAC;IAC9C,CAAC;CACJ;AAhCD,4BAgCC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stylistic = void 0;
|
|
4
|
+
const metodo_css_1 = require("./metodo-css");
|
|
5
|
+
class Stylistic extends metodo_css_1.MetodoCss {
|
|
6
|
+
constructor(valor1) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = "stylistic";
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
if (this.valor1 < 1 || this.valor1 > 20) {
|
|
13
|
+
throw new Error('O valor da função stylistic() deve estar entre 1 e 20');
|
|
14
|
+
}
|
|
15
|
+
return `estilístico(${this.valor1})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Stylistic = Stylistic;
|
|
19
|
+
//# sourceMappingURL=stylistic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/stylistic.ts"],"names":[],"mappings":";;;AACA,6CAAyC;AAEzC,MAAa,SAAU,SAAQ,sBAAS;IAIpC,YAAY,MAAe;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;IAChC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC7E,CAAC;QAED,OAAO,eAAe,IAAI,CAAC,MAAM,GAAG,CAAC;IACzC,CAAC;CACJ;AAjBD,8BAiBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Swash = void 0;
|
|
4
|
+
const metodo_css_1 = require("./metodo-css");
|
|
5
|
+
class Swash extends metodo_css_1.MetodoCss {
|
|
6
|
+
constructor(valor1) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = "swash";
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
if (this.valor1 < 1 || this.valor1 > 99) {
|
|
13
|
+
throw new Error('O valor da função swash() deve estar entre 1 e 99');
|
|
14
|
+
}
|
|
15
|
+
return `espirrar(${this.valor1})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Swash = Swash;
|
|
19
|
+
//# sourceMappingURL=swash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swash.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/css/swash.ts"],"names":[],"mappings":";;;AACA,6CAAyC;AAEzC,MAAa,KAAM,SAAQ,sBAAS;IAIhC,YAAY,MAAe;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,YAAY,IAAI,CAAC,MAAM,GAAG,CAAC;IACtC,CAAC;CACJ;AAjBD,sBAiBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Anotacao = void 0;
|
|
4
|
+
const identificacao_personalizada_1 = require("../../../modificadores/validacoes/identificacao-personalizada");
|
|
5
|
+
const metodo_1 = require("./metodo");
|
|
6
|
+
class Anotacao extends metodo_1.Metodo {
|
|
7
|
+
constructor(valor) {
|
|
8
|
+
super();
|
|
9
|
+
this.valor = valor.tipo === 'NUMERO' ? Number(valor.lexema) : valor.lexema;
|
|
10
|
+
this.traducao = "annotation";
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (typeof this.valor === 'number') {
|
|
14
|
+
if (this.valor < 1 || this.valor > 99) {
|
|
15
|
+
throw new Error('O valor da função anotação() deve estar entre 1 e 99');
|
|
16
|
+
}
|
|
17
|
+
return `annotation(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
const valorSemAspas = this.valor.replace(/^['"]|['"]$/g, '');
|
|
20
|
+
(0, identificacao_personalizada_1.validarIdentificacaoPersonalizada)('variação-fonte-alternativa', valorSemAspas);
|
|
21
|
+
return `annotation(${this.valor})`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Anotacao = Anotacao;
|
|
25
|
+
//# sourceMappingURL=anotacao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anotacao.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/anotacao.ts"],"names":[],"mappings":";;;AACA,+GAAkH;AAClH,qCAAkC;AAElC,MAAa,QAAS,SAAQ,eAAM;IAIhC,YAAY,KAAc;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;QAC3E,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAC5E,CAAC;YACD,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAC;QACvC,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QAC7D,IAAA,+DAAiC,EAAC,4BAA4B,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAC;IACvC,CAAC;CACJ;AAtBD,4BAsBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Simbolo } from "../../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class ConjuntoEstilos extends Metodo {
|
|
4
|
+
valor1: number;
|
|
5
|
+
valor2: number;
|
|
6
|
+
valor3: number;
|
|
7
|
+
traducao: string;
|
|
8
|
+
constructor(valor1: Simbolo, valor2: Simbolo, valor3: Simbolo);
|
|
9
|
+
paraTexto(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConjuntoEstilos = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class ConjuntoEstilos extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, valor2, valor3) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.valor2 = valor2 ? Number(valor2.lexema) : null;
|
|
10
|
+
this.valor3 = valor3 ? Number(valor3.lexema) : null;
|
|
11
|
+
this.traducao = "styleset";
|
|
12
|
+
}
|
|
13
|
+
paraTexto() {
|
|
14
|
+
if ((this.valor1 < 1 || this.valor1 > 20)
|
|
15
|
+
|| (this.valor2 && this.valor2 < 1 || this.valor2 > 20)
|
|
16
|
+
|| (this.valor3 && this.valor3 < 1 || this.valor3 > 20)) {
|
|
17
|
+
throw new Error('Os valores da função conjunto-estilos() devem estar entre 1 e 20');
|
|
18
|
+
}
|
|
19
|
+
if (this.valor2 && this.valor3) {
|
|
20
|
+
return `styleset(${this.valor1}, ${this.valor2}, ${this.valor3})`;
|
|
21
|
+
}
|
|
22
|
+
if (this.valor2) {
|
|
23
|
+
return `styleset(${this.valor1}, ${this.valor2})`;
|
|
24
|
+
}
|
|
25
|
+
return `styleset(${this.valor1})`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.ConjuntoEstilos = ConjuntoEstilos;
|
|
29
|
+
//# sourceMappingURL=conjunto-estilos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conjunto-estilos.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/conjunto-estilos.ts"],"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ACtC,CAAC;CACJ;AAhCD,0CAgCC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Simbolo } from "../../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Contador extends Metodo {
|
|
4
|
+
nome: string;
|
|
5
|
+
estilo: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
estilosAceitos: Object;
|
|
8
|
+
constructor(nome: Simbolo, estilo: Simbolo);
|
|
9
|
+
paraTexto(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Contador = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Contador extends metodo_1.Metodo {
|
|
6
|
+
constructor(nome, estilo) {
|
|
7
|
+
super();
|
|
8
|
+
this.nome = nome.lexema;
|
|
9
|
+
this.estilo = estilo ? estilo.lexema : null;
|
|
10
|
+
this.traducao = "counter";
|
|
11
|
+
this.estilosAceitos = {
|
|
12
|
+
"decimal": "decimal",
|
|
13
|
+
"decimal-zero-esquerda": "decimal-leading-zero",
|
|
14
|
+
"romano-minusculo": "lower-roman",
|
|
15
|
+
"romano-minúsculo": "lower-roman",
|
|
16
|
+
"romano-maiusculo": "upper-roman",
|
|
17
|
+
"romano-maiúsculo": "upper-roman",
|
|
18
|
+
"alfa-minusculo": "lower-alpha",
|
|
19
|
+
"alfa-minúsculo": "lower-alpha",
|
|
20
|
+
"alfa-maiusculo": "upper-alpha",
|
|
21
|
+
"alfa-maiúsculo": "upper-alpha",
|
|
22
|
+
"latino-minusculo": "lower-latin",
|
|
23
|
+
"latino-minúsculo": "lower-latin",
|
|
24
|
+
"latino-maiusculo": "upper-latin",
|
|
25
|
+
"latino-maiúsculo": "upper-latin",
|
|
26
|
+
"georgiano": "georgian",
|
|
27
|
+
"armenio": "armenian",
|
|
28
|
+
"armênio": "armenian",
|
|
29
|
+
"cjk-ideografico": "cjk-ideographic",
|
|
30
|
+
"cjk-ideográfico": "cjk-ideographic",
|
|
31
|
+
"hiragana": "hiragana",
|
|
32
|
+
"hiragana-iroha": "hiragana-iroha",
|
|
33
|
+
"katakana": "katakana",
|
|
34
|
+
"katakana-iroha": "katakana-iroha",
|
|
35
|
+
"coreano-hangul-formal": "korean-hangul-formal",
|
|
36
|
+
"coreano-hanja-formal": "korean-hanja-formal",
|
|
37
|
+
"coreano-hanja-informal": "korean-hanja-informal",
|
|
38
|
+
"japones-formal": "japanese-formal",
|
|
39
|
+
"japonês-formal": "japanese-formal",
|
|
40
|
+
"japones-informal": "japanese-informal",
|
|
41
|
+
"japonês-informal": "japanese-informal",
|
|
42
|
+
"simp-chines-formal": "simp-chinese-formal",
|
|
43
|
+
"simp-chinês-formal": "simp-chinese-formal",
|
|
44
|
+
"simp-chines-informal": "simp-chinese-informal",
|
|
45
|
+
"simp-chinês-informal": "simp-chinese-informal",
|
|
46
|
+
"trad-chines-formal": "trad-chinese-formal",
|
|
47
|
+
"trad-chinês-formal": "trad-chinese-formal",
|
|
48
|
+
"trad-chines-informal": "trad-chinese-informal",
|
|
49
|
+
"trad-chinês-informal": "trad-chinese-informal",
|
|
50
|
+
"etiope-numerico": "ethiopic-numeric",
|
|
51
|
+
"etíope-numérico": "ethiopic-numeric",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
paraTexto() {
|
|
55
|
+
if (this.estilo) {
|
|
56
|
+
const listagemEstilos = Object.keys(this.estilosAceitos);
|
|
57
|
+
if (listagemEstilos.includes(this.estilo)) {
|
|
58
|
+
this.estilo = this.estilosAceitos[this.estilo];
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
throw new Error(`Valor de estilo ${this.estilo} inválido para a função contador(). Valores aceitos:
|
|
62
|
+
${Object.keys(this.estilosAceitos).reduce((final, atual) => (final += `, ${atual}`))},`);
|
|
63
|
+
}
|
|
64
|
+
return `counter(${this.nome}, ${this.estilo})`;
|
|
65
|
+
}
|
|
66
|
+
return `counter(${this.nome})`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Contador = Contador;
|
|
70
|
+
//# sourceMappingURL=contador.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contador.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/contador.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,QAAS,SAAQ,eAAM;IAMhC,YAAY,IAAa,EAAE,MAAe;QACtC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAE1B,IAAI,CAAC,cAAc,GAAG;YAClB,SAAS,EAAE,SAAS;YACpB,uBAAuB,EAAE,sBAAsB;YAC/C,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,gBAAgB,EAAE,aAAa;YAC/B,gBAAgB,EAAE,aAAa;YAC/B,gBAAgB,EAAE,aAAa;YAC/B,gBAAgB,EAAE,aAAa;YAC/B,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,kBAAkB,EAAE,aAAa;YACjC,WAAW,EAAE,UAAU;YACvB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,UAAU;YACrB,iBAAiB,EAAE,iBAAiB;YACpC,iBAAiB,EAAE,iBAAiB;YACpC,UAAU,EAAE,UAAU;YACtB,gBAAgB,EAAE,gBAAgB;YAClC,UAAU,EAAE,UAAU;YACtB,gBAAgB,EAAE,gBAAgB;YAClC,uBAAuB,EAAE,sBAAsB;YAC/C,sBAA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+1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Espirrar = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Espirrar extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = "swash";
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
if (this.valor1 < 1 || this.valor1 > 99) {
|
|
13
|
+
throw new Error('O valor da função espirrar() deve estar entre 1 e 99');
|
|
14
|
+
}
|
|
15
|
+
return `swash(${this.valor1})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Espirrar = Espirrar;
|
|
19
|
+
//# sourceMappingURL=espirrar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"espirrar.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/espirrar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,QAAS,SAAQ,eAAM;IAIhC,YAAY,MAAe;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAC5E,CAAC;QAED,OAAO,SAAS,IAAI,CAAC,MAAM,GAAG,CAAC;IACnC,CAAC;CACJ;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Estilistico = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Estilistico extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = "stylistic";
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
if (this.valor1 < 1 || this.valor1 > 20) {
|
|
13
|
+
throw new Error('O valor da função estilistico() deve estar entre 1 e 20');
|
|
14
|
+
}
|
|
15
|
+
return `stylistic(${this.valor1})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Estilistico = Estilistico;
|
|
19
|
+
//# sourceMappingURL=estilistico.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estilistico.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/estilistico.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,WAAY,SAAQ,eAAM;IAInC,YAAY,MAAe;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;IAChC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAC/E,CAAC;QAED,OAAO,aAAa,IAAI,CAAC,MAAM,GAAG,CAAC;IACvC,CAAC;CACJ;AAjBD,kCAiBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Ornamentos = void 0;
|
|
4
|
+
const identificacao_personalizada_1 = require("../../../modificadores/validacoes/identificacao-personalizada");
|
|
5
|
+
const metodo_1 = require("./metodo");
|
|
6
|
+
class Ornamentos extends metodo_1.Metodo {
|
|
7
|
+
constructor(valor) {
|
|
8
|
+
super();
|
|
9
|
+
this.valor = valor.tipo === 'NUMERO' ? Number(valor.lexema) : valor.lexema;
|
|
10
|
+
this.traducao = "ornaments";
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (typeof this.valor === 'number') {
|
|
14
|
+
if (this.valor < 1 || this.valor > 99) {
|
|
15
|
+
throw new Error('O valor da função ornamentos() deve estar entre 1 e 99');
|
|
16
|
+
}
|
|
17
|
+
return `ornaments(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
const valorSemAspas = this.valor.replace(/^['"]|['"]$/g, '');
|
|
20
|
+
(0, identificacao_personalizada_1.validarIdentificacaoPersonalizada)('variação-fonte-alternativa', valorSemAspas);
|
|
21
|
+
return `ornaments(${this.valor})`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Ornamentos = Ornamentos;
|
|
25
|
+
//# sourceMappingURL=ornamentos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ornamentos.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/ornamentos.ts"],"names":[],"mappings":";;;AACA,+GAAkH;AAClH,qCAAkC;AAElC,MAAa,UAAW,SAAQ,eAAM;IAIlC,YAAY,KAAc;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;QAC3E,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;IAChC,CAAC;IAED,SAAS;QACL,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACjC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAC9E,CAAC;YACD,OAAO,aAAa,IAAI,CAAC,KAAK,GAAG,CAAC;QACtC,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;QAC7D,IAAA,+DAAiC,EAAC,4BAA4B,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,aAAa,IAAI,CAAC,KAAK,GAAG,CAAC;IACtC,CAAC;CACJ;AAtBD,gCAsBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Simbolo } from "../../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Rotacionar3d extends Metodo {
|
|
4
|
+
valor1: number;
|
|
5
|
+
valor2: number;
|
|
6
|
+
valor3: number;
|
|
7
|
+
valor4: number;
|
|
8
|
+
quantificador: string;
|
|
9
|
+
traducao: string;
|
|
10
|
+
constructor(valor1: Simbolo, valor2: Simbolo, valor3: Simbolo, valor4: Simbolo, quantificador: Simbolo);
|
|
11
|
+
paraTexto(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rotacionar3d = void 0;
|
|
4
|
+
const quantificadores_1 = require("../../../modificadores/atributos/quantificadores");
|
|
5
|
+
const quantificador_1 = require("../../../modificadores/validacoes/quantificador");
|
|
6
|
+
const metodo_1 = require("./metodo");
|
|
7
|
+
class Rotacionar3d extends metodo_1.Metodo {
|
|
8
|
+
constructor(valor1, valor2, valor3, valor4, quantificador) {
|
|
9
|
+
super();
|
|
10
|
+
this.valor1 = Number(valor1.lexema);
|
|
11
|
+
this.valor2 = Number(valor2.lexema);
|
|
12
|
+
this.valor3 = Number(valor3.lexema);
|
|
13
|
+
this.valor4 = Number(valor4.lexema);
|
|
14
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
15
|
+
this.traducao = "rotate3d";
|
|
16
|
+
}
|
|
17
|
+
paraTexto() {
|
|
18
|
+
if (this.quantificador) {
|
|
19
|
+
this.quantificador === "graus"
|
|
20
|
+
? (this.quantificador = "deg")
|
|
21
|
+
: null;
|
|
22
|
+
(0, quantificador_1.validarQuantificador)('transformar', this.quantificador, quantificadores_1.angulos);
|
|
23
|
+
return `rotate3d(${this.valor1}, ${this.valor2}, ${this.valor3}, ${this.valor4}${this.quantificador})`;
|
|
24
|
+
}
|
|
25
|
+
return `rotate3d(${this.valor1}, ${this.valor2}, ${this.valor3}, ${this.valor4})`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Rotacionar3d = Rotacionar3d;
|
|
29
|
+
//# sourceMappingURL=rotacionar-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotacionar-3d.js","sourceRoot":"","sources":["../../../../../fontes/valores/metodos/foles/rotacionar-3d.ts"],"names":[],"mappings":";;;AACA,sFAA2E;AAC3E,mFAAuF;AACvF,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IAQpC,YAAY,MAAe,EAAE,MAAe,EAAE,MAAe,EAAE,MAAe,EAAE,aAAsB;QAClG,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,aAAa,KAAK,OAAO;gBAC1B,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;gBAC9B,CAAC,CAAC,IAAI,CAAC;YAEX,IAAA,oCAAoB,EAAC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,yBAAO,CAAC,CAAC;YAEjE,OAAO,YAAY,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,aAAa,GAAG,CAAC;QAC3G,CAAC;QAED,OAAO,YAAY,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;IACtF,CAAC;CACJ;AA/BD,oCA+BC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariarCaractere = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class VariarCaractere extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = "character-variant";
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
if (this.valor1 < 1 || this.valor1 > 99) {
|
|
13
|
+
throw new Error('O valor da função variar-caractere() deve estar entre 1 e 99');
|
|
14
|
+
}
|
|
15
|
+
return `character-variant(${this.valor1})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.VariarCaractere = VariarCaractere;
|
|
19
|
+
//# sourceMappingURL=variar-caractere.js.map
|