@genesislcap/expression-builder 14.252.0 → 14.252.1-alpha-ea46342.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.
@@ -659,6 +659,41 @@
659
659
  }
660
660
  ]
661
661
  },
662
+ {
663
+ "kind": "javascript-module",
664
+ "path": "src/types/index.ts",
665
+ "declarations": [],
666
+ "exports": [
667
+ {
668
+ "kind": "js",
669
+ "name": "*",
670
+ "declaration": {
671
+ "name": "*",
672
+ "package": "./public.types"
673
+ }
674
+ },
675
+ {
676
+ "kind": "js",
677
+ "name": "*",
678
+ "declaration": {
679
+ "name": "*",
680
+ "package": "./private.types"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "kind": "javascript-module",
687
+ "path": "src/types/private.types.ts",
688
+ "declarations": [],
689
+ "exports": []
690
+ },
691
+ {
692
+ "kind": "javascript-module",
693
+ "path": "src/types/public.types.ts",
694
+ "declarations": [],
695
+ "exports": []
696
+ },
662
697
  {
663
698
  "kind": "javascript-module",
664
699
  "path": "src/utils/data-model.ts",
@@ -908,41 +943,6 @@
908
943
  }
909
944
  ]
910
945
  },
911
- {
912
- "kind": "javascript-module",
913
- "path": "src/types/index.ts",
914
- "declarations": [],
915
- "exports": [
916
- {
917
- "kind": "js",
918
- "name": "*",
919
- "declaration": {
920
- "name": "*",
921
- "package": "./public.types"
922
- }
923
- },
924
- {
925
- "kind": "js",
926
- "name": "*",
927
- "declaration": {
928
- "name": "*",
929
- "package": "./private.types"
930
- }
931
- }
932
- ]
933
- },
934
- {
935
- "kind": "javascript-module",
936
- "path": "src/types/private.types.ts",
937
- "declarations": [],
938
- "exports": []
939
- },
940
- {
941
- "kind": "javascript-module",
942
- "path": "src/types/public.types.ts",
943
- "declarations": [],
944
- "exports": []
945
- },
946
946
  {
947
947
  "kind": "javascript-module",
948
948
  "path": "src/main/expression-group/expression-group.styles.ts",
@@ -1417,12 +1417,12 @@
1417
1417
  },
1418
1418
  {
1419
1419
  "kind": "javascript-module",
1420
- "path": "src/main/rule-field/rule-field.template.ts",
1420
+ "path": "src/main/rule-operator/rule-operator.template.ts",
1421
1421
  "declarations": [
1422
1422
  {
1423
1423
  "kind": "variable",
1424
1424
  "name": "template",
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`"
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`"
1426
1426
  }
1427
1427
  ],
1428
1428
  "exports": [
@@ -1431,35 +1431,43 @@
1431
1431
  "name": "template",
1432
1432
  "declaration": {
1433
1433
  "name": "template",
1434
- "module": "src/main/rule-field/rule-field.template.ts"
1434
+ "module": "src/main/rule-operator/rule-operator.template.ts"
1435
1435
  }
1436
1436
  }
1437
1437
  ]
1438
1438
  },
