@ui5/webcomponents 1.13.1 → 1.14.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.
Files changed (492) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/Avatar.d.ts +3 -3
  3. package/dist/Avatar.js.map +1 -1
  4. package/dist/AvatarGroup.d.ts +2 -3
  5. package/dist/AvatarGroup.js.map +1 -1
  6. package/dist/Breadcrumbs.d.ts +2 -2
  7. package/dist/Breadcrumbs.js.map +1 -1
  8. package/dist/BusyIndicator.d.ts +1 -1
  9. package/dist/BusyIndicator.js.map +1 -1
  10. package/dist/Button.d.ts +1 -1
  11. package/dist/Button.js.map +1 -1
  12. package/dist/Calendar.d.ts +1 -1
  13. package/dist/Calendar.js.map +1 -1
  14. package/dist/CalendarHeader.d.ts +2 -2
  15. package/dist/CalendarHeader.js.map +1 -1
  16. package/dist/Carousel.d.ts +2 -2
  17. package/dist/Carousel.js.map +1 -1
  18. package/dist/CheckBox.d.ts +2 -2
  19. package/dist/CheckBox.js.map +1 -1
  20. package/dist/ComboBox.d.ts +4 -4
  21. package/dist/ComboBox.js.map +1 -1
  22. package/dist/DateComponentBase.d.ts +4 -4
  23. package/dist/DateComponentBase.js.map +1 -1
  24. package/dist/DatePicker.d.ts +1 -1
  25. package/dist/DatePicker.js.map +1 -1
  26. package/dist/DateRangePicker.d.ts +1 -1
  27. package/dist/DayPicker.d.ts +1 -1
  28. package/dist/DayPicker.js.map +1 -1
  29. package/dist/Dialog.d.ts +1 -1
  30. package/dist/Dialog.js.map +1 -1
  31. package/dist/FileUploader.d.ts +1 -1
  32. package/dist/FileUploader.js.map +1 -1
  33. package/dist/Icon.d.ts +1 -1
  34. package/dist/Icon.js.map +1 -1
  35. package/dist/Input.d.ts +2 -2
  36. package/dist/Input.js.map +1 -1
  37. package/dist/Label.d.ts +1 -7
  38. package/dist/Label.js +0 -9
  39. package/dist/Label.js.map +1 -1
  40. package/dist/Link.d.ts +2 -2
  41. package/dist/Link.js.map +1 -1
  42. package/dist/List.d.ts +3 -3
  43. package/dist/List.js.map +1 -1
  44. package/dist/ListItem.d.ts +4 -4
  45. package/dist/ListItem.js.map +1 -1
  46. package/dist/MessageStrip.d.ts +3 -3
  47. package/dist/MessageStrip.js +8 -8
  48. package/dist/MessageStrip.js.map +1 -1
  49. package/dist/MultiComboBox.d.ts +4 -4
  50. package/dist/MultiComboBox.js.map +1 -1
  51. package/dist/Panel.d.ts +2 -2
  52. package/dist/Panel.js.map +1 -1
  53. package/dist/Popover.d.ts +8 -8
  54. package/dist/Popover.js +2 -2
  55. package/dist/Popover.js.map +1 -1
  56. package/dist/Popup.d.ts +1 -1
  57. package/dist/Popup.js.map +1 -1
  58. package/dist/ProgressIndicator.d.ts +1 -1
  59. package/dist/ProgressIndicator.js.map +1 -1
  60. package/dist/RadioButton.d.ts +2 -2
  61. package/dist/RadioButton.js.map +1 -1
  62. package/dist/SegmentedButtonItem.d.ts +1 -1
  63. package/dist/SegmentedButtonItem.js.map +1 -1
  64. package/dist/Select.d.ts +1 -1
  65. package/dist/Select.js.map +1 -1
  66. package/dist/SplitButton.d.ts +1 -1
  67. package/dist/SplitButton.js.map +1 -1
  68. package/dist/StandardListItem.d.ts +2 -2
  69. package/dist/StandardListItem.js.map +1 -1
  70. package/dist/StepInput.d.ts +2 -2
  71. package/dist/StepInput.js.map +1 -1
  72. package/dist/SuggestionItem.d.ts +2 -2
  73. package/dist/SuggestionItem.js.map +1 -1
  74. package/dist/Switch.d.ts +1 -1
  75. package/dist/Switch.js.map +1 -1
  76. package/dist/Tab.d.ts +1 -1
  77. package/dist/Tab.js.map +1 -1
  78. package/dist/TabContainer.d.ts +6 -6
  79. package/dist/TabContainer.js.map +1 -1
  80. package/dist/Table.d.ts +4 -4
  81. package/dist/Table.js.map +1 -1
  82. package/dist/TableCell.d.ts +14 -0
  83. package/dist/TableCell.js +19 -2
  84. package/dist/TableCell.js.map +1 -1
  85. package/dist/TableColumn.d.ts +1 -1
  86. package/dist/TableColumn.js.map +1 -1
  87. package/dist/TableGroupRow.d.ts +1 -1
  88. package/dist/TableGroupRow.js.map +1 -1
  89. package/dist/TableRow.d.ts +2 -2
  90. package/dist/TableRow.js +1 -1
  91. package/dist/TableRow.js.map +1 -1
  92. package/dist/TextArea.d.ts +1 -1
  93. package/dist/TextArea.js.map +1 -1
  94. package/dist/TimePicker.d.ts +1 -1
  95. package/dist/TimePickerBase.d.ts +2 -2
  96. package/dist/TimePickerBase.js.map +1 -1
  97. package/dist/TimeSelection.d.ts +1 -1
  98. package/dist/Title.d.ts +2 -2
  99. package/dist/Title.js.map +1 -1
  100. package/dist/Toast.d.ts +1 -1
  101. package/dist/Toast.js.map +1 -1
  102. package/dist/Tokenizer.d.ts +1 -1
  103. package/dist/Tokenizer.js.map +1 -1
  104. package/dist/Tree.d.ts +1 -1
  105. package/dist/Tree.js.map +1 -1
  106. package/dist/TreeItem.d.ts +1 -1
  107. package/dist/TreeItem.js.map +1 -1
  108. package/dist/TreeItemBase.d.ts +3 -3
  109. package/dist/TreeItemBase.js.map +1 -1
  110. package/dist/api.json +1 -1
  111. package/dist/assets/IgnoreCustomElements.2238457d.css +1 -0
  112. package/dist/assets/Label.95b96777.css +1 -0
  113. package/dist/assets/ar.1041ec31.js +1 -0
  114. package/dist/assets/ar_EG.e95bec64.js +1 -0
  115. package/dist/assets/ar_SA.f148c268.js +1 -0
  116. package/dist/assets/bg.a5220db4.js +1 -0
  117. package/dist/assets/ca.e2d8c74a.js +1 -0
  118. package/dist/assets/cs.1329f2cd.js +1 -0
  119. package/dist/assets/da.8e8b0c3c.js +1 -0
  120. package/dist/assets/de.5189d32b.js +1 -0
  121. package/dist/assets/de_AT.3e48bebb.js +1 -0
  122. package/dist/assets/de_CH.92c64343.js +1 -0
  123. package/dist/assets/el.28eaca55.js +1 -0
  124. package/dist/assets/el_CY.32dcd4ff.js +1 -0
  125. package/dist/assets/en.45b4416a.js +1 -0
  126. package/dist/assets/en_AU.883bab70.js +1 -0
  127. package/dist/assets/en_GB.471ed2a3.js +1 -0
  128. package/dist/assets/en_HK.ec8572d7.js +1 -0
  129. package/dist/assets/en_IE.f777b349.js +1 -0
  130. package/dist/assets/en_IN.5a48cecf.js +1 -0
  131. package/dist/assets/en_NZ.6ccb69b4.js +1 -0
  132. package/dist/assets/en_PG.c1608957.js +1 -0
  133. package/dist/assets/en_SG.b63cc070.js +1 -0
  134. package/dist/assets/en_ZA.cd22b16a.js +1 -0
  135. package/dist/assets/es.d3f150cc.js +1 -0
  136. package/dist/assets/es_AR.927ccd27.js +1 -0
  137. package/dist/assets/es_BO.04001b79.js +1 -0
  138. package/dist/assets/es_CL.edc9b0de.js +1 -0
  139. package/dist/assets/es_CO.6281f9a6.js +1 -0
  140. package/dist/assets/es_MX.6f93b801.js +1 -0
  141. package/dist/assets/es_PE.888ff0f7.js +1 -0
  142. package/dist/assets/es_UY.ac61590e.js +1 -0
  143. package/dist/assets/es_VE.d5608918.js +1 -0
  144. package/dist/assets/et.ef445219.js +1 -0
  145. package/dist/assets/fa.9a9a21d7.js +1 -0
  146. package/dist/assets/fi.dc730063.js +1 -0
  147. package/dist/assets/fr.011a0e66.js +1 -0
  148. package/dist/assets/fr_BE.4136204b.js +1 -0
  149. package/dist/assets/fr_CA.58f92f20.js +1 -0
  150. package/dist/assets/{fr_BE.48f96803.js → fr_CH.b7d6ec2c.js} +1 -1
  151. package/dist/assets/fr_LU.39b07855.js +1 -0
  152. package/dist/assets/he.9b41d56e.js +1 -0
  153. package/dist/assets/hi.7cb5ad1d.js +1 -0
  154. package/dist/assets/hr.2b28d0ba.js +1 -0
  155. package/dist/assets/hu.c3ac3f70.js +1 -0
  156. package/dist/assets/id.426b2421.js +1 -0
  157. package/dist/assets/it.ae39da3a.js +1 -0
  158. package/dist/assets/it_CH.a563377d.js +1 -0
  159. package/dist/assets/ja.be911ee9.js +1 -0
  160. package/dist/assets/kk.90f2ba89.js +1 -0
  161. package/dist/assets/ko.565a3e63.js +1 -0
  162. package/dist/assets/lt.a282adbc.js +1 -0
  163. package/dist/assets/lv.0e9df9cb.js +1 -0
  164. package/dist/assets/messagebundle_en_US_sappsd.aec484c1.js +1 -0
  165. package/dist/assets/{messagebundle_en_US_saprigi.8f67a54b.js → messagebundle_en_US_saprigi.f321a5ab.js} +1 -1
  166. package/dist/assets/messagebundle_en_US_saptrc.94f1e535.js +1 -0
  167. package/dist/assets/ms.e914c13a.js +1 -0
  168. package/dist/assets/nb.1d73a460.js +1 -0
  169. package/dist/assets/nl.a680abff.js +1 -0
  170. package/dist/assets/nl_BE.a4dc5781.js +1 -0
  171. package/dist/assets/{parameters-bundle.css.64a1fcb3.js → parameters-bundle.css.026dc74e.js} +1 -1
  172. package/dist/assets/{parameters-bundle.css.2480d334.js → parameters-bundle.css.0c41d58c.js} +1 -1
  173. package/dist/assets/{parameters-bundle.css.b06aacf3.js → parameters-bundle.css.14a79875.js} +1 -1
  174. package/dist/assets/{parameters-bundle.css.4cf7b367.js → parameters-bundle.css.23269e5b.js} +1 -1
  175. package/dist/assets/{parameters-bundle.css.0910d303.js → parameters-bundle.css.51692b82.js} +1 -1
  176. package/dist/assets/{parameters-bundle.css.e59780e1.js → parameters-bundle.css.5ab8f243.js} +1 -1
  177. package/dist/assets/{parameters-bundle.css.0c80e05a.js → parameters-bundle.css.64406af3.js} +1 -1
  178. package/dist/assets/{parameters-bundle.css.a0b1bee1.js → parameters-bundle.css.7c9daf4d.js} +1 -1
  179. package/dist/assets/{parameters-bundle.css.691f8760.js → parameters-bundle.css.8289b958.js} +1 -1
  180. package/dist/assets/{parameters-bundle.css.8a87377e.js → parameters-bundle.css.ba16125d.js} +1 -1
  181. package/dist/assets/{parameters-bundle.css.b8d253d9.js → parameters-bundle.css.db425c28.js} +1 -1
  182. package/dist/assets/{parameters-bundle.css.731f329b.js → parameters-bundle.css.eef2edf1.js} +1 -1
  183. package/dist/assets/pl.c0276728.js +1 -0
  184. package/dist/assets/pt.9536023e.js +1 -0
  185. package/dist/assets/pt_PT.2736c73a.js +1 -0
  186. package/dist/assets/ro.ffce20e9.js +1 -0
  187. package/dist/assets/ru.34fce129.js +1 -0
  188. package/dist/assets/ru_UA.7b719d26.js +1 -0
  189. package/dist/assets/sk.738988a3.js +1 -0
  190. package/dist/assets/sl.82708a3f.js +1 -0
  191. package/dist/assets/sr.a69c8ac7.js +1 -0
  192. package/dist/assets/sr_Latn.ce4d0563.js +1 -0
  193. package/dist/assets/sv.86262274.js +1 -0
  194. package/dist/assets/test/pages/{ComboBox.html.2025a0ee.js → ComboBox.html.95e153b8.js} +1 -1
  195. package/dist/assets/test/pages/{Icon.html.9bcff6a6.js → Icon.html.251f84e4.js} +1 -1
  196. package/dist/assets/test/pages/{Label.html.6f194c4a.js → Label.html.df067063.js} +1 -1
  197. package/dist/assets/test/pages/{Popups.html.8dea1e31.js → Popups.html.67ffb6cc.js} +1 -1
  198. package/dist/assets/th.8ecb41b0.js +1 -0
  199. package/dist/assets/tr.72b9d85d.js +1 -0
  200. package/dist/assets/uk.ed9211ae.js +1 -0
  201. package/dist/assets/vi.9d0fe81c.js +1 -0
  202. package/dist/assets/zh_CN.cad8f95e.js +1 -0
  203. package/dist/assets/zh_HK.6f4cdfe2.js +1 -0
  204. package/dist/assets/zh_SG.4924225d.js +1 -0
  205. package/dist/assets/zh_TW.f3327c83.js +1 -0
  206. package/dist/css/themes/ComboBox.css +1 -1
  207. package/dist/css/themes/Input.css +1 -1
  208. package/dist/css/themes/Label.css +1 -1
  209. package/dist/css/themes/MultiComboBox.css +1 -1
  210. package/dist/css/themes/Select.css +1 -1
  211. package/dist/css/themes/TextArea.css +1 -1
  212. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  213. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  214. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  215. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  216. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  217. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  218. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  219. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  220. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  221. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  222. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  223. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  224. package/dist/custom-elements.json +1 -1
  225. package/dist/features/InputSuggestions.d.ts +2 -2
  226. package/dist/features/InputSuggestions.js.map +1 -1
  227. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  228. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  229. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  230. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  231. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  232. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  233. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  234. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  235. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  236. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  237. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  238. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  239. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  240. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  241. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  242. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  243. package/dist/generated/i18n/i18n-defaults.js +2 -1
  244. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  245. package/dist/generated/templates/LabelTemplate.lit.js +2 -2
  246. package/dist/generated/templates/LabelTemplate.lit.js.map +1 -1
  247. package/dist/generated/themes/ComboBox.css.js +1 -1
  248. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  249. package/dist/generated/themes/Input.css.js +1 -1
  250. package/dist/generated/themes/Input.css.js.map +1 -1
  251. package/dist/generated/themes/Label.css.js +1 -1
  252. package/dist/generated/themes/Label.css.js.map +1 -1
  253. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  254. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  255. package/dist/generated/themes/Select.css.js +1 -1
  256. package/dist/generated/themes/Select.css.js.map +1 -1
  257. package/dist/generated/themes/TextArea.css.js +1 -1
  258. package/dist/generated/themes/TextArea.css.js.map +1 -1
  259. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  260. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  261. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  262. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  263. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  264. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  265. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  266. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  267. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  268. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  269. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  270. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  271. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  272. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  273. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  274. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  275. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  276. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  277. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  278. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  279. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  280. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  281. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  282. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  283. package/dist/i18n/messagebundle.properties +3 -0
  284. package/dist/i18n/messagebundle_en_US_sappsd.properties +2 -0
  285. package/dist/i18n/messagebundle_en_US_saprigi.properties +2 -0
  286. package/dist/i18n/messagebundle_en_US_saptrc.properties +2 -0
  287. package/dist/test/pages/72override.html +1 -1
  288. package/dist/test/pages/AnimanitionOff.html +1 -1
  289. package/dist/test/pages/Avatar.html +1 -1
  290. package/dist/test/pages/AvatarGroup.html +1 -1
  291. package/dist/test/pages/Badge.html +1 -1
  292. package/dist/test/pages/Breadcrumbs.html +1 -1
  293. package/dist/test/pages/BusyIndicator.html +1 -1
  294. package/dist/test/pages/Button.html +1 -1
  295. package/dist/test/pages/Calendar.html +1 -1
  296. package/dist/test/pages/Card.html +1 -1
  297. package/dist/test/pages/Carousel.html +1 -1
  298. package/dist/test/pages/CheckBox.html +1 -1
  299. package/dist/test/pages/ColorPalette.html +1 -1
  300. package/dist/test/pages/ColorPalettePopover.html +1 -1
  301. package/dist/test/pages/ColorPicker.html +1 -1
  302. package/dist/test/pages/ComboBox.html +2 -2
  303. package/dist/test/pages/Components.html +1 -1
  304. package/dist/test/pages/CoreControls.html +1 -1
  305. package/dist/test/pages/CoreControls_exp.html +1 -1
  306. package/dist/test/pages/CustomCSS.html +1 -1
  307. package/dist/test/pages/DatePicker.html +1 -1
  308. package/dist/test/pages/DatePicker_test_page.html +1 -1
  309. package/dist/test/pages/DateRangePicker.html +1 -1
  310. package/dist/test/pages/DateTimePicker.html +1 -1
  311. package/dist/test/pages/DateTimePicker_Timezone.html +1 -1
  312. package/dist/test/pages/DayPicker.html +1 -1
  313. package/dist/test/pages/Dialog.html +1 -1
  314. package/dist/test/pages/DialogLifecycle.html +1 -1
  315. package/dist/test/pages/DialogSemantic.html +1 -1
  316. package/dist/test/pages/Eventing.html +1 -1
  317. package/dist/test/pages/F6Test1.html +1 -1
  318. package/dist/test/pages/F6Test2.html +1 -1
  319. package/dist/test/pages/F6Test3.html +1 -1
  320. package/dist/test/pages/F6Test4.html +1 -1
  321. package/dist/test/pages/F6Test5.html +1 -1
  322. package/dist/test/pages/F6Test6.html +1 -1
  323. package/dist/test/pages/F6Test7.html +1 -1
  324. package/dist/test/pages/FileUploader.html +1 -1
  325. package/dist/test/pages/FormComponents.html +1 -1
  326. package/dist/test/pages/FormSupport.html +1 -1
  327. package/dist/test/pages/HCB.html +1 -1
  328. package/dist/test/pages/Icon.html +2 -2
  329. package/dist/test/pages/Icon_and_theming.html +1 -1
  330. package/dist/test/pages/Icon_custom.html +1 -1
  331. package/dist/test/pages/Input.html +1 -1
  332. package/dist/test/pages/InputFieldLabels.html +1 -1
  333. package/dist/test/pages/InputFieldMinWidth.html +1 -1
  334. package/dist/test/pages/InputIcons.html +1 -1
  335. package/dist/test/pages/Input_quickview.html +1 -1
  336. package/dist/test/pages/InputsAlignment.html +1 -1
  337. package/dist/test/pages/InputsLazyLoading.html +1 -1
  338. package/dist/test/pages/ItemNavigation.html +1 -1
  339. package/dist/test/pages/Kitchen.html +1 -1
  340. package/dist/test/pages/Kitchen.openui5.html +1 -1
  341. package/dist/test/pages/Label.html +45 -42
  342. package/dist/test/pages/Link.html +1 -1
  343. package/dist/test/pages/List.html +1 -1
  344. package/dist/test/pages/ListGrowing_Button.html +1 -1
  345. package/dist/test/pages/ListGrowing_Scroll.html +1 -1
  346. package/dist/test/pages/List_keyboard_support.html +1 -1
  347. package/dist/test/pages/List_test_page.html +1 -1
  348. package/dist/test/pages/LitKeyFunction.html +1 -1
  349. package/dist/test/pages/MemoryLeak.html +1 -1
  350. package/dist/test/pages/Menu.html +1 -1
  351. package/dist/test/pages/MessagePage.html +1 -1
  352. package/dist/test/pages/MessageStrip.html +1 -1
  353. package/dist/test/pages/MultiComboBox.html +1 -1
  354. package/dist/test/pages/MultiInput.html +1 -1
  355. package/dist/test/pages/MultiInput_Suggestions.html +1 -1
  356. package/dist/test/pages/OpenUI5-second.html +1 -1
  357. package/dist/test/pages/OpenUI5.html +1 -1
  358. package/dist/test/pages/Panel.html +1 -1
  359. package/dist/test/pages/Popover.html +1 -1
  360. package/dist/test/pages/PopoverArrowBounds.html +1 -1
  361. package/dist/test/pages/Popups.html +2 -2
  362. package/dist/test/pages/ProgressIndicator.html +1 -1
  363. package/dist/test/pages/RTL.html +1 -1
  364. package/dist/test/pages/RadioButton.html +1 -1
  365. package/dist/test/pages/RangeSlider.html +1 -1
  366. package/dist/test/pages/RatingIndicator.html +1 -1
  367. package/dist/test/pages/ResizeHandler.html +1 -1
  368. package/dist/test/pages/ResponsivePopover.html +1 -1
  369. package/dist/test/pages/SegmentedButton.html +1 -1
  370. package/dist/test/pages/Select.html +1 -1
  371. package/dist/test/pages/Simple.html +1 -1
  372. package/dist/test/pages/Slider.html +1 -1
  373. package/dist/test/pages/SplitButton.html +1 -1
  374. package/dist/test/pages/StepInput.html +1 -1
  375. package/dist/test/pages/Switch.html +1 -1
  376. package/dist/test/pages/TabContainer.html +1 -1
  377. package/dist/test/pages/Table-perf-pure.html +1 -1
  378. package/dist/test/pages/Table-perf.html +1 -1
  379. package/dist/test/pages/Table.html +3 -3
  380. package/dist/test/pages/Table2.html +1 -1
  381. package/dist/test/pages/TableAllPopin.html +1 -1
  382. package/dist/test/pages/TableCustomStyling.html +1 -1
  383. package/dist/test/pages/TableGrouping.html +1 -1
  384. package/dist/test/pages/TableGrowingWithButton.html +1 -1
  385. package/dist/test/pages/TableGrowingWithScroll.html +1 -1
  386. package/dist/test/pages/TableSelection.html +1 -1
  387. package/dist/test/pages/TextArea.html +1 -1
  388. package/dist/test/pages/TimePicker.html +1 -1
  389. package/dist/test/pages/TimeSelection.html +1 -1
  390. package/dist/test/pages/Title.html +1 -1
  391. package/dist/test/pages/Toast.html +1 -1
  392. package/dist/test/pages/ToggleButton.html +1 -1
  393. package/dist/test/pages/Tree.html +1 -1
  394. package/dist/test/pages/WheelSlider_Test_Page.html +1 -1
  395. package/dist/test/pages/base/AriaLabelHelper.html +1 -1
  396. package/dist/test/pages/base/DOMObserver.html +1 -1
  397. package/dist/test/pages/base/IconCollection.html +1 -1
  398. package/dist/test/pages/base/IconCollectionInCustomTheme.html +1 -1
  399. package/dist/test/pages/base/IgnoreCustomElements.html +26 -0
  400. package/dist/test/pages/base/InvisibleMessage.html +1 -1
  401. package/dist/test/pages/form.html +1 -1
  402. package/dist/test/pages/i18n-defaultLang.html +1 -1
  403. package/dist/test/pages/i18n-demo.html +1 -1
  404. package/package.json +7 -7
  405. package/src/Label.hbs +4 -6
  406. package/src/i18n/messagebundle.properties +3 -0
  407. package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
  408. package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
  409. package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
  410. package/src/themes/Input.css +2 -0
  411. package/src/themes/Label.css +11 -28
  412. package/src/themes/TextArea.css +16 -7
  413. package/src/themes/base/TextArea-parameters.css +0 -1
  414. package/src/themes/sap_horizon/TextArea-parameters.css +0 -5
  415. package/src/themes/sap_horizon_dark/TextArea-parameters.css +0 -5
  416. package/tsconfig.json +1 -2
  417. package/dist/assets/Label.b48eb771.css +0 -1
  418. package/dist/assets/ar.c5a97d0e.js +0 -1
  419. package/dist/assets/ar_EG.22757369.js +0 -1
  420. package/dist/assets/ar_SA.a5bad2ef.js +0 -1
  421. package/dist/assets/bg.6674f7a6.js +0 -1
  422. package/dist/assets/ca.fa49d13f.js +0 -1
  423. package/dist/assets/cs.dae0cd3e.js +0 -1
  424. package/dist/assets/da.93db3bc1.js +0 -1
  425. package/dist/assets/de.bfbf7863.js +0 -1
  426. package/dist/assets/de_AT.68a4341b.js +0 -1
  427. package/dist/assets/de_CH.1c13a1fb.js +0 -1
  428. package/dist/assets/el.71adc6a2.js +0 -1
  429. package/dist/assets/el_CY.f22e504b.js +0 -1
  430. package/dist/assets/en.ae8d35dc.js +0 -1
  431. package/dist/assets/en_AU.7d45451d.js +0 -1
  432. package/dist/assets/en_GB.80c7d6ef.js +0 -1
  433. package/dist/assets/en_HK.a2b0b861.js +0 -1
  434. package/dist/assets/en_IE.8703f70f.js +0 -1
  435. package/dist/assets/en_IN.bf506371.js +0 -1
  436. package/dist/assets/en_NZ.5dc61e5b.js +0 -1
  437. package/dist/assets/en_PG.1c3b0df6.js +0 -1
  438. package/dist/assets/en_SG.fddd87fc.js +0 -1
  439. package/dist/assets/en_ZA.867da820.js +0 -1
  440. package/dist/assets/es.d7387d86.js +0 -1
  441. package/dist/assets/es_AR.fe05631f.js +0 -1
  442. package/dist/assets/es_BO.89f1b5a6.js +0 -1
  443. package/dist/assets/es_CL.c81c60d6.js +0 -1
  444. package/dist/assets/es_CO.aa2b0b98.js +0 -1
  445. package/dist/assets/es_MX.8686d64e.js +0 -1
  446. package/dist/assets/es_PE.1e0803a8.js +0 -1
  447. package/dist/assets/es_UY.185ab638.js +0 -1
  448. package/dist/assets/es_VE.1f2f1b17.js +0 -1
  449. package/dist/assets/et.d0afa780.js +0 -1
  450. package/dist/assets/fa.47441e31.js +0 -1
  451. package/dist/assets/fi.54632154.js +0 -1
  452. package/dist/assets/fr.6a5154ec.js +0 -1
  453. package/dist/assets/fr_CA.508f04f9.js +0 -1
  454. package/dist/assets/fr_CH.69090fd9.js +0 -1
  455. package/dist/assets/fr_LU.51b82c64.js +0 -1
  456. package/dist/assets/he.869f8a6e.js +0 -1
  457. package/dist/assets/hi.bf17975b.js +0 -1
  458. package/dist/assets/hr.1a1fb4b8.js +0 -1
  459. package/dist/assets/hu.f772de7d.js +0 -1
  460. package/dist/assets/id.11cfa605.js +0 -1
  461. package/dist/assets/it.168286c6.js +0 -1
  462. package/dist/assets/it_CH.5a6d6c80.js +0 -1
  463. package/dist/assets/ja.0f0830ce.js +0 -1
  464. package/dist/assets/kk.d7fb968d.js +0 -1
  465. package/dist/assets/ko.7d771b7b.js +0 -1
  466. package/dist/assets/lt.d15d5108.js +0 -1
  467. package/dist/assets/lv.c268b3f1.js +0 -1
  468. package/dist/assets/messagebundle_en_US_sappsd.4b5e22df.js +0 -1
  469. package/dist/assets/messagebundle_en_US_saptrc.1c1645fc.js +0 -1
  470. package/dist/assets/ms.d05d1ec5.js +0 -1
  471. package/dist/assets/nb.c7bc3999.js +0 -1
  472. package/dist/assets/nl.751f2a34.js +0 -1
  473. package/dist/assets/nl_BE.9d0b23f0.js +0 -1
  474. package/dist/assets/pl.fa84ec2d.js +0 -1
  475. package/dist/assets/pt.fce1c065.js +0 -1
  476. package/dist/assets/pt_PT.734de519.js +0 -1
  477. package/dist/assets/ro.de6645af.js +0 -1
  478. package/dist/assets/ru.adfeebb7.js +0 -1
  479. package/dist/assets/ru_UA.63942d87.js +0 -1
  480. package/dist/assets/sk.ec8e6d6d.js +0 -1
  481. package/dist/assets/sl.8dc5c821.js +0 -1
  482. package/dist/assets/sr.15324e24.js +0 -1
  483. package/dist/assets/sr_Latn.5e843394.js +0 -1
  484. package/dist/assets/sv.2e166b94.js +0 -1
  485. package/dist/assets/th.c070be25.js +0 -1
  486. package/dist/assets/tr.ff1ccc4a.js +0 -1
  487. package/dist/assets/uk.17363643.js +0 -1
  488. package/dist/assets/vi.2b5b186b.js +0 -1
  489. package/dist/assets/zh_CN.1c2009c0.js +0 -1
  490. package/dist/assets/zh_HK.c4687dc5.js +0 -1
  491. package/dist/assets/zh_SG.7fe88248.js +0 -1
  492. package/dist/assets/zh_TW.5e1d38dc.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StandardListItem.js","sourceRoot":"","sources":["../src/StandardListItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,wBAAwB,MAAM,uDAAuD,CAAC;AAE7F;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAUH,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,QAAQ;IA0ItC,iBAAiB;QAChB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC;IAC9C,CAAC;IAED,IAAI,YAAY;QACf,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IACrB,CAAC;IAED,IAAI,gBAAgB;QACnB,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,cAAc;QACjB,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,eAAe;QAClB,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;IACnC,CAAC;CACD,CAAA;AArJA;IADC,QAAQ,EAAE;qDACU;AAcrB;IADC,QAAQ,EAAE;8CACG;AAad;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACV;AAYlB;IADC,QAAQ,EAAE;+CACI;AAUf;IADC,QAAQ,EAAE;wDACa;AAaxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;6DAC7B;AAajC;IADC,QAAQ,EAAE;wDACa;AAcxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC;sDACtC;AAS5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACT;AAGnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0DACD;AAyB3B;IADC,IAAI,EAAE;sDAC2B;AAxI7B,gBAAgB;IATrB,aAAa,CAAC;QACd,GAAG,EAAE,QAAQ;QACb,QAAQ,EAAE,wBAAwB;QAClC,YAAY,EAAE;YACb,GAAG,QAAQ,CAAC,YAAY;YACxB,IAAI;YACJ,MAAM;SACN;KACD,CAAC;GACI,gBAAgB,CA+JrB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport ListItem from \"./ListItem.js\";\nimport type { IAccessibleListItem } from \"./ListItem.js\";\nimport Icon from \"./Icon.js\";\nimport Avatar from \"./Avatar.js\";\nimport WrappingType from \"./types/WrappingType.js\";\nimport StandardListItemTemplate from \"./generated/templates/StandardListItemTemplate.lit.js\";\n\n/**\n * @class\n * The <code>ui5-li</code> represents the simplest type of item for a <code>ui5-list</code>.\n *\n * This is a list item,\n * providing the most common use cases such as <code>text</code>,\n * <code>image</code> and <code>icon</code>.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-li</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>title - Used to style the title of the list item</li>\n * <li>description - Used to style the description of the list item</li>\n * <li>additional-text - Used to style the additionalText of the list item</li>\n * <li>icon - Used to style the icon of the list item</li>\n * </ul>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.StandardListItem\n * @extends sap.ui.webc.main.ListItem\n * @tagname ui5-li\n * @implements sap.ui.webc.main.IListItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-li\",\n\ttemplate: StandardListItemTemplate,\n\tdependencies: [\n\t\t...ListItem.dependencies,\n\t\tIcon,\n\t\tAvatar,\n\t],\n})\nclass StandardListItem extends ListItem implements IAccessibleListItem {\n\t/**\n\t * Defines the description displayed right under the item text, if such is present.\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.description\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 0.8.0\n\t */\n\t@property()\n\tdescription!: string;\n\n\t/**\n\t * Defines the <code>icon</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b>\n\t * SAP-icons font provides numerous built-in icons. To find all the available icons, see the\n\t * <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.icon\n\t * @public\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines whether the <code>icon</code> should be displayed in the beginning of the list item or in the end.\n\t * <br><br>\n\t * <b>Note:</b> If <code>image</code> is set, the <code>icon</code> would be displayed after the <code>image</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.iconEnd\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\ticonEnd!: boolean;\n\n\t/**\n\t * Defines the <code>image</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b> The <code>image</code> would be displayed in the beginning of the list item.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.image\n\t * @public\n\t */\n\t@property()\n\timage!: string;\n\n\t/**\n\t * Defines the <code>additionalText</code>, displayed in the end of the list item.\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.additionalText\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\tadditionalText!: string;\n\n\t/**\n\t * Defines the state of the <code>additionalText</code>.\n\t * <br>\n\t * Available options are: <code>\"None\"</code> (by default), <code>\"Success\"</code>, <code>\"Warning\"</code>, <code>\"Information\"</code> and <code>\"Error\"</code>.\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.additionalTextState\n\t * @defaultvalue \"None\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tadditionalTextState!: ValueState;\n\n\t/**\n\t * Defines the text alternative of the component.\n\t * Note: If not provided a default text alternative will be set, if present.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.accessibleName\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Defines if the text of the component should wrap, they truncate by default.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> this property takes affect only if text node is provided to default slot of the component\n\t * @type {sap.ui.webc.main.types.WrappingType}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.wrappingType\n\t * @defaultvalue \"None\"\n\t * @private\n\t * @since 1.5.0\n\t */\n\t@property({ type: WrappingType, defaultValue: WrappingType.None })\n\twrappingType!: WrappingType;\n\n\t/**\n\t * Indicates if the list item has text content.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.hasTitle\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\thasTitle!: boolean;\n\n\t@property({ type: Boolean })\n\t_hasImageContent!: boolean;\n\n\t/**\n\t * Defines the text of the component.\n\t * <br><br>\n\t * <b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\n\t *\n\t * @type {Node[]}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.default\n\t * @slot\n\t * @public\n\t */\n\n\t/**\n\t * <b>Note:</b> While the slot allows option for setting custom avatar, to match the\n\t * design guidelines, please use the <code>ui5-avatar</code> with it`s default size - S.\n\t * <b>Note:</b> If bigger <code>ui5-avatar</code> needs to be used, then the size of the\n\t * <code>ui5-li</code> should be customized in order to fit.\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.imageContent\n\t * @since 1.10.0\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\timageContent!: Array<HTMLElement>;\n\n\tonBeforeRendering() {\n\t\tsuper.onBeforeRendering();\n\t\tthis.hasTitle = !!this.textContent;\n\t\tthis._hasImageContent = this.hasImageContent;\n\t}\n\n\tget displayImage(): boolean {\n\t\treturn !!this.image;\n\t}\n\n\tget displayIconBegin(): boolean {\n\t\treturn !!(this.icon && !this.iconEnd);\n\t}\n\n\tget displayIconEnd(): boolean {\n\t\treturn !!(this.icon && this.iconEnd);\n\t}\n\n\tget hasImageContent(): boolean {\n\t\treturn !!this.imageContent.length;\n\t}\n}\n\nStandardListItem.define();\n\nexport default StandardListItem;\n"]}
