@formique/semantq
Advanced tools
+15
-32
@@ -645,3 +645,2 @@ 'use strict'; | ||
| buildDynamicSingleSelect(node, rawFieldName) { | ||
| const cleanString = this.cleanFieldName(rawFieldName); | ||
@@ -665,3 +664,2 @@ const fieldName = cleanString.input_name; | ||
| validations = inputParams.validations; | ||
@@ -674,3 +672,3 @@ attributes = inputParams.attributes; | ||
| // 1. CRITICAL FIX: Extract 'options' (main dropdown values) from attributes and store separately (Index 5). | ||
| // Extract 'options' (main dropdown values) | ||
| if (attributes.options) { | ||
@@ -681,32 +679,19 @@ mainSelectOptions = attributes.options; | ||
| // Since the AST is now clean, we assume the only remaining attributes are standard HTML attributes (or empty {}). | ||
| // The previous workaround for fragmented 'South' and 'Africa' keys is now removed. | ||
| // Push Schema Elements (Index 3 and 4) | ||
| fieldSchema.push(validations); // Index 3 | ||
| fieldSchema.push(attributes); // Index 4 (Should be {} if no HTML attributes were defined) | ||
| fieldSchema.push(attributes); // Index 4 | ||
| /// NOW BUILD SCENARIO (SUB-OPTIONS) BLOCKS (Index 6) | ||
| // optionValues retrieves all unique keys that are NOT 'options' | ||
| // Build scenario blocks (Index 6) | ||
| const optionValues = this.extractOptionValues(node.attributes); | ||
| let scenarioBlocks = []; | ||
| if (optionValues.length > 0) { | ||
| optionValues.forEach(option => { | ||
| let schema = {}; | ||
| const lowerCaseOption = option.toLowerCase(); | ||
| // Set the ID/label for the scenario block | ||
| schema['id'] = option; //lowerCaseOption; | ||
| // Use the original option string as the ID | ||
| schema['id'] = option; | ||
| schema['label'] = option; | ||
| // Use the option string directly as the attribute key for lookup (e.g., 'South Africa' -> 'South Africa') | ||
| const attributeKey = option; | ||
| /// Add sub-options now | ||
| const keyOptions = this.getOptionValuesByKey(node.attributes, attributeKey); | ||
| // Get sub-options for this category | ||
| const keyOptions = this.getOptionValuesByKey(node.attributes, option); | ||
| let options = []; | ||
@@ -716,3 +701,6 @@ | ||
| keyOptions.forEach(subOption => { | ||
| options.push({ value: subOption.toLowerCase(), label: this.toTitleCase(subOption) }) | ||
| options.push({ | ||
| value: subOption.toLowerCase(), | ||
| label: this.toTitleCase(subOption) | ||
| }); | ||
| }); | ||
@@ -725,11 +713,5 @@ schema['options'] = options; | ||
| fieldSchema.push(mainSelectOptions); // Index 5 | ||
| fieldSchema.push(scenarioBlocks); // Index 6 | ||
| // 3. PUSH MAIN OPTIONS: Add the main select options list (Index 5) | ||
| fieldSchema.push(mainSelectOptions); | ||
| // 4. PUSH SCENARIO BLOCKS: Add the list of scenario blocks (Index 6) | ||
| fieldSchema.push(scenarioBlocks); | ||
| // 5. Final push to the form schema | ||
| this.formSchema.push(fieldSchema); | ||
@@ -967,2 +949,3 @@ } | ||
| this.formSchema.push(fieldSchema); | ||
| console.log("formSchema", JSON.stringify(this.formSchema,null,2)); | ||
| } | ||
@@ -969,0 +952,0 @@ |
+327
-150
@@ -1,2 +0,2 @@ | ||
| // @generated by Peggy 5.0.6. | ||
| // @generated by Peggy 5.1.0. | ||
| // | ||
@@ -169,18 +169,19 @@ // https://peggyjs.org/ | ||
| const peg$c1 = ":"; | ||
| const peg$c2 = "\""; | ||
| const peg$c3 = "true"; | ||
| const peg$c4 = "false"; | ||
| const peg$c5 = "-"; | ||
| const peg$c2 = "-"; | ||
| const peg$c3 = "\""; | ||
| const peg$c4 = "true"; | ||
| const peg$c5 = "false"; | ||
| const peg$c6 = ","; | ||
| const peg$r0 = /^[^,\r\n]/; | ||
| const peg$r1 = /^[^"]/; | ||
| const peg$r2 = /^[0-9]/; | ||
| const peg$r3 = /^[a-zA-Z0-9_\-]/; | ||
| const peg$r4 = /^[!*]/; | ||
| const peg$r5 = /^[a-zA-Z]/; | ||
| const peg$r6 = /^[a-zA-Z0-9_ \-]/; | ||
| const peg$r7 = /^[ \t\n\r]/; | ||
| const peg$r8 = /^[a-zA-Z_]/; | ||
| const peg$r9 = /^[a-zA-Z0-9_.\/:\-?&=()@#%+![\] ]/; | ||
| const peg$r0 = /^[\r\n]/; | ||
| const peg$r1 = /^[^\r\n]/; | ||
| const peg$r2 = /^[^"]/; | ||
| const peg$r3 = /^[0-9]/; | ||
| const peg$r4 = /^[a-zA-Z0-9_\-]/; | ||
| const peg$r5 = /^[!*]/; | ||
| const peg$r6 = /^[a-zA-Z]/; | ||
| const peg$r7 = /^[a-zA-Z0-9_ \-]/; | ||
| const peg$r8 = /^[ \t\n\r]/; | ||
| const peg$r9 = /^[a-zA-Z_]/; | ||
| const peg$r10 = /^[a-zA-Z0-9_.\/:\-?&=()@#%+![\] ]/; | ||
@@ -190,17 +191,18 @@ const peg$e0 = peg$otherExpectation("form directive must be in this format: @form: form-name"); | ||
| const peg$e2 = peg$literalExpectation(":", false); | ||
| const peg$e3 = peg$classExpectation([",", "\r", "\n"], true, false, false); | ||
| const peg$e4 = peg$literalExpectation("\"", false); | ||
| const peg$e5 = peg$classExpectation(["\""], true, false, false); | ||
| const peg$e6 = peg$literalExpectation("true", false); | ||
| const peg$e7 = peg$literalExpectation("false", false); | ||
| const peg$e8 = peg$classExpectation([["0", "9"]], false, false, false); | ||
| const peg$e9 = peg$literalExpectation("-", false); | ||
| const peg$e10 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false); | ||
| const peg$e11 = peg$classExpectation(["!", "*"], false, false, false); | ||
| const peg$e12 = peg$literalExpectation(",", false); | ||
| const peg$e13 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false); | ||
| const peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", " ", "-"], false, false, false); | ||
| const peg$e15 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false, false); | ||
| const peg$e16 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false); | ||
| const peg$e17 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", ".", "/", ":", "-", "?", "&", "=", "(", ")", "@", "#", "%", "+", "!", "[", "]", " "], false, false, false); | ||
| const peg$e3 = peg$classExpectation(["\r", "\n"], false, false, false); | ||
| const peg$e4 = peg$literalExpectation("-", false); | ||
| const peg$e5 = peg$classExpectation(["\r", "\n"], true, false, false); | ||
| const peg$e6 = peg$literalExpectation("\"", false); | ||
| const peg$e7 = peg$classExpectation(["\""], true, false, false); | ||
| const peg$e8 = peg$literalExpectation("true", false); | ||
| const peg$e9 = peg$literalExpectation("false", false); | ||
| const peg$e10 = peg$classExpectation([["0", "9"]], false, false, false); | ||
| const peg$e11 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false); | ||
| const peg$e12 = peg$classExpectation(["!", "*"], false, false, false); | ||
| const peg$e13 = peg$literalExpectation(",", false); | ||
| const peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false); | ||
| const peg$e15 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", " ", "-"], false, false, false); | ||
| const peg$e16 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false, false); | ||
| const peg$e17 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false); | ||
| const peg$e18 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", ".", "/", ":", "-", "?", "&", "=", "(", ")", "@", "#", "%", "+", "!", "[", "]", " "], false, false, false); | ||
@@ -245,9 +247,10 @@ function peg$f0(definition) { | ||
| } | ||
| function peg$f5() { // 💡 FIX: Match one or more characters until a comma or newline is found. | ||
| // We also trim to ensure leading/trailing spaces aren't included in the value | ||
| function peg$f5(contents) { | ||
| return createNode('StringLiteral', location().start, location().end, { | ||
| value: text().trim() | ||
| value: contents.join("").replace(/\s+/g, ' ').trim() // Normalizes multiline spaces | ||
| }) | ||
| } | ||
| function peg$f6() { | ||
| function peg$f6(char) { return char } | ||
| function peg$f7() { return " " } | ||
| function peg$f8() { | ||
| return createNode('StringLiteral', location().start, location().end, { | ||
@@ -257,3 +260,3 @@ value: text().slice(1, -1) | ||
| } | ||
| function peg$f7() { | ||
| function peg$f9() { | ||
| return createNode('BooleanLiteral', location().start, location().end, { | ||
@@ -263,3 +266,3 @@ value: text() === "true" | ||
| } | ||
| function peg$f8() { | ||
| function peg$f10() { | ||
| return createNode('NumberLiteral', location().start, location().end, { | ||
@@ -269,3 +272,3 @@ value: parseInt(text(), 10) | ||
| } | ||
| function peg$f9(fields) { | ||
| function peg$f11(fields) { | ||
| return createNode('FormFields', location().start, location().end, { | ||
@@ -275,3 +278,3 @@ fields: fields | ||
| } | ||
| function peg$f10(name, attributes) { | ||
| function peg$f12(name, attributes) { | ||
| return createNode('FormField', location().start, location().end, { | ||
@@ -282,14 +285,14 @@ name: name, | ||
| } | ||
| function peg$f11(markers, name, markers2) { | ||
| function peg$f13(markers, name, markers2) { | ||
| return (markers || '') + name + (markers2 || '') | ||
| } | ||
| function peg$f12(name, namePart, name2, type) { | ||
| function peg$f14(name, namePart, name2, type) { | ||
| return (name || '') + namePart.join('') + ':' + type.join('') | ||
| } | ||
| function peg$f13() { return text() } | ||
| function peg$f14() { return text() } | ||
| function peg$f15(attrs) { | ||
| function peg$f15() { return text() } | ||
| function peg$f16() { return text() } | ||
| function peg$f17(attrs) { | ||
| return attrs.map(attr => attr[1]) | ||
| } | ||
| function peg$f16(key, value) { // Consumes trailing spaces/newlines | ||
| function peg$f18(key, value) { // Consumes trailing spaces/newlines | ||
| return createNode('FieldAttribute', location().start, location().end, { | ||
@@ -300,3 +303,3 @@ key: key, // 💡 FIX: Removed .value, since AttributeKey returns a string | ||
| } | ||
| function peg$f17(flag) { | ||
| function peg$f19(flag) { | ||
| return createNode('FieldAttribute', location().start, location().end, { | ||
@@ -307,3 +310,3 @@ key: flag, | ||
| } | ||
| function peg$f18(key, values) { | ||
| function peg$f20(key, values) { | ||
| return createNode('OptionsAttribute', location().start, location().end, { | ||
@@ -314,3 +317,3 @@ key: key, // 💡 FIX: Removed .value, since AttributeKey returns a string | ||
| } | ||
| function peg$f19(head, tail) { | ||
| function peg$f21(head, tail) { | ||
| const options = [head]; | ||
@@ -323,3 +326,3 @@ // The tail is an array of [whitespace, comma, whitespace, Option] tuples. | ||
| } | ||
| function peg$f20(value) { | ||
| function peg$f22(value) { | ||
| return createNode('Option', location().start, location().end, { | ||
@@ -330,8 +333,8 @@ value: value.value, // Extract the value from the AttributeValue node | ||
| } | ||
| function peg$f21() { return text() } | ||
| function peg$f22() { return text() } | ||
| function peg$f23() { | ||
| function peg$f23() { return text() } | ||
| function peg$f24() { return text() } | ||
| function peg$f25() { | ||
| return createNode('Identifier', location().start, location().end, { value: text() }) | ||
| } | ||
| function peg$f24(head, tail) { // 💡 FIX: Added space ' ' | ||
| function peg$f26(head, tail) { // 💡 FIX: Added space ' ' | ||
| return createNode('StringLiteral', location().start, location().end, { | ||
@@ -681,17 +684,43 @@ value: text() // Returns the entire matched text | ||
| s1 = []; | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s2)) { | ||
| s2 = peg$parseUnquotedLine(); | ||
| if (s2 !== peg$FAILED) { | ||
| while (s2 !== peg$FAILED) { | ||
| s1.push(s2); | ||
| s2 = peg$parseUnquotedLine(); | ||
| } | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| } | ||
| if (s1 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s1 = peg$f5(s1); | ||
| } | ||
| s0 = s1; | ||
| return s0; | ||
| } | ||
| function peg$parseUnquotedLine() { | ||
| let s0, s1, s2, s3, s4, s5, s6, s7; | ||
| s0 = peg$currPos; | ||
| s1 = peg$currPos; | ||
| peg$silentFails++; | ||
| s2 = peg$currPos; | ||
| s3 = []; | ||
| s4 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s4)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| s4 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e3); } | ||
| } | ||
| if (s2 !== peg$FAILED) { | ||
| while (s2 !== peg$FAILED) { | ||
| s1.push(s2); | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s2)) { | ||
| if (s4 !== peg$FAILED) { | ||
| while (s4 !== peg$FAILED) { | ||
| s3.push(s4); | ||
| s4 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s4)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| s4 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e3); } | ||
@@ -701,9 +730,158 @@ } | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| } | ||
| if (s3 !== peg$FAILED) { | ||
| s4 = peg$parse_(); | ||
| if (input.charCodeAt(peg$currPos) === 45) { | ||
| s5 = peg$c2; | ||
| peg$currPos++; | ||
| } else { | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e4); } | ||
| } | ||
| if (s5 === peg$FAILED) { | ||
| s5 = peg$currPos; | ||
| s6 = peg$parseIdentifier(); | ||
| if (s6 !== peg$FAILED) { | ||
| if (input.charCodeAt(peg$currPos) === 58) { | ||
| s7 = peg$c1; | ||
| peg$currPos++; | ||
| } else { | ||
| s7 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e2); } | ||
| } | ||
| if (s7 !== peg$FAILED) { | ||
| s6 = [s6, s7]; | ||
| s5 = s6; | ||
| } else { | ||
| peg$currPos = s5; | ||
| s5 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s5; | ||
| s5 = peg$FAILED; | ||
| } | ||
| } | ||
| if (s5 !== peg$FAILED) { | ||
| s3 = [s3, s4, s5]; | ||
| s2 = s3; | ||
| } else { | ||
| peg$currPos = s2; | ||
| s2 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s2; | ||
| s2 = peg$FAILED; | ||
| } | ||
| peg$silentFails--; | ||
| if (s2 === peg$FAILED) { | ||
| s1 = undefined; | ||
| } else { | ||
| peg$currPos = s1; | ||
| s1 = peg$FAILED; | ||
| } | ||
| if (s1 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s1 = peg$f5(); | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r1.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e5); } | ||
| } | ||
| if (s2 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f6(s2); | ||
| } else { | ||
| peg$currPos = s0; | ||
| s0 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s0; | ||
| s0 = peg$FAILED; | ||
| } | ||
| s0 = s1; | ||
| if (s0 === peg$FAILED) { | ||
| s0 = peg$currPos; | ||
| s1 = []; | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e3); } | ||
| } | ||
| if (s2 !== peg$FAILED) { | ||
| while (s2 !== peg$FAILED) { | ||
| s1.push(s2); | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r0.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e3); } | ||
| } | ||
| } | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| } | ||
| if (s1 !== peg$FAILED) { | ||
| s2 = peg$currPos; | ||
| peg$silentFails++; | ||
| s3 = peg$currPos; | ||
| s4 = peg$parse_(); | ||
| if (input.charCodeAt(peg$currPos) === 45) { | ||
| s5 = peg$c2; | ||
| peg$currPos++; | ||
| } else { | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e4); } | ||
| } | ||
| if (s5 === peg$FAILED) { | ||
| s5 = peg$currPos; | ||
| s6 = peg$parseIdentifier(); | ||
| if (s6 !== peg$FAILED) { | ||
| if (input.charCodeAt(peg$currPos) === 58) { | ||
| s7 = peg$c1; | ||
| peg$currPos++; | ||
| } else { | ||
| s7 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e2); } | ||
| } | ||
| if (s7 !== peg$FAILED) { | ||
| s6 = [s6, s7]; | ||
| s5 = s6; | ||
| } else { | ||
| peg$currPos = s5; | ||
| s5 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s5; | ||
| s5 = peg$FAILED; | ||
| } | ||
| } | ||
| if (s5 !== peg$FAILED) { | ||
| s4 = [s4, s5]; | ||
| s3 = s4; | ||
| } else { | ||
| peg$currPos = s3; | ||
| s3 = peg$FAILED; | ||
| } | ||
| peg$silentFails--; | ||
| if (s3 === peg$FAILED) { | ||
| s2 = undefined; | ||
| } else { | ||
| peg$currPos = s2; | ||
| s2 = peg$FAILED; | ||
| } | ||
| if (s2 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f7(); | ||
| } else { | ||
| peg$currPos = s0; | ||
| s0 = peg$FAILED; | ||
| } | ||
| } else { | ||
| peg$currPos = s0; | ||
| s0 = peg$FAILED; | ||
| } | ||
| } | ||
@@ -718,7 +896,7 @@ return s0; | ||
| if (input.charCodeAt(peg$currPos) === 34) { | ||
| s1 = peg$c2; | ||
| s1 = peg$c3; | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e4); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e6); } | ||
| } | ||
@@ -728,7 +906,7 @@ if (s1 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r1.test(s3)) { | ||
| if (peg$r2.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e5); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e7); } | ||
| } | ||
@@ -738,19 +916,19 @@ while (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r1.test(s3)) { | ||
| if (peg$r2.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e5); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e7); } | ||
| } | ||
| } | ||
| if (input.charCodeAt(peg$currPos) === 34) { | ||
| s3 = peg$c2; | ||
| s3 = peg$c3; | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e4); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e6); } | ||
| } | ||
| if (s3 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f6(); | ||
| s0 = peg$f8(); | ||
| } else { | ||
@@ -772,16 +950,16 @@ peg$currPos = s0; | ||
| s0 = peg$currPos; | ||
| if (input.substr(peg$currPos, 4) === peg$c3) { | ||
| s1 = peg$c3; | ||
| if (input.substr(peg$currPos, 4) === peg$c4) { | ||
| s1 = peg$c4; | ||
| peg$currPos += 4; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e6); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e8); } | ||
| } | ||
| if (s1 === peg$FAILED) { | ||
| if (input.substr(peg$currPos, 5) === peg$c4) { | ||
| s1 = peg$c4; | ||
| if (input.substr(peg$currPos, 5) === peg$c5) { | ||
| s1 = peg$c5; | ||
| peg$currPos += 5; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e7); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e9); } | ||
| } | ||
@@ -791,3 +969,3 @@ } | ||
| peg$savedPos = s0; | ||
| s1 = peg$f7(); | ||
| s1 = peg$f9(); | ||
| } | ||
@@ -805,7 +983,7 @@ s0 = s1; | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r2.test(s2)) { | ||
| if (peg$r3.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e8); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| } | ||
@@ -816,7 +994,7 @@ if (s2 !== peg$FAILED) { | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r2.test(s2)) { | ||
| if (peg$r3.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e8); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| } | ||
@@ -829,3 +1007,3 @@ } | ||
| peg$savedPos = s0; | ||
| s1 = peg$f8(); | ||
| s1 = peg$f10(); | ||
| } | ||
@@ -854,3 +1032,3 @@ s0 = s1; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f9(s2); | ||
| s0 = peg$f11(s2); | ||
| } else { | ||
@@ -869,7 +1047,7 @@ peg$currPos = s0; | ||
| if (input.charCodeAt(peg$currPos) === 45) { | ||
| s1 = peg$c5; | ||
| s1 = peg$c2; | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e9); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e4); } | ||
| } | ||
@@ -883,3 +1061,3 @@ if (s1 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f10(s3, s4); | ||
| s0 = peg$f12(s3, s4); | ||
| } else { | ||
@@ -916,3 +1094,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f11(s2, s4, s6); | ||
| s0 = peg$f13(s2, s4, s6); | ||
| } else { | ||
@@ -947,7 +1125,7 @@ peg$currPos = s0; | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -958,7 +1136,7 @@ if (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -984,7 +1162,7 @@ } | ||
| s6 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s6)) { | ||
| if (peg$r4.test(s6)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s6 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -995,7 +1173,7 @@ if (s6 !== peg$FAILED) { | ||
| s6 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s6)) { | ||
| if (peg$r4.test(s6)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s6 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -1008,3 +1186,3 @@ } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f12(s1, s2, s3, s5); | ||
| s0 = peg$f14(s1, s2, s3, s5); | ||
| } else { | ||
@@ -1032,7 +1210,7 @@ peg$currPos = s0; | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s2)) { | ||
| if (peg$r4.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -1043,7 +1221,7 @@ if (s2 !== peg$FAILED) { | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s2)) { | ||
| if (peg$r4.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -1056,3 +1234,3 @@ } | ||
| peg$savedPos = s0; | ||
| s1 = peg$f13(); | ||
| s1 = peg$f15(); | ||
| } | ||
@@ -1070,7 +1248,7 @@ s0 = s1; | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s2)) { | ||
| if (peg$r5.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e12); } | ||
| } | ||
@@ -1081,7 +1259,7 @@ if (s2 !== peg$FAILED) { | ||
| s2 = input.charAt(peg$currPos); | ||
| if (peg$r4.test(s2)) { | ||
| if (peg$r5.test(s2)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s2 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e12); } | ||
| } | ||
@@ -1094,3 +1272,3 @@ } | ||
| peg$savedPos = s0; | ||
| s1 = peg$f14(); | ||
| s1 = peg$f16(); | ||
| } | ||
@@ -1131,3 +1309,3 @@ s0 = s1; | ||
| peg$savedPos = s0; | ||
| s1 = peg$f15(s1); | ||
| s1 = peg$f17(s1); | ||
| s0 = s1; | ||
@@ -1168,3 +1346,3 @@ | ||
| peg$savedPos = s0; | ||
| s0 = peg$f16(s1, s4); | ||
| s0 = peg$f18(s1, s4); | ||
| } else { | ||
@@ -1188,3 +1366,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f17(s1); | ||
| s0 = peg$f19(s1); | ||
| } else { | ||
@@ -1217,3 +1395,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s0 = peg$f18(s1, s4); | ||
| s0 = peg$f20(s1, s4); | ||
| } else { | ||
@@ -1249,3 +1427,3 @@ peg$currPos = s0; | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e12); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| } | ||
@@ -1276,3 +1454,3 @@ if (s5 !== peg$FAILED) { | ||
| s5 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e12); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| } | ||
@@ -1299,3 +1477,3 @@ if (s5 !== peg$FAILED) { | ||
| peg$savedPos = s0; | ||
| s0 = peg$f19(s1, s2); | ||
| s0 = peg$f21(s1, s2); | ||
| } else { | ||
@@ -1334,3 +1512,3 @@ peg$currPos = s0; | ||
| peg$savedPos = s0; | ||
| s1 = peg$f20(s1); | ||
| s1 = peg$f22(s1); | ||
| } | ||
@@ -1347,7 +1525,7 @@ s0 = s1; | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r5.test(s1)) { | ||
| if (peg$r6.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e14); } | ||
| } | ||
@@ -1357,7 +1535,7 @@ if (s1 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r6.test(s3)) { | ||
| if (peg$r7.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e14); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e15); } | ||
| } | ||
@@ -1367,11 +1545,11 @@ while (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r6.test(s3)) { | ||
| if (peg$r7.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e14); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e15); } | ||
| } | ||
| } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f21(); | ||
| s0 = peg$f23(); | ||
| } else { | ||
@@ -1390,7 +1568,7 @@ peg$currPos = s0; | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r5.test(s1)) { | ||
| if (peg$r6.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e13); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e14); } | ||
| } | ||
@@ -1400,7 +1578,7 @@ if (s1 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -1410,11 +1588,11 @@ while (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
| } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f22(); | ||
| s0 = peg$f24(); | ||
| } else { | ||
@@ -1433,7 +1611,7 @@ peg$currPos = s0; | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r7.test(s1)) { | ||
| if (peg$r8.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e15); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e16); } | ||
| } | ||
@@ -1443,7 +1621,7 @@ while (s1 !== peg$FAILED) { | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r7.test(s1)) { | ||
| if (peg$r8.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e15); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e16); } | ||
| } | ||
@@ -1460,7 +1638,7 @@ } | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r8.test(s1)) { | ||
| if (peg$r9.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e16); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e17); } | ||
| } | ||
@@ -1470,7 +1648,7 @@ if (s1 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
@@ -1480,11 +1658,11 @@ while (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r3.test(s3)) { | ||
| if (peg$r4.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e10); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e11); } | ||
| } | ||
| } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f23(); | ||
| s0 = peg$f25(); | ||
| } else { | ||
@@ -1503,7 +1681,7 @@ peg$currPos = s0; | ||
| s1 = input.charAt(peg$currPos); | ||
| if (peg$r8.test(s1)) { | ||
| if (peg$r9.test(s1)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s1 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e16); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e17); } | ||
| } | ||
@@ -1513,7 +1691,7 @@ if (s1 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r9.test(s3)) { | ||
| if (peg$r10.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e17); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e18); } | ||
| } | ||
@@ -1523,11 +1701,11 @@ while (s3 !== peg$FAILED) { | ||
| s3 = input.charAt(peg$currPos); | ||
| if (peg$r9.test(s3)) { | ||
| if (peg$r10.test(s3)) { | ||
| peg$currPos++; | ||
| } else { | ||
| s3 = peg$FAILED; | ||
| if (peg$silentFails === 0) { peg$fail(peg$e17); } | ||
| if (peg$silentFails === 0) { peg$fail(peg$e18); } | ||
| } | ||
| } | ||
| peg$savedPos = s0; | ||
| s0 = peg$f24(s1, s2); | ||
| s0 = peg$f26(s1, s2); | ||
| } else { | ||
@@ -1611,2 +1789,1 @@ peg$currPos = s0; | ||
+1
-1
| { | ||
| "name": "@formique/semantq", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "description": "Formique is a native form builder for the Semantq JS Framework", | ||
@@ -5,0 +5,0 @@ "main": "formique-semantq.js", |
Sorry, the diff of this file is too big to display
256267
1.05%6613
2.4%