@genesislcap/expression-builder 14.260.2 → 14.260.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.
- package/dist/custom-elements.json +130 -130
- package/package.json +2 -2
|
@@ -1710,6 +1710,136 @@
|
|
|
1710
1710
|
}
|
|
1711
1711
|
]
|
|
1712
1712
|
},
|
|
1713
|
+
{
|
|
1714
|
+
"kind": "javascript-module",
|
|
1715
|
+
"path": "src/main/rule-operator/rule-operator.template.ts",
|
|
1716
|
+
"declarations": [
|
|
1717
|
+
{
|
|
1718
|
+
"kind": "variable",
|
|
1719
|
+
"name": "template",
|
|
1720
|
+
"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 title=${(x) => x.tooltip}\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 title=${(x) => x.tooltip}\n >\n ${(x) => x.type}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
|
|
1721
|
+
}
|
|
1722
|
+
],
|
|
1723
|
+
"exports": [
|
|
1724
|
+
{
|
|
1725
|
+
"kind": "js",
|
|
1726
|
+
"name": "template",
|
|
1727
|
+
"declaration": {
|
|
1728
|
+
"name": "template",
|
|
1729
|
+
"module": "src/main/rule-operator/rule-operator.template.ts"
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"kind": "javascript-module",
|
|
1736
|
+
"path": "src/main/rule-operator/rule-operator.ts",
|
|
1737
|
+
"declarations": [
|
|
1738
|
+
{
|
|
1739
|
+
"kind": "class",
|
|
1740
|
+
"description": "",
|
|
1741
|
+
"name": "RuleOperator",
|
|
1742
|
+
"members": [
|
|
1743
|
+
{
|
|
1744
|
+
"kind": "field",
|
|
1745
|
+
"name": "operators",
|
|
1746
|
+
"type": {
|
|
1747
|
+
"text": "Operator[]"
|
|
1748
|
+
},
|
|
1749
|
+
"default": "[]"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"kind": "field",
|
|
1753
|
+
"name": "operator",
|
|
1754
|
+
"type": {
|
|
1755
|
+
"text": "Operator"
|
|
1756
|
+
}
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"kind": "field",
|
|
1760
|
+
"name": "field",
|
|
1761
|
+
"type": {
|
|
1762
|
+
"text": "Field | null"
|
|
1763
|
+
},
|
|
1764
|
+
"default": "null"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"kind": "field",
|
|
1768
|
+
"name": "config",
|
|
1769
|
+
"type": {
|
|
1770
|
+
"text": "Config"
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"kind": "field",
|
|
1775
|
+
"name": "styles",
|
|
1776
|
+
"type": {
|
|
1777
|
+
"text": "Styles | undefined"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"kind": "field",
|
|
1782
|
+
"name": "allowedOperators",
|
|
1783
|
+
"type": {
|
|
1784
|
+
"text": "Operator[]"
|
|
1785
|
+
},
|
|
1786
|
+
"readonly": true
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"kind": "field",
|
|
1790
|
+
"name": "groupedOperators",
|
|
1791
|
+
"type": {
|
|
1792
|
+
"text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
|
|
1793
|
+
},
|
|
1794
|
+
"readonly": true
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"kind": "method",
|
|
1798
|
+
"name": "handleOperatorChange",
|
|
1799
|
+
"parameters": [
|
|
1800
|
+
{
|
|
1801
|
+
"name": "event",
|
|
1802
|
+
"type": {
|
|
1803
|
+
"text": "Event"
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
]
|
|
1807
|
+
}
|
|
1808
|
+
],
|
|
1809
|
+
"events": [
|
|
1810
|
+
{
|
|
1811
|
+
"type": {
|
|
1812
|
+
"text": "CustomEvent"
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
],
|
|
1816
|
+
"superclass": {
|
|
1817
|
+
"name": "GenesisElement",
|
|
1818
|
+
"package": "@genesislcap/web-core"
|
|
1819
|
+
},
|
|
1820
|
+
"tagName": "expression-rule-operator",
|
|
1821
|
+
"customElement": true
|
|
1822
|
+
}
|
|
1823
|
+
],
|
|
1824
|
+
"exports": [
|
|
1825
|
+
{
|
|
1826
|
+
"kind": "js",
|
|
1827
|
+
"name": "RuleOperator",
|
|
1828
|
+
"declaration": {
|
|
1829
|
+
"name": "RuleOperator",
|
|
1830
|
+
"module": "src/main/rule-operator/rule-operator.ts"
|
|
1831
|
+
}
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"kind": "custom-element-definition",
|
|
1835
|
+
"name": "expression-rule-operator",
|
|
1836
|
+
"declaration": {
|
|
1837
|
+
"name": "RuleOperator",
|
|
1838
|
+
"module": "src/main/rule-operator/rule-operator.ts"
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1713
1843
|
{
|
|
1714
1844
|
"kind": "javascript-module",
|
|
1715
1845
|
"path": "src/main/rule-value/rule-value.helpers.ts",
|
|
@@ -2017,136 +2147,6 @@
|
|
|
2017
2147
|
}
|
|
2018
2148
|
}
|
|
2019
2149
|
]
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
"kind": "javascript-module",
|
|
2023
|
-
"path": "src/main/rule-operator/rule-operator.template.ts",
|
|
2024
|
-
"declarations": [
|
|
2025
|
-
{
|
|
2026
|
-
"kind": "variable",
|
|
2027
|
-
"name": "template",
|
|
2028
|
-
"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 title=${(x) => x.tooltip}\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 title=${(x) => x.tooltip}\n >\n ${(x) => x.type}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
|
|
2029
|
-
}
|
|
2030
|
-
],
|
|
2031
|
-
"exports": [
|
|
2032
|
-
{
|
|
2033
|
-
"kind": "js",
|
|
2034
|
-
"name": "template",
|
|
2035
|
-
"declaration": {
|
|
2036
|
-
"name": "template",
|
|
2037
|
-
"module": "src/main/rule-operator/rule-operator.template.ts"
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
]
|
|
2041
|
-
},
|
|
2042
|
-
{
|
|
2043
|
-
"kind": "javascript-module",
|
|
2044
|
-
"path": "src/main/rule-operator/rule-operator.ts",
|
|
2045
|
-
"declarations": [
|
|
2046
|
-
{
|
|
2047
|
-
"kind": "class",
|
|
2048
|
-
"description": "",
|
|
2049
|
-
"name": "RuleOperator",
|
|
2050
|
-
"members": [
|
|
2051
|
-
{
|
|
2052
|
-
"kind": "field",
|
|
2053
|
-
"name": "operators",
|
|
2054
|
-
"type": {
|
|
2055
|
-
"text": "Operator[]"
|
|
2056
|
-
},
|
|
2057
|
-
"default": "[]"
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
"kind": "field",
|
|
2061
|
-
"name": "operator",
|
|
2062
|
-
"type": {
|
|
2063
|
-
"text": "Operator"
|
|
2064
|
-
}
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
"kind": "field",
|
|
2068
|
-
"name": "field",
|
|
2069
|
-
"type": {
|
|
2070
|
-
"text": "Field | null"
|
|
2071
|
-
},
|
|
2072
|
-
"default": "null"
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
"kind": "field",
|
|
2076
|
-
"name": "config",
|
|
2077
|
-
"type": {
|
|
2078
|
-
"text": "Config"
|
|
2079
|
-
}
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
"kind": "field",
|
|
2083
|
-
"name": "styles",
|
|
2084
|
-
"type": {
|
|
2085
|
-
"text": "Styles | undefined"
|
|
2086
|
-
}
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
"kind": "field",
|
|
2090
|
-
"name": "allowedOperators",
|
|
2091
|
-
"type": {
|
|
2092
|
-
"text": "Operator[]"
|
|
2093
|
-
},
|
|
2094
|
-
"readonly": true
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"kind": "field",
|
|
2098
|
-
"name": "groupedOperators",
|
|
2099
|
-
"type": {
|
|
2100
|
-
"text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
|
|
2101
|
-
},
|
|
2102
|
-
"readonly": true
|
|
2103
|
-
},
|
|
2104
|
-
{
|
|
2105
|
-
"kind": "method",
|
|
2106
|
-
"name": "handleOperatorChange",
|
|
2107
|
-
"parameters": [
|
|
2108
|
-
{
|
|
2109
|
-
"name": "event",
|
|
2110
|
-
"type": {
|
|
2111
|
-
"text": "Event"
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
]
|
|
2115
|
-
}
|
|
2116
|
-
],
|
|
2117
|
-
"events": [
|
|
2118
|
-
{
|
|
2119
|
-
"type": {
|
|
2120
|
-
"text": "CustomEvent"
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
],
|
|
2124
|
-
"superclass": {
|
|
2125
|
-
"name": "GenesisElement",
|
|
2126
|
-
"package": "@genesislcap/web-core"
|
|
2127
|
-
},
|
|
2128
|
-
"tagName": "expression-rule-operator",
|
|
2129
|
-
"customElement": true
|
|
2130
|
-
}
|
|
2131
|
-
],
|
|
2132
|
-
"exports": [
|
|
2133
|
-
{
|
|
2134
|
-
"kind": "js",
|
|
2135
|
-
"name": "RuleOperator",
|
|
2136
|
-
"declaration": {
|
|
2137
|
-
"name": "RuleOperator",
|
|
2138
|
-
"module": "src/main/rule-operator/rule-operator.ts"
|
|
2139
|
-
}
|
|
2140
|
-
},
|
|
2141
|
-
{
|
|
2142
|
-
"kind": "custom-element-definition",
|
|
2143
|
-
"name": "expression-rule-operator",
|
|
2144
|
-
"declaration": {
|
|
2145
|
-
"name": "RuleOperator",
|
|
2146
|
-
"module": "src/main/rule-operator/rule-operator.ts"
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
]
|
|
2150
2150
|
}
|
|
2151
2151
|
]
|
|
2152
2152
|
}
|
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.260.
|
|
4
|
+
"version": "14.260.3",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/expression-builder.d.ts",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"customElements": "dist/custom-elements.json",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8c2edfa09d71c8b6c5487873d1751da090c62480"
|
|
63
63
|
}
|