@genesislcap/expression-builder 14.251.2 → 14.251.3

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.
@@ -1417,12 +1417,12 @@
1417
1417
  },
1418
1418
  {
1419
1419
  "kind": "javascript-module",
1420
- "path": "src/main/rule-operator/rule-operator.template.ts",
1420
+ "path": "src/main/rule-field/rule-field.template.ts",
1421
1421
  "declarations": [
1422
1422
  {
1423
1423
  "kind": "variable",
1424
1424
  "name": "template",
1425
- "default": "html<RuleOperator>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleOperator>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.handleOperatorChange(c.event)}\n value=${(x) => x.operator?.type}\n >\n <${optionTag} value=\"\">Select an operator</${optionTag}>\n ${repeat(\n (x) => x.groupedOperators,\n html<{ optgroup: string | null; xs: Operator[] } | Operator, RuleOperator>`\n ${(groupOrOperator) => {\n if ('xs' in groupOrOperator) {\n return html<{ optgroup: string | null; xs: Operator[] }, RuleOperator>`\n <${optgroupTag} label=\"${groupOrOperator.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Operator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => x.type === c.parentContext.parent.operator?.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Operator, RuleOperator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => c.parent.operator?.type === x.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
1425
+ "default": "html<RuleField>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleField>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.dispatchFieldsChanged(c.event)}\n value=${(x) => x.field?.fieldId}\n >\n <${optionTag} value=\"\">Select a field</${optionTag}>\n ${repeat(\n (x) => x.groupedFieldss,\n html<{ optgroup: string | null; xs: Field[] } | Field, RuleField>`\n ${(groupOrFields) => {\n if ('xs' in groupOrFields) {\n return html<{\n optgroup: string | null;\n xs: Field[];\n }>`\n <${optgroupTag} label=\"${(x) => x.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parentContext.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
1426
1426
  }
1427
1427
  ],
1428
1428
  "exports": [
@@ -1431,42 +1431,34 @@
1431
1431
  "name": "template",
1432
1432
  "declaration": {
1433
1433
  "name": "template",
1434
- "module": "src/main/rule-operator/rule-operator.template.ts"
1434
+ "module": "src/main/rule-field/rule-field.template.ts"
1435
1435
  }
1436
1436
  }
1437
1437
  ]
1438
1438
  },
