@ui5/webcomponents-base 2.5.0-rc.3 → 2.6.0-rc.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/CHANGELOG.md +20 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/UI5Element.d.ts +27 -13
- package/dist/UI5Element.js +16 -2
- package/dist/UI5Element.js.map +1 -1
- package/dist/custom-elements-internal.json +69 -165
- package/dist/custom-elements.json +69 -66
- package/dist/decorators/bound.d.ts +1 -0
- package/dist/decorators/bound.js +34 -0
- package/dist/decorators/bound.js.map +1 -0
- package/dist/decorators.d.ts +3 -1
- package/dist/decorators.js +3 -1
- package/dist/decorators.js.map +1 -1
- package/dist/generated/VersionInfo.js +4 -4
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/jsx-dev-runtime.d.ts +4 -0
- package/dist/jsx-dev-runtime.js +43 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.d.ts +50 -0
- package/dist/jsx-runtime.js +27 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/jsx-utils.d.ts +3 -0
- package/dist/jsx-utils.js +40 -0
- package/dist/jsx-utils.js.map +1 -0
- package/dist/prod/UI5Element.js +1 -1
- package/dist/prod/UI5Element.js.map +3 -3
- package/dist/prod/decorators/bound.js +2 -0
- package/dist/prod/decorators/bound.js.map +7 -0
- package/dist/prod/decorators.js +1 -1
- package/dist/prod/decorators.js.map +3 -3
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +1 -1
- package/dist/prod/index.d.js +2 -0
- package/dist/prod/index.d.js.map +7 -0
- package/dist/prod/jsx-dev-runtime.js +2 -0
- package/dist/prod/jsx-dev-runtime.js.map +7 -0
- package/dist/prod/jsx-runtime.js +2 -0
- package/dist/prod/jsx-runtime.js.map +7 -0
- package/dist/prod/jsx-utils.js +2 -0
- package/dist/prod/jsx-utils.js.map +7 -0
- package/dist/prod/renderer/JsxRenderer.js +2 -0
- package/dist/prod/renderer/JsxRenderer.js.map +7 -0
- package/dist/prod/renderer/LitRenderer.js +1 -1
- package/dist/prod/renderer/LitRenderer.js.map +3 -3
- package/dist/prod/renderer/executeTemplate.js +1 -1
- package/dist/prod/renderer/executeTemplate.js.map +3 -3
- package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
- package/dist/prod/updateShadowRoot.js +1 -1
- package/dist/prod/updateShadowRoot.js.map +3 -3
- package/dist/prod/util/StringHelper.js +1 -1
- package/dist/prod/util/StringHelper.js.map +3 -3
- package/dist/prod/util/dragAndDrop/DragRegistry.js +1 -1
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +2 -2
- package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
- package/dist/prod/util/hash2str.js +2 -0
- package/dist/prod/util/hash2str.js.map +7 -0
- package/dist/prod/util/toLowercaseEnumValue.js +2 -0
- package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
- package/dist/renderer/JsxRenderer.d.ts +3 -0
- package/dist/renderer/JsxRenderer.js +16 -0
- package/dist/renderer/JsxRenderer.js.map +1 -0
- package/dist/renderer/LitRenderer.js +4 -3
- package/dist/renderer/LitRenderer.js.map +1 -1
- package/dist/renderer/executeTemplate.d.ts +3 -12
- package/dist/renderer/executeTemplate.js +1 -20
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +2616 -0
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
- package/dist/thirdparty/preact/jsxRuntime.module.js +2 -0
- package/dist/thirdparty/preact/preact.module.d.ts +398 -0
- package/dist/thirdparty/preact/preact.module.js +2 -0
- package/dist/types.d.ts +24 -21
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.js +1 -2
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/StringHelper.d.ts +2 -1
- package/dist/util/StringHelper.js +4 -1
- package/dist/util/StringHelper.js.map +1 -1
- package/dist/util/dragAndDrop/DragRegistry.d.ts +22 -1
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
- package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
- package/dist/util/dragAndDrop/handleDragOver.js +42 -0
- package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
- package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
- package/dist/util/dragAndDrop/handleDrop.js +22 -0
- package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
- package/dist/util/getClassCopy.d.ts +6 -0
- package/dist/util/hash2str.d.ts +1 -0
- package/dist/util/hash2str.js +14 -0
- package/dist/util/hash2str.js.map +1 -0
- package/dist/util/toLowercaseEnumValue.d.ts +3 -0
- package/dist/util/toLowercaseEnumValue.js +4 -0
- package/dist/util/toLowercaseEnumValue.js.map +1 -0
- package/index.js +0 -6
- package/package.json +10 -5
- package/src/thirdparty/preact/jsxRuntime.module.js +2 -0
- package/src/thirdparty/preact/preact.module.js +2 -0
- package/src/thirdparty/preact/version.txt +1 -0
- package/dist/prod/types/AriaHasPopup.js +0 -2
- package/dist/prod/types/AriaHasPopup.js.map +0 -7
- package/dist/prod/types/AriaLandmarkRole.js +0 -2
- package/dist/prod/types/AriaLandmarkRole.js.map +0 -7
- package/dist/prod/types/AriaRole.js +0 -2
- package/dist/prod/types/AriaRole.js.map +0 -7
- package/dist/prod/util/getParentElement.js +0 -2
- package/dist/prod/util/getParentElement.js.map +0 -7
- package/dist/prod/util/isElementContainingBlock.js +0 -2
- package/dist/prod/util/isElementContainingBlock.js.map +0 -7
- package/dist/types/AriaHasPopup.d.ts +0 -32
- package/dist/types/AriaHasPopup.js +0 -34
- package/dist/types/AriaHasPopup.js.map +0 -1
- package/dist/types/AriaLandmarkRole.d.ts +0 -79
- package/dist/types/AriaLandmarkRole.js +0 -81
- package/dist/types/AriaLandmarkRole.js.map +0 -1
- package/dist/types/AriaRole.d.ts +0 -27
- package/dist/types/AriaRole.js +0 -29
- package/dist/types/AriaRole.js.map +0 -1
- package/dist/util/getParentElement.d.ts +0 -2
- package/dist/util/getParentElement.js +0 -5
- package/dist/util/getParentElement.js.map +0 -1
- package/dist/util/isElementContainingBlock.d.ts +0 -2
- package/dist/util/isElementContainingBlock.js +0 -11
- package/dist/util/isElementContainingBlock.js.map +0 -1
|
@@ -194,6 +194,21 @@
|
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "javascript-module",
|
|
199
|
+
"path": "dist/decorators/bound.js",
|
|
200
|
+
"declarations": [],
|
|
201
|
+
"exports": [
|
|
202
|
+
{
|
|
203
|
+
"kind": "js",
|
|
204
|
+
"name": "default",
|
|
205
|
+
"declaration": {
|
|
206
|
+
"name": "bound",
|
|
207
|
+
"module": "dist/decorators/bound.js"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
197
212
|
{
|
|
198
213
|
"kind": "javascript-module",
|
|
199
214
|
"path": "dist/decorators/customElement.js",
|
|
@@ -716,6 +731,21 @@
|
|
|
716
731
|
}
|
|
717
732
|
]
|
|
718
733
|
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "javascript-module",
|
|
736
|
+
"path": "dist/renderer/JsxRenderer.js",
|
|
737
|
+
"declarations": [],
|
|
738
|
+
"exports": [
|
|
739
|
+
{
|
|
740
|
+
"kind": "js",
|
|
741
|
+
"name": "default",
|
|
742
|
+
"declaration": {
|
|
743
|
+
"name": "jsxRenderer",
|
|
744
|
+
"module": "dist/renderer/JsxRenderer.js"
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
},
|
|
719
749
|
{
|
|
720
750
|
"kind": "javascript-module",
|
|
721
751
|
"path": "dist/renderer/LitRenderer.js",
|
|
@@ -940,150 +970,6 @@
|
|
|
940
970
|
}
|
|
941
971
|
]
|
|
942
972
|
},
|
|
943
|
-
{
|
|
944
|
-
"kind": "javascript-module",
|
|
945
|
-
"path": "dist/types/AriaHasPopup.js",
|
|
946
|
-
"declarations": [
|
|
947
|
-
{
|
|
948
|
-
"kind": "enum",
|
|
949
|
-
"name": "AriaHasPopup",
|
|
950
|
-
"description": "Different types of ARIA hasPopup.",
|
|
951
|
-
"_ui5privacy": "public",
|
|
952
|
-
"members": [
|
|
953
|
-
{
|
|
954
|
-
"kind": "field",
|
|
955
|
-
"static": true,
|
|
956
|
-
"privacy": "public",
|
|
957
|
-
"description": "Dialog popup type.",
|
|
958
|
-
"default": "Dialog",
|
|
959
|
-
"name": "Dialog",
|
|
960
|
-
"readonly": true
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
"kind": "field",
|
|
964
|
-
"static": true,
|
|
965
|
-
"privacy": "public",
|
|
966
|
-
"description": "Grid popup type.",
|
|
967
|
-
"default": "Grid",
|
|
968
|
-
"name": "Grid",
|
|
969
|
-
"readonly": true
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
"kind": "field",
|
|
973
|
-
"static": true,
|
|
974
|
-
"privacy": "public",
|
|
975
|
-
"description": "ListBox popup type.",
|
|
976
|
-
"default": "ListBox",
|
|
977
|
-
"name": "ListBox",
|
|
978
|
-
"readonly": true
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"kind": "field",
|
|
982
|
-
"static": true,
|
|
983
|
-
"privacy": "public",
|
|
984
|
-
"description": "Menu popup type.",
|
|
985
|
-
"default": "Menu",
|
|
986
|
-
"name": "Menu",
|
|
987
|
-
"readonly": true
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"kind": "field",
|
|
991
|
-
"static": true,
|
|
992
|
-
"privacy": "public",
|
|
993
|
-
"description": "Tree popup type.",
|
|
994
|
-
"default": "Tree",
|
|
995
|
-
"name": "Tree",
|
|
996
|
-
"readonly": true
|
|
997
|
-
}
|
|
998
|
-
]
|
|
999
|
-
}
|
|
1000
|
-
],
|
|
1001
|
-
"exports": [
|
|
1002
|
-
{
|
|
1003
|
-
"kind": "js",
|
|
1004
|
-
"name": "default",
|
|
1005
|
-
"declaration": {
|
|
1006
|
-
"name": "AriaHasPopup",
|
|
1007
|
-
"module": "dist/types/AriaHasPopup.js"
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
]
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
"kind": "javascript-module",
|
|
1014
|
-
"path": "dist/types/AriaLandmarkRole.js",
|
|
1015
|
-
"declarations": [],
|
|
1016
|
-
"exports": [
|
|
1017
|
-
{
|
|
1018
|
-
"kind": "js",
|
|
1019
|
-
"name": "default",
|
|
1020
|
-
"declaration": {
|
|
1021
|
-
"name": "AriaLandmarkRole",
|
|
1022
|
-
"module": "dist/types/AriaLandmarkRole.js"
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
]
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"kind": "javascript-module",
|
|
1029
|
-
"path": "dist/types/AriaRole.js",
|
|
1030
|
-
"declarations": [
|
|
1031
|
-
{
|
|
1032
|
-
"kind": "enum",
|
|
1033
|
-
"name": "AriaRole",
|
|
1034
|
-
"description": "Types of ARIA roles.",
|
|
1035
|
-
"_ui5privacy": "public",
|
|
1036
|
-
"members": [
|
|
1037
|
-
{
|
|
1038
|
-
"kind": "field",
|
|
1039
|
-
"static": true,
|
|
1040
|
-
"privacy": "public",
|
|
1041
|
-
"description": "The ARIA role \"alertdialog\".",
|
|
1042
|
-
"default": "AlertDialog",
|
|
1043
|
-
"name": "AlertDialog",
|
|
1044
|
-
"readonly": true
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"kind": "field",
|
|
1048
|
-
"static": true,
|
|
1049
|
-
"privacy": "public",
|
|
1050
|
-
"description": "The ARIA role \"button\".",
|
|
1051
|
-
"default": "Button",
|
|
1052
|
-
"name": "Button",
|
|
1053
|
-
"readonly": true
|
|
1054
|
-
},
|
|
1055
|
-
{
|
|
1056
|
-
"kind": "field",
|
|
1057
|
-
"static": true,
|
|
1058
|
-
"privacy": "public",
|
|
1059
|
-
"description": "The ARIA role \"dialog\".",
|
|
1060
|
-
"default": "Dialog",
|
|
1061
|
-
"name": "Dialog",
|
|
1062
|
-
"readonly": true
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"kind": "field",
|
|
1066
|
-
"static": true,
|
|
1067
|
-
"privacy": "public",
|
|
1068
|
-
"description": "The ARIA role \"link\".",
|
|
1069
|
-
"default": "Link",
|
|
1070
|
-
"name": "Link",
|
|
1071
|
-
"readonly": true
|
|
1072
|
-
}
|
|
1073
|
-
]
|
|
1074
|
-
}
|
|
1075
|
-
],
|
|
1076
|
-
"exports": [
|
|
1077
|
-
{
|
|
1078
|
-
"kind": "js",
|
|
1079
|
-
"name": "default",
|
|
1080
|
-
"declaration": {
|
|
1081
|
-
"name": "AriaRole",
|
|
1082
|
-
"module": "dist/types/AriaRole.js"
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
]
|
|
1086
|
-
},
|
|
1087
973
|
{
|
|
1088
974
|
"kind": "javascript-module",
|
|
1089
975
|
"path": "dist/types/CalendarType.js",
|
|
@@ -1733,21 +1619,6 @@
|
|
|
1733
1619
|
}
|
|
1734
1620
|
]
|
|
1735
1621
|
},
|
|
1736
|
-
{
|
|
1737
|
-
"kind": "javascript-module",
|
|
1738
|
-
"path": "dist/util/getParentElement.js",
|
|
1739
|
-
"declarations": [],
|
|
1740
|
-
"exports": [
|
|
1741
|
-
{
|
|
1742
|
-
"kind": "js",
|
|
1743
|
-
"name": "default",
|
|
1744
|
-
"declaration": {
|
|
1745
|
-
"name": "getParentElement",
|
|
1746
|
-
"module": "dist/util/getParentElement.js"
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
]
|
|
1750
|
-
},
|
|
1751
1622
|
{
|
|
1752
1623
|
"kind": "javascript-module",
|
|
1753
1624
|
"path": "dist/util/getSingletonElementInstance.js",
|
|
@@ -1765,30 +1636,30 @@
|
|
|
1765
1636
|
},
|
|
1766
1637
|
{
|
|
1767
1638
|
"kind": "javascript-module",
|
|
1768
|
-
"path": "dist/util/
|
|
1639
|
+
"path": "dist/util/hash2str.js",
|
|
1769
1640
|
"declarations": [],
|
|
1770
1641
|
"exports": [
|
|
1771
1642
|
{
|
|
1772
1643
|
"kind": "js",
|
|
1773
1644
|
"name": "default",
|
|
1774
1645
|
"declaration": {
|
|
1775
|
-
"name": "
|
|
1776
|
-
"module": "dist/util/
|
|
1646
|
+
"name": "hash2str",
|
|
1647
|
+
"module": "dist/util/hash2str.js"
|
|
1777
1648
|
}
|
|
1778
1649
|
}
|
|
1779
1650
|
]
|
|
1780
1651
|
},
|
|
1781
1652
|
{
|
|
1782
1653
|
"kind": "javascript-module",
|
|
1783
|
-
"path": "dist/util/
|
|
1654
|
+
"path": "dist/util/isElementClickable.js",
|
|
1784
1655
|
"declarations": [],
|
|
1785
1656
|
"exports": [
|
|
1786
1657
|
{
|
|
1787
1658
|
"kind": "js",
|
|
1788
1659
|
"name": "default",
|
|
1789
1660
|
"declaration": {
|
|
1790
|
-
"name": "
|
|
1791
|
-
"module": "dist/util/
|
|
1661
|
+
"name": "isElementClickable",
|
|
1662
|
+
"module": "dist/util/isElementClickable.js"
|
|
1792
1663
|
}
|
|
1793
1664
|
}
|
|
1794
1665
|
]
|
|
@@ -1853,6 +1724,21 @@
|
|
|
1853
1724
|
}
|
|
1854
1725
|
]
|
|
1855
1726
|
},
|
|
1727
|
+
{
|
|
1728
|
+
"kind": "javascript-module",
|
|
1729
|
+
"path": "dist/util/toLowercaseEnumValue.js",
|
|
1730
|
+
"declarations": [],
|
|
1731
|
+
"exports": [
|
|
1732
|
+
{
|
|
1733
|
+
"kind": "js",
|
|
1734
|
+
"name": "default",
|
|
1735
|
+
"declaration": {
|
|
1736
|
+
"name": "toLowercaseEnumValue",
|
|
1737
|
+
"module": "dist/util/toLowercaseEnumValue.js"
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
]
|
|
1741
|
+
},
|
|
1856
1742
|
{
|
|
1857
1743
|
"kind": "javascript-module",
|
|
1858
1744
|
"path": "dist/util/whenDOMReady.js",
|
|
@@ -2765,6 +2651,24 @@
|
|
|
2765
2651
|
}
|
|
2766
2652
|
]
|
|
2767
2653
|
},
|
|
2654
|
+
{
|
|
2655
|
+
"kind": "javascript-module",
|
|
2656
|
+
"path": "dist/jsx-dev-runtime.js",
|
|
2657
|
+
"declarations": [],
|
|
2658
|
+
"exports": []
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"kind": "javascript-module",
|
|
2662
|
+
"path": "dist/jsx-runtime.js",
|
|
2663
|
+
"declarations": [],
|
|
2664
|
+
"exports": []
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"kind": "javascript-module",
|
|
2668
|
+
"path": "dist/jsx-utils.js",
|
|
2669
|
+
"declarations": [],
|
|
2670
|
+
"exports": []
|
|
2671
|
+
},
|
|
2768
2672
|
{
|
|
2769
2673
|
"kind": "javascript-module",
|
|
2770
2674
|
"path": "dist/ssr-dom-shim.js",
|
|
@@ -194,6 +194,21 @@
|
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "javascript-module",
|
|
199
|
+
"path": "dist/decorators/bound.js",
|
|
200
|
+
"declarations": [],
|
|
201
|
+
"exports": [
|
|
202
|
+
{
|
|
203
|
+
"kind": "js",
|
|
204
|
+
"name": "default",
|
|
205
|
+
"declaration": {
|
|
206
|
+
"name": "bound",
|
|
207
|
+
"module": "dist/decorators/bound.js"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
197
212
|
{
|
|
198
213
|
"kind": "javascript-module",
|
|
199
214
|
"path": "dist/decorators/customElement.js",
|
|
@@ -708,6 +723,21 @@
|
|
|
708
723
|
}
|
|
709
724
|
]
|
|
710
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "javascript-module",
|
|
728
|
+
"path": "dist/renderer/JsxRenderer.js",
|
|
729
|
+
"declarations": [],
|
|
730
|
+
"exports": [
|
|
731
|
+
{
|
|
732
|
+
"kind": "js",
|
|
733
|
+
"name": "default",
|
|
734
|
+
"declaration": {
|
|
735
|
+
"name": "jsxRenderer",
|
|
736
|
+
"module": "dist/renderer/JsxRenderer.js"
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
]
|
|
740
|
+
},
|
|
711
741
|
{
|
|
712
742
|
"kind": "javascript-module",
|
|
713
743
|
"path": "dist/renderer/LitRenderer.js",
|
|
@@ -891,51 +921,6 @@
|
|
|
891
921
|
}
|
|
892
922
|
]
|
|
893
923
|
},
|
|
894
|
-
{
|
|
895
|
-
"kind": "javascript-module",
|
|
896
|
-
"path": "dist/types/AriaHasPopup.js",
|
|
897
|
-
"declarations": [],
|
|
898
|
-
"exports": [
|
|
899
|
-
{
|
|
900
|
-
"kind": "js",
|
|
901
|
-
"name": "default",
|
|
902
|
-
"declaration": {
|
|
903
|
-
"name": "AriaHasPopup",
|
|
904
|
-
"module": "dist/types/AriaHasPopup.js"
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
]
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"kind": "javascript-module",
|
|
911
|
-
"path": "dist/types/AriaLandmarkRole.js",
|
|
912
|
-
"declarations": [],
|
|
913
|
-
"exports": [
|
|
914
|
-
{
|
|
915
|
-
"kind": "js",
|
|
916
|
-
"name": "default",
|
|
917
|
-
"declaration": {
|
|
918
|
-
"name": "AriaLandmarkRole",
|
|
919
|
-
"module": "dist/types/AriaLandmarkRole.js"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
]
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
"kind": "javascript-module",
|
|
926
|
-
"path": "dist/types/AriaRole.js",
|
|
927
|
-
"declarations": [],
|
|
928
|
-
"exports": [
|
|
929
|
-
{
|
|
930
|
-
"kind": "js",
|
|
931
|
-
"name": "default",
|
|
932
|
-
"declaration": {
|
|
933
|
-
"name": "AriaRole",
|
|
934
|
-
"module": "dist/types/AriaRole.js"
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
]
|
|
938
|
-
},
|
|
939
924
|
{
|
|
940
925
|
"kind": "javascript-module",
|
|
941
926
|
"path": "dist/types/CalendarType.js",
|
|
@@ -1386,21 +1371,6 @@
|
|
|
1386
1371
|
}
|
|
1387
1372
|
]
|
|
1388
1373
|
},
|
|
1389
|
-
{
|
|
1390
|
-
"kind": "javascript-module",
|
|
1391
|
-
"path": "dist/util/getParentElement.js",
|
|
1392
|
-
"declarations": [],
|
|
1393
|
-
"exports": [
|
|
1394
|
-
{
|
|
1395
|
-
"kind": "js",
|
|
1396
|
-
"name": "default",
|
|
1397
|
-
"declaration": {
|
|
1398
|
-
"name": "getParentElement",
|
|
1399
|
-
"module": "dist/util/getParentElement.js"
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
]
|
|
1403
|
-
},
|
|
1404
1374
|
{
|
|
1405
1375
|
"kind": "javascript-module",
|
|
1406
1376
|
"path": "dist/util/getSingletonElementInstance.js",
|
|
@@ -1418,30 +1388,30 @@
|
|
|
1418
1388
|
},
|
|
1419
1389
|
{
|
|
1420
1390
|
"kind": "javascript-module",
|
|
1421
|
-
"path": "dist/util/
|
|
1391
|
+
"path": "dist/util/hash2str.js",
|
|
1422
1392
|
"declarations": [],
|
|
1423
1393
|
"exports": [
|
|
1424
1394
|
{
|
|
1425
1395
|
"kind": "js",
|
|
1426
1396
|
"name": "default",
|
|
1427
1397
|
"declaration": {
|
|
1428
|
-
"name": "
|
|
1429
|
-
"module": "dist/util/
|
|
1398
|
+
"name": "hash2str",
|
|
1399
|
+
"module": "dist/util/hash2str.js"
|
|
1430
1400
|
}
|
|
1431
1401
|
}
|
|
1432
1402
|
]
|
|
1433
1403
|
},
|
|
1434
1404
|
{
|
|
1435
1405
|
"kind": "javascript-module",
|
|
1436
|
-
"path": "dist/util/
|
|
1406
|
+
"path": "dist/util/isElementClickable.js",
|
|
1437
1407
|
"declarations": [],
|
|
1438
1408
|
"exports": [
|
|
1439
1409
|
{
|
|
1440
1410
|
"kind": "js",
|
|
1441
1411
|
"name": "default",
|
|
1442
1412
|
"declaration": {
|
|
1443
|
-
"name": "
|
|
1444
|
-
"module": "dist/util/
|
|
1413
|
+
"name": "isElementClickable",
|
|
1414
|
+
"module": "dist/util/isElementClickable.js"
|
|
1445
1415
|
}
|
|
1446
1416
|
}
|
|
1447
1417
|
]
|
|
@@ -1506,6 +1476,21 @@
|
|
|
1506
1476
|
}
|
|
1507
1477
|
]
|
|
1508
1478
|
},
|
|
1479
|
+
{
|
|
1480
|
+
"kind": "javascript-module",
|
|
1481
|
+
"path": "dist/util/toLowercaseEnumValue.js",
|
|
1482
|
+
"declarations": [],
|
|
1483
|
+
"exports": [
|
|
1484
|
+
{
|
|
1485
|
+
"kind": "js",
|
|
1486
|
+
"name": "default",
|
|
1487
|
+
"declaration": {
|
|
1488
|
+
"name": "toLowercaseEnumValue",
|
|
1489
|
+
"module": "dist/util/toLowercaseEnumValue.js"
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
]
|
|
1493
|
+
},
|
|
1509
1494
|
{
|
|
1510
1495
|
"kind": "javascript-module",
|
|
1511
1496
|
"path": "dist/util/whenDOMReady.js",
|
|
@@ -2400,6 +2385,24 @@
|
|
|
2400
2385
|
}
|
|
2401
2386
|
]
|
|
2402
2387
|
},
|
|
2388
|
+
{
|
|
2389
|
+
"kind": "javascript-module",
|
|
2390
|
+
"path": "dist/jsx-dev-runtime.js",
|
|
2391
|
+
"declarations": [],
|
|
2392
|
+
"exports": []
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"kind": "javascript-module",
|
|
2396
|
+
"path": "dist/jsx-runtime.js",
|
|
2397
|
+
"declarations": [],
|
|
2398
|
+
"exports": []
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"kind": "javascript-module",
|
|
2402
|
+
"path": "dist/jsx-utils.js",
|
|
2403
|
+
"declarations": [],
|
|
2404
|
+
"exports": []
|
|
2405
|
+
},
|
|
2403
2406
|
{
|
|
2404
2407
|
"kind": "javascript-module",
|
|
2405
2408
|
"path": "dist/ssr-dom-shim.js",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function bound(target: any, key: string | symbol, descriptor: any): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default function bound(target, key, descriptor) {
|
|
2
|
+
if (!(typeof target[key] === "function")) {
|
|
3
|
+
throw new Error(`@bound decorator can only be applied to methods, received ${String(key)}: ${typeof target[key]}`);
|
|
4
|
+
}
|
|
5
|
+
let fn = descriptor.value;
|
|
6
|
+
return {
|
|
7
|
+
configurable: true,
|
|
8
|
+
get() {
|
|
9
|
+
if (!(this instanceof target.constructor)) {
|
|
10
|
+
return fn;
|
|
11
|
+
}
|
|
12
|
+
// if the property is already defined on the instance, then this call is a super call
|
|
13
|
+
if (Object.hasOwnProperty.call(this, key)) {
|
|
14
|
+
return fn;
|
|
15
|
+
}
|
|
16
|
+
let boundFn = fn.bind(this);
|
|
17
|
+
Object.defineProperty(this, key, {
|
|
18
|
+
configurable: true,
|
|
19
|
+
get() {
|
|
20
|
+
return boundFn;
|
|
21
|
+
},
|
|
22
|
+
set(value) {
|
|
23
|
+
// setting a value on the instance means they overwrite the default behaviour
|
|
24
|
+
boundFn = value;
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return boundFn;
|
|
28
|
+
},
|
|
29
|
+
set(value) {
|
|
30
|
+
fn = value;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=bound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound.js","sourceRoot":"","sources":["../../src/decorators/bound.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,MAAW,EAAE,GAAoB,EAAE,UAAe;IAC/E,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,UAAU,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,6DAA6D,MAAM,CAAC,GAAG,CAAC,KAAK,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpH,CAAC;IAED,IAAI,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC;IAC1B,OAAO;QACN,YAAY,EAAE,IAAI;QAClB,GAAG;YACF,IAAI,CAAC,CAAC,IAAI,YAAY,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC3C,OAAO,EAAE,CAAC;YACX,CAAC;YAED,qFAAqF;YACrF,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;gBAC3C,OAAO,EAAE,CAAC;YACX,CAAC;YAED,IAAI,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAE5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE;gBAChC,YAAY,EAAE,IAAI;gBAClB,GAAG;oBACF,OAAO,OAAO,CAAC;gBAChB,CAAC;gBACD,GAAG,CAAC,KAAU;oBACb,6EAA6E;oBAC7E,OAAO,GAAG,KAAK,CAAC;gBACjB,CAAC;aACD,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;QAChB,CAAC;QACD,GAAG,CAAC,KAAU;YACb,EAAE,GAAG,KAAK,CAAC;QACZ,CAAC;KACD,CAAC;AACH,CAAC","sourcesContent":["export default function bound(target: any, key: string | symbol, descriptor: any): any {\n\tif (!(typeof target[key] === \"function\")) {\n\t\tthrow new Error(`@bound decorator can only be applied to methods, received ${String(key)}: ${typeof target[key]}`);\n\t}\n\n\tlet fn = descriptor.value;\n\treturn {\n\t\tconfigurable: true,\n\t\tget(): any {\n\t\t\tif (!(this instanceof target.constructor)) {\n\t\t\t\treturn fn;\n\t\t\t}\n\n\t\t\t// if the property is already defined on the instance, then this call is a super call\n\t\t\tif (Object.hasOwnProperty.call(this, key)) {\n\t\t\t\treturn fn;\n\t\t\t}\n\n\t\t\tlet boundFn = fn.bind(this);\n\n\t\t\tObject.defineProperty(this, key, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tget(): any {\n\t\t\t\t\treturn boundFn;\n\t\t\t\t},\n\t\t\t\tset(value: any): void {\n\t\t\t\t\t// setting a value on the instance means they overwrite the default behaviour\n\t\t\t\t\tboundFn = value;\n\t\t\t\t},\n\t\t\t});\n\t\t\treturn boundFn;\n\t\t},\n\t\tset(value: any): void {\n\t\t\tfn = value;\n\t\t},\n\t};\n}\n"]}
|
package/dist/decorators.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ import event from "./decorators/event.js";
|
|
|
3
3
|
import eventStrict from "./decorators/event-strict.js";
|
|
4
4
|
import property from "./decorators/property.js";
|
|
5
5
|
import slot from "./decorators/slot.js";
|
|
6
|
-
|
|
6
|
+
import bound from "./decorators/bound.js";
|
|
7
|
+
import i18n from "./decorators/i18n.js";
|
|
8
|
+
export { customElement, event, eventStrict, property, slot, bound, i18n, };
|
package/dist/decorators.js
CHANGED
|
@@ -3,5 +3,7 @@ import event from "./decorators/event.js";
|
|
|
3
3
|
import eventStrict from "./decorators/event-strict.js";
|
|
4
4
|
import property from "./decorators/property.js";
|
|
5
5
|
import slot from "./decorators/slot.js";
|
|
6
|
-
|
|
6
|
+
import bound from "./decorators/bound.js";
|
|
7
|
+
import i18n from "./decorators/i18n.js";
|
|
8
|
+
export { customElement, event, eventStrict, property, slot, bound, i18n, };
|
|
7
9
|
//# sourceMappingURL=decorators.js.map
|
package/dist/decorators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,OAAO,EACN,aAAa,EACb,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,GACJ,CAAC","sourcesContent":["import customElement from \"./decorators/customElement.js\";\nimport event from \"./decorators/event.js\";\nimport eventStrict from \"./decorators/event-strict.js\";\nimport property from \"./decorators/property.js\";\nimport slot from \"./decorators/slot.js\";\n\nexport {\n\tcustomElement,\n\tevent,\n\teventStrict,\n\tproperty,\n\tslot,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,OAAO,EACN,aAAa,EACb,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,GACJ,CAAC","sourcesContent":["import customElement from \"./decorators/customElement.js\";\nimport event from \"./decorators/event.js\";\nimport eventStrict from \"./decorators/event-strict.js\";\nimport property from \"./decorators/property.js\";\nimport slot from \"./decorators/slot.js\";\nimport bound from \"./decorators/bound.js\";\nimport i18n from \"./decorators/i18n.js\";\n\nexport {\n\tcustomElement,\n\tevent,\n\teventStrict,\n\tproperty,\n\tslot,\n\tbound,\n\ti18n,\n};\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const VersionInfo = {
|
|
2
|
-
version: "2.
|
|
2
|
+
version: "2.6.0-rc.0",
|
|
3
3
|
major: 2,
|
|
4
|
-
minor:
|
|
4
|
+
minor: 6,
|
|
5
5
|
patch: 0,
|
|
6
|
-
suffix: "-rc.
|
|
6
|
+
suffix: "-rc.0",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1733990927,
|
|
9
9
|
};
|
|
10
10
|
export default VersionInfo;
|
|
11
11
|
//# sourceMappingURL=VersionInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.
|
|
1
|
+
{"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.6.0-rc.0\",\n\tmajor: 2,\n\tminor: 6,\n\tpatch: 0,\n\tsuffix: \"-rc.0\",\n\tisNext: false,\n\tbuildTime: 1733990927,\n};\nexport default VersionInfo;"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JSX } from "./jsx-runtime.d.ts";
|
|
2
|
+
|
|
3
|
+
export type UI5CustomEvent<T extends UI5Element, N extends keyof T["eventDetails"]> = CustomEvent<T["eventDetails"][N]>;
|
|
4
|
+
export type JsxTemplateResult = JSX.Element | void;
|
|
5
|
+
export type JsxTemplate = () => JsxTemplateResult;
|
|
6
|
+
|
|
7
|
+
export type * from "./types.d.ts";
|
|
8
|
+
export type * from "./jsx-runtime.d.ts";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type VNode } from "./jsx-runtime.js";
|
|
2
|
+
import type UI5Element from "./UI5Element.js";
|
|
3
|
+
export declare function Fragment(props: Record<string, any>, context?: any): import("./thirdparty/preact/preact.module.js").ComponentChildren;
|
|
4
|
+
export declare function jsxDEV(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// eslint-disable-next-line import/extensions
|
|
2
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "./thirdparty/preact/jsxRuntime.module.js";
|
|
3
|
+
import { options } from "./thirdparty/preact/preact.module.js";
|
|
4
|
+
import { isUI5ElementClass, preprocess } from "./jsx-utils.js";
|
|
5
|
+
import { kebabToCamelCase } from "./util/StringHelper.js";
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
7
|
+
const old = options.vnode;
|
|
8
|
+
options.vnode = vnode => {
|
|
9
|
+
const props = vnode.props;
|
|
10
|
+
if (props !== null && typeof props === "object") {
|
|
11
|
+
if (props.class && typeof props.class === "object") {
|
|
12
|
+
// props.class = classObjToStr(props.class as Record<string, boolean>);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
old && old(vnode);
|
|
16
|
+
};
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
18
|
+
function isBoundOrArrow(func) {
|
|
19
|
+
// TODO improve => detection after func params
|
|
20
|
+
return func.name.startsWith("bound ") || func.toString().includes("=>");
|
|
21
|
+
}
|
|
22
|
+
function checkAttributeUsage(type, props) {
|
|
23
|
+
if (!isUI5ElementClass(type)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const tag = type.getMetadata().getTag();
|
|
27
|
+
const componentAttributes = type.getMetadata().getAttributesList();
|
|
28
|
+
Object.keys(props).forEach(prop => {
|
|
29
|
+
if (prop.includes("-") && componentAttributes.includes(prop)) {
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
31
|
+
console.warn(`Avoid attribute usage in favour of properties ['${prop}' --> '${kebabToCamelCase(prop)}'] for tag [${tag}]. Check stack trace to find out which template causes this. Attributes are not type-checked and boolean conversion is manual and error-prone.`);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export function Fragment(props, context) {
|
|
36
|
+
return _Fragment(props, context);
|
|
37
|
+
}
|
|
38
|
+
export function jsxDEV(type, props, key) {
|
|
39
|
+
const tag = preprocess(type, props, key);
|
|
40
|
+
checkAttributeUsage(type, props);
|
|
41
|
+
return _jsxDEV(tag, props, key);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6DAA6D;AAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;AAE1B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE;IACvB,MAAM,KAAK,GAAwB,KAAK,CAAC,KAAK,CAAC;IAC/C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACjD,IAAI,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACpD,uEAAuE;QACxE,CAAC;IACF,CAAC;IACD,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,wDAAwD;AACxD,SAAS,cAAc,CAAC,IAAc;IACrC,8CAA8C;IAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAgC,EAAE,KAA0B;IACxF,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO;IACR,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC;IACxC,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACnE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9D,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,mDAAmD,IAAI,UAAU,gBAAgB,CAAC,IAAI,CAAC,eAAe,GAAG,gJAAgJ,CAAC,CAAC;QACzQ,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAA0B,EAAE,OAAa;IACjE,OAAO,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAgC,EAAE,KAA0B,EAAE,GAAW;IAC/F,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAEzC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAe,CAAC;AAC/C,CAAC","sourcesContent":["// eslint-disable-next-line import/extensions\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"./thirdparty/preact/jsxRuntime.module.js\";\nimport { options } from \"./thirdparty/preact/preact.module.js\";\nimport { type VNode } from \"./jsx-runtime.js\";\nimport type UI5Element from \"./UI5Element.js\";\nimport { isUI5ElementClass, preprocess } from \"./jsx-utils.js\";\nimport { kebabToCamelCase } from \"./util/StringHelper.js\";\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst old = options.vnode;\n\noptions.vnode = vnode => {\n\tconst props: Record<string, any> = vnode.props;\n\tif (props !== null && typeof props === \"object\") {\n\t\tif (props.class && typeof props.class === \"object\") {\n\t\t\t// props.class = classObjToStr(props.class as Record<string, boolean>);\n\t\t}\n\t}\n\told && old(vnode);\n};\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isBoundOrArrow(func: Function): boolean {\n\t// TODO improve => detection after func params\n\treturn func.name.startsWith(\"bound \") || func.toString().includes(\"=>\");\n}\n\nfunction checkAttributeUsage(type: string | typeof UI5Element, props: Record<string, any>) {\n\tif (!isUI5ElementClass(type)) {\n\t\treturn;\n\t}\n\n\tconst tag = type.getMetadata().getTag();\n\tconst componentAttributes = type.getMetadata().getAttributesList();\n\tObject.keys(props).forEach(prop => {\n\t\tif (prop.includes(\"-\") && componentAttributes.includes(prop)) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.warn(`Avoid attribute usage in favour of properties ['${prop}' --> '${kebabToCamelCase(prop)}'] for tag [${tag}]. Check stack trace to find out which template causes this. Attributes are not type-checked and boolean conversion is manual and error-prone.`);\n\t\t}\n\t});\n}\n\nexport function Fragment(props: Record<string, any>, context?: any) {\n\treturn _Fragment(props, context);\n}\n\nexport function jsxDEV(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any> {\n\tconst tag = preprocess(type, props, key);\n\n\tcheckAttributeUsage(type, props);\n\n\treturn _jsxDEV(tag, props, key) as VNode<any>;\n}\n"]}
|