1
+ {"version":3,"file":"StandardListItem.js","sourceRoot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IADC,QAAQ,EAAE;+CACI;AAUf;IADC,QAAQ,EAAE;wDACa;AAaxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;6DACxB;AAatC;IADC,QAAQ,EAAE;wDACa;AAcxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC;sDACjC;AASjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACT;AAGnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0DACD;AAyB3B;IADC,IAAI,EAAE;sDAC2B;AAxI7B,gBAAgB;IATrB,aAAa,CAAC;QACd,GAAG,EAAE,QAAQ;QACb,QAAQ,EAAE,wBAAwB;QAClC,YAAY,EAAE;YACb,GAAG,QAAQ,CAAC,YAAY;YACxB,IAAI;YACJ,MAAM;SACN;KACD,CAAC;GACI,gBAAgB,CA+JrB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport ListItem from \"./ListItem.js\";\nimport type { IAccessibleListItem } from \"./ListItem.js\";\nimport Icon from \"./Icon.js\";\nimport Avatar from \"./Avatar.js\";\nimport WrappingType from \"./types/WrappingType.js\";\nimport StandardListItemTemplate from \"./generated/templates/StandardListItemTemplate.lit.js\";\n\n/**\n * @class\n * The <code>ui5-li</code> represents the simplest type of item for a <code>ui5-list</code>.\n *\n * This is a list item,\n * providing the most common use cases such as <code>text</code>,\n * <code>image</code> and <code>icon</code>.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-li</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>title - Used to style the title of the list item</li>\n * <li>description - Used to style the description of the list item</li>\n * <li>additional-text - Used to style the additionalText of the list item</li>\n * <li>icon - Used to style the icon of the list item</li>\n * </ul>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.StandardListItem\n * @extends sap.ui.webc.main.ListItem\n * @tagname ui5-li\n * @implements sap.ui.webc.main.IListItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-li\",\n\ttemplate: StandardListItemTemplate,\n\tdependencies: [\n\t\t...ListItem.dependencies,\n\t\tIcon,\n\t\tAvatar,\n\t],\n})\nclass StandardListItem extends ListItem implements IAccessibleListItem {\n\t/**\n\t * Defines the description displayed right under the item text, if such is present.\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.description\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 0.8.0\n\t */\n\t@property()\n\tdescription!: string;\n\n\t/**\n\t * Defines the <code>icon</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b>\n\t * SAP-icons font provides numerous built-in icons. To find all the available icons, see the\n\t * <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.icon\n\t * @public\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines whether the <code>icon</code> should be displayed in the beginning of the list item or in the end.\n\t * <br><br>\n\t * <b>Note:</b> If <code>image</code> is set, the <code>icon</code> would be displayed after the <code>image</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.iconEnd\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\ticonEnd!: boolean;\n\n\t/**\n\t * Defines the <code>image</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b> The <code>image</code> would be displayed in the beginning of the list item.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.image\n\t * @public\n\t */\n\t@property()\n\timage!: string;\n\n\t/**\n\t * Defines the <code>additionalText</code>, displayed in the end of the list item.\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.additionalText\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\tadditionalText!: string;\n\n\t/**\n\t * Defines the state of the <code>additionalText</code>.\n\t * <br>\n\t * Available options are: <code>\"None\"</code> (by default), <code>\"Success\"</code>, <code>\"Warning\"</code>, <code>\"Information\"</code> and <code>\"Error\"</code>.\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.additionalTextState\n\t * @defaultvalue \"None\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tadditionalTextState!: `${ValueState}`;\n\n\t/**\n\t * Defines the text alternative of the component.\n\t * Note: If not provided a default text alternative will be set, if present.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.accessibleName\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Defines if the text of the component should wrap, they truncate by default.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> this property takes affect only if text node is provided to default slot of the component\n\t * @type {sap.ui.webc.main.types.WrappingType}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.wrappingType\n\t * @defaultvalue \"None\"\n\t * @private\n\t * @since 1.5.0\n\t */\n\t@property({ type: WrappingType, defaultValue: WrappingType.None })\n\twrappingType!: `${WrappingType}`;\n\n\t/**\n\t * Indicates if the list item has text content.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.hasTitle\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\thasTitle!: boolean;\n\n\t@property({ type: Boolean })\n\t_hasImageContent!: boolean;\n\n\t/**\n\t * Defines the text of the component.\n\t * <br><br>\n\t * <b>Note:</b> Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\n\t *\n\t * @type {Node[]}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.default\n\t * @slot\n\t * @public\n\t */\n\n\t/**\n\t * <b>Note:</b> While the slot allows option for setting custom avatar, to match the\n\t * design guidelines, please use the <code>ui5-avatar</code> with it`s default size - S.\n\t * <b>Note:</b> If bigger <code>ui5-avatar</code> needs to be used, then the size of the\n\t * <code>ui5-li</code> should be customized in order to fit.\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.StandardListItem.prototype.imageContent\n\t * @since 1.10.0\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\timageContent!: Array<HTMLElement>;\n\n\tonBeforeRendering() {\n\t\tsuper.onBeforeRendering();\n\t\tthis.hasTitle = !!this.textContent;\n\t\tthis._hasImageContent = this.hasImageContent;\n\t}\n\n\tget displayImage(): boolean {\n\t\treturn !!this.image;\n\t}\n\n\tget displayIconBegin(): boolean {\n\t\treturn !!(this.icon && !this.iconEnd);\n\t}\n\n\tget displayIconEnd(): boolean {\n\t\treturn !!(this.icon && this.iconEnd);\n\t}\n\n\tget hasImageContent(): boolean {\n\t\treturn !!this.imageContent.length;\n\t}\n}\n\nStandardListItem.define();\n\nexport default StandardListItem;\n"]}
@@ -106,7 +106,7 @@ declare class StepInput extends UI5Element implements IFormElement {
106
106
  * @defaultvalue "None"
107
107
  * @public
108
108
  */
109
- valueState: ValueState;
109
+ valueState: `${ValueState}`;
110
110
  /**
111
111
  * Defines whether the component is required.
112
112
  *
@@ -227,7 +227,7 @@ declare class StepInput extends UI5Element implements IFormElement {
227
227
  * @private
228
228
  */
229
229
  formSupport: Array<HTMLElement>;
230
- _initialValueState?: ValueState;
230
+ _initialValueState?: `${ValueState}`;
231
231
  static i18nBundle: I18nBundle;
232
232
  static onDefine(): Promise<void>;
233
233
  get type(): InputType;
@@ -1 +1 @@
1
- {"version":3,"file":"StepInput.js","sourceRoot":"","sources":["../src/StepInput.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,EACN,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,OAAO,GACP,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAI7E,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AACvG,OAAO,uCAAuC,CAAC;AAC/C,OAAO,sCAAsC,CAAC;AAE9C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,SAAS;AACT,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAE/D,iBAAiB;AACjB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AW,EAAE,IAAI,EAAE,CAAC;iDAC3B;AAGzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;+CACxB;AAgBvB;IADC,IAAI,EAAE;oDACgC;AAWvC;IADC,IAAI,EAAE;8CAC0B;AA7N5B,SAAS;IAjBd,aAAa,CAAC;QACd,GAAG,EAAE,gBAAgB;QACrB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,iBAAiB;QAC3B,YAAY,EAAE;YACb,IAAI;YACJ,KAAK;SACL;KACD,CAAC;IACF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,SAAS,CAwgBd;AACD,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport {\n\tisUp,\n\tisDown,\n\tisUpCtrl,\n\tisDownCtrl,\n\tisUpShift,\n\tisDownShift,\n\tisUpShiftCtrl,\n\tisDownShiftCtrl,\n\tisPageUpShift,\n\tisPageDownShift,\n\tisEscape,\n\tisEnter,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getFeature } from \"@ui5/webcomponents-base/dist/FeaturesRegistry.js\";\nimport Float from \"@ui5/webcomponents-base/dist/types/Float.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { Timeout } from \"@ui5/webcomponents-base/dist/types.js\";\nimport type FormSupport from \"./features/InputElementsFormSupport.js\";\nimport type { IFormElement } from \"./features/InputElementsFormSupport.js\";\nimport StepInputTemplate from \"./generated/templates/StepInputTemplate.lit.js\";\nimport { STEPINPUT_DEC_ICON_TITLE, STEPINPUT_INC_ICON_TITLE } from \"./generated/i18n/i18n-defaults.js\";\nimport \"@ui5/webcomponents-icons/dist/less.js\";\nimport \"@ui5/webcomponents-icons/dist/add.js\";\n\nimport Icon from \"./Icon.js\";\nimport Input from \"./Input.js\";\nimport InputType from \"./types/InputType.js\";\n\n// Styles\nimport StepInputCss from \"./generated/themes/StepInput.css.js\";\n\n// Spin variables\nconst INITIAL_WAIT_TIMEOUT = 500; // milliseconds\nconst ACCELERATION = 0.8;\nconst MIN_WAIT_TIMEOUT = 50; // milliseconds\nconst INITIAL_SPEED = 120; // milliseconds\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-step-input</code> consists of an input field and buttons with icons to increase/decrease the value\n * with the predefined step.\n * <br><br>\n * The user can change the value of the component by pressing the increase/decrease buttons,\n * by typing a number directly, by using the keyboard up/down and page up/down,\n * or by using the mouse scroll wheel. Decimal values are supported.\n *\n * <h3>Usage</h3>\n *\n * The default step is 1 but the app developer can set a different one.\n *\n * App developers can set a maximum and minimum value for the <code>StepInput</code>.\n * The increase/decrease button and the up/down keyboard navigation become disabled when\n * the value reaches the max/min or a new value is entered from the input which is greater/less than the max/min.\n * <br><br>\n * <h4>When to use:</h4>\n * <ul>\n * <li>To adjust amounts, quantities, or other values quickly.</li>\n * <li>To adjust values for a specific step.</li>\n * </ul>\n *\n * <h4>When not to use:</h4>\n * <ul>\n * <li>To enter a static number (for example, postal code, phone number, or ID). In this case,\n * use the regular <code>ui5-input</code> instead.</li>\n * <li>To display a value that rarely needs to be adjusted and does not pertain to a particular step.\n * In this case, use the regular <code>ui5-input</code> instead.</li>\n * <li>To enter dates and times. In this case, use date/time related components instead.</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/StepInput.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.StepInput\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-step-input\n * @since 1.0.0-rc.13\n * @public\n */\n@customElement({\n\ttag: \"ui5-step-input\",\n\trenderer: litRender,\n\tstyles: StepInputCss,\n\ttemplate: StepInputTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tInput,\n\t],\n})\n/**\n * Fired when the input operation has finished by pressing Enter or on focusout.\n *\n * @event sap.ui.webc.main.StepInput#change\n * @public\n */\n@event(\"change\")\nclass StepInput extends UI5Element implements IFormElement {\n\t/**\n\t * Defines a value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.value\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @defaultvalue 0\n\t * @public\n\t */\n\t@property({ validator: Float, defaultValue: 0 })\n\tvalue!: number;\n\n\t/**\n\t * Defines a minimum value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.min\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @public\n\t */\n\t@property({ validator: Float })\n\tmin?: number;\n\n\t/**\n\t * Defines a maximum value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.max\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @public\n\t */\n\t@property({ validator: Float })\n\tmax?: number;\n\n\t/**\n\t * Defines a step of increasing/decreasing the value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.step\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @defaultvalue 1\n\t * @public\n\t */\n\t@property({ validator: Float, defaultValue: 1 })\n\tstep!: number;\n\n\t/**\n\t * Defines the value state of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>None</code></li>\n\t * <li><code>Error</code></li>\n\t * <li><code>Warning</code></li>\n\t * <li><code>Success</code></li>\n\t * <li><code>Information</code></li>\n\t * </ul>\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.valueState\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @defaultvalue \"None\"\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tvalueState!: ValueState;\n\n\t/**\n\t * Defines whether the component is required.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.required\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\trequired!: boolean;\n\n\t/**\n\t * Determines whether the component is displayed as disabled.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.disabled\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t/**\n\t * Determines whether the component is displayed as read-only.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.readonly\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\treadonly!: boolean;\n\n\t/**\n\t * Defines a short hint, intended to aid the user with data entry when the\n\t * component has no value.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> When no placeholder is set, the format pattern is displayed as a placeholder.\n\t * Passing an empty string as the value of this property will make the component appear empty - without placeholder or format pattern.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.placeholder\n\t * @type {string}\n\t * @defaultvalue undefined\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tplaceholder?: string;\n\n\t/**\n\t * Determines the name with which the component will be submitted in an HTML form.\n\t *\n\t * <br><br>\n\t * <b>Important:</b> For the <code>name</code> property to have effect, you must add the following import to your project:\n\t * <code>import \"@ui5/webcomponents/dist/features/InputElementsFormSupport.js\";</code>\n\t *\n\t * <br><br>\n\t * <b>Note:</b> When set, a native <code>input</code> HTML element\n\t * will be created inside the component so that it can be submitted as\n\t * part of an HTML form. Do not use this property unless you need to submit a form.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.name\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tname!: string;\n\n\t/**\n\t * Determines the number of digits after the decimal point of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.valuePrecision\n\t * @type {sap.ui.webc.base.types.Integer}\n\t * @defaultvalue 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tvaluePrecision!: number;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.accessibleName\n\t * @type {string}\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Receives id(or many ids) of the elements that label the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.accessibleNameRef\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_decIconDisabled!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_incIconDisabled!: boolean;\n\n\t@property({ type: Boolean })\n\tfocused!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_inputFocused!: boolean;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_previousValue!: number;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_waitTimeout!: number;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_speed!: number;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_btnDown!: boolean;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_spinTimeoutId!: Timeout;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_spinStarted!: boolean;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the component.\n\t * <br><br>\n\t *\n\t * <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.\n\t * <br>\n\t * <b>Note:</b> The <code>valueStateMessage</code> would be displayed,\n\t * when the component is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.\n\t * @type {HTMLElement}\n\t * @slot\n\t * @name sap.ui.webc.main.StepInput.prototype.valueStateMessage\n\t * @public\n\t */\n\t@slot()\n\tvalueStateMessage!: Array<HTMLElement>;\n\n\t/**\n\t * The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit,\n\t * when <code>name</code> property is set.\n\t *\n\t * @type {HTMLElement[]}\n\t * @slot\n\t * @private\n\t */\n\t@slot()\n\tformSupport!: Array<HTMLElement>;\n\n\t_initialValueState?: ValueState;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tStepInput.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tget type() {\n\t\treturn InputType.Number;\n\t}\n\n\t// icons-related\n\n\tget decIconTitle() {\n\t\treturn StepInput.i18nBundle.getText(STEPINPUT_DEC_ICON_TITLE);\n\t}\n\n\tget decIconName() {\n\t\treturn \"less\";\n\t}\n\n\tget incIconTitle() {\n\t\treturn StepInput.i18nBundle.getText(STEPINPUT_INC_ICON_TITLE);\n\t}\n\n\tget incIconName() {\n\t\treturn \"add\";\n\t}\n\n\tget _decIconClickable() {\n\t\treturn !this._decIconDisabled && !this.readonly && !this.disabled;\n\t}\n\n\tget _incIconClickable() {\n\t\treturn !this._incIconDisabled && !this.readonly && !this.disabled;\n\t}\n\n\tget _isFocused() {\n\t\treturn this.focused;\n\t}\n\n\tget _valuePrecisioned() {\n\t\treturn this.value.toFixed(this.valuePrecision);\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"ariaRequired\": this.required,\n\t\t\t\"ariaLabel\": getEffectiveAriaLabelText(this),\n\t\t};\n\t}\n\n\tget inputAttributes() {\n\t\treturn {\n\t\t\tmin: this.min === undefined ? undefined : this.min,\n\t\t\tmax: this.max === undefined ? undefined : this.max,\n\t\t\tstep: this.step,\n\t\t};\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._setButtonState();\n\t\tif (this._previousValue === undefined) {\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\n\t\tconst formSupport = getFeature<typeof FormSupport>(\"FormSupport\");\n\t\tif (formSupport) {\n\t\t\tformSupport.syncNativeHiddenInput(this);\n\t\t} else if (this.name) {\n\t\t\tconsole.warn(`In order for the \"name\" property to have effect, you should also: import \"@ui5/webcomponents/dist/features/InputElementsFormSupport.js\";`); // eslint-disable-line\n\t\t}\n\t}\n\n\tget input(): Input {\n\t\treturn this.shadowRoot!.querySelector<Input>(\"[ui5-input]\")!;\n\t}\n\n\tget inputOuter() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-step-input-input\")!;\n\t}\n\n\t_onButtonFocusOut() {\n\t\tsetTimeout(() => {\n\t\t\tif (!this._inputFocused) {\n\t\t\t\tthis.inputOuter.removeAttribute(\"focused\");\n\t\t\t}\n\t\t}, 0);\n\t}\n\n\t_onInputFocusIn() {\n\t\tthis._inputFocused = true;\n\t\tif (this.value !== this._previousValue) {\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_onInputFocusOut() {\n\t\tthis._inputFocused = false;\n\t\tthis._onInputChange();\n\t}\n\n\t_setButtonState() {\n\t\tthis._decIconDisabled = this.min !== undefined && this.value <= this.min;\n\t\tthis._incIconDisabled = this.max !== undefined && this.value >= this.max;\n\t}\n\n\t_validate() {\n\t\tif (this._initialValueState === undefined) {\n\t\t\tthis._initialValueState = this.valueState;\n\t\t}\n\n\t\tthis.valueState = ((this.min !== undefined && this.value < this.min)\n\t\t\t|| (this.max !== undefined && this.value > this.max))\n\t\t\t? ValueState.Error : this._initialValueState;\n\t}\n\n\t_preciseValue(value: number) {\n\t\tconst pow = 10 ** this.valuePrecision;\n\t\treturn Math.round(value * pow) / pow;\n\t}\n\n\t_fireChangeEvent() {\n\t\tif (this._previousValue !== this.value) {\n\t\t\tthis._previousValue = this.value;\n\t\t\tthis.fireEvent(\"change\", { value: this.value });\n\t\t}\n\t}\n\n\t/**\n\t * Value modifier - modifies the value of the component, validates the new value and enables/disables increment and\n\t * decrement buttons according to the value and min/max values (if set). Fires <code>change</code> event when requested\n\t *\n\t * @param {Float} modifier modifies the value of the component with the given modifier (positive or negative)\n\t * @param {boolean} fireChangeEvent if <code>true</code>, fires <code>change</code> event when the value is changed\n\t */\n\t_modifyValue(modifier: number, fireChangeEvent = false) {\n\t\tlet value;\n\t\tthis.value = this._preciseValue(parseFloat(this.input.value));\n\t\tvalue = this.value + modifier;\n\t\tif (this.min !== undefined && value < this.min) {\n\t\t\tvalue = this.min;\n\t\t}\n\t\tif (this.max !== undefined && value > this.max) {\n\t\t\tvalue = this.max;\n\t\t}\n\t\tvalue = this._preciseValue(value);\n\t\tif (value !== this.value) {\n\t\t\tthis.value = value;\n\t\t\tthis._validate();\n\t\t\tthis._setButtonState();\n\t\t\tthis.focused = true;\n\t\t\tthis.inputOuter.setAttribute(\"focused\", \"\");\n\t\t\tif (fireChangeEvent) {\n\t\t\t\tthis._fireChangeEvent();\n\t\t\t} else {\n\t\t\t\tthis.input.focus();\n\t\t\t}\n\t\t}\n\t}\n\n\t_incValue(e: CustomEvent) {\n\t\tif (this._incIconClickable && e.isTrusted && !this.disabled && !this.readonly) {\n\t\t\tthis._modifyValue(this.step, true);\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_decValue(e: CustomEvent) {\n\t\tif (this._decIconClickable && e.isTrusted && !this.disabled && !this.readonly) {\n\t\t\tthis._modifyValue(-this.step, true);\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_onInputChange() {\n\t\tif (this.input.value === \"\") {\n\t\t\tthis.input.value = (this.min || 0) as unknown as string;\n\t\t}\n\t\tconst inputValue = this._preciseValue(parseFloat(this.input.value));\n\t\tif (this.value !== this._previousValue || this.value !== inputValue) {\n\t\t\tthis.value = inputValue;\n\t\t\tthis._validate();\n\t\t\tthis._setButtonState();\n\t\t\tthis._fireChangeEvent();\n\t\t}\n\t}\n\n\t_onfocusin() {\n\t\tthis.focused = true;\n\t}\n\n\t_onfocusout() {\n\t\tthis.focused = false;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tlet preventDefault = true;\n\t\tif (this.disabled || this.readonly) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._onInputChange();\n\t\t\treturn;\n\t\t}\n\n\t\tif (isUp(e)) {\n\t\t\t// step up\n\t\t\tthis._modifyValue(this.step);\n\t\t} else if (isDown(e)) {\n\t\t\t// step down\n\t\t\tthis._modifyValue(-this.step);\n\t\t} else if (isEscape(e)) {\n\t\t\t// return previous value\n\t\t\tthis.value = this._previousValue;\n\t\t\tthis.input.value = this.value.toFixed(this.valuePrecision);\n\t\t} else if (this.max !== undefined && (isPageUpShift(e) || isUpShiftCtrl(e))) {\n\t\t\t// step to max\n\t\t\tthis._modifyValue(this.max - this.value);\n\t\t} else if (this.min !== undefined && (isPageDownShift(e) || isDownShiftCtrl(e))) {\n\t\t\t// step to min\n\t\t\tthis._modifyValue(this.min - this.value);\n\t\t} else if (!isUpCtrl(e) && !isDownCtrl(e) && !isUpShift(e) && !isDownShift(e)) {\n\t\t\tpreventDefault = false;\n\t\t}\n\t\tif (preventDefault) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_decSpin() {\n\t\tif (!this._decIconDisabled) {\n\t\t\tthis._spinValue(false, true);\n\t\t}\n\t}\n\n\t_incSpin() {\n\t\tif (!this._incIconDisabled) {\n\t\t\tthis._spinValue(true, true);\n\t\t}\n\t}\n\n\t/**\n\t * Calculates the time which should be waited until _spinValue function is called.\n\t */\n\t_calcWaitTimeout() {\n\t\tthis._speed *= ACCELERATION;\n\t\tthis._waitTimeout = ((this._waitTimeout - this._speed) < MIN_WAIT_TIMEOUT ? MIN_WAIT_TIMEOUT : (this._waitTimeout - this._speed));\n\t\treturn this._waitTimeout;\n\t}\n\n\t/**\n\t * Called when the increment or decrement button is pressed and held to set new value.\n\t * @param {boolean} increment - is this the increment button or not so the values should be spin accordingly up or down\n\t * @param {boolean} resetVariables - whether to reset the spin-related variables or not\n\t */\n\t_spinValue(increment: boolean, resetVariables = false) {\n\t\tif (resetVariables) {\n\t\t\tthis._waitTimeout = INITIAL_WAIT_TIMEOUT;\n\t\t\tthis._speed = INITIAL_SPEED;\n\t\t\tthis._btnDown = true;\n\t\t}\n\t\tthis._spinTimeoutId = setTimeout(() => {\n\t\t\tif (this._btnDown) {\n\t\t\t\tthis._spinStarted = true;\n\t\t\t\tthis._modifyValue(increment ? this.step : -this.step);\n\t\t\t\tthis._setButtonState();\n\t\t\t\tif ((!this._incIconDisabled && increment) || (!this._decIconDisabled && !increment)) {\n\t\t\t\t\tthis._spinValue(increment);\n\t\t\t\t} else {\n\t\t\t\t\tthis._resetSpin();\n\t\t\t\t\tthis._fireChangeEvent();\n\t\t\t\t}\n\t\t\t}\n\t\t}, this._calcWaitTimeout());\n\t}\n\n\t/**\n\t* Resets spin process\n\t*/\n\t_resetSpin() {\n\t\tclearTimeout(this._spinTimeoutId);\n\t\tthis._btnDown = false;\n\t\tthis._spinStarted = false;\n\t}\n\n\t/**\n\t* Resets spin process when mouse outs + or - buttons\n\t*/\n\t_resetSpinOut() {\n\t\tif (this._btnDown) {\n\t\t\tthis._resetSpin();\n\t\t\tthis._fireChangeEvent();\n\t\t}\n\t}\n}\nStepInput.define();\n\nexport default StepInput;\n"]}
1
+ {"version":3,"file":"StepInput.js","sourceRoot":"","sources":["../src/StepInput.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,k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C;IACF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,SAAS,CAwgBd;AACD,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport {\n\tisUp,\n\tisDown,\n\tisUpCtrl,\n\tisDownCtrl,\n\tisUpShift,\n\tisDownShift,\n\tisUpShiftCtrl,\n\tisDownShiftCtrl,\n\tisPageUpShift,\n\tisPageDownShift,\n\tisEscape,\n\tisEnter,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getFeature } from \"@ui5/webcomponents-base/dist/FeaturesRegistry.js\";\nimport Float from \"@ui5/webcomponents-base/dist/types/Float.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { Timeout } from \"@ui5/webcomponents-base/dist/types.js\";\nimport type FormSupport from \"./features/InputElementsFormSupport.js\";\nimport type { IFormElement } from \"./features/InputElementsFormSupport.js\";\nimport StepInputTemplate from \"./generated/templates/StepInputTemplate.lit.js\";\nimport { STEPINPUT_DEC_ICON_TITLE, STEPINPUT_INC_ICON_TITLE } from \"./generated/i18n/i18n-defaults.js\";\nimport \"@ui5/webcomponents-icons/dist/less.js\";\nimport \"@ui5/webcomponents-icons/dist/add.js\";\n\nimport Icon from \"./Icon.js\";\nimport Input from \"./Input.js\";\nimport InputType from \"./types/InputType.js\";\n\n// Styles\nimport StepInputCss from \"./generated/themes/StepInput.css.js\";\n\n// Spin variables\nconst INITIAL_WAIT_TIMEOUT = 500; // milliseconds\nconst ACCELERATION = 0.8;\nconst MIN_WAIT_TIMEOUT = 50; // milliseconds\nconst INITIAL_SPEED = 120; // milliseconds\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-step-input</code> consists of an input field and buttons with icons to increase/decrease the value\n * with the predefined step.\n * <br><br>\n * The user can change the value of the component by pressing the increase/decrease buttons,\n * by typing a number directly, by using the keyboard up/down and page up/down,\n * or by using the mouse scroll wheel. Decimal values are supported.\n *\n * <h3>Usage</h3>\n *\n * The default step is 1 but the app developer can set a different one.\n *\n * App developers can set a maximum and minimum value for the <code>StepInput</code>.\n * The increase/decrease button and the up/down keyboard navigation become disabled when\n * the value reaches the max/min or a new value is entered from the input which is greater/less than the max/min.\n * <br><br>\n * <h4>When to use:</h4>\n * <ul>\n * <li>To adjust amounts, quantities, or other values quickly.</li>\n * <li>To adjust values for a specific step.</li>\n * </ul>\n *\n * <h4>When not to use:</h4>\n * <ul>\n * <li>To enter a static number (for example, postal code, phone number, or ID). In this case,\n * use the regular <code>ui5-input</code> instead.</li>\n * <li>To display a value that rarely needs to be adjusted and does not pertain to a particular step.\n * In this case, use the regular <code>ui5-input</code> instead.</li>\n * <li>To enter dates and times. In this case, use date/time related components instead.</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/StepInput.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.StepInput\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-step-input\n * @since 1.0.0-rc.13\n * @public\n */\n@customElement({\n\ttag: \"ui5-step-input\",\n\trenderer: litRender,\n\tstyles: StepInputCss,\n\ttemplate: StepInputTemplate,\n\tdependencies: [\n\t\tIcon,\n\t\tInput,\n\t],\n})\n/**\n * Fired when the input operation has finished by pressing Enter or on focusout.\n *\n * @event sap.ui.webc.main.StepInput#change\n * @public\n */\n@event(\"change\")\nclass StepInput extends UI5Element implements IFormElement {\n\t/**\n\t * Defines a value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.value\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @defaultvalue 0\n\t * @public\n\t */\n\t@property({ validator: Float, defaultValue: 0 })\n\tvalue!: number;\n\n\t/**\n\t * Defines a minimum value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.min\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @public\n\t */\n\t@property({ validator: Float })\n\tmin?: number;\n\n\t/**\n\t * Defines a maximum value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.max\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @public\n\t */\n\t@property({ validator: Float })\n\tmax?: number;\n\n\t/**\n\t * Defines a step of increasing/decreasing the value of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.step\n\t * @type {sap.ui.webc.base.types.Float}\n\t * @defaultvalue 1\n\t * @public\n\t */\n\t@property({ validator: Float, defaultValue: 1 })\n\tstep!: number;\n\n\t/**\n\t * Defines the value state of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>None</code></li>\n\t * <li><code>Error</code></li>\n\t * <li><code>Warning</code></li>\n\t * <li><code>Success</code></li>\n\t * <li><code>Information</code></li>\n\t * </ul>\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.valueState\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @defaultvalue \"None\"\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tvalueState!: `${ValueState}`;\n\n\t/**\n\t * Defines whether the component is required.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.required\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\trequired!: boolean;\n\n\t/**\n\t * Determines whether the component is displayed as disabled.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.disabled\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t/**\n\t * Determines whether the component is displayed as read-only.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.readonly\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\treadonly!: boolean;\n\n\t/**\n\t * Defines a short hint, intended to aid the user with data entry when the\n\t * component has no value.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> When no placeholder is set, the format pattern is displayed as a placeholder.\n\t * Passing an empty string as the value of this property will make the component appear empty - without placeholder or format pattern.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.placeholder\n\t * @type {string}\n\t * @defaultvalue undefined\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tplaceholder?: string;\n\n\t/**\n\t * Determines the name with which the component will be submitted in an HTML form.\n\t *\n\t * <br><br>\n\t * <b>Important:</b> For the <code>name</code> property to have effect, you must add the following import to your project:\n\t * <code>import \"@ui5/webcomponents/dist/features/InputElementsFormSupport.js\";</code>\n\t *\n\t * <br><br>\n\t * <b>Note:</b> When set, a native <code>input</code> HTML element\n\t * will be created inside the component so that it can be submitted as\n\t * part of an HTML form. Do not use this property unless you need to submit a form.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.name\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tname!: string;\n\n\t/**\n\t * Determines the number of digits after the decimal point of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.valuePrecision\n\t * @type {sap.ui.webc.base.types.Integer}\n\t * @defaultvalue 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tvaluePrecision!: number;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.accessibleName\n\t * @type {string}\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Receives id(or many ids) of the elements that label the component.\n\t *\n\t * @name sap.ui.webc.main.StepInput.prototype.accessibleNameRef\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_decIconDisabled!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_incIconDisabled!: boolean;\n\n\t@property({ type: Boolean })\n\tfocused!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_inputFocused!: boolean;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_previousValue!: number;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_waitTimeout!: number;\n\n\t@property({ validator: Float, noAttribute: true })\n\t_speed!: number;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_btnDown!: boolean;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_spinTimeoutId!: Timeout;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_spinStarted!: boolean;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the component.\n\t * <br><br>\n\t *\n\t * <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.\n\t * <br>\n\t * <b>Note:</b> The <code>valueStateMessage</code> would be displayed,\n\t * when the component is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.\n\t * @type {HTMLElement}\n\t * @slot\n\t * @name sap.ui.webc.main.StepInput.prototype.valueStateMessage\n\t * @public\n\t */\n\t@slot()\n\tvalueStateMessage!: Array<HTMLElement>;\n\n\t/**\n\t * The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit,\n\t * when <code>name</code> property is set.\n\t *\n\t * @type {HTMLElement[]}\n\t * @slot\n\t * @private\n\t */\n\t@slot()\n\tformSupport!: Array<HTMLElement>;\n\n\t_initialValueState?: `${ValueState}`;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tStepInput.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tget type() {\n\t\treturn InputType.Number;\n\t}\n\n\t// icons-related\n\n\tget decIconTitle() {\n\t\treturn StepInput.i18nBundle.getText(STEPINPUT_DEC_ICON_TITLE);\n\t}\n\n\tget decIconName() {\n\t\treturn \"less\";\n\t}\n\n\tget incIconTitle() {\n\t\treturn StepInput.i18nBundle.getText(STEPINPUT_INC_ICON_TITLE);\n\t}\n\n\tget incIconName() {\n\t\treturn \"add\";\n\t}\n\n\tget _decIconClickable() {\n\t\treturn !this._decIconDisabled && !this.readonly && !this.disabled;\n\t}\n\n\tget _incIconClickable() {\n\t\treturn !this._incIconDisabled && !this.readonly && !this.disabled;\n\t}\n\n\tget _isFocused() {\n\t\treturn this.focused;\n\t}\n\n\tget _valuePrecisioned() {\n\t\treturn this.value.toFixed(this.valuePrecision);\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"ariaRequired\": this.required,\n\t\t\t\"ariaLabel\": getEffectiveAriaLabelText(this),\n\t\t};\n\t}\n\n\tget inputAttributes() {\n\t\treturn {\n\t\t\tmin: this.min === undefined ? undefined : this.min,\n\t\t\tmax: this.max === undefined ? undefined : this.max,\n\t\t\tstep: this.step,\n\t\t};\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._setButtonState();\n\t\tif (this._previousValue === undefined) {\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\n\t\tconst formSupport = getFeature<typeof FormSupport>(\"FormSupport\");\n\t\tif (formSupport) {\n\t\t\tformSupport.syncNativeHiddenInput(this);\n\t\t} else if (this.name) {\n\t\t\tconsole.warn(`In order for the \"name\" property to have effect, you should also: import \"@ui5/webcomponents/dist/features/InputElementsFormSupport.js\";`); // eslint-disable-line\n\t\t}\n\t}\n\n\tget input(): Input {\n\t\treturn this.shadowRoot!.querySelector<Input>(\"[ui5-input]\")!;\n\t}\n\n\tget inputOuter() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-step-input-input\")!;\n\t}\n\n\t_onButtonFocusOut() {\n\t\tsetTimeout(() => {\n\t\t\tif (!this._inputFocused) {\n\t\t\t\tthis.inputOuter.removeAttribute(\"focused\");\n\t\t\t}\n\t\t}, 0);\n\t}\n\n\t_onInputFocusIn() {\n\t\tthis._inputFocused = true;\n\t\tif (this.value !== this._previousValue) {\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_onInputFocusOut() {\n\t\tthis._inputFocused = false;\n\t\tthis._onInputChange();\n\t}\n\n\t_setButtonState() {\n\t\tthis._decIconDisabled = this.min !== undefined && this.value <= this.min;\n\t\tthis._incIconDisabled = this.max !== undefined && this.value >= this.max;\n\t}\n\n\t_validate() {\n\t\tif (this._initialValueState === undefined) {\n\t\t\tthis._initialValueState = this.valueState;\n\t\t}\n\n\t\tthis.valueState = ((this.min !== undefined && this.value < this.min)\n\t\t\t|| (this.max !== undefined && this.value > this.max))\n\t\t\t? ValueState.Error : this._initialValueState;\n\t}\n\n\t_preciseValue(value: number) {\n\t\tconst pow = 10 ** this.valuePrecision;\n\t\treturn Math.round(value * pow) / pow;\n\t}\n\n\t_fireChangeEvent() {\n\t\tif (this._previousValue !== this.value) {\n\t\t\tthis._previousValue = this.value;\n\t\t\tthis.fireEvent(\"change\", { value: this.value });\n\t\t}\n\t}\n\n\t/**\n\t * Value modifier - modifies the value of the component, validates the new value and enables/disables increment and\n\t * decrement buttons according to the value and min/max values (if set). Fires <code>change</code> event when requested\n\t *\n\t * @param {Float} modifier modifies the value of the component with the given modifier (positive or negative)\n\t * @param {boolean} fireChangeEvent if <code>true</code>, fires <code>change</code> event when the value is changed\n\t */\n\t_modifyValue(modifier: number, fireChangeEvent = false) {\n\t\tlet value;\n\t\tthis.value = this._preciseValue(parseFloat(this.input.value));\n\t\tvalue = this.value + modifier;\n\t\tif (this.min !== undefined && value < this.min) {\n\t\t\tvalue = this.min;\n\t\t}\n\t\tif (this.max !== undefined && value > this.max) {\n\t\t\tvalue = this.max;\n\t\t}\n\t\tvalue = this._preciseValue(value);\n\t\tif (value !== this.value) {\n\t\t\tthis.value = value;\n\t\t\tthis._validate();\n\t\t\tthis._setButtonState();\n\t\t\tthis.focused = true;\n\t\t\tthis.inputOuter.setAttribute(\"focused\", \"\");\n\t\t\tif (fireChangeEvent) {\n\t\t\t\tthis._fireChangeEvent();\n\t\t\t} else {\n\t\t\t\tthis.input.focus();\n\t\t\t}\n\t\t}\n\t}\n\n\t_incValue(e: CustomEvent) {\n\t\tif (this._incIconClickable && e.isTrusted && !this.disabled && !this.readonly) {\n\t\t\tthis._modifyValue(this.step, true);\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_decValue(e: CustomEvent) {\n\t\tif (this._decIconClickable && e.isTrusted && !this.disabled && !this.readonly) {\n\t\t\tthis._modifyValue(-this.step, true);\n\t\t\tthis._previousValue = this.value;\n\t\t}\n\t}\n\n\t_onInputChange() {\n\t\tif (this.input.value === \"\") {\n\t\t\tthis.input.value = (this.min || 0) as unknown as string;\n\t\t}\n\t\tconst inputValue = this._preciseValue(parseFloat(this.input.value));\n\t\tif (this.value !== this._previousValue || this.value !== inputValue) {\n\t\t\tthis.value = inputValue;\n\t\t\tthis._validate();\n\t\t\tthis._setButtonState();\n\t\t\tthis._fireChangeEvent();\n\t\t}\n\t}\n\n\t_onfocusin() {\n\t\tthis.focused = true;\n\t}\n\n\t_onfocusout() {\n\t\tthis.focused = false;\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tlet preventDefault = true;\n\t\tif (this.disabled || this.readonly) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._onInputChange();\n\t\t\treturn;\n\t\t}\n\n\t\tif (isUp(e)) {\n\t\t\t// step up\n\t\t\tthis._modifyValue(this.step);\n\t\t} else if (isDown(e)) {\n\t\t\t// step down\n\t\t\tthis._modifyValue(-this.step);\n\t\t} else if (isEscape(e)) {\n\t\t\t// return previous value\n\t\t\tthis.value = this._previousValue;\n\t\t\tthis.input.value = this.value.toFixed(this.valuePrecision);\n\t\t} else if (this.max !== undefined && (isPageUpShift(e) || isUpShiftCtrl(e))) {\n\t\t\t// step to max\n\t\t\tthis._modifyValue(this.max - this.value);\n\t\t} else if (this.min !== undefined && (isPageDownShift(e) || isDownShiftCtrl(e))) {\n\t\t\t// step to min\n\t\t\tthis._modifyValue(this.min - this.value);\n\t\t} else if (!isUpCtrl(e) && !isDownCtrl(e) && !isUpShift(e) && !isDownShift(e)) {\n\t\t\tpreventDefault = false;\n\t\t}\n\t\tif (preventDefault) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_decSpin() {\n\t\tif (!this._decIconDisabled) {\n\t\t\tthis._spinValue(false, true);\n\t\t}\n\t}\n\n\t_incSpin() {\n\t\tif (!this._incIconDisabled) {\n\t\t\tthis._spinValue(true, true);\n\t\t}\n\t}\n\n\t/**\n\t * Calculates the time which should be waited until _spinValue function is called.\n\t */\n\t_calcWaitTimeout() {\n\t\tthis._speed *= ACCELERATION;\n\t\tthis._waitTimeout = ((this._waitTimeout - this._speed) < MIN_WAIT_TIMEOUT ? MIN_WAIT_TIMEOUT : (this._waitTimeout - this._speed));\n\t\treturn this._waitTimeout;\n\t}\n\n\t/**\n\t * Called when the increment or decrement button is pressed and held to set new value.\n\t * @param {boolean} increment - is this the increment button or not so the values should be spin accordingly up or down\n\t * @param {boolean} resetVariables - whether to reset the spin-related variables or not\n\t */\n\t_spinValue(increment: boolean, resetVariables = false) {\n\t\tif (resetVariables) {\n\t\t\tthis._waitTimeout = INITIAL_WAIT_TIMEOUT;\n\t\t\tthis._speed = INITIAL_SPEED;\n\t\t\tthis._btnDown = true;\n\t\t}\n\t\tthis._spinTimeoutId = setTimeout(() => {\n\t\t\tif (this._btnDown) {\n\t\t\t\tthis._spinStarted = true;\n\t\t\t\tthis._modifyValue(increment ? this.step : -this.step);\n\t\t\t\tthis._setButtonState();\n\t\t\t\tif ((!this._incIconDisabled && increment) || (!this._decIconDisabled && !increment)) {\n\t\t\t\t\tthis._spinValue(increment);\n\t\t\t\t} else {\n\t\t\t\t\tthis._resetSpin();\n\t\t\t\t\tthis._fireChangeEvent();\n\t\t\t\t}\n\t\t\t}\n\t\t}, this._calcWaitTimeout());\n\t}\n\n\t/**\n\t* Resets spin process\n\t*/\n\t_resetSpin() {\n\t\tclearTimeout(this._spinTimeoutId);\n\t\tthis._btnDown = false;\n\t\tthis._spinStarted = false;\n\t}\n\n\t/**\n\t* Resets spin process when mouse outs + or - buttons\n\t*/\n\t_resetSpinOut() {\n\t\tif (this._btnDown) {\n\t\t\tthis._resetSpin();\n\t\t\tthis._fireChangeEvent();\n\t\t}\n\t}\n}\nStepInput.define();\n\nexport default StepInput;\n"]}
@@ -37,7 +37,7 @@ declare class SuggestionItem extends UI5Element {
37
37
  * @public
38
38
  * @since 1.0.0-rc.8
39
39
  */
40
- type: ListItemType;
40
+ type: `${ListItemType}`;
41
41
  /**
42
42
  * Defines the description displayed right under the item text, if such is present.
43
43
  * @type {string}
@@ -97,7 +97,7 @@ declare class SuggestionItem extends UI5Element {
97
97
  * @since 1.0.0-rc.15
98
98
  * @public
99
99
  */
100
- additionalTextState: ValueState;
100
+ additionalTextState: `${ValueState}`;
101
101
  get groupItem(): boolean;
102
102
  }
103
103
  export default SuggestionItem;
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionItem.js","sourceRoot":"","sources":["../src/SuggestionItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAKH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAmGtC,IAAI,SAAS;QACZ,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AA5FA;IADC,QAAQ,EAAE;4CACE;AAgBb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;4CACjD;AAUnB;IADC,QAAQ,EAAE;mDACS;AAcpB;IADC,QAAQ,EAAE;4CACE;AAab;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACV;AAWlB;IADC,QAAQ,EAAE;6CACG;AAUd;IADC,QAAQ,EAAE;sDACY;AAavB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;2DAC9B;AAjG3B,cAAc;IAJnB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,YAAY,EAAE,CAAC,kBAAkB,CAAC;KAClC,CAAC;GACI,cAAc,CAsGnB;AAED,cAAc,CAAC,MAAM,EAAE,CAAC;AAExB,eAAe,cAAc,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\n\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport SuggestionListItem from \"./SuggestionListItem.js\";\nimport ListItemType from \"./types/ListItemType.js\";\n\n/**\n * @class\n * The <code>ui5-suggestion-item</code> represents the suggestion item of the <code>ui5-input</code>.\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.SuggestionItem\n * @extends sap.ui.webc.base.UI5Element\n * @abstract\n * @tagname ui5-suggestion-item\n * @implements sap.ui.webc.main.IInputSuggestionItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-suggestion-item\",\n\tdependencies: [SuggestionListItem],\n})\nclass SuggestionItem extends UI5Element {\n\t/**\n\t * Defines the text of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.text\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttext!: string\n\n\t/**\n\t * Defines the visual indication and behavior of the item.\n\t * Available options are <code>Active</code> (by default), <code>Inactive</code> and <code>Detail</code>.\n\t * <br><br>\n\t * <b>Note:</b> When set to <code>Active</code>, the item will provide visual response upon press and hover,\n\t * while when <code>Inactive</code> or <code>Detail</code> - will not.\n\t *\n\t * @type {sap.ui.webc.main.types.ListItemType}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.type\n\t * @defaultvalue \"Active\"\n\t * @public\n\t * @since 1.0.0-rc.8\n\t*/\n\t@property({ type: ListItemType, defaultValue: ListItemType.Active })\n\ttype!: ListItemType\n\n\t/**\n\t * Defines the description displayed right under the item text, if such is present.\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.description\n\t * @defaultvalue: \"\"\n\t * @public\n\t */\n\t@property()\n\tdescription!: string\n\n\t/**\n\t * Defines the <code>icon</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b>\n\t * SAP-icons font provides numerous built-in icons. To find all the available icons, see the\n\t * <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.icon\n\t * @public\n\t */\n\t@property()\n\ticon!: string\n\n\t/**\n\t * Defines whether the <code>icon</code> should be displayed in the beginning of the item or in the end.\n\t * <br><br>\n\t * <b>Note:</b> If <code>image</code> is set, the <code>icon</code> would be displayed after the <code>image</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.iconEnd\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\ticonEnd!: boolean;\n\t/**\n\t * Defines the <code>image</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b> The <code>image</code> would be displayed in the beginning of the item.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.image\n\t * @public\n\t */\n\t@property()\n\timage!: string\n\n\t/**\n\t * Defines the <code>additionalText</code>, displayed in the end of the item.\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.additionalText\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\tadditionalText!: string\n\n\t/**\n\t * Defines the state of the <code>additionalText</code>.\n\t * <br><br>\n\t * Available options are: <code>\"None\"</code> (by default), <code>\"Success\"</code>, <code>\"Information\"</code>, <code>\"Warning\"</code> and <code>\"Error\"</code>.\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.additionalTextState\n\t * @defaultvalue \"None\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tadditionalTextState!: ValueState\n\n\tget groupItem() {\n\t\treturn false;\n\t}\n}\n\nSuggestionItem.define();\n\nexport default SuggestionItem;\n"]}
1
+ {"version":3,"file":"SuggestionItem.js","sourceRoot":"","sources":["../src/SuggestionItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAKH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAmGtC,IAAI,SAAS;QACZ,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AA5FA;IADC,QAAQ,EAAE;4CACE;AAgBb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;4CAC5C;AAUxB;IADC,QAAQ,EAAE;mDACS;AAcpB;IADC,QAAQ,EAAE;4CACE;AAab;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACV;AAWlB;IADC,QAAQ,EAAE;6CACG;AAUd;IADC,QAAQ,EAAE;sDACY;AAavB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;2DACzB;AAjGhC,cAAc;IAJnB,aAAa,CAAC;QACd,GAAG,EAAE,qBAAqB;QAC1B,YAAY,EAAE,CAAC,kBAAkB,CAAC;KAClC,CAAC;GACI,cAAc,CAsGnB;AAED,cAAc,CAAC,MAAM,EAAE,CAAC;AAExB,eAAe,cAAc,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\n\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport SuggestionListItem from \"./SuggestionListItem.js\";\nimport ListItemType from \"./types/ListItemType.js\";\n\n/**\n * @class\n * The <code>ui5-suggestion-item</code> represents the suggestion item of the <code>ui5-input</code>.\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.SuggestionItem\n * @extends sap.ui.webc.base.UI5Element\n * @abstract\n * @tagname ui5-suggestion-item\n * @implements sap.ui.webc.main.IInputSuggestionItem\n * @public\n */\n@customElement({\n\ttag: \"ui5-suggestion-item\",\n\tdependencies: [SuggestionListItem],\n})\nclass SuggestionItem extends UI5Element {\n\t/**\n\t * Defines the text of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.text\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttext!: string\n\n\t/**\n\t * Defines the visual indication and behavior of the item.\n\t * Available options are <code>Active</code> (by default), <code>Inactive</code> and <code>Detail</code>.\n\t * <br><br>\n\t * <b>Note:</b> When set to <code>Active</code>, the item will provide visual response upon press and hover,\n\t * while when <code>Inactive</code> or <code>Detail</code> - will not.\n\t *\n\t * @type {sap.ui.webc.main.types.ListItemType}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.type\n\t * @defaultvalue \"Active\"\n\t * @public\n\t * @since 1.0.0-rc.8\n\t*/\n\t@property({ type: ListItemType, defaultValue: ListItemType.Active })\n\ttype!: `${ListItemType}`\n\n\t/**\n\t * Defines the description displayed right under the item text, if such is present.\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.description\n\t * @defaultvalue: \"\"\n\t * @public\n\t */\n\t@property()\n\tdescription!: string\n\n\t/**\n\t * Defines the <code>icon</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b>\n\t * SAP-icons font provides numerous built-in icons. To find all the available icons, see the\n\t * <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.icon\n\t * @public\n\t */\n\t@property()\n\ticon!: string\n\n\t/**\n\t * Defines whether the <code>icon</code> should be displayed in the beginning of the item or in the end.\n\t * <br><br>\n\t * <b>Note:</b> If <code>image</code> is set, the <code>icon</code> would be displayed after the <code>image</code>.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.iconEnd\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\ticonEnd!: boolean;\n\t/**\n\t * Defines the <code>image</code> source URI.\n\t * <br><br>\n\t * <b>Note:</b> The <code>image</code> would be displayed in the beginning of the item.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.image\n\t * @public\n\t */\n\t@property()\n\timage!: string\n\n\t/**\n\t * Defines the <code>additionalText</code>, displayed in the end of the item.\n\t * @type {string}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.additionalText\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property()\n\tadditionalText!: string\n\n\t/**\n\t * Defines the state of the <code>additionalText</code>.\n\t * <br><br>\n\t * Available options are: <code>\"None\"</code> (by default), <code>\"Success\"</code>, <code>\"Information\"</code>, <code>\"Warning\"</code> and <code>\"Error\"</code>.\n\t * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.SuggestionItem.prototype.additionalTextState\n\t * @defaultvalue \"None\"\n\t * @since 1.0.0-rc.15\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tadditionalTextState!: `${ValueState}`\n\n\tget groupItem() {\n\t\treturn false;\n\t}\n}\n\nSuggestionItem.define();\n\nexport default SuggestionItem;\n"]}
package/dist/Switch.d.ts CHANGED
@@ -57,7 +57,7 @@ declare class Switch extends UI5Element {
57
57
  * @name sap.ui.webc.main.Switch.prototype.design
58
58
  * @defaultValue "Textual"
59
59
  */
60
- design: SwitchDesign;
60
+ design: `${SwitchDesign}`;
61
61
  /**
62
62
  * Defines if the component is checked.
63
63
  * <br><br>
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../src/Switch.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sC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;QACxB,YAAY,EAAE,CAAC,IAAI,CAAC;KACpB,CAAC;IACF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,MAAM,CA+MX;AAED,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,eAAe,MAAM,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { isDesktop } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { ClassMap } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport \"@ui5/webcomponents-icons/dist/accept.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\nimport \"@ui5/webcomponents-icons/dist/less.js\";\nimport Icon from \"./Icon.js\";\nimport SwitchDesign from \"./types/SwitchDesign.js\";\n\n// Template\nimport SwitchTemplate from \"./generated/templates/SwitchTemplate.lit.js\";\n\n// Styles\nimport switchCss from \"./generated/themes/Switch.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-switch</code> component is used for changing between binary states.\n * <br>\n * The component can display texts, that will be switched, based on the component state, via the <code>textOn</code> and <code>textOff</code> properties,\n * but texts longer than 3 letters will be cutted off.\n * <br>\n * However, users are able to customize the width of <code>ui5-switch</code> with pure CSS (<code>&lt;ui5-switch style=\"width: 200px\"></code>), and set widths, depending on the texts they would use.\n * <br>\n * Note: the component would not automatically stretch to fit the whole text width.\n *\n * <h3>Keyboard Handling</h3>\n * The state can be changed by pressing the Space and Enter keys.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-switch</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>slider - Used to style the track, where the handle is being slid</li>\n * <li>text-on - Used to style the <code>textOn</code> property text</li>\n * <li>text-off - Used to style the <code>textOff</code> property text</li>\n * <li>handle - Used to style the handle of the switch</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Switch\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Switch\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-switch\n * @public\n * @since 0.8.0\n */\n@customElement({\n\ttag: \"ui5-switch\",\n\tlanguageAware: true,\n\tstyles: switchCss,\n\trenderer: litRender,\n\ttemplate: SwitchTemplate,\n\tdependencies: [Icon],\n})\n/**\n * Fired when the component checked state changes.\n *\n * @public\n * @event sap.ui.webc.main.Switch#change\n */\n@event(\"change\")\nclass Switch extends UI5Element {\n\t/**\n\t * Defines the component design.\n\t * <br><br>\n\t * <b>Note:</b> If <code>Graphical</code> type is set,\n\t * positive and negative icons will replace the <code>textOn</code> and <code>textOff</code>.\n\t *\n\t * @public\n\t * @type {sap.ui.webc.main.types.SwitchDesign}\n\t * @name sap.ui.webc.main.Switch.prototype.design\n\t * @defaultValue \"Textual\"\n\t */\n\t@property({ type: SwitchDesign, defaultValue: SwitchDesign.Textual })\n\tdesign!: SwitchDesign;\n\n\t/**\n\t * Defines if the component is checked.\n\t * <br><br>\n\t * <b>Note:</b> The property can be changed with user interaction,\n\t * either by cliking the component, or by pressing the <code>Enter</code> or <code>Space</code> key.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Switch.prototype.checked\n\t * @defaultvalue false\n\t * @formEvents change\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tchecked!: boolean;\n\n\t/**\n\t * Defines whether the component is disabled.\n\t * <br><br>\n\t * <b>Note:</b> A disabled component is noninteractive.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Switch.prototype.disabled\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean\n\n\t/**\n\t * Defines the text, displayed when the component is checked.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> We recommend using short texts, up to 3 letters (larger texts would be cut off).\n\t * <b>Note:</b> This property will have no effect if the theme is set to <code>sap_horizon</code>.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.textOn\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttextOn!: string\n\n\t/**\n\t * Defines the text, displayed when the component is not checked.\n\t * <br><br>\n\t * <b>Note:</b> We recommend using short texts, up to 3 letters (larger texts would be cut off).\n\t * <b>Note:</b> This property will have no effect if the theme is set to <code>sap_horizon</code>.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.textOff\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttextOff!: string\n\n\t/**\n\t * Sets the accessible ARIA name of the component.\n\t *\n\t * <b>Note</b>: We recommend that you set an accessibleNameRef pointing to an external label or at least an <code>accessibleName</code>.\n\t * Providing an <code>accessibleNameRef</code> or an <code>accessibleName</code> is mandatory in the cases when <code>textOn</code> and <code>textOff</code> properties aren't set.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.accessibleName\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 1.2.0\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Receives id(or many ids) of the elements that label the component.\n\t *\n\t * <b>Note</b>: We recommend that you set an accessibleNameRef pointing to an external label or at least an <code>accessibleName</code>.\n\t * Providing an <code>accessibleNameRef</code> or an <code>accessibleName</code> is mandatory in the cases when <code>textOn</code> and <code>textOff</code> properties aren't set.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.accessibleNameRef\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.1.0\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t * Defines the tooltip of the component.\n\t * <br>\n\t * <b>Note:</b> If applicable an external label reference should always be the preferred option to provide context to the <code>ui5-switch</code> component over a tooltip.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.tooltip\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 1.9.0\n\t */\n\t@property()\n\ttooltip!: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tget sapNextIcon() {\n\t\treturn this.checked ? \"accept\" : \"less\";\n\t}\n\n\t_onclick() {\n\t\tthis.toggle();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._onclick();\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onclick();\n\t\t}\n\t}\n\n\ttoggle() {\n\t\tif (!this.disabled) {\n\t\t\tthis.checked = !this.checked;\n\t\t\tconst changePrevented = !this.fireEvent(\"change\", null, true);\n\t\t\t// Angular two way data binding;\n\t\t\tconst valueChagnePrevented = !this.fireEvent(\"value-changed\", null, true);\n\n\t\t\tif (changePrevented || valueChagnePrevented) {\n\t\t\t\tthis.checked = !this.checked;\n\t\t\t}\n\t\t}\n\t}\n\n\tget graphical() {\n\t\treturn this.design === SwitchDesign.Graphical;\n\t}\n\n\tget hasNoLabel() {\n\t\treturn !(this.graphical || this.textOn || this.textOff);\n\t}\n\n\tget _textOn() {\n\t\treturn this.graphical ? \"\" : this.textOn;\n\t}\n\n\tget _textOff() {\n\t\treturn this.graphical ? \"\" : this.textOff;\n\t}\n\n\tget effectiveTabIndex() {\n\t\treturn this.disabled ? undefined : \"0\";\n\t}\n\n\tget classes(): ClassMap {\n\t\tconst hasLabel = this.graphical || this.textOn || this.textOff;\n\n\t\treturn {\n\t\t\tmain: {\n\t\t\t\t\"ui5-switch-desktop\": isDesktop(),\n\t\t\t\t\"ui5-switch--disabled\": this.disabled,\n\t\t\t\t\"ui5-switch--checked\": this.checked,\n\t\t\t\t\"ui5-switch--semantic\": this.graphical,\n\t\t\t\t\"ui5-switch--no-label\": !hasLabel,\n\t\t\t},\n\t\t};\n\t}\n\n\tget effectiveAriaDisabled() {\n\t\treturn this.disabled ? \"true\" : undefined;\n\t}\n\n\tget accessibilityOnText() {\n\t\treturn this._textOn;\n\t}\n\n\tget accessibilityOffText() {\n\t\treturn this._textOff;\n\t}\n\n\tget hiddenText() {\n\t\treturn this.checked ? this.accessibilityOnText : this.accessibilityOffText;\n\t}\n\n\tget ariaLabelText() {\n\t\treturn [getEffectiveAriaLabelText(this), this.hiddenText].join(\" \").trim();\n\t}\n\n\tstatic async onDefine() {\n\t\tSwitch.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nSwitch.define();\n\nexport default Switch;\n"]}
1
+ {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../src/Switch.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG3E,OAAO,EAAE,y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AAM,EAAE,CAAC;AAEhB,eAAe,MAAM,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\nimport { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { isDesktop } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { ClassMap } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport \"@ui5/webcomponents-icons/dist/accept.js\";\nimport \"@ui5/webcomponents-icons/dist/decline.js\";\nimport \"@ui5/webcomponents-icons/dist/less.js\";\nimport Icon from \"./Icon.js\";\nimport SwitchDesign from \"./types/SwitchDesign.js\";\n\n// Template\nimport SwitchTemplate from \"./generated/templates/SwitchTemplate.lit.js\";\n\n// Styles\nimport switchCss from \"./generated/themes/Switch.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-switch</code> component is used for changing between binary states.\n * <br>\n * The component can display texts, that will be switched, based on the component state, via the <code>textOn</code> and <code>textOff</code> properties,\n * but texts longer than 3 letters will be cutted off.\n * <br>\n * However, users are able to customize the width of <code>ui5-switch</code> with pure CSS (<code>&lt;ui5-switch style=\"width: 200px\"></code>), and set widths, depending on the texts they would use.\n * <br>\n * Note: the component would not automatically stretch to fit the whole text width.\n *\n * <h3>Keyboard Handling</h3>\n * The state can be changed by pressing the Space and Enter keys.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-switch</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>slider - Used to style the track, where the handle is being slid</li>\n * <li>text-on - Used to style the <code>textOn</code> property text</li>\n * <li>text-off - Used to style the <code>textOff</code> property text</li>\n * <li>handle - Used to style the handle of the switch</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Switch\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Switch\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-switch\n * @public\n * @since 0.8.0\n */\n@customElement({\n\ttag: \"ui5-switch\",\n\tlanguageAware: true,\n\tstyles: switchCss,\n\trenderer: litRender,\n\ttemplate: SwitchTemplate,\n\tdependencies: [Icon],\n})\n/**\n * Fired when the component checked state changes.\n *\n * @public\n * @event sap.ui.webc.main.Switch#change\n */\n@event(\"change\")\nclass Switch extends UI5Element {\n\t/**\n\t * Defines the component design.\n\t * <br><br>\n\t * <b>Note:</b> If <code>Graphical</code> type is set,\n\t * positive and negative icons will replace the <code>textOn</code> and <code>textOff</code>.\n\t *\n\t * @public\n\t * @type {sap.ui.webc.main.types.SwitchDesign}\n\t * @name sap.ui.webc.main.Switch.prototype.design\n\t * @defaultValue \"Textual\"\n\t */\n\t@property({ type: SwitchDesign, defaultValue: SwitchDesign.Textual })\n\tdesign!: `${SwitchDesign}`;\n\n\t/**\n\t * Defines if the component is checked.\n\t * <br><br>\n\t * <b>Note:</b> The property can be changed with user interaction,\n\t * either by cliking the component, or by pressing the <code>Enter</code> or <code>Space</code> key.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Switch.prototype.checked\n\t * @defaultvalue false\n\t * @formEvents change\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tchecked!: boolean;\n\n\t/**\n\t * Defines whether the component is disabled.\n\t * <br><br>\n\t * <b>Note:</b> A disabled component is noninteractive.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Switch.prototype.disabled\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean\n\n\t/**\n\t * Defines the text, displayed when the component is checked.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> We recommend using short texts, up to 3 letters (larger texts would be cut off).\n\t * <b>Note:</b> This property will have no effect if the theme is set to <code>sap_horizon</code>.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.textOn\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttextOn!: string\n\n\t/**\n\t * Defines the text, displayed when the component is not checked.\n\t * <br><br>\n\t * <b>Note:</b> We recommend using short texts, up to 3 letters (larger texts would be cut off).\n\t * <b>Note:</b> This property will have no effect if the theme is set to <code>sap_horizon</code>.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.textOff\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\ttextOff!: string\n\n\t/**\n\t * Sets the accessible ARIA name of the component.\n\t *\n\t * <b>Note</b>: We recommend that you set an accessibleNameRef pointing to an external label or at least an <code>accessibleName</code>.\n\t * Providing an <code>accessibleNameRef</code> or an <code>accessibleName</code> is mandatory in the cases when <code>textOn</code> and <code>textOff</code> properties aren't set.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.accessibleName\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 1.2.0\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Receives id(or many ids) of the elements that label the component.\n\t *\n\t * <b>Note</b>: We recommend that you set an accessibleNameRef pointing to an external label or at least an <code>accessibleName</code>.\n\t * Providing an <code>accessibleNameRef</code> or an <code>accessibleName</code> is mandatory in the cases when <code>textOn</code> and <code>textOff</code> properties aren't set.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.accessibleNameRef\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.1.0\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t * Defines the tooltip of the component.\n\t * <br>\n\t * <b>Note:</b> If applicable an external label reference should always be the preferred option to provide context to the <code>ui5-switch</code> component over a tooltip.\n\t * @type {string}\n\t * @name sap.ui.webc.main.Switch.prototype.tooltip\n\t * @defaultvalue: \"\"\n\t * @public\n\t * @since 1.9.0\n\t */\n\t@property()\n\ttooltip!: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tget sapNextIcon() {\n\t\treturn this.checked ? \"accept\" : \"less\";\n\t}\n\n\t_onclick() {\n\t\tthis.toggle();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._onclick();\n\t\t}\n\t}\n\n\t_onkeyup(e: KeyboardEvent) {\n\t\tif (isSpace(e)) {\n\t\t\tthis._onclick();\n\t\t}\n\t}\n\n\ttoggle() {\n\t\tif (!this.disabled) {\n\t\t\tthis.checked = !this.checked;\n\t\t\tconst changePrevented = !this.fireEvent(\"change\", null, true);\n\t\t\t// Angular two way data binding;\n\t\t\tconst valueChagnePrevented = !this.fireEvent(\"value-changed\", null, true);\n\n\t\t\tif (changePrevented || valueChagnePrevented) {\n\t\t\t\tthis.checked = !this.checked;\n\t\t\t}\n\t\t}\n\t}\n\n\tget graphical() {\n\t\treturn this.design === SwitchDesign.Graphical;\n\t}\n\n\tget hasNoLabel() {\n\t\treturn !(this.graphical || this.textOn || this.textOff);\n\t}\n\n\tget _textOn() {\n\t\treturn this.graphical ? \"\" : this.textOn;\n\t}\n\n\tget _textOff() {\n\t\treturn this.graphical ? \"\" : this.textOff;\n\t}\n\n\tget effectiveTabIndex() {\n\t\treturn this.disabled ? undefined : \"0\";\n\t}\n\n\tget classes(): ClassMap {\n\t\tconst hasLabel = this.graphical || this.textOn || this.textOff;\n\n\t\treturn {\n\t\t\tmain: {\n\t\t\t\t\"ui5-switch-desktop\": isDesktop(),\n\t\t\t\t\"ui5-switch--disabled\": this.disabled,\n\t\t\t\t\"ui5-switch--checked\": this.checked,\n\t\t\t\t\"ui5-switch--semantic\": this.graphical,\n\t\t\t\t\"ui5-switch--no-label\": !hasLabel,\n\t\t\t},\n\t\t};\n\t}\n\n\tget effectiveAriaDisabled() {\n\t\treturn this.disabled ? \"true\" : undefined;\n\t}\n\n\tget accessibilityOnText() {\n\t\treturn this._textOn;\n\t}\n\n\tget accessibilityOffText() {\n\t\treturn this._textOff;\n\t}\n\n\tget hiddenText() {\n\t\treturn this.checked ? this.accessibilityOnText : this.accessibilityOffText;\n\t}\n\n\tget ariaLabelText() {\n\t\treturn [getEffectiveAriaLabelText(this), this.hiddenText].join(\" \").trim();\n\t}\n\n\tstatic async onDefine() {\n\t\tSwitch.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nSwitch.define();\n\nexport default Switch;\n"]}
package/dist/Tab.d.ts CHANGED
@@ -80,7 +80,7 @@ declare class Tab extends UI5Element implements ITab, ITabbable {
80
80
  * @public
81
81
  * @name sap.ui.webc.main.Tab.prototype.design
82
82
  */
83
- design: SemanticColor;
83
+ design: `${SemanticColor}`;
84
84
  /**
85
85
  * Specifies if the component is selected.
86
86
  *
package/dist/Tab.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.js","sourceRoot":"","sources":["../src/Tab.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AAGrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,eAAe,MAAM,0DAA0D,CAAC;AACvF,OAAO,eAAe,MAAM,sDAAsD,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,IAAI,EAAE,MAAM,EAAE,CAAC;qCACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CACH;AAkBzB;IARC,IAAI,CAAC;QACL,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,IAAI;QACf,uBAAuB,EAAE;YACxB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;SACZ;KACD,CAAC;oCACoB;AAoBtB;IARC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,IAAI;QACrB,uBAAuB,EAAE;YACxB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;SACZ;KACD,CAAC;oCACmB;AA3HhB,GAAG;IAZR,aAAa,CAAC;QACd,GAAG,EAAE,SAAS;QACd,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,GAAG;QACX,YAAY,EAAE;YACb,IAAI;YACJ,MAAM;YACN,cAAc;SACd;KACD,CAAC;GACI,GAAG,CAmZR;AAED,GAAG,CAAC,MAAM,EAAE,CAAC;AAEb,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACzC,YAAY,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;AAEtD,eAAe,GAAG,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport executeTemplate from \"@ui5/webcomponents-base/dist/renderer/executeTemplate.js\";\nimport willShowContent from \"@ui5/webcomponents-base/dist/util/willShowContent.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport {\n\tTAB_ARIA_DESIGN_POSITIVE,\n\tTAB_ARIA_DESIGN_NEGATIVE,\n\tTAB_ARIA_DESIGN_CRITICAL,\n\tTAB_ARIA_DESIGN_NEUTRAL,\n\tTABCONTAINER_END_OVERFLOW,\n\tTAB_SPLIT_ROLE_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\nimport \"@ui5/webcomponents-icons/dist/error.js\";\nimport \"@ui5/webcomponents-icons/dist/alert.js\";\nimport \"@ui5/webcomponents-icons/dist/sys-enter-2.js\";\nimport SemanticColor from \"./types/SemanticColor.js\";\nimport ListItemType from \"./types/ListItemType.js\";\nimport TabContainer from \"./TabContainer.js\";\nimport type { ITab } from \"./TabContainer.js\";\nimport Icon from \"./Icon.js\";\nimport Button from \"./Button.js\";\nimport CustomListItem from \"./CustomListItem.js\";\n\n// Templates\nimport TabTemplate from \"./generated/templates/TabTemplate.lit.js\";\nimport TabInStripTemplate from \"./generated/templates/TabInStripTemplate.lit.js\";\nimport TabInOverflowTemplate from \"./generated/templates/TabInOverflowTemplate.lit.js\";\n\n// Styles\nimport css from \"./generated/themes/Tab.css.js\";\nimport stripCss from \"./generated/themes/TabInStrip.css.js\";\nimport overflowCss from \"./generated/themes/TabInOverflow.css.js\";\n\nconst DESIGN_DESCRIPTIONS = {\n\t[SemanticColor.Positive]: TAB_ARIA_DESIGN_POSITIVE,\n\t[SemanticColor.Negative]: TAB_ARIA_DESIGN_NEGATIVE,\n\t[SemanticColor.Neutral]: TAB_ARIA_DESIGN_NEUTRAL,\n\t[SemanticColor.Critical]: TAB_ARIA_DESIGN_CRITICAL,\n};\n\n/**\n * @class\n * The <code>ui5-tab</code> represents a selectable item inside a <code>ui5-tabcontainer</code>.\n * It defines both the item in the tab strip (top part of the <code>ui5-tabcontainer</code>) and the\n * content that is presented to the user once the tab is selected.\n *\n * @abstract\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Tab\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-tab\n * @implements sap.ui.webc.main.ITab\n * @public\n */\n@customElement({\n\ttag: \"ui5-tab\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: TabTemplate,\n\tstyles: css,\n\tdependencies: [\n\t\tIcon,\n\t\tButton,\n\t\tCustomListItem,\n\t],\n})\nclass Tab extends UI5Element implements ITab, ITabbable {\n\t/**\n\t * The text to be displayed for the item.\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.text\n\t */\n\t@property()\n\ttext!: string;\n\n\t/**\n\t * Disabled tabs can't be selected.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.disabled\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t/**\n\t * Represents the \"additionalText\" text, which is displayed in the tab. In the cases when in the same time there are tabs with icons and tabs without icons, if a tab has no icon the \"additionalText\" is displayed larger.\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.additionalText\n\t */\n\t@property()\n\tadditionalText!: string;\n\n\t/**\n\t * Defines the icon source URI to be displayed as graphical element within the component.\n\t * The SAP-icons font provides numerous built-in icons.\n\t * See all the available icons in the <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.icon\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines the component's design color.\n\t * <br><br>\n\t * The design is applied to:\n\t * <ul>\n\t * <li>the component icon</li>\n\t * <li>the <code>text</code> when the component overflows</li>\n\t * <li>the tab selection line</li>\n\t * </ul>\n\t *\n\t * <br><br>\n\t * Available designs are: <code>\"Default\"</code>, <code>\"Neutral\"</code>, <code>\"Positive\"</code>, <code>\"Critical\"</code> and <code>\"Negative\"</code>.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> The design depends on the current theme.\n\t * @type {sap.ui.webc.main.types.SemanticColor}\n\t * @defaultvalue \"Default\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.design\n\t */\n\t@property({ type: SemanticColor, defaultValue: SemanticColor.Default })\n\tdesign!: SemanticColor;\n\n\t/**\n\t * Specifies if the component is selected.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.selected\n\t */\n\t@property({ type: Boolean })\n\tselected!: boolean;\n\n\t@property({ type: Boolean })\n\t_selected!: boolean;\n\n\t@property({ type: Object })\n\t_realTab!: Tab;\n\n\t@property({ type: Boolean })\n\t_isTopLevelTab!: boolean;\n\n\t/**\n\t * Holds the content associated with this tab.\n\t *\n\t * @type {Node[]}\n\t * @public\n\t * @slot\n\t * @name sap.ui.webc.main.Tab.prototype.default\n\t */\n\t@slot({\n\t\ttype: Node,\n\t\t\"default\": true,\n\t\tinvalidateOnChildChange: {\n\t\t\tproperties: true,\n\t\t\tslots: false,\n\t\t},\n\t})\n\tcontent!: Array<Node>;\n\n\t/**\n\t * Defines hierarchies with nested sub tabs.\n\t * <br><br>\n\t * <b>Note:</b> Use <code>ui5-tab</code> and <code>ui5-tab-separator</code> for the intended design.\n\t *\n\t * @type {sap.ui.webc.main.ITab[]}\n\t * @public\n\t * @slot subTabs\n\t * @name sap.ui.webc.main.Tab.prototype.subTabs\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: {\n\t\t\tproperties: true,\n\t\t\tslots: false,\n\t\t},\n\t})\n\tsubTabs!: Array<ITab>\n\n\t_isInline?: boolean;\n\t_mixedMode?: boolean;\n\t_getElementInStrip?: () => ITab | null;\n\t_individualSlot!: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tset _tabIndex(val: string) {\n\t\tthis.getTabInStripDomRef()!.setAttribute(\"tabindex\", val);\n\t}\n\n\tget _tabIndex() {\n\t\treturn this.getTabInStripDomRef()!.getAttribute(\"tabindex\")!;\n\t}\n\n\tget displayText() {\n\t\tlet text = this.text;\n\n\t\tif (this._isInline && this.additionalText) {\n\t\t\ttext += ` (${this.additionalText})`;\n\t\t}\n\n\t\treturn text;\n\t}\n\n\tget isSeparator() {\n\t\treturn false;\n\t}\n\n\tget stripPresentation() {\n\t\treturn executeTemplate(Tab.stripTemplate, this);\n\t}\n\n\tget overflowPresentation() {\n\t\treturn executeTemplate(Tab.overflowTemplate, this);\n\t}\n\n\tget stableDomRef() {\n\t\treturn this.getAttribute(\"stable-dom-ref\") || `${this._id}-stable-dom-ref`;\n\t}\n\n\tget requiresExpandButton() {\n\t\treturn this.subTabs.length > 0 && this._isTopLevelTab && this._hasOwnContent;\n\t}\n\n\tget isSingleClickArea() {\n\t\treturn this.subTabs.length > 0 && this._isTopLevelTab && !this._hasOwnContent;\n\t}\n\n\tget isOnSelectedTabPath(): boolean {\n\t\treturn this._realTab === this || this.tabs.some(subTab => subTab.isOnSelectedTabPath);\n\t}\n\n\tget _effectiveSlotName() {\n\t\treturn this.isOnSelectedTabPath ? this._individualSlot : `disabled-${this._individualSlot}`;\n\t}\n\n\tget _defaultSlotName() {\n\t\treturn this._realTab === this ? \"\" : \"disabled-slot\";\n\t}\n\n\tget _hasOwnContent() {\n\t\treturn willShowContent(this.content);\n\t}\n\n\t/**\n\t * Returns the DOM reference of the tab that is placed in the header.\n\t * <b>Note:</b> Tabs, placed in the <code>subTabs</code> slot of other tabs are not shown in the header. Calling this method on such tabs will return <code>null</code>.\n\t * <b>Note:</b> If you need a DOM ref to the tab content please use the <code>getDomRef</code> method.\n\t *\n\t * @function\n\t * @public\n * @name sap.ui.webc.main.Tab.prototype.getTabInStripDomRef\n\t * @since 1.0.0-rc.16\n\t */\n\tgetTabInStripDomRef() {\n\t\tif (this._getElementInStrip) {\n\t\t\treturn this._getElementInStrip();\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tgetFocusDomRef() {\n\t\tlet focusedDomRef = super.getFocusDomRef();\n\n\t\tif (this._getElementInStrip && this._getElementInStrip()) {\n\t\t\tfocusedDomRef = this._getElementInStrip()!;\n\t\t}\n\n\t\treturn focusedDomRef;\n\t}\n\n\tget isMixedModeTab() {\n\t\treturn !this.icon && this._mixedMode;\n\t}\n\n\tget isTextOnlyTab() {\n\t\treturn !this.icon && !this._mixedMode;\n\t}\n\n\tget isIconTab() {\n\t\treturn !!this.icon;\n\t}\n\n\tget effectiveDisabled() {\n\t\treturn this.disabled || undefined;\n\t}\n\n\tget effectiveSelected() {\n\t\tconst subItemSelected = this.tabs.some(elem => elem.effectiveSelected);\n\t\treturn this.selected || this._selected || subItemSelected;\n\t}\n\n\tget effectiveHidden() {\n\t\treturn !this.effectiveSelected;\n\t}\n\n\tget tabs(): Array<Tab> {\n\t\treturn this.subTabs.filter((tab): tab is Tab => !tab.isSeparator);\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst labels = [];\n\n\t\tif (this.text) {\n\t\t\tlabels.push(`${this._id}-text`);\n\t\t}\n\n\t\tif (this.additionalText) {\n\t\t\tlabels.push(`${this._id}-additionalText`);\n\t\t}\n\n\t\tif (this.icon) {\n\t\t\tlabels.push(`${this._id}-icon`);\n\t\t}\n\n\t\tif (this._designDescription) {\n\t\t\tlabels.push(`${this._id}-designDescription`);\n\t\t}\n\n\t\treturn labels.join(\" \");\n\t}\n\n\tget stripClasses() {\n\t\tconst classes = [\"ui5-tab-strip-item\"];\n\n\t\tif (this.effectiveSelected) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--selected\");\n\t\t}\n\n\t\tif (this.disabled) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--disabled\");\n\t\t}\n\n\t\tif (this._isInline) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--inline\");\n\t\t}\n\n\t\tif (this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--withAdditionalText\");\n\t\t}\n\n\t\tif (!this.icon && !this._mixedMode) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--textOnly\");\n\t\t}\n\n\t\tif (this.icon) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--withIcon\");\n\t\t}\n\n\t\tif (!this.icon && this._mixedMode) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--mixedMode\");\n\t\t}\n\n\t\tif (this.design !== SemanticColor.Default) {\n\t\t\tclasses.push(`ui5-tab-strip-item--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\tif (this.isSingleClickArea) {\n\t\t\tclasses.push(`ui5-tab-strip-item--singleClickArea`);\n\t\t}\n\n\t\treturn {\n\t\t\titemClasses: classes.join(\" \"),\n\t\t\tadditionalTextClasses: this.additionalTextClasses,\n\t\t};\n\t}\n\n\tget additionalTextClasses() {\n\t\tconst classes = [];\n\t\tif (this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-itemAdditionalText\");\n\t\t}\n\n\t\tif (this.icon && !this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-itemAdditionalText-hidden\");\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget expandButtonTitle() {\n\t\treturn Tab.i18nBundle.getText(TABCONTAINER_END_OVERFLOW);\n\t}\n\n\tget _roleDescription() {\n\t\treturn this.subTabs.length > 0 ? Tab.i18nBundle.getText(TAB_SPLIT_ROLE_DESCRIPTION) : undefined;\n\t}\n\n\tget _ariaHasPopup() {\n\t\treturn this.isSingleClickArea ? \"menu\" : undefined;\n\t}\n\n\tget semanticIconName() {\n\t\tswitch (this.design) {\n\t\tcase SemanticColor.Positive:\n\t\t\treturn \"sys-enter-2\";\n\t\tcase SemanticColor.Negative:\n\t\t\treturn \"error\";\n\t\tcase SemanticColor.Critical:\n\t\t\treturn \"alert\";\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tget _designDescription() {\n\t\tif (this.design === SemanticColor.Default) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Tab.i18nBundle.getText(DESIGN_DESCRIPTIONS[this.design]);\n\t}\n\n\tget semanticIconClasses() {\n\t\tconst classes = [\"ui5-tab-semantic-icon\"];\n\n\t\tif (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {\n\t\t\tclasses.push(`ui5-tab-semantic-icon--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget overflowClasses() {\n\t\tconst classes = [\"ui5-tab-overflow-item\"];\n\n\t\tif (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {\n\t\t\tclasses.push(`ui5-tab-overflow-item--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\tif (this.effectiveDisabled) {\n\t\t\tclasses.push(\"ui5-tab-overflow-item--disabled\");\n\t\t}\n\n\t\tif (this.selected) {\n\t\t\tclasses.push(\"ui5-tab-overflow-item--selectedSubTab\");\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget overflowState() {\n\t\treturn (this.disabled || this.isSingleClickArea) ? ListItemType.Inactive : ListItemType.Active;\n\t}\n\n\tstatic get stripTemplate() {\n\t\treturn TabInStripTemplate;\n\t}\n\n\tstatic get overflowTemplate() {\n\t\treturn TabInOverflowTemplate;\n\t}\n\n\tstatic async onDefine() {\n\t\tTab.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nTab.define();\n\nTabContainer.registerTabStyles(stripCss);\nTabContainer.registerStaticAreaTabStyles(overflowCss);\n\nexport default Tab;\n"]}
1
+ {"version":3,"file":"Tab.js","sourceRoot":"","sources":["../src/Tab.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AAGrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,I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AE,IAAI,EAAE,OAAO,EAAE,CAAC;qCACT;AAGnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sCACR;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CACH;AAkBzB;IARC,IAAI,CAAC;QACL,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,IAAI;QACf,uBAAuB,EAAE;YACxB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;SACZ;KACD,CAAC;oCACoB;AAoBtB;IARC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,IAAI;QACrB,uBAAuB,EAAE;YACxB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;SACZ;KACD,CAAC;oCACmB;AA3HhB,GAAG;IAZR,aAAa,CAAC;QACd,GAAG,EAAE,SAAS;QACd,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,GAAG;QACX,YAAY,EAAE;YACb,IAAI;YACJ,MAAM;YACN,cAAc;SACd;KACD,CAAC;GACI,GAAG,CAmZR;AAED,GAAG,CAAC,MAAM,EAAE,CAAC;AAEb,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACzC,YAAY,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;AAEtD,eAAe,GAAG,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport executeTemplate from \"@ui5/webcomponents-base/dist/renderer/executeTemplate.js\";\nimport willShowContent from \"@ui5/webcomponents-base/dist/util/willShowContent.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport {\n\tTAB_ARIA_DESIGN_POSITIVE,\n\tTAB_ARIA_DESIGN_NEGATIVE,\n\tTAB_ARIA_DESIGN_CRITICAL,\n\tTAB_ARIA_DESIGN_NEUTRAL,\n\tTABCONTAINER_END_OVERFLOW,\n\tTAB_SPLIT_ROLE_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\nimport \"@ui5/webcomponents-icons/dist/error.js\";\nimport \"@ui5/webcomponents-icons/dist/alert.js\";\nimport \"@ui5/webcomponents-icons/dist/sys-enter-2.js\";\nimport SemanticColor from \"./types/SemanticColor.js\";\nimport ListItemType from \"./types/ListItemType.js\";\nimport TabContainer from \"./TabContainer.js\";\nimport type { ITab } from \"./TabContainer.js\";\nimport Icon from \"./Icon.js\";\nimport Button from \"./Button.js\";\nimport CustomListItem from \"./CustomListItem.js\";\n\n// Templates\nimport TabTemplate from \"./generated/templates/TabTemplate.lit.js\";\nimport TabInStripTemplate from \"./generated/templates/TabInStripTemplate.lit.js\";\nimport TabInOverflowTemplate from \"./generated/templates/TabInOverflowTemplate.lit.js\";\n\n// Styles\nimport css from \"./generated/themes/Tab.css.js\";\nimport stripCss from \"./generated/themes/TabInStrip.css.js\";\nimport overflowCss from \"./generated/themes/TabInOverflow.css.js\";\n\nconst DESIGN_DESCRIPTIONS = {\n\t[SemanticColor.Positive]: TAB_ARIA_DESIGN_POSITIVE,\n\t[SemanticColor.Negative]: TAB_ARIA_DESIGN_NEGATIVE,\n\t[SemanticColor.Neutral]: TAB_ARIA_DESIGN_NEUTRAL,\n\t[SemanticColor.Critical]: TAB_ARIA_DESIGN_CRITICAL,\n};\n\n/**\n * @class\n * The <code>ui5-tab</code> represents a selectable item inside a <code>ui5-tabcontainer</code>.\n * It defines both the item in the tab strip (top part of the <code>ui5-tabcontainer</code>) and the\n * content that is presented to the user once the tab is selected.\n *\n * @abstract\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Tab\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-tab\n * @implements sap.ui.webc.main.ITab\n * @public\n */\n@customElement({\n\ttag: \"ui5-tab\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: TabTemplate,\n\tstyles: css,\n\tdependencies: [\n\t\tIcon,\n\t\tButton,\n\t\tCustomListItem,\n\t],\n})\nclass Tab extends UI5Element implements ITab, ITabbable {\n\t/**\n\t * The text to be displayed for the item.\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.text\n\t */\n\t@property()\n\ttext!: string;\n\n\t/**\n\t * Disabled tabs can't be selected.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.disabled\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t/**\n\t * Represents the \"additionalText\" text, which is displayed in the tab. In the cases when in the same time there are tabs with icons and tabs without icons, if a tab has no icon the \"additionalText\" is displayed larger.\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.additionalText\n\t */\n\t@property()\n\tadditionalText!: string;\n\n\t/**\n\t * Defines the icon source URI to be displayed as graphical element within the component.\n\t * The SAP-icons font provides numerous built-in icons.\n\t * See all the available icons in the <ui5-link target=\"_blank\" href=\"https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html\">Icon Explorer</ui5-link>.\n\t *\n\t * @type {string}\n\t * @defaultvalue \"\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.icon\n\t */\n\t@property()\n\ticon!: string;\n\n\t/**\n\t * Defines the component's design color.\n\t * <br><br>\n\t * The design is applied to:\n\t * <ul>\n\t * <li>the component icon</li>\n\t * <li>the <code>text</code> when the component overflows</li>\n\t * <li>the tab selection line</li>\n\t * </ul>\n\t *\n\t * <br><br>\n\t * Available designs are: <code>\"Default\"</code>, <code>\"Neutral\"</code>, <code>\"Positive\"</code>, <code>\"Critical\"</code> and <code>\"Negative\"</code>.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> The design depends on the current theme.\n\t * @type {sap.ui.webc.main.types.SemanticColor}\n\t * @defaultvalue \"Default\"\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.design\n\t */\n\t@property({ type: SemanticColor, defaultValue: SemanticColor.Default })\n\tdesign!: `${SemanticColor}`;\n\n\t/**\n\t * Specifies if the component is selected.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @public\n\t * @name sap.ui.webc.main.Tab.prototype.selected\n\t */\n\t@property({ type: Boolean })\n\tselected!: boolean;\n\n\t@property({ type: Boolean })\n\t_selected!: boolean;\n\n\t@property({ type: Object })\n\t_realTab!: Tab;\n\n\t@property({ type: Boolean })\n\t_isTopLevelTab!: boolean;\n\n\t/**\n\t * Holds the content associated with this tab.\n\t *\n\t * @type {Node[]}\n\t * @public\n\t * @slot\n\t * @name sap.ui.webc.main.Tab.prototype.default\n\t */\n\t@slot({\n\t\ttype: Node,\n\t\t\"default\": true,\n\t\tinvalidateOnChildChange: {\n\t\t\tproperties: true,\n\t\t\tslots: false,\n\t\t},\n\t})\n\tcontent!: Array<Node>;\n\n\t/**\n\t * Defines hierarchies with nested sub tabs.\n\t * <br><br>\n\t * <b>Note:</b> Use <code>ui5-tab</code> and <code>ui5-tab-separator</code> for the intended design.\n\t *\n\t * @type {sap.ui.webc.main.ITab[]}\n\t * @public\n\t * @slot subTabs\n\t * @name sap.ui.webc.main.Tab.prototype.subTabs\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: {\n\t\t\tproperties: true,\n\t\t\tslots: false,\n\t\t},\n\t})\n\tsubTabs!: Array<ITab>\n\n\t_isInline?: boolean;\n\t_mixedMode?: boolean;\n\t_getElementInStrip?: () => ITab | null;\n\t_individualSlot!: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tset _tabIndex(val: string) {\n\t\tthis.getTabInStripDomRef()!.setAttribute(\"tabindex\", val);\n\t}\n\n\tget _tabIndex() {\n\t\treturn this.getTabInStripDomRef()!.getAttribute(\"tabindex\")!;\n\t}\n\n\tget displayText() {\n\t\tlet text = this.text;\n\n\t\tif (this._isInline && this.additionalText) {\n\t\t\ttext += ` (${this.additionalText})`;\n\t\t}\n\n\t\treturn text;\n\t}\n\n\tget isSeparator() {\n\t\treturn false;\n\t}\n\n\tget stripPresentation() {\n\t\treturn executeTemplate(Tab.stripTemplate, this);\n\t}\n\n\tget overflowPresentation() {\n\t\treturn executeTemplate(Tab.overflowTemplate, this);\n\t}\n\n\tget stableDomRef() {\n\t\treturn this.getAttribute(\"stable-dom-ref\") || `${this._id}-stable-dom-ref`;\n\t}\n\n\tget requiresExpandButton() {\n\t\treturn this.subTabs.length > 0 && this._isTopLevelTab && this._hasOwnContent;\n\t}\n\n\tget isSingleClickArea() {\n\t\treturn this.subTabs.length > 0 && this._isTopLevelTab && !this._hasOwnContent;\n\t}\n\n\tget isOnSelectedTabPath(): boolean {\n\t\treturn this._realTab === this || this.tabs.some(subTab => subTab.isOnSelectedTabPath);\n\t}\n\n\tget _effectiveSlotName() {\n\t\treturn this.isOnSelectedTabPath ? this._individualSlot : `disabled-${this._individualSlot}`;\n\t}\n\n\tget _defaultSlotName() {\n\t\treturn this._realTab === this ? \"\" : \"disabled-slot\";\n\t}\n\n\tget _hasOwnContent() {\n\t\treturn willShowContent(this.content);\n\t}\n\n\t/**\n\t * Returns the DOM reference of the tab that is placed in the header.\n\t * <b>Note:</b> Tabs, placed in the <code>subTabs</code> slot of other tabs are not shown in the header. Calling this method on such tabs will return <code>null</code>.\n\t * <b>Note:</b> If you need a DOM ref to the tab content please use the <code>getDomRef</code> method.\n\t *\n\t * @function\n\t * @public\n * @name sap.ui.webc.main.Tab.prototype.getTabInStripDomRef\n\t * @since 1.0.0-rc.16\n\t */\n\tgetTabInStripDomRef() {\n\t\tif (this._getElementInStrip) {\n\t\t\treturn this._getElementInStrip();\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tgetFocusDomRef() {\n\t\tlet focusedDomRef = super.getFocusDomRef();\n\n\t\tif (this._getElementInStrip && this._getElementInStrip()) {\n\t\t\tfocusedDomRef = this._getElementInStrip()!;\n\t\t}\n\n\t\treturn focusedDomRef;\n\t}\n\n\tget isMixedModeTab() {\n\t\treturn !this.icon && this._mixedMode;\n\t}\n\n\tget isTextOnlyTab() {\n\t\treturn !this.icon && !this._mixedMode;\n\t}\n\n\tget isIconTab() {\n\t\treturn !!this.icon;\n\t}\n\n\tget effectiveDisabled() {\n\t\treturn this.disabled || undefined;\n\t}\n\n\tget effectiveSelected() {\n\t\tconst subItemSelected = this.tabs.some(elem => elem.effectiveSelected);\n\t\treturn this.selected || this._selected || subItemSelected;\n\t}\n\n\tget effectiveHidden() {\n\t\treturn !this.effectiveSelected;\n\t}\n\n\tget tabs(): Array<Tab> {\n\t\treturn this.subTabs.filter((tab): tab is Tab => !tab.isSeparator);\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst labels = [];\n\n\t\tif (this.text) {\n\t\t\tlabels.push(`${this._id}-text`);\n\t\t}\n\n\t\tif (this.additionalText) {\n\t\t\tlabels.push(`${this._id}-additionalText`);\n\t\t}\n\n\t\tif (this.icon) {\n\t\t\tlabels.push(`${this._id}-icon`);\n\t\t}\n\n\t\tif (this._designDescription) {\n\t\t\tlabels.push(`${this._id}-designDescription`);\n\t\t}\n\n\t\treturn labels.join(\" \");\n\t}\n\n\tget stripClasses() {\n\t\tconst classes = [\"ui5-tab-strip-item\"];\n\n\t\tif (this.effectiveSelected) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--selected\");\n\t\t}\n\n\t\tif (this.disabled) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--disabled\");\n\t\t}\n\n\t\tif (this._isInline) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--inline\");\n\t\t}\n\n\t\tif (this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--withAdditionalText\");\n\t\t}\n\n\t\tif (!this.icon && !this._mixedMode) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--textOnly\");\n\t\t}\n\n\t\tif (this.icon) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--withIcon\");\n\t\t}\n\n\t\tif (!this.icon && this._mixedMode) {\n\t\t\tclasses.push(\"ui5-tab-strip-item--mixedMode\");\n\t\t}\n\n\t\tif (this.design !== SemanticColor.Default) {\n\t\t\tclasses.push(`ui5-tab-strip-item--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\tif (this.isSingleClickArea) {\n\t\t\tclasses.push(`ui5-tab-strip-item--singleClickArea`);\n\t\t}\n\n\t\treturn {\n\t\t\titemClasses: classes.join(\" \"),\n\t\t\tadditionalTextClasses: this.additionalTextClasses,\n\t\t};\n\t}\n\n\tget additionalTextClasses() {\n\t\tconst classes = [];\n\t\tif (this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-itemAdditionalText\");\n\t\t}\n\n\t\tif (this.icon && !this.additionalText) {\n\t\t\tclasses.push(\"ui5-tab-strip-itemAdditionalText-hidden\");\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget expandButtonTitle() {\n\t\treturn Tab.i18nBundle.getText(TABCONTAINER_END_OVERFLOW);\n\t}\n\n\tget _roleDescription() {\n\t\treturn this.subTabs.length > 0 ? Tab.i18nBundle.getText(TAB_SPLIT_ROLE_DESCRIPTION) : undefined;\n\t}\n\n\tget _ariaHasPopup() {\n\t\treturn this.isSingleClickArea ? \"menu\" : undefined;\n\t}\n\n\tget semanticIconName() {\n\t\tswitch (this.design) {\n\t\tcase SemanticColor.Positive:\n\t\t\treturn \"sys-enter-2\";\n\t\tcase SemanticColor.Negative:\n\t\t\treturn \"error\";\n\t\tcase SemanticColor.Critical:\n\t\t\treturn \"alert\";\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tget _designDescription() {\n\t\tif (this.design === SemanticColor.Default) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Tab.i18nBundle.getText(DESIGN_DESCRIPTIONS[this.design]);\n\t}\n\n\tget semanticIconClasses() {\n\t\tconst classes = [\"ui5-tab-semantic-icon\"];\n\n\t\tif (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {\n\t\t\tclasses.push(`ui5-tab-semantic-icon--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget overflowClasses() {\n\t\tconst classes = [\"ui5-tab-overflow-item\"];\n\n\t\tif (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {\n\t\t\tclasses.push(`ui5-tab-overflow-item--${this.design.toLowerCase()}`);\n\t\t}\n\n\t\tif (this.effectiveDisabled) {\n\t\t\tclasses.push(\"ui5-tab-overflow-item--disabled\");\n\t\t}\n\n\t\tif (this.selected) {\n\t\t\tclasses.push(\"ui5-tab-overflow-item--selectedSubTab\");\n\t\t}\n\n\t\treturn classes.join(\" \");\n\t}\n\n\tget overflowState() {\n\t\treturn (this.disabled || this.isSingleClickArea) ? ListItemType.Inactive : ListItemType.Active;\n\t}\n\n\tstatic get stripTemplate() {\n\t\treturn TabInStripTemplate;\n\t}\n\n\tstatic get overflowTemplate() {\n\t\treturn TabInOverflowTemplate;\n\t}\n\n\tstatic async onDefine() {\n\t\tTab.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nTab.define();\n\nTabContainer.registerTabStyles(stripCss);\nTabContainer.registerStaticAreaTabStyles(overflowCss);\n\nexport default Tab;\n"]}
@@ -19,7 +19,7 @@ interface ITab extends UI5Element {
19
19
  getTabInStripDomRef: () => ITab | null;
20
20
  stableDomRef: string;
21
21
  additionalText?: string;
22
- design?: SemanticColor;
22
+ design?: `${SemanticColor}`;
23
23
  disabled?: boolean;
24
24
  icon?: string;
25
25
  isSingleClickArea?: boolean;
@@ -157,7 +157,7 @@ declare class TabContainer extends UI5Element {
157
157
  * @defaultvalue "Standard"
158
158
  * @public
159
159
  */
160
- tabLayout: TabLayout;
160
+ tabLayout: `${TabLayout}`;
161
161
  /**
162
162
  * Defines the overflow mode of the header (the tab strip). If you have a large number of tabs, only the tabs that can fit on screen will be visible.
163
163
  * All other tabs that can 't fit on the screen are available in an overflow tab "More".
@@ -180,7 +180,7 @@ declare class TabContainer extends UI5Element {
180
180
  * @since 1.1.0
181
181
  * @public
182
182
  */
183
- tabsOverflowMode: TabsOverflowMode;
183
+ tabsOverflowMode: `${TabsOverflowMode}`;
184
184
  /**
185
185
  * Sets the background color of the Tab Container's header as <code>Solid</code>, <code>Transparent</code>, or <code>Translucent</code>.
186
186
  *
@@ -190,7 +190,7 @@ declare class TabContainer extends UI5Element {
190
190
  * @since 1.10.0
191
191
  * @public
192
192
  */
193
- headerBackgroundDesign: TabContainerBackgroundDesign;
193
+ headerBackgroundDesign: `${TabContainerBackgroundDesign}`;
194
194
  /**
195
195
  * Sets the background color of the Tab Container's content as <code>Solid</code>, <code>Transparent</code>, or <code>Translucent</code>.
196
196
  *
@@ -200,7 +200,7 @@ declare class TabContainer extends UI5Element {
200
200
  * @since 1.10.0
201
201
  * @public
202
202
  */
203
- contentBackgroundDesign: TabContainerBackgroundDesign;
203
+ contentBackgroundDesign: `${TabContainerBackgroundDesign}`;
204
204
  /**
205
205
  * Defines the placement of the tab strip relative to the actual tabs' content.
206
206
  * <br><br>
@@ -221,7 +221,7 @@ declare class TabContainer extends UI5Element {
221
221
  * @since 1.0.0-rc.7
222
222
  * @private
223
223
  */
224
- tabsPlacement: TabContainerTabsPlacement;
224
+ tabsPlacement: `${TabContainerTabsPlacement}`;
225
225
  /**
226
226
  * Defines the current media query size.
227
227
  *