1439
1439
  {
1440
1440
  "kind": "javascript-module",
1441
- "path": "src/main/rule-operator/rule-operator.ts",
1441
+ "path": "src/main/rule-field/rule-field.ts",
1442
1442
  "declarations": [
1443
1443
  {
1444
1444
  "kind": "class",
1445
1445
  "description": "",
1446
- "name": "RuleOperator",
1446
+ "name": "RuleField",
1447
1447
  "members": [
1448
1448
  {
1449
1449
  "kind": "field",
1450
- "name": "operators",
1450
+ "name": "fields",
1451
1451
  "type": {
1452
- "text": "Operator[]"
1452
+ "text": "Field[]"
1453
1453
  },
1454
1454
  "default": "[]"
1455
1455
  },
1456
- {
1457
- "kind": "field",
1458
- "name": "operator",
1459
- "type": {
1460
- "text": "Operator"
1461
- }
1462
- },
1463
1456
  {
1464
1457
  "kind": "field",
1465
1458
  "name": "field",
1466
1459
  "type": {
1467
- "text": "Field | null"
1468
- },
1469
- "default": "null"
1460
+ "text": "Field"
1461
+ }
1470
1462
  },
1471
1463
  {
1472
1464
  "kind": "field",
@@ -1484,23 +1476,15 @@
1484
1476
  },
1485
1477
  {
1486
1478
  "kind": "field",
1487
- "name": "allowedOperators",
1488
- "type": {
1489
- "text": "Operator[]"
1490
- },
1491
- "readonly": true
1492
- },
1493
- {
1494
- "kind": "field",
1495
- "name": "groupedOperators",
1479
+ "name": "groupedFieldss",
1496
1480
  "type": {
1497
- "text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
1481
+ "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1498
1482
  },
1499
1483
  "readonly": true
1500
1484
  },
1501
1485
  {
1502
1486
  "kind": "method",
1503
- "name": "handleOperatorChange",
1487
+ "name": "dispatchFieldsChanged",
1504
1488
  "parameters": [
1505
1489
  {
1506
1490
  "name": "event",
@@ -1522,37 +1506,37 @@
1522
1506
  "name": "GenesisElement",
1523
1507
  "package": "@genesislcap/web-core"
1524
1508
  },
1525
- "tagName": "expression-rule-operator",
1509
+ "tagName": "expression-rule-field",
1526
1510
  "customElement": true
1527
1511
  }
1528
1512
  ],
1529
1513
  "exports": [
1530
1514
  {
1531
1515
  "kind": "js",
1532
- "name": "RuleOperator",
1516
+ "name": "RuleField",
1533
1517
  "declaration": {
1534
- "name": "RuleOperator",
1535
- "module": "src/main/rule-operator/rule-operator.ts"
1518
+ "name": "RuleField",
1519
+ "module": "src/main/rule-field/rule-field.ts"
1536
1520
  }
1537
1521
  },
1538
1522
  {
1539
1523
  "kind": "custom-element-definition",
1540
- "name": "expression-rule-operator",
1524
+ "name": "expression-rule-field",
1541
1525
  "declaration": {
1542
- "name": "RuleOperator",
1543
- "module": "src/main/rule-operator/rule-operator.ts"
1526
+ "name": "RuleField",
1527
+ "module": "src/main/rule-field/rule-field.ts"
1544
1528
  }
1545
1529
  }
1546
1530
  ]
1547
1531
  },
1548
1532
  {
1549
1533
  "kind": "javascript-module",
1550
- "path": "src/main/rule-field/rule-field.template.ts",
1534
+ "path": "src/main/rule-operator/rule-operator.template.ts",
1551
1535
  "declarations": [
1552
1536
  {
1553
1537
  "kind": "variable",
1554
1538
  "name": "template",
1555
- "default": "html<RuleField>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleField>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.dispatchFieldsChanged(c.event)}\n value=${(x) => x.field?.fieldId}\n >\n <${optionTag} value=\"\">Select a field</${optionTag}>\n ${repeat(\n (x) => x.groupedFieldss,\n html<{ optgroup: string | null; xs: Field[] } | Field, RuleField>`\n ${(groupOrFields) => {\n if ('xs' in groupOrFields) {\n return html<{\n optgroup: string | null;\n xs: Field[];\n }>`\n <${optgroupTag} label=\"${(x) => x.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parentContext.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
1539
+ "default": "html<RuleOperator>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleOperator>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.handleOperatorChange(c.event)}\n value=${(x) => x.operator?.type}\n >\n <${optionTag} value=\"\">Select an operator</${optionTag}>\n ${repeat(\n (x) => x.groupedOperators,\n html<{ optgroup: string | null; xs: Operator[] } | Operator, RuleOperator>`\n ${(groupOrOperator) => {\n if ('xs' in groupOrOperator) {\n return html<{ optgroup: string | null; xs: Operator[] }, RuleOperator>`\n <${optgroupTag} label=\"${groupOrOperator.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Operator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => x.type === c.parentContext.parent.operator?.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Operator, RuleOperator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => c.parent.operator?.type === x.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
1556
1540
  }
1557
1541
  ],
1558
1542
  "exports": [
@@ -1561,35 +1545,43 @@
1561
1545
  "name": "template",
1562
1546
  "declaration": {
1563
1547
  "name": "template",
1564
- "module": "src/main/rule-field/rule-field.template.ts"
1548
+ "module": "src/main/rule-operator/rule-operator.template.ts"
1565
1549
  }
1566
1550
  }
1567
1551
  ]
1568
1552
  },
1569
1553
  {
1570
1554
  "kind": "javascript-module",
1571
- "path": "src/main/rule-field/rule-field.ts",
1555
+ "path": "src/main/rule-operator/rule-operator.ts",
1572
1556
  "declarations": [
1573
1557
  {
1574
1558
  "kind": "class",
1575
1559
  "description": "",
1576
- "name": "RuleField",
1560
+ "name": "RuleOperator",
1577
1561
  "members": [
1578
1562
  {
1579
1563
  "kind": "field",
1580
- "name": "fields",
1564
+ "name": "operators",
1581
1565
  "type": {
1582
- "text": "Field[]"
1566
+ "text": "Operator[]"
1583
1567
  },
1584
1568
  "default": "[]"
1585
1569
  },
1586
1570
  {
1587
1571
  "kind": "field",
1588
- "name": "field",
1572
+ "name": "operator",
1589
1573
  "type": {
1590
- "text": "Field"
1574
+ "text": "Operator"
1591
1575
  }
1592
1576
  },
1577
+ {
1578
+ "kind": "field",
1579
+ "name": "field",
1580
+ "type": {
1581
+ "text": "Field | null"
1582
+ },
1583
+ "default": "null"
1584
+ },
1593
1585
  {
1594
1586
  "kind": "field",
1595
1587
  "name": "config",
@@ -1606,15 +1598,23 @@
1606
1598
  },
1607
1599
  {
1608
1600
  "kind": "field",
1609
- "name": "groupedFieldss",
1601
+ "name": "allowedOperators",
1610
1602
  "type": {
1611
- "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1603
+ "text": "Operator[]"
1604
+ },
1605
+ "readonly": true
1606
+ },
1607
+ {
1608
+ "kind": "field",
1609
+ "name": "groupedOperators",
1610
+ "type": {
1611
+ "text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
1612
1612
  },
1613
1613
  "readonly": true
1614
1614
  },
1615
1615
  {
1616
1616
  "kind": "method",
1617
- "name": "dispatchFieldsChanged",
1617
+ "name": "handleOperatorChange",
1618
1618
  "parameters": [
1619
1619
  {
1620
1620
  "name": "event",
@@ -1636,25 +1636,25 @@
1636
1636
  "name": "GenesisElement",
1637
1637
  "package": "@genesislcap/web-core"
1638
1638
  },
1639
- "tagName": "expression-rule-field",
1639
+ "tagName": "expression-rule-operator",
1640
1640
  "customElement": true
1641
1641
  }
1642
1642
  ],
1643
1643
  "exports": [
1644
1644
  {
1645
1645
  "kind": "js",
1646
- "name": "RuleField",
1646
+ "name": "RuleOperator",
1647
1647
  "declaration": {
1648
- "name": "RuleField",
1649
- "module": "src/main/rule-field/rule-field.ts"
1648
+ "name": "RuleOperator",
1649
+ "module": "src/main/rule-operator/rule-operator.ts"
1650
1650
  }
1651
1651
  },
1652
1652
  {
1653
1653
  "kind": "custom-element-definition",
1654
- "name": "expression-rule-field",
1654
+ "name": "expression-rule-operator",
1655
1655
  "declaration": {
1656
- "name": "RuleField",
1657
- "module": "src/main/rule-field/rule-field.ts"
1656
+ "name": "RuleOperator",
1657
+ "module": "src/main/rule-operator/rule-operator.ts"
1658
1658
  }
1659
1659
  }
1660
1660
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/expression-builder",
3
3
  "description": "Genesis Foundation Expression Builder",
4
- "version": "14.251.2",
4
+ "version": "14.251.3",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/expression-builder.d.ts",
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "customElements": "dist/custom-elements.json",
65
- "gitHead": "328275e4c0bc2bf60422f750f9a0dc4e081a81b4"
65
+ "gitHead": "5a56f509e59932ae9709b00538706f06a52121c5"
66
66
  }