@formique/semantq 1.1.3 → 1.1.5

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/LowCodeParser.js CHANGED
@@ -305,25 +305,27 @@ return attrs.map(attr => attr[1])
305
305
  })
306
306
  }
307
307
  function peg$f21(head, tail) {
308
- const options = [head];
309
- // The tail is an array of [whitespace, comma, whitespace, Option] tuples.
310
- for (const item of tail) {
311
- options.push(item[3]); // item[3] is the Option node
312
- }
313
- return options;
308
+ const options = [head];
309
+ for (const item of tail) {
310
+ options.push(item[3]);
311
+ }
312
+ return options;
314
313
  }
315
- function peg$f22(value) {
314
+ function peg$f22(option) {
315
+ return [option];
316
+ }
317
+ function peg$f23(value) {
316
318
  return createNode('Option', location().start, location().end, {
317
319
  value: value.value, // Extract the value from the AttributeValue node
318
320
  quoted: value.type === 'StringLiteral' // Check if it was a quoted string
319
321
  })
320
322
  }
321
- function peg$f23() { return text() }
322
323
  function peg$f24() { return text() }
323
- function peg$f25() {
324
+ function peg$f25() { return text() }
325
+ function peg$f26() {
324
326
  return createNode('Identifier', location().start, location().end, { value: text() })
325
327
  }
326
- function peg$f26(head, tail) { // 💡 FIX: Added space ' '
328
+ function peg$f27(head, tail) { // 💡 FIX: Added space ' '
327
329
  return createNode('StringLiteral', location().start, location().end, {
328
330
  value: text() // Returns the entire matched text
329
331
  })
@@ -1086,7 +1088,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1086
1088
  }
1087
1089
 
1088
1090
  function peg$parseNameWithType() {
1089
- let s0, s1, s2, s3, s4, s5, s6;
1091
+ let s0, s1, s2, s3, s4, s5, s6, s7;
1090
1092
 
1091
1093
  s0 = peg$currPos;
1092
1094
  s1 = peg$parseFieldMarkers();
@@ -1128,31 +1130,32 @@ return createNode('Identifier', location().start, location().end, { value: text(
1128
1130
  if (peg$silentFails === 0) { peg$fail(peg$e2); }
1129
1131
  }
1130
1132
  if (s4 !== peg$FAILED) {
1131
- s5 = [];
1132
- s6 = input.charAt(peg$currPos);
1133
- if (peg$r4.test(s6)) {
1133
+ s5 = peg$parse_();
1134
+ s6 = [];
1135
+ s7 = input.charAt(peg$currPos);
1136
+ if (peg$r4.test(s7)) {
1134
1137
  peg$currPos++;
1135
1138
  } else {
1136
- s6 = peg$FAILED;
1139
+ s7 = peg$FAILED;
1137
1140
  if (peg$silentFails === 0) { peg$fail(peg$e11); }
1138
1141
  }
1139
- if (s6 !== peg$FAILED) {
1140
- while (s6 !== peg$FAILED) {
1141
- s5.push(s6);
1142
- s6 = input.charAt(peg$currPos);
1143
- if (peg$r4.test(s6)) {
1142
+ if (s7 !== peg$FAILED) {
1143
+ while (s7 !== peg$FAILED) {
1144
+ s6.push(s7);
1145
+ s7 = input.charAt(peg$currPos);
1146
+ if (peg$r4.test(s7)) {
1144
1147
  peg$currPos++;
1145
1148
  } else {
1146
- s6 = peg$FAILED;
1149
+ s7 = peg$FAILED;
1147
1150
  if (peg$silentFails === 0) { peg$fail(peg$e11); }
1148
1151
  }
1149
1152
  }
1150
1153
  } else {
1151
- s5 = peg$FAILED;
1154
+ s6 = peg$FAILED;
1152
1155
  }
1153
- if (s5 !== peg$FAILED) {
1156
+ if (s6 !== peg$FAILED) {
1154
1157
  peg$savedPos = s0;
1155
- s0 = peg$f14(s1, s2, s3, s5);
1158
+ s0 = peg$f14(s1, s2, s3, s6);
1156
1159
  } else {
1157
1160
  peg$currPos = s0;
1158
1161
  s0 = peg$FAILED;
@@ -1398,47 +1401,58 @@ return createNode('Identifier', location().start, location().end, { value: text(
1398
1401
  peg$currPos = s3;
1399
1402
  s3 = peg$FAILED;
1400
1403
  }
1401
- if (s3 !== peg$FAILED) {
1402
- while (s3 !== peg$FAILED) {
1403
- s2.push(s3);
1404
- s3 = peg$currPos;
1405
- s4 = peg$parse_();
1406
- if (input.charCodeAt(peg$currPos) === 44) {
1407
- s5 = peg$c6;
1408
- peg$currPos++;
1409
- } else {
1410
- s5 = peg$FAILED;
1411
- if (peg$silentFails === 0) { peg$fail(peg$e13); }
1412
- }
1413
- if (s5 !== peg$FAILED) {
1414
- s6 = peg$parse_();
1415
- s7 = peg$parseOption();
1416
- if (s7 !== peg$FAILED) {
1417
- s4 = [s4, s5, s6, s7];
1418
- s3 = s4;
1419
- } else {
1420
- peg$currPos = s3;
1421
- s3 = peg$FAILED;
1422
- }
1404
+ while (s3 !== peg$FAILED) {
1405
+ s2.push(s3);
1406
+ s3 = peg$currPos;
1407
+ s4 = peg$parse_();
1408
+ if (input.charCodeAt(peg$currPos) === 44) {
1409
+ s5 = peg$c6;
1410
+ peg$currPos++;
1411
+ } else {
1412
+ s5 = peg$FAILED;
1413
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
1414
+ }
1415
+ if (s5 !== peg$FAILED) {
1416
+ s6 = peg$parse_();
1417
+ s7 = peg$parseOption();
1418
+ if (s7 !== peg$FAILED) {
1419
+ s4 = [s4, s5, s6, s7];
1420
+ s3 = s4;
1423
1421
  } else {
1424
1422
  peg$currPos = s3;
1425
1423
  s3 = peg$FAILED;
1426
1424
  }
1425
+ } else {
1426
+ peg$currPos = s3;
1427
+ s3 = peg$FAILED;
1427
1428
  }
1428
- } else {
1429
- s2 = peg$FAILED;
1430
1429
  }
1431
- if (s2 !== peg$FAILED) {
1432
- peg$savedPos = s0;
1433
- s0 = peg$f21(s1, s2);
1430
+ s3 = peg$parse_();
1431
+ if (input.charCodeAt(peg$currPos) === 44) {
1432
+ s4 = peg$c6;
1433
+ peg$currPos++;
1434
1434
  } else {
1435
- peg$currPos = s0;
1436
- s0 = peg$FAILED;
1435
+ s4 = peg$FAILED;
1436
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
1437
+ }
1438
+ if (s4 === peg$FAILED) {
1439
+ s4 = null;
1437
1440
  }
1441
+ peg$savedPos = s0;
1442
+ s0 = peg$f21(s1, s2);
1438
1443
  } else {
1439
1444
  peg$currPos = s0;
1440
1445
  s0 = peg$FAILED;
1441
1446
  }
1447
+ if (s0 === peg$FAILED) {
1448
+ s0 = peg$currPos;
1449
+ s1 = peg$parseOption();
1450
+ if (s1 !== peg$FAILED) {
1451
+ peg$savedPos = s0;
1452
+ s1 = peg$f22(s1);
1453
+ }
1454
+ s0 = s1;
1455
+ }
1442
1456
 
1443
1457
  return s0;
1444
1458
  }
@@ -1464,7 +1478,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1464
1478
  s1 = peg$parseAttributeValue();
1465
1479
  if (s1 !== peg$FAILED) {
1466
1480
  peg$savedPos = s0;
1467
- s1 = peg$f22(s1);
1481
+ s1 = peg$f23(s1);
1468
1482
  }
1469
1483
  s0 = s1;
1470
1484
 
@@ -1502,7 +1516,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1502
1516
  }
1503
1517
  }
1504
1518
  peg$savedPos = s0;
1505
- s0 = peg$f23();
1519
+ s0 = peg$f24();
1506
1520
  } else {
1507
1521
  peg$currPos = s0;
1508
1522
  s0 = peg$FAILED;
@@ -1542,7 +1556,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1542
1556
  }
1543
1557
  }
1544
1558
  peg$savedPos = s0;
1545
- s0 = peg$f24();
1559
+ s0 = peg$f25();
1546
1560
  } else {
1547
1561
  peg$currPos = s0;
1548
1562
  s0 = peg$FAILED;
@@ -1607,7 +1621,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1607
1621
  }
1608
1622
  }
1609
1623
  peg$savedPos = s0;
1610
- s0 = peg$f25();
1624
+ s0 = peg$f26();
1611
1625
  } else {
1612
1626
  peg$currPos = s0;
1613
1627
  s0 = peg$FAILED;
@@ -1647,7 +1661,7 @@ return createNode('Identifier', location().start, location().end, { value: text(
1647
1661
  }
1648
1662
  }
1649
1663
  peg$savedPos = s0;
1650
- s0 = peg$f26(s1, s2);
1664
+ s0 = peg$f27(s1, s2);
1651
1665
  } else {
1652
1666
  peg$currPos = s0;
1653
1667
  s0 = peg$FAILED;
@@ -1725,4 +1739,3 @@ export default {
1725
1739
  SyntaxError: peg$SyntaxError,
1726
1740
  parse: peg$parse
1727
1741
  };
1728
-
@@ -424,7 +424,7 @@ attachInputChangeListener(parentField) {
424
424
  // Convert value to lowercase for consistent comparison with 'yes' condition
425
425
  //this.handleParentFieldChange(parentField, value.toLowerCase());
426
426
 
427
- this.handleParentFieldChange(parentField, value.toLowerCase());
427
+ this.handleParentFieldChange(parentField, value);
428
428
  });
429
429
  });
430
430
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formique/semantq",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Formique is a native form builder for the Semantq JS Framework",
5
5
  "main": "formique-semantq.js",
6
6
  "type": "module",