1439
1439
  {
1440
1440
  "kind": "javascript-module",
1441
- "path": "src/main/rule-field/rule-field.ts",
1441
+ "path": "src/main/rule-operator/rule-operator.ts",
1442
1442
  "declarations": [
1443
1443
  {
1444
1444
  "kind": "class",
1445
1445
  "description": "",
1446
- "name": "RuleField",
1446
+ "name": "RuleOperator",
1447
1447
  "members": [
1448
1448
  {
1449
1449
  "kind": "field",
1450
- "name": "fields",
1450
+ "name": "operators",
1451
1451
  "type": {
1452
- "text": "Field[]"
1452
+ "text": "Operator[]"
1453
1453
  },
1454
1454
  "default": "[]"
1455
1455
  },
1456
1456
  {
1457
1457
  "kind": "field",
1458
- "name": "field",
1458
+ "name": "operator",
1459
1459
  "type": {
1460
- "text": "Field"
1460
+ "text": "Operator"
1461
1461
  }
1462
1462
  },
1463
+ {
1464
+ "kind": "field",
1465
+ "name": "field",
1466
+ "type": {
1467
+ "text": "Field | null"
1468
+ },
1469
+ "default": "null"
1470
+ },
1463
1471
  {
1464
1472
  "kind": "field",
1465
1473
  "name": "config",
@@ -1476,15 +1484,23 @@
1476
1484
  },
1477
1485
  {
1478
1486
  "kind": "field",
1479
- "name": "groupedFieldss",
1487
+ "name": "allowedOperators",
1480
1488
  "type": {
1481
- "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1489
+ "text": "Operator[]"
1490
+ },
1491
+ "readonly": true
1492
+ },
1493
+ {
1494
+ "kind": "field",
1495
+ "name": "groupedOperators",
1496
+ "type": {
1497
+ "text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
1482
1498
  },
1483
1499
  "readonly": true
1484
1500
  },
1485
1501
  {
1486
1502
  "kind": "method",
1487
- "name": "dispatchFieldsChanged",
1503
+ "name": "handleOperatorChange",
1488
1504
  "parameters": [
1489
1505
  {
1490
1506
  "name": "event",
@@ -1506,37 +1522,37 @@
1506
1522
  "name": "GenesisElement",
1507
1523
  "package": "@genesislcap/web-core"
1508
1524
  },
1509
- "tagName": "expression-rule-field",
1525
+ "tagName": "expression-rule-operator",
1510
1526
  "customElement": true
1511
1527
  }
1512
1528
  ],
1513
1529
  "exports": [
1514
1530
  {
1515
1531
  "kind": "js",
1516
- "name": "RuleField",
1532
+ "name": "RuleOperator",
1517
1533
  "declaration": {
1518
- "name": "RuleField",
1519
- "module": "src/main/rule-field/rule-field.ts"
1534
+ "name": "RuleOperator",
1535
+ "module": "src/main/rule-operator/rule-operator.ts"
1520
1536
  }
1521
1537
  },
1522
1538
  {
1523
1539
  "kind": "custom-element-definition",
1524
- "name": "expression-rule-field",
1540
+ "name": "expression-rule-operator",
1525
1541
  "declaration": {
1526
- "name": "RuleField",
1527
- "module": "src/main/rule-field/rule-field.ts"
1542
+ "name": "RuleOperator",
1543
+ "module": "src/main/rule-operator/rule-operator.ts"
1528
1544
  }
1529
1545
  }
1530
1546
  ]
1531
1547
  },
1532
1548
  {
1533
1549
  "kind": "javascript-module",
1534
- "path": "src/main/rule-operator/rule-operator.template.ts",
1550
+ "path": "src/main/rule-field/rule-field.template.ts",
1535
1551
  "declarations": [
1536
1552
  {
1537
1553
  "kind": "variable",
1538
1554
  "name": "template",
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`"
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`"
1540
1556
  }
1541
1557
  ],
1542
1558
  "exports": [
@@ -1545,42 +1561,34 @@
1545
1561
  "name": "template",
1546
1562
  "declaration": {
1547
1563
  "name": "template",
1548
- "module": "src/main/rule-operator/rule-operator.template.ts"
1564
+ "module": "src/main/rule-field/rule-field.template.ts"
1549
1565
  }
1550
1566
  }
1551
1567
  ]
1552
1568
  },
1553
1569
  {
1554
1570
  "kind": "javascript-module",
1555
- "path": "src/main/rule-operator/rule-operator.ts",
1571
+ "path": "src/main/rule-field/rule-field.ts",
1556
1572
  "declarations": [
1557
1573
  {
1558
1574
  "kind": "class",
1559
1575
  "description": "",
1560
- "name": "RuleOperator",
1576
+ "name": "RuleField",
1561
1577
  "members": [
1562
1578
  {
1563
1579
  "kind": "field",
1564
- "name": "operators",
1580
+ "name": "fields",
1565
1581
  "type": {
1566
- "text": "Operator[]"
1582
+ "text": "Field[]"
1567
1583
  },
1568
1584
  "default": "[]"
1569
1585
  },
1570
- {
1571
- "kind": "field",
1572
- "name": "operator",
1573
- "type": {
1574
- "text": "Operator"
1575
- }
1576
- },
1577
1586
  {
1578
1587
  "kind": "field",
1579
1588
  "name": "field",
1580
1589
  "type": {
1581
- "text": "Field | null"
1582
- },
1583
- "default": "null"
1590
+ "text": "Field"
1591
+ }
1584
1592
  },
1585
1593
  {
1586
1594
  "kind": "field",
@@ -1598,23 +1606,15 @@
1598
1606
  },
1599
1607
  {
1600
1608
  "kind": "field",
1601
- "name": "allowedOperators",
1602
- "type": {
1603
- "text": "Operator[]"
1604
- },
1605
- "readonly": true
1606
- },
1607
- {
1608
- "kind": "field",
1609
- "name": "groupedOperators",
1609
+ "name": "groupedFieldss",
1610
1610
  "type": {
1611
- "text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
1611
+ "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1612
1612
  },
1613
1613
  "readonly": true
1614
1614
  },
1615
1615
  {
1616
1616
  "kind": "method",
1617
- "name": "handleOperatorChange",
1617
+ "name": "dispatchFieldsChanged",
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-operator",
1639
+ "tagName": "expression-rule-field",
1640
1640
  "customElement": true
1641
1641
  }
1642
1642
  ],
1643
1643
  "exports": [
1644
1644
  {
1645
1645
  "kind": "js",
1646
- "name": "RuleOperator",
1646
+ "name": "RuleField",
1647
1647
  "declaration": {
1648
- "name": "RuleOperator",
1649
- "module": "src/main/rule-operator/rule-operator.ts"
1648
+ "name": "RuleField",
1649
+ "module": "src/main/rule-field/rule-field.ts"
1650
1650
  }
1651
1651
  },
1652
1652
  {
1653
1653
  "kind": "custom-element-definition",
1654
- "name": "expression-rule-operator",
1654
+ "name": "expression-rule-field",
1655
1655
  "declaration": {
1656
- "name": "RuleOperator",
1657
- "module": "src/main/rule-operator/rule-operator.ts"
1656
+ "name": "RuleField",
1657
+ "module": "src/main/rule-field/rule-field.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.252.0",
4
+ "version": "14.252.1-alpha-ea46342.0",
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": "892ad62fbba0bcd170dc61bc12c08064775257f3"
65
+ "gitHead": "485b2409a4e213714ababadb49b8b87d3052c6cf"
66
66
  }