@genesislcap/expression-builder 14.251.5 → 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.
- package/dist/custom-elements.json +114 -114
- package/package.json +2 -2
|
@@ -943,120 +943,6 @@
|
|
|
943
943
|
}
|
|
944
944
|
]
|
|
945
945
|
},
|
|
946
|
-
{
|
|
947
|
-
"kind": "javascript-module",
|
|
948
|
-
"path": "src/main/rule-field/rule-field.template.ts",
|
|
949
|
-
"declarations": [
|
|
950
|
-
{
|
|
951
|
-
"kind": "variable",
|
|
952
|
-
"name": "template",
|
|
953
|
-
"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`"
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
"exports": [
|
|
957
|
-
{
|
|
958
|
-
"kind": "js",
|
|
959
|
-
"name": "template",
|
|
960
|
-
"declaration": {
|
|
961
|
-
"name": "template",
|
|
962
|
-
"module": "src/main/rule-field/rule-field.template.ts"
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
]
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
"kind": "javascript-module",
|
|
969
|
-
"path": "src/main/rule-field/rule-field.ts",
|
|
970
|
-
"declarations": [
|
|
971
|
-
{
|
|
972
|
-
"kind": "class",
|
|
973
|
-
"description": "",
|
|
974
|
-
"name": "RuleField",
|
|
975
|
-
"members": [
|
|
976
|
-
{
|
|
977
|
-
"kind": "field",
|
|
978
|
-
"name": "fields",
|
|
979
|
-
"type": {
|
|
980
|
-
"text": "Field[]"
|
|
981
|
-
},
|
|
982
|
-
"default": "[]"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"kind": "field",
|
|
986
|
-
"name": "field",
|
|
987
|
-
"type": {
|
|
988
|
-
"text": "Field"
|
|
989
|
-
}
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
"kind": "field",
|
|
993
|
-
"name": "config",
|
|
994
|
-
"type": {
|
|
995
|
-
"text": "Config"
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"kind": "field",
|
|
1000
|
-
"name": "styles",
|
|
1001
|
-
"type": {
|
|
1002
|
-
"text": "Styles | undefined"
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"kind": "field",
|
|
1007
|
-
"name": "groupedFieldss",
|
|
1008
|
-
"type": {
|
|
1009
|
-
"text": "(Field | { optgroup: string | null; xs: Field[] })[]"
|
|
1010
|
-
},
|
|
1011
|
-
"readonly": true
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
"kind": "method",
|
|
1015
|
-
"name": "dispatchFieldsChanged",
|
|
1016
|
-
"parameters": [
|
|
1017
|
-
{
|
|
1018
|
-
"name": "event",
|
|
1019
|
-
"type": {
|
|
1020
|
-
"text": "Event"
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
]
|
|
1024
|
-
}
|
|
1025
|
-
],
|
|
1026
|
-
"events": [
|
|
1027
|
-
{
|
|
1028
|
-
"type": {
|
|
1029
|
-
"text": "CustomEvent"
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
],
|
|
1033
|
-
"superclass": {
|
|
1034
|
-
"name": "GenesisElement",
|
|
1035
|
-
"package": "@genesislcap/web-core"
|
|
1036
|
-
},
|
|
1037
|
-
"tagName": "expression-rule-field",
|
|
1038
|
-
"customElement": true
|
|
1039
|
-
}
|
|
1040
|
-
],
|
|
1041
|
-
"exports": [
|
|
1042
|
-
{
|
|
1043
|
-
"kind": "js",
|
|
1044
|
-
"name": "RuleField",
|
|
1045
|
-
"declaration": {
|
|
1046
|
-
"name": "RuleField",
|
|
1047
|
-
"module": "src/main/rule-field/rule-field.ts"
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"kind": "custom-element-definition",
|
|
1052
|
-
"name": "expression-rule-field",
|
|
1053
|
-
"declaration": {
|
|
1054
|
-
"name": "RuleField",
|
|
1055
|
-
"module": "src/main/rule-field/rule-field.ts"
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
]
|
|
1059
|
-
},
|
|
1060
946
|
{
|
|
1061
947
|
"kind": "javascript-module",
|
|
1062
948
|
"path": "src/main/expression-group/expression-group.styles.ts",
|
|
@@ -1659,6 +1545,120 @@
|
|
|
1659
1545
|
}
|
|
1660
1546
|
]
|
|
1661
1547
|
},
|
|
1548
|
+
{
|
|
1549
|
+
"kind": "javascript-module",
|
|
1550
|
+
"path": "src/main/rule-field/rule-field.template.ts",
|
|
1551
|
+
"declarations": [
|
|
1552
|
+
{
|
|
1553
|
+
"kind": "variable",
|
|
1554
|
+
"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`"
|
|
1556
|
+
}
|
|
1557
|
+
],
|
|
1558
|
+
"exports": [
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "js",
|
|
1561
|
+
"name": "template",
|
|
1562
|
+
"declaration": {
|
|
1563
|
+
"name": "template",
|
|
1564
|
+
"module": "src/main/rule-field/rule-field.template.ts"
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
]
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"kind": "javascript-module",
|
|
1571
|
+
"path": "src/main/rule-field/rule-field.ts",
|
|
1572
|
+
"declarations": [
|
|
1573
|
+
{
|
|
1574
|
+
"kind": "class",
|
|
1575
|
+
"description": "",
|
|
1576
|
+
"name": "RuleField",
|
|
1577
|
+
"members": [
|
|
1578
|
+
{
|
|
1579
|
+
"kind": "field",
|
|
1580
|
+
"name": "fields",
|
|
1581
|
+
"type": {
|
|
1582
|
+
"text": "Field[]"
|
|
1583
|
+
},
|
|
1584
|
+
"default": "[]"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"kind": "field",
|
|
1588
|
+
"name": "field",
|
|
1589
|
+
"type": {
|
|
1590
|
+
"text": "Field"
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"kind": "field",
|
|
1595
|
+
"name": "config",
|
|
1596
|
+
"type": {
|
|
1597
|
+
"text": "Config"
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "field",
|
|
1602
|
+
"name": "styles",
|
|
1603
|
+
"type": {
|
|
1604
|
+
"text": "Styles | undefined"
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"kind": "field",
|
|
1609
|
+
"name": "groupedFieldss",
|
|
1610
|
+
"type": {
|
|
1611
|
+
"text": "(Field | { optgroup: string | null; xs: Field[] })[]"
|
|
1612
|
+
},
|
|
1613
|
+
"readonly": true
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"kind": "method",
|
|
1617
|
+
"name": "dispatchFieldsChanged",
|
|
1618
|
+
"parameters": [
|
|
1619
|
+
{
|
|
1620
|
+
"name": "event",
|
|
1621
|
+
"type": {
|
|
1622
|
+
"text": "Event"
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
]
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
"events": [
|
|
1629
|
+
{
|
|
1630
|
+
"type": {
|
|
1631
|
+
"text": "CustomEvent"
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
],
|
|
1635
|
+
"superclass": {
|
|
1636
|
+
"name": "GenesisElement",
|
|
1637
|
+
"package": "@genesislcap/web-core"
|
|
1638
|
+
},
|
|
1639
|
+
"tagName": "expression-rule-field",
|
|
1640
|
+
"customElement": true
|
|
1641
|
+
}
|
|
1642
|
+
],
|
|
1643
|
+
"exports": [
|
|
1644
|
+
{
|
|
1645
|
+
"kind": "js",
|
|
1646
|
+
"name": "RuleField",
|
|
1647
|
+
"declaration": {
|
|
1648
|
+
"name": "RuleField",
|
|
1649
|
+
"module": "src/main/rule-field/rule-field.ts"
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"kind": "custom-element-definition",
|
|
1654
|
+
"name": "expression-rule-field",
|
|
1655
|
+
"declaration": {
|
|
1656
|
+
"name": "RuleField",
|
|
1657
|
+
"module": "src/main/rule-field/rule-field.ts"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
1662
|
{
|
|
1663
1663
|
"kind": "javascript-module",
|
|
1664
1664
|
"path": "src/main/rule-value/rule-value.helpers.ts",
|
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.
|
|
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": "
|
|
65
|
+
"gitHead": "485b2409a4e213714ababadb49b8b87d3052c6cf"
|
|
66
66
|
}
|