@ui5/webcomponents 1.14.2 → 1.15.0-rc.1

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 (520) hide show
  1. package/CHANGELOG.md +26 -4
  2. package/dist/Button.d.ts +27 -0
  3. package/dist/Button.js +17 -1
  4. package/dist/Button.js.map +1 -1
  5. package/dist/CalendarHeader.js +10 -0
  6. package/dist/CalendarHeader.js.map +1 -1
  7. package/dist/CalendarPart.d.ts +2 -1
  8. package/dist/CalendarPart.js +3 -2
  9. package/dist/CalendarPart.js.map +1 -1
  10. package/dist/DatePicker.d.ts +2 -1
  11. package/dist/DatePicker.js +3 -2
  12. package/dist/DatePicker.js.map +1 -1
  13. package/dist/DateRangePicker.d.ts +1 -1
  14. package/dist/DateRangePicker.js +4 -4
  15. package/dist/DateRangePicker.js.map +1 -1
  16. package/dist/DateTimePicker.d.ts +1 -1
  17. package/dist/DateTimePicker.js +2 -2
  18. package/dist/DateTimePicker.js.map +1 -1
  19. package/dist/DayPicker.d.ts +2 -3
  20. package/dist/DayPicker.js +13 -10
  21. package/dist/DayPicker.js.map +1 -1
  22. package/dist/ListItem.d.ts +26 -0
  23. package/dist/ListItem.js +5 -0
  24. package/dist/ListItem.js.map +1 -1
  25. package/dist/MonthPicker.d.ts +2 -1
  26. package/dist/MonthPicker.js +5 -4
  27. package/dist/MonthPicker.js.map +1 -1
  28. package/dist/ProgressIndicator.js +1 -1
  29. package/dist/ProgressIndicator.js.map +1 -1
  30. package/dist/TimePicker.d.ts +20 -17
  31. package/dist/TimePicker.js +20 -17
  32. package/dist/TimePicker.js.map +1 -1
  33. package/dist/TimePickerBase.d.ts +1 -1
  34. package/dist/TimePickerBase.js +3 -3
  35. package/dist/TimePickerBase.js.map +1 -1
  36. package/dist/TimePickerClock.d.ts +431 -0
  37. package/dist/TimePickerClock.js +709 -0
  38. package/dist/TimePickerClock.js.map +1 -0
  39. package/dist/TimePickerInternals.d.ts +162 -0
  40. package/dist/TimePickerInternals.js +302 -0
  41. package/dist/TimePickerInternals.js.map +1 -0
  42. package/dist/TimeSelectionClocks.d.ts +211 -0
  43. package/dist/TimeSelectionClocks.js +608 -0
  44. package/dist/TimeSelectionClocks.js.map +1 -0
  45. package/dist/ToggleSpinButton.d.ts +57 -0
  46. package/dist/ToggleSpinButton.js +61 -0
  47. package/dist/ToggleSpinButton.js.map +1 -0
  48. package/dist/api.json +1 -1
  49. package/dist/assets/{Card.6c948355.css → Card.55e180c2.css} +1 -1
  50. package/dist/assets/FontFace.9d4fe719.css +1 -0
  51. package/dist/assets/TimePickerClock.9c31b552.css +1 -0
  52. package/dist/assets/TimeSelectionClocks.6e241c3a.css +1 -0
  53. package/dist/assets/messagebundle_ar.e039ea3b.js +1 -0
  54. package/dist/assets/{messagebundle_bg.fe0fc2a7.js → messagebundle_bg.80974dcc.js} +1 -1
  55. package/dist/assets/messagebundle_ca.ca26ca8a.js +1 -0
  56. package/dist/assets/messagebundle_cs.8e8bdb1f.js +1 -0
  57. package/dist/assets/messagebundle_cy.85eae935.js +1 -0
  58. package/dist/assets/messagebundle_da.c3f5cc5c.js +1 -0
  59. package/dist/assets/messagebundle_de.c9bc374c.js +1 -0
  60. package/dist/assets/messagebundle_el.2292a1da.js +1 -0
  61. package/dist/assets/messagebundle_en.deec0dbd.js +1 -0
  62. package/dist/assets/messagebundle_en_GB.3657e1b3.js +1 -0
  63. package/dist/assets/messagebundle_en_US_sappsd.f2439798.js +1 -0
  64. package/dist/assets/{messagebundle_en_US_saprigi.72615e29.js → messagebundle_en_US_saprigi.74656358.js} +1 -1
  65. package/dist/assets/messagebundle_en_US_saptrc.b0bccf8b.js +1 -0
  66. package/dist/assets/messagebundle_es.23af8c54.js +1 -0
  67. package/dist/assets/messagebundle_es_MX.d255aebd.js +1 -0
  68. package/dist/assets/messagebundle_et.f83d8785.js +1 -0
  69. package/dist/assets/messagebundle_fi.7b70adbd.js +1 -0
  70. package/dist/assets/messagebundle_fr.dd9861f3.js +1 -0
  71. package/dist/assets/messagebundle_fr_CA.45dad85d.js +1 -0
  72. package/dist/assets/{messagebundle_hi.ce0e6a15.js → messagebundle_hi.01ae7df4.js} +1 -1
  73. package/dist/assets/messagebundle_hr.c3425aef.js +1 -0
  74. package/dist/assets/messagebundle_hu.5aa315f6.js +1 -0
  75. package/dist/assets/messagebundle_it.58f0a71b.js +1 -0
  76. package/dist/assets/messagebundle_iw.2398feab.js +1 -0
  77. package/dist/assets/messagebundle_ja.fdd5515e.js +1 -0
  78. package/dist/assets/messagebundle_kk.14358dec.js +1 -0
  79. package/dist/assets/messagebundle_ko.b49f2d14.js +1 -0
  80. package/dist/assets/messagebundle_lt.32b11080.js +1 -0
  81. package/dist/assets/messagebundle_lv.1fea9c5f.js +1 -0
  82. package/dist/assets/messagebundle_ms.3aece4c1.js +1 -0
  83. package/dist/assets/messagebundle_nl.9e7ef972.js +1 -0
  84. package/dist/assets/messagebundle_no.51b2c47f.js +1 -0
  85. package/dist/assets/messagebundle_pl.2022b14e.js +1 -0
  86. package/dist/assets/messagebundle_pt.deb23e18.js +1 -0
  87. package/dist/assets/messagebundle_pt_PT.513bae5e.js +1 -0
  88. package/dist/assets/messagebundle_ro.7436c473.js +1 -0
  89. package/dist/assets/{messagebundle_ru.093d6aec.js → messagebundle_ru.a0593353.js} +1 -1
  90. package/dist/assets/messagebundle_sh.748d9b17.js +1 -0
  91. package/dist/assets/messagebundle_sk.c2cb2da0.js +1 -0
  92. package/dist/assets/messagebundle_sl.78b15828.js +1 -0
  93. package/dist/assets/messagebundle_sv.dceccd4c.js +1 -0
  94. package/dist/assets/messagebundle_th.f3e71f48.js +1 -0
  95. package/dist/assets/messagebundle_tr.900036f8.js +1 -0
  96. package/dist/assets/messagebundle_uk.0f723d00.js +1 -0
  97. package/dist/assets/messagebundle_vi.e83b9c07.js +1 -0
  98. package/dist/assets/messagebundle_zh_CN.4eade528.js +1 -0
  99. package/dist/assets/messagebundle_zh_TW.c826216a.js +1 -0
  100. package/dist/assets/{parameters-bundle.css.145c3d8e.js → parameters-bundle.css.0e81607c.js} +0 -4
  101. package/dist/assets/{parameters-bundle.css.f867fdf7.js → parameters-bundle.css.10bd6ca5.js} +0 -4
  102. package/dist/assets/{parameters-bundle.css.5b301a79.js → parameters-bundle.css.12bbe810.js} +0 -4
  103. package/dist/assets/{parameters-bundle.css.fabe35f1.js → parameters-bundle.css.2bbe236f.js} +0 -4
  104. package/dist/assets/{parameters-bundle.css.2714f1c2.js → parameters-bundle.css.3d1c8be3.js} +0 -4
  105. package/dist/assets/{parameters-bundle.css.e9f4e712.js → parameters-bundle.css.45635550.js} +0 -4
  106. package/dist/assets/{parameters-bundle.css.73cf1941.js → parameters-bundle.css.614578f9.js} +0 -4
  107. package/dist/assets/{parameters-bundle.css.dbeb843f.js → parameters-bundle.css.d2cd5d9b.js} +0 -4
  108. package/dist/assets/{parameters-bundle.css.3ae8f4f4.js → parameters-bundle.css.dae04f67.js} +0 -4
  109. package/dist/assets/{parameters-bundle.css.51ce98b4.js → parameters-bundle.css.ddbc474d.js} +0 -4
  110. package/dist/assets/{parameters-bundle.css.94ec25db.js → parameters-bundle.css.f7d7dd8a.js} +0 -4
  111. package/dist/assets/{parameters-bundle.css.0496dc46.js → parameters-bundle.css.fcfef787.js} +0 -4
  112. package/dist/assets/test/pages/{ComboBox.html.e6b2c662.js → ComboBox.html.4067d002.js} +1 -1
  113. package/dist/assets/test/pages/{Icon.html.4f593716.js → Icon.html.d7e6df22.js} +1 -1
  114. package/dist/assets/test/pages/{Label.html.36a2faae.js → Label.html.3c17f31f.js} +1 -1
  115. package/dist/assets/test/pages/{Popups.html.c29d144e.js → Popups.html.d0248b0c.js} +1 -1
  116. package/dist/css/themes/CalendarHeader.css +1 -1
  117. package/dist/css/themes/TimePickerClock.css +1 -0
  118. package/dist/css/themes/TimeSelectionClocks.css +1 -0
  119. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  120. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  121. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  122. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  123. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  124. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  125. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  126. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  127. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  128. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  129. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  130. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  131. package/dist/custom-elements.json +1 -1
  132. package/dist/features/InputElementsFormSupport.d.ts +1 -0
  133. package/dist/features/InputElementsFormSupport.js +21 -9
  134. package/dist/features/InputElementsFormSupport.js.map +1 -1
  135. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  136. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  137. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  138. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  139. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  140. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  141. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  142. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  143. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  144. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  145. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  146. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  147. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  148. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  149. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  150. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  151. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  152. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  153. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  154. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  155. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  156. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  157. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  158. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  159. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  160. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  161. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  162. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  163. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  164. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  165. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  166. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  167. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  168. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  169. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  170. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  171. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  172. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  173. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  174. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  175. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  176. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  177. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  178. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  179. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  180. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  181. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  182. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  183. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  184. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  185. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  186. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  187. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  188. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  189. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  190. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  191. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  192. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  193. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  194. package/dist/generated/i18n/i18n-defaults.d.ts +3 -1
  195. package/dist/generated/i18n/i18n-defaults.js +3 -1
  196. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  197. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
  198. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
  199. package/dist/generated/templates/TableTemplate.lit.js +1 -1
  200. package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
  201. package/dist/generated/templates/TimePickerClockTemplate.lit.d.ts +4 -0
  202. package/dist/generated/templates/TimePickerClockTemplate.lit.js +11 -0
  203. package/dist/generated/templates/TimePickerClockTemplate.lit.js.map +1 -0
  204. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js +1 -1
  205. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js.map +1 -1
  206. package/dist/generated/templates/TimeSelectionClocksTemplate.lit.d.ts +4 -0
  207. package/dist/generated/templates/TimeSelectionClocksTemplate.lit.js +9 -0
  208. package/dist/generated/templates/TimeSelectionClocksTemplate.lit.js.map +1 -0
  209. package/dist/generated/templates/ToggleSpinButtonTemplate.lit.d.ts +4 -0
  210. package/dist/generated/templates/ToggleSpinButtonTemplate.lit.js +7 -0
  211. package/dist/generated/templates/ToggleSpinButtonTemplate.lit.js.map +1 -0
  212. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  213. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  214. package/dist/generated/themes/TimePickerClock.css.d.ts +3 -0
  215. package/dist/generated/themes/TimePickerClock.css.js +8 -0
  216. package/dist/generated/themes/TimePickerClock.css.js.map +1 -0
  217. package/dist/generated/themes/TimeSelectionClocks.css.d.ts +3 -0
  218. package/dist/generated/themes/TimeSelectionClocks.css.js +8 -0
  219. package/dist/generated/themes/TimeSelectionClocks.css.js.map +1 -0
  220. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  221. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  222. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  223. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  224. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  225. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  226. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  227. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  228. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  229. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  230. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  231. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  232. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  233. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  234. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  235. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  236. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  237. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  238. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  239. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  240. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  241. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  242. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  243. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  244. package/dist/i18n/messagebundle.properties +6 -0
  245. package/dist/i18n/messagebundle_ar.properties +7 -0
  246. package/dist/i18n/messagebundle_bg.properties +7 -0
  247. package/dist/i18n/messagebundle_ca.properties +7 -0
  248. package/dist/i18n/messagebundle_cs.properties +7 -0
  249. package/dist/i18n/messagebundle_cy.properties +7 -0
  250. package/dist/i18n/messagebundle_da.properties +7 -0
  251. package/dist/i18n/messagebundle_de.properties +8 -1
  252. package/dist/i18n/messagebundle_el.properties +7 -0
  253. package/dist/i18n/messagebundle_en.properties +7 -0
  254. package/dist/i18n/messagebundle_en_GB.properties +7 -0
  255. package/dist/i18n/messagebundle_en_US_sappsd.properties +11 -0
  256. package/dist/i18n/messagebundle_en_US_saprigi.properties +11 -0
  257. package/dist/i18n/messagebundle_en_US_saptrc.properties +11 -0
  258. package/dist/i18n/messagebundle_es.properties +7 -0
  259. package/dist/i18n/messagebundle_es_MX.properties +7 -0
  260. package/dist/i18n/messagebundle_et.properties +7 -0
  261. package/dist/i18n/messagebundle_fi.properties +7 -0
  262. package/dist/i18n/messagebundle_fr.properties +8 -1
  263. package/dist/i18n/messagebundle_fr_CA.properties +7 -0
  264. package/dist/i18n/messagebundle_hi.properties +7 -0
  265. package/dist/i18n/messagebundle_hr.properties +7 -0
  266. package/dist/i18n/messagebundle_hu.properties +7 -0
  267. package/dist/i18n/messagebundle_id.properties +7 -0
  268. package/dist/i18n/messagebundle_it.properties +7 -0
  269. package/dist/i18n/messagebundle_iw.properties +7 -0
  270. package/dist/i18n/messagebundle_ja.properties +7 -0
  271. package/dist/i18n/messagebundle_kk.properties +7 -0
  272. package/dist/i18n/messagebundle_ko.properties +7 -0
  273. package/dist/i18n/messagebundle_lt.properties +7 -0
  274. package/dist/i18n/messagebundle_lv.properties +7 -0
  275. package/dist/i18n/messagebundle_ms.properties +7 -0
  276. package/dist/i18n/messagebundle_nl.properties +7 -0
  277. package/dist/i18n/messagebundle_no.properties +7 -0
  278. package/dist/i18n/messagebundle_pl.properties +7 -0
  279. package/dist/i18n/messagebundle_pt.properties +7 -0
  280. package/dist/i18n/messagebundle_pt_PT.properties +7 -0
  281. package/dist/i18n/messagebundle_ro.properties +7 -0
  282. package/dist/i18n/messagebundle_ru.properties +7 -0
  283. package/dist/i18n/messagebundle_sh.properties +7 -0
  284. package/dist/i18n/messagebundle_sk.properties +7 -0
  285. package/dist/i18n/messagebundle_sl.properties +7 -0
  286. package/dist/i18n/messagebundle_sv.properties +7 -0
  287. package/dist/i18n/messagebundle_th.properties +7 -0
  288. package/dist/i18n/messagebundle_tr.properties +7 -0
  289. package/dist/i18n/messagebundle_uk.properties +7 -0
  290. package/dist/i18n/messagebundle_vi.properties +7 -0
  291. package/dist/i18n/messagebundle_zh_CN.properties +8 -1
  292. package/dist/i18n/messagebundle_zh_TW.properties +8 -1
  293. package/dist/test/pages/72override.html +1 -1
  294. package/dist/test/pages/AnimanitionOff.html +1 -1
  295. package/dist/test/pages/Avatar.html +1 -1
  296. package/dist/test/pages/AvatarGroup.html +1 -1
  297. package/dist/test/pages/Badge.html +1 -1
  298. package/dist/test/pages/Breadcrumbs.html +1 -1
  299. package/dist/test/pages/BusyIndicator.html +1 -1
  300. package/dist/test/pages/Button.html +8 -1
  301. package/dist/test/pages/Calendar.html +1 -1
  302. package/dist/test/pages/Card.html +4 -3
  303. package/dist/test/pages/Carousel.html +1 -1
  304. package/dist/test/pages/CheckBox.html +1 -1
  305. package/dist/test/pages/ColorPalette.html +1 -1
  306. package/dist/test/pages/ColorPalettePopover.html +1 -1
  307. package/dist/test/pages/ColorPicker.html +1 -1
  308. package/dist/test/pages/ComboBox.html +2 -2
  309. package/dist/test/pages/Components.html +1 -1
  310. package/dist/test/pages/CoreControls.html +1 -1
  311. package/dist/test/pages/CoreControls_exp.html +1 -1
  312. package/dist/test/pages/CustomCSS.html +1 -1
  313. package/dist/test/pages/DatePicker.html +1 -1
  314. package/dist/test/pages/DatePicker_test_page.html +1 -1
  315. package/dist/test/pages/DateRangePicker.html +1 -1
  316. package/dist/test/pages/DateTimePicker.html +1 -1
  317. package/dist/test/pages/DateTimePicker_Timezone.html +1 -1
  318. package/dist/test/pages/DayPicker.html +1 -1
  319. package/dist/test/pages/Dialog.html +1 -1
  320. package/dist/test/pages/DialogLifecycle.html +1 -1
  321. package/dist/test/pages/DialogSemantic.html +1 -1
  322. package/dist/test/pages/Eventing.html +1 -1
  323. package/dist/test/pages/F6Test1.html +1 -1
  324. package/dist/test/pages/F6Test2.html +1 -1
  325. package/dist/test/pages/F6Test3.html +1 -1
  326. package/dist/test/pages/F6Test4.html +1 -1
  327. package/dist/test/pages/F6Test5.html +1 -1
  328. package/dist/test/pages/F6Test6.html +1 -1
  329. package/dist/test/pages/F6Test7.html +1 -1
  330. package/dist/test/pages/FileUploader.html +1 -1
  331. package/dist/test/pages/FontFace.html +21 -0
  332. package/dist/test/pages/FormComponents.html +1 -1
  333. package/dist/test/pages/FormSupport.html +1 -1
  334. package/dist/test/pages/HCB.html +1 -1
  335. package/dist/test/pages/Icon.html +2 -2
  336. package/dist/test/pages/Icon_and_theming.html +1 -1
  337. package/dist/test/pages/Icon_custom.html +1 -1
  338. package/dist/test/pages/Input.html +1 -1
  339. package/dist/test/pages/InputFieldLabels.html +1 -1
  340. package/dist/test/pages/InputFieldMinWidth.html +1 -1
  341. package/dist/test/pages/InputIcons.html +1 -1
  342. package/dist/test/pages/Input_quickview.html +1 -1
  343. package/dist/test/pages/InputsAlignment.html +1 -1
  344. package/dist/test/pages/InputsLazyLoading.html +1 -1
  345. package/dist/test/pages/ItemNavigation.html +1 -1
  346. package/dist/test/pages/Kitchen.html +1 -1
  347. package/dist/test/pages/Kitchen.openui5.html +1 -1
  348. package/dist/test/pages/Label.html +2 -2
  349. package/dist/test/pages/Link.html +1 -1
  350. package/dist/test/pages/List.html +1 -1
  351. package/dist/test/pages/ListGrowing_Button.html +1 -1
  352. package/dist/test/pages/ListGrowing_Scroll.html +1 -1
  353. package/dist/test/pages/List_keyboard_support.html +1 -1
  354. package/dist/test/pages/List_test_page.html +19 -1
  355. package/dist/test/pages/LitKeyFunction.html +1 -1
  356. package/dist/test/pages/MemoryLeak.html +1 -1
  357. package/dist/test/pages/Menu.html +1 -1
  358. package/dist/test/pages/MessagePage.html +1 -1
  359. package/dist/test/pages/MessageStrip.html +1 -1
  360. package/dist/test/pages/MultiComboBox.html +1 -1
  361. package/dist/test/pages/MultiInput.html +1 -1
  362. package/dist/test/pages/MultiInput_Suggestions.html +1 -1
  363. package/dist/test/pages/OpenUI5-second.html +1 -1
  364. package/dist/test/pages/OpenUI5.html +1 -1
  365. package/dist/test/pages/Panel.html +1 -1
  366. package/dist/test/pages/Popover.html +1 -1
  367. package/dist/test/pages/PopoverArrowBounds.html +1 -1
  368. package/dist/test/pages/Popups.html +2 -2
  369. package/dist/test/pages/ProgressIndicator.html +1 -1
  370. package/dist/test/pages/RTL.html +1 -1
  371. package/dist/test/pages/RadioButton.html +1 -1
  372. package/dist/test/pages/RangeSlider.html +1 -1
  373. package/dist/test/pages/RatingIndicator.html +1 -1
  374. package/dist/test/pages/ResizeHandler.html +1 -1
  375. package/dist/test/pages/ResponsivePopover.html +1 -1
  376. package/dist/test/pages/SegmentedButton.html +1 -1
  377. package/dist/test/pages/Select.html +1 -1
  378. package/dist/test/pages/Simple.html +1 -1
  379. package/dist/test/pages/Slider.html +1 -1
  380. package/dist/test/pages/SplitButton.html +1 -1
  381. package/dist/test/pages/StepInput.html +1 -1
  382. package/dist/test/pages/Switch.html +1 -1
  383. package/dist/test/pages/TabContainer.html +1 -1
  384. package/dist/test/pages/Table-perf-pure.html +1 -1
  385. package/dist/test/pages/Table-perf.html +1 -1
  386. package/dist/test/pages/Table.html +1 -1
  387. package/dist/test/pages/Table2.html +1 -1
  388. package/dist/test/pages/TableAllPopin.html +1 -1
  389. package/dist/test/pages/TableCustomStyling.html +1 -1
  390. package/dist/test/pages/TableGrouping.html +1 -1
  391. package/dist/test/pages/TableGrowingWithButton.html +1 -1
  392. package/dist/test/pages/TableGrowingWithScroll.html +1 -1
  393. package/dist/test/pages/TableSelection.html +1 -1
  394. package/dist/test/pages/TextArea.html +1 -1
  395. package/dist/test/pages/TimePicker.html +1 -1
  396. package/dist/test/pages/TimePickerClock.html +90 -0
  397. package/dist/test/pages/TimeSelection.html +1 -1
  398. package/dist/test/pages/TimeSelectionClocks.html +64 -0
  399. package/dist/test/pages/Title.html +1 -1
  400. package/dist/test/pages/Toast.html +1 -1
  401. package/dist/test/pages/ToggleButton.html +1 -1
  402. package/dist/test/pages/Tokenizer.html +1 -1
  403. package/dist/test/pages/Tree.html +1 -1
  404. package/dist/test/pages/TreeDynamic.html +1 -1
  405. package/dist/test/pages/WheelSlider_Test_Page.html +1 -1
  406. package/dist/test/pages/base/AriaLabelHelper.html +1 -1
  407. package/dist/test/pages/base/DOMObserver.html +1 -1
  408. package/dist/test/pages/base/IconCollection.html +1 -1
  409. package/dist/test/pages/base/IconCollectionInCustomTheme.html +1 -1
  410. package/dist/test/pages/base/IgnoreCustomElements.html +1 -1
  411. package/dist/test/pages/base/InvisibleMessage.html +1 -1
  412. package/dist/test/pages/form.html +1 -1
  413. package/dist/test/pages/i18n-defaultLang.html +1 -1
  414. package/dist/test/pages/i18n-demo.html +1 -1
  415. package/dist/types/ButtonType.d.ts +30 -0
  416. package/dist/types/ButtonType.js +32 -0
  417. package/dist/types/ButtonType.js.map +1 -0
  418. package/package.json +7 -7
  419. package/src/ComboBoxPopover.hbs +16 -12
  420. package/src/Table.hbs +2 -2
  421. package/src/TimePickerClock.hbs +51 -0
  422. package/src/TimePickerPopover.hbs +3 -8
  423. package/src/TimeSelectionClocks.hbs +73 -0
  424. package/src/ToggleSpinButton.hbs +10 -0
  425. package/src/i18n/messagebundle.properties +6 -0
  426. package/src/i18n/messagebundle_ar.properties +7 -0
  427. package/src/i18n/messagebundle_bg.properties +7 -0
  428. package/src/i18n/messagebundle_ca.properties +7 -0
  429. package/src/i18n/messagebundle_cs.properties +7 -0
  430. package/src/i18n/messagebundle_cy.properties +7 -0
  431. package/src/i18n/messagebundle_da.properties +7 -0
  432. package/src/i18n/messagebundle_de.properties +8 -1
  433. package/src/i18n/messagebundle_el.properties +7 -0
  434. package/src/i18n/messagebundle_en.properties +7 -0
  435. package/src/i18n/messagebundle_en_GB.properties +7 -0
  436. package/src/i18n/messagebundle_en_US_sappsd.properties +11 -0
  437. package/src/i18n/messagebundle_en_US_saprigi.properties +11 -0
  438. package/src/i18n/messagebundle_en_US_saptrc.properties +11 -0
  439. package/src/i18n/messagebundle_es.properties +7 -0
  440. package/src/i18n/messagebundle_es_MX.properties +7 -0
  441. package/src/i18n/messagebundle_et.properties +7 -0
  442. package/src/i18n/messagebundle_fi.properties +7 -0
  443. package/src/i18n/messagebundle_fr.properties +8 -1
  444. package/src/i18n/messagebundle_fr_CA.properties +7 -0
  445. package/src/i18n/messagebundle_hi.properties +7 -0
  446. package/src/i18n/messagebundle_hr.properties +7 -0
  447. package/src/i18n/messagebundle_hu.properties +7 -0
  448. package/src/i18n/messagebundle_id.properties +7 -0
  449. package/src/i18n/messagebundle_it.properties +7 -0
  450. package/src/i18n/messagebundle_iw.properties +7 -0
  451. package/src/i18n/messagebundle_ja.properties +7 -0
  452. package/src/i18n/messagebundle_kk.properties +7 -0
  453. package/src/i18n/messagebundle_ko.properties +7 -0
  454. package/src/i18n/messagebundle_lt.properties +7 -0
  455. package/src/i18n/messagebundle_lv.properties +7 -0
  456. package/src/i18n/messagebundle_ms.properties +7 -0
  457. package/src/i18n/messagebundle_nl.properties +7 -0
  458. package/src/i18n/messagebundle_no.properties +7 -0
  459. package/src/i18n/messagebundle_pl.properties +7 -0
  460. package/src/i18n/messagebundle_pt.properties +7 -0
  461. package/src/i18n/messagebundle_pt_PT.properties +7 -0
  462. package/src/i18n/messagebundle_ro.properties +7 -0
  463. package/src/i18n/messagebundle_ru.properties +7 -0
  464. package/src/i18n/messagebundle_sh.properties +7 -0
  465. package/src/i18n/messagebundle_sk.properties +7 -0
  466. package/src/i18n/messagebundle_sl.properties +7 -0
  467. package/src/i18n/messagebundle_sv.properties +7 -0
  468. package/src/i18n/messagebundle_th.properties +7 -0
  469. package/src/i18n/messagebundle_tr.properties +7 -0
  470. package/src/i18n/messagebundle_uk.properties +7 -0
  471. package/src/i18n/messagebundle_vi.properties +7 -0
  472. package/src/i18n/messagebundle_zh_CN.properties +8 -1
  473. package/src/i18n/messagebundle_zh_TW.properties +8 -1
  474. package/src/themes/CalendarHeader.css +1 -1
  475. package/src/themes/TimePickerClock.css +134 -0
  476. package/src/themes/TimeSelectionClocks.css +37 -0
  477. package/src/themes/base/rtl-parameters.css +0 -4
  478. package/dist/assets/messagebundle_ar.cb2d513f.js +0 -1
  479. package/dist/assets/messagebundle_ca.5188156e.js +0 -1
  480. package/dist/assets/messagebundle_cs.326d268e.js +0 -1
  481. package/dist/assets/messagebundle_cy.27c00e72.js +0 -1
  482. package/dist/assets/messagebundle_da.8b2efe9a.js +0 -1
  483. package/dist/assets/messagebundle_de.f247aeb5.js +0 -1
  484. package/dist/assets/messagebundle_el.2aa42d04.js +0 -1
  485. package/dist/assets/messagebundle_en.0339fd5b.js +0 -1
  486. package/dist/assets/messagebundle_en_GB.fb50b51d.js +0 -1
  487. package/dist/assets/messagebundle_en_US_sappsd.1c34c7f1.js +0 -1
  488. package/dist/assets/messagebundle_en_US_saptrc.2ec2f5b5.js +0 -1
  489. package/dist/assets/messagebundle_es.c3e0ee87.js +0 -1
  490. package/dist/assets/messagebundle_es_MX.66753849.js +0 -1
  491. package/dist/assets/messagebundle_et.416acfd2.js +0 -1
  492. package/dist/assets/messagebundle_fi.d1cbd526.js +0 -1
  493. package/dist/assets/messagebundle_fr.dc36e584.js +0 -1
  494. package/dist/assets/messagebundle_fr_CA.2523bd90.js +0 -1
  495. package/dist/assets/messagebundle_hr.ceaae56a.js +0 -1
  496. package/dist/assets/messagebundle_hu.1ea9e4b9.js +0 -1
  497. package/dist/assets/messagebundle_it.42236d24.js +0 -1
  498. package/dist/assets/messagebundle_iw.a7ef7e16.js +0 -1
  499. package/dist/assets/messagebundle_ja.5d29b9fe.js +0 -1
  500. package/dist/assets/messagebundle_kk.a06da1f6.js +0 -1
  501. package/dist/assets/messagebundle_ko.21aacadd.js +0 -1
  502. package/dist/assets/messagebundle_lt.ce9c0489.js +0 -1
  503. package/dist/assets/messagebundle_lv.04d3cfc7.js +0 -1
  504. package/dist/assets/messagebundle_ms.95abdbb4.js +0 -1
  505. package/dist/assets/messagebundle_nl.57fa959f.js +0 -1
  506. package/dist/assets/messagebundle_no.e5f967f2.js +0 -1
  507. package/dist/assets/messagebundle_pl.4e8d92c7.js +0 -1
  508. package/dist/assets/messagebundle_pt.81f79352.js +0 -1
  509. package/dist/assets/messagebundle_pt_PT.57ea1c45.js +0 -1
  510. package/dist/assets/messagebundle_ro.4045f404.js +0 -1
  511. package/dist/assets/messagebundle_sh.adc6cb96.js +0 -1
  512. package/dist/assets/messagebundle_sk.3d142f10.js +0 -1
  513. package/dist/assets/messagebundle_sl.504df99f.js +0 -1
  514. package/dist/assets/messagebundle_sv.614c8881.js +0 -1
  515. package/dist/assets/messagebundle_th.38af175f.js +0 -1
  516. package/dist/assets/messagebundle_tr.888a1c33.js +0 -1
  517. package/dist/assets/messagebundle_uk.89e0a61e.js +0 -1
  518. package/dist/assets/messagebundle_vi.36e677bb.js +0 -1
  519. package/dist/assets/messagebundle_zh_CN.00a7ca32.js +0 -1
  520. package/dist/assets/messagebundle_zh_TW.c2379ed2.js +0 -1
@@ -5,20 +5,19 @@ import type { TimePickerBaseChangeEventDetail as TimePickerChangeEventDetail, Ti
5
5
  * @class
6
6
  *
7
7
  * <h3 class="comment-api-title">Overview</h3>
8
- * The <code>ui5-time-picker</code> component provides an input field with assigned sliders which are opened on user action.
9
- * The <code>ui5-time-picker</code> allows users to select a localized time using touch,
10
- * mouse, or keyboard input. It consists of two parts: the time input field and the
11
- * sliders.
8
+ * The <code>ui5-time-picker</code> component provides an input field with assigned clocks which are opened on user action.
9
+ * The <code>ui5-time-picker</code> allows users to select a localized time using touch, mouse, or keyboard input.
10
+ * It consists of two parts: the time input field and the clocks.
12
11
  *
13
12
  * <h3>Usage</h3>
14
13
  * The user can enter a time by:
15
14
  * <ul>
16
- * <li>Using the sliders that are displayed in a popup</li>
15
+ * <li>Using the clocks that are displayed in a popup</li>
17
16
  * <li>Typing it in directly in the input field</li>
18
17
  * </ul>
19
18
  * <br><br>
20
- * When the user makes an entry and chooses the enter key, the sliders shows the corresponding time.
21
- * When the user directly triggers the sliders display, the actual time is displayed.
19
+ * When the user makes an entry and chooses the enter key, the clocks show the corresponding time (hours, minutes and seconds separately).
20
+ * When the user directly triggers the clocks display, the actual time is displayed.
22
21
  * For the <code>ui5-time-picker</code>
23
22
  *
24
23
  * <h3>Formatting</h3>
@@ -39,19 +38,23 @@ import type { TimePickerBaseChangeEventDetail as TimePickerChangeEventDetail, Ti
39
38
  * <ul>
40
39
  * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>
41
40
  * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>
42
- * <li>[SHIFT]+[PAGEUP] Increments minutes by 1.</li>
43
- * <li>[SHIFT]+ [PAGEDOWN] Decrements minutes by 1.</li>
44
- * <li>[SHIFT]+[CTRL]+[PAGEUP] Increments seconds by 1.</li>
45
- * <li>[SHIFT]+[CTRL]+ [PAGEDOWN] Decrements seconds by 1.</li>
41
+ * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>
42
+ * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>
43
+ * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>
44
+ * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>
45
+ * <li>
46
46
  * </ul>
47
47
  * When opened:
48
48
  * <ul>
49
- * <li>[UP] If focus is on one of the selection lists: Select the value which is above the current value. If the first value is selected, select the last value in the list. Exception: AM/ PM List: stay on the first item.</li>
50
- * <li>[DOWN] If focus is on one of the selection lists: Select the value which is below the current value. If the last value is selected, select the first value in the list. Exception: AM/ PM List: stay on the last item.</li>
51
- * <li>[LEFT] If focus is on one of the selection lists: Move focus to the selection list which is left of the current selection list. If focus is at the first selection list, move focus to the last selection list.</li>
52
- * <li>[RIGHT] If focus is on one of the selection lists: Move focus to the selection list which is right of the current selection list. When focus is at the last selection list, move focus to the first selection list.</li>
53
- * <li>[PAGEUP] If focus is on one of the selection lists: Move focus to the first entry of this list.</li>
54
- * <li>[PAGEDOWN] If focus is on one of the selection lists: Move focus to the last entry of this list.</li>
49
+ * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>
50
+ * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>
51
+ * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>
52
+ * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>
53
+ * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>
54
+ * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>
55
+ * <li>[A] or [P] - Selects AM or PM respectively.</li>
56
+ * <li>[0]-[9] - Allows direct time selecting (hours/minutes/seconds).</li>
57
+ * <li>[:] - Allows switching between hours/minutes/seconds clocks. If the last clock is displayed and [:] is pressed, the first clock is beind displayed.</li>
55
58
  * </ul>
56
59
  *
57
60
  * <h3>ES6 Module Import</h3>
@@ -15,20 +15,19 @@ import { TIMEPICKER_INPUT_DESCRIPTION, } from "./generated/i18n/i18n-defaults.js
15
15
  * @class
16
16
  *
17
17
  * <h3 class="comment-api-title">Overview</h3>
18
- * The <code>ui5-time-picker</code> component provides an input field with assigned sliders which are opened on user action.
19
- * The <code>ui5-time-picker</code> allows users to select a localized time using touch,
20
- * mouse, or keyboard input. It consists of two parts: the time input field and the
21
- * sliders.
18
+ * The <code>ui5-time-picker</code> component provides an input field with assigned clocks which are opened on user action.
19
+ * The <code>ui5-time-picker</code> allows users to select a localized time using touch, mouse, or keyboard input.
20
+ * It consists of two parts: the time input field and the clocks.
22
21
  *
23
22
  * <h3>Usage</h3>
24
23
  * The user can enter a time by:
25
24
  * <ul>
26
- * <li>Using the sliders that are displayed in a popup</li>
25
+ * <li>Using the clocks that are displayed in a popup</li>
27
26
  * <li>Typing it in directly in the input field</li>
28
27
  * </ul>
29
28
  * <br><br>
30
- * When the user makes an entry and chooses the enter key, the sliders shows the corresponding time.
31
- * When the user directly triggers the sliders display, the actual time is displayed.
29
+ * When the user makes an entry and chooses the enter key, the clocks show the corresponding time (hours, minutes and seconds separately).
30
+ * When the user directly triggers the clocks display, the actual time is displayed.
32
31
  * For the <code>ui5-time-picker</code>
33
32
  *
34
33
  * <h3>Formatting</h3>
@@ -49,19 +48,23 @@ import { TIMEPICKER_INPUT_DESCRIPTION, } from "./generated/i18n/i18n-defaults.js
49
48
  * <ul>
50
49
  * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>
51
50
  * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>
52
- * <li>[SHIFT]+[PAGEUP] Increments minutes by 1.</li>
53
- * <li>[SHIFT]+ [PAGEDOWN] Decrements minutes by 1.</li>
54
- * <li>[SHIFT]+[CTRL]+[PAGEUP] Increments seconds by 1.</li>
55
- * <li>[SHIFT]+[CTRL]+ [PAGEDOWN] Decrements seconds by 1.</li>
51
+ * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>
52
+ * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>
53
+ * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>
54
+ * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>
55
+ * <li>
56
56
  * </ul>
57
57
  * When opened:
58
58
  * <ul>
59
- * <li>[UP] If focus is on one of the selection lists: Select the value which is above the current value. If the first value is selected, select the last value in the list. Exception: AM/ PM List: stay on the first item.</li>
60
- * <li>[DOWN] If focus is on one of the selection lists: Select the value which is below the current value. If the last value is selected, select the first value in the list. Exception: AM/ PM List: stay on the last item.</li>
61
- * <li>[LEFT] If focus is on one of the selection lists: Move focus to the selection list which is left of the current selection list. If focus is at the first selection list, move focus to the last selection list.</li>
62
- * <li>[RIGHT] If focus is on one of the selection lists: Move focus to the selection list which is right of the current selection list. When focus is at the last selection list, move focus to the first selection list.</li>
63
- * <li>[PAGEUP] If focus is on one of the selection lists: Move focus to the first entry of this list.</li>
64
- * <li>[PAGEDOWN] If focus is on one of the selection lists: Move focus to the last entry of this list.</li>
59
+ * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>
60
+ * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>
61
+ * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>
62
+ * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>
63
+ * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>
64
+ * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>
65
+ * <li>[A] or [P] - Selects AM or PM respectively.</li>
66
+ * <li>[0]-[9] - Allows direct time selecting (hours/minutes/seconds).</li>
67
+ * <li>[:] - Allows switching between hours/minutes/seconds clocks. If the last clock is displayed and [:] is pressed, the first clock is beind displayed.</li>
65
68
  * </ul>
66
69
  *
67
70
  * <h3>ES6 Module Import</h3>
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../src/TimePicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,SAAS,MAAM,kDAAkD,CAAC;AACzE,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAOjD,OAAO,EACN,4BAA4B,GAC5B,MAAM,mCAAmC,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH,IAAM,UAAU,kBAAhB,MAAM,UAAW,SAAQ,cAAc;IAiCtC,IAAI,cAAc;QACjB,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,QAAQ,CAAC;QAElD,MAAM,UAAU,GAAG,2BAA2B,CAAC,SAAS,EAAE,CAAC,CAAC;QAC5D,OAAO,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IAC5E,CAAC;IAED,IAAI,cAAc;QACjB,2DAA2D;QAC3D,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,OAAiB,CAAC;IAC1D,CAAC;IAED,IAAI,YAAY;QACf,OAAO,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;IAChF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,eAAyB,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,OAAO;QACV,OAAO;YACN,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;YAC/C,cAAc,EAAE,QAAQ;YACxB,kBAAkB,EAAE,MAAM;YAC1B,cAAc,EAAE,GAAG,IAAI,CAAC,GAAG,qBAAqB;SAChD,CAAC;IACH,CAAC;IAED,IAAI,mBAAmB;QACtB,OAAO,YAAU,CAAC,UAAU,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACpE,CAAC;CACD,CAAA;AA3DA;IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;+CACjB;AAgBrB;IADC,QAAQ,EAAE;iDACY;AA/BlB,UAAU;IADf,aAAa,CAAC,iBAAiB,CAAC;GAC3B,UAAU,CA0Ef;AAED,UAAU,CAAC,MAAM,EAAE,CAAC;AAEpB,eAAe,UAAU,CAAC","sourcesContent":["import getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport getCachedLocaleDataInstance from \"@ui5/webcomponents-localization/dist/getCachedLocaleDataInstance.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport TimePickerBase from \"./TimePickerBase.js\";\n\nimport type {\n\tTimePickerBaseChangeEventDetail as TimePickerChangeEventDetail,\n\tTimePickerBaseInputEventDetail as TimePickerInputEventDetail,\n} from \"./TimePickerBase.js\";\n\nimport {\n\tTIMEPICKER_INPUT_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-time-picker</code> component provides an input field with assigned sliders which are opened on user action.\n * The <code>ui5-time-picker</code> allows users to select a localized time using touch,\n * mouse, or keyboard input. It consists of two parts: the time input field and the\n * sliders.\n *\n * <h3>Usage</h3>\n * The user can enter a time by:\n * <ul>\n * <li>Using the sliders that are displayed in a popup</li>\n * <li>Typing it in directly in the input field</li>\n * </ul>\n * <br><br>\n * When the user makes an entry and chooses the enter key, the sliders shows the corresponding time.\n * When the user directly triggers the sliders display, the actual time is displayed.\n * For the <code>ui5-time-picker</code>\n *\n * <h3>Formatting</h3>\n *\n * If a time is entered by typing it into\n * the input field, it must fit to the used time format.\n * <br><br>\n * Supported format options are pattern-based on Unicode LDML Date Format notation.\n * For more information, see <ui5-link target=\"_blank\" href=\"http://unicode.org/reports/tr35/#Date_Field_Symbol_Table\">UTS #35: Unicode Locale Data Markup Language</ui5-link>.\n * <br><br>\n * For example, if the <code>format-pattern</code> is \"HH:mm:ss\",\n * a valid value string is \"11:42:35\" and the same is displayed in the input.\n *\n * <h3>Keyboard handling</h3>\n * [F4], [ALT]+[UP], [ALT]+[DOWN] Open/Close picker dialog and move focus to it.\n * <br>\n * When closed:\n * <ul>\n * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>\n * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>\n * <li>[SHIFT]+[PAGEUP] Increments minutes by 1.</li>\n * <li>[SHIFT]+ [PAGEDOWN] Decrements minutes by 1.</li>\n * <li>[SHIFT]+[CTRL]+[PAGEUP] Increments seconds by 1.</li>\n * <li>[SHIFT]+[CTRL]+ [PAGEDOWN] Decrements seconds by 1.</li>\n * </ul>\n * When opened:\n * <ul>\n * <li>[UP] If focus is on one of the selection lists: Select the value which is above the current value. If the first value is selected, select the last value in the list. Exception: AM/ PM List: stay on the first item.</li>\n * <li>[DOWN] If focus is on one of the selection lists: Select the value which is below the current value. If the last value is selected, select the first value in the list. Exception: AM/ PM List: stay on the last item.</li>\n * <li>[LEFT] If focus is on one of the selection lists: Move focus to the selection list which is left of the current selection list. If focus is at the first selection list, move focus to the last selection list.</li>\n * <li>[RIGHT] If focus is on one of the selection lists: Move focus to the selection list which is right of the current selection list. When focus is at the last selection list, move focus to the first selection list.</li>\n * <li>[PAGEUP] If focus is on one of the selection lists: Move focus to the first entry of this list.</li>\n * <li>[PAGEDOWN] If focus is on one of the selection lists: Move focus to the last entry of this list.</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/TimePicker.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.TimePicker\n * @extends sap.ui.webc.main.TimePickerBase\n * @tagname ui5-time-picker\n * @public\n * @since 1.0.0-rc.6\n */\n@customElement(\"ui5-time-picker\")\nclass TimePicker extends TimePickerBase {\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 * @type {string}\n\t * @name sap.ui.webc.main.TimePicker.prototype.placeholder\n\t * @defaultvalue undefined\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tplaceholder?: string;\n\n\t/**\n\t * Determines the format, displayed in the input field.\n\t *\n\t * Example:\n\t * HH:mm:ss -> 11:42:35\n\t * hh:mm:ss a -> 2:23:15 PM\n\t * mm:ss -> 12:04 (only minutes and seconds)\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.TimePicker.prototype.formatPattern\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tformatPattern!: string;\n\n\tget _formatPattern() {\n\t\tconst hasHours = !!this.formatPattern.match(/H/i);\n\t\tconst fallback = !this.formatPattern || !hasHours;\n\n\t\tconst localeData = getCachedLocaleDataInstance(getLocale());\n\t\treturn fallback ? localeData.getTimePattern(\"medium\") : this.formatPattern;\n\t}\n\n\tget _displayFormat() {\n\t\t// @ts-ignore oFormatOptions is a private API of DateFormat\n\t\treturn this.getFormat().oFormatOptions.pattern as string;\n\t}\n\n\tget _placeholder() {\n\t\treturn this.placeholder !== undefined ? this.placeholder : this._displayFormat;\n\t}\n\n\t/**\n\t * Currently selected time represented as JavaScript Date instance\n\t *\n\t * @readonly\n\t * @type {Date}\n\t * @public\n\t * @name sap.ui.webc.main.TimePicker.prototype.dateValue\n\t */\n\tget dateValue() {\n\t\treturn this.getFormat().parse(this._effectiveValue as string);\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"ariaRoledescription\": this.dateAriaDescription,\n\t\t\t\"ariaHasPopup\": \"dialog\",\n\t\t\t\"ariaAutoComplete\": \"none\",\n\t\t\t\"ariaControls\": `${this._id}-responsive-popover`,\n\t\t};\n\t}\n\n\tget dateAriaDescription() {\n\t\treturn TimePicker.i18nBundle.getText(TIMEPICKER_INPUT_DESCRIPTION);\n\t}\n}\n\nTimePicker.define();\n\nexport default TimePicker;\nexport type {\n\tTimePickerChangeEventDetail,\n\tTimePickerInputEventDetail,\n};\n"]}
1
+ {"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../src/TimePicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,SAAS,MAAM,kDAAkD,CAAC;AACzE,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,cAAc,MAAM,qBAAqB,CAAC;A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AC,4BAA4B,CAAC,CAAC;IACpE,CAAC;CACD,CAAA;AA3DA;IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;+CACjB;AAgBrB;IADC,QAAQ,EAAE;iDACY;AA/BlB,UAAU;IADf,aAAa,CAAC,iBAAiB,CAAC;GAC3B,UAAU,CA0Ef;AAED,UAAU,CAAC,MAAM,EAAE,CAAC;AAEpB,eAAe,UAAU,CAAC","sourcesContent":["import getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport getCachedLocaleDataInstance from \"@ui5/webcomponents-localization/dist/getCachedLocaleDataInstance.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport TimePickerBase from \"./TimePickerBase.js\";\n\nimport type {\n\tTimePickerBaseChangeEventDetail as TimePickerChangeEventDetail,\n\tTimePickerBaseInputEventDetail as TimePickerInputEventDetail,\n} from \"./TimePickerBase.js\";\n\nimport {\n\tTIMEPICKER_INPUT_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * The <code>ui5-time-picker</code> component provides an input field with assigned clocks which are opened on user action.\n * The <code>ui5-time-picker</code> allows users to select a localized time using touch, mouse, or keyboard input.\n * It consists of two parts: the time input field and the clocks.\n *\n * <h3>Usage</h3>\n * The user can enter a time by:\n * <ul>\n * <li>Using the clocks that are displayed in a popup</li>\n * <li>Typing it in directly in the input field</li>\n * </ul>\n * <br><br>\n * When the user makes an entry and chooses the enter key, the clocks show the corresponding time (hours, minutes and seconds separately).\n * When the user directly triggers the clocks display, the actual time is displayed.\n * For the <code>ui5-time-picker</code>\n *\n * <h3>Formatting</h3>\n *\n * If a time is entered by typing it into\n * the input field, it must fit to the used time format.\n * <br><br>\n * Supported format options are pattern-based on Unicode LDML Date Format notation.\n * For more information, see <ui5-link target=\"_blank\" href=\"http://unicode.org/reports/tr35/#Date_Field_Symbol_Table\">UTS #35: Unicode Locale Data Markup Language</ui5-link>.\n * <br><br>\n * For example, if the <code>format-pattern</code> is \"HH:mm:ss\",\n * a valid value string is \"11:42:35\" and the same is displayed in the input.\n *\n * <h3>Keyboard handling</h3>\n * [F4], [ALT]+[UP], [ALT]+[DOWN] Open/Close picker dialog and move focus to it.\n * <br>\n * When closed:\n * <ul>\n * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>\n * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>\n * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>\n * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>\n * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>\n * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>\n * <li>\n * </ul>\n * When opened:\n * <ul>\n * <li>[PAGEUP] - Increments hours by 1. If 12 am is reached, increment hours to 1 pm and vice versa.</li>\n * <li>[PAGEDOWN] - Decrements the corresponding field by 1. If 1 pm is reached, decrement hours to 12 am and vice versa.</li>\n * <li>[SHIFT]+[PAGEUP] - Increments minutes by 1.</li>\n * <li>[SHIFT]+[PAGEDOWN] - Decrements minutes by 1.</li>\n * <li>[SHIFT]+[CTRL]+[PAGEUP] - Increments seconds by 1.</li>\n * <li>[SHIFT]+[CTRL]+[PAGEDOWN] - Decrements seconds by 1.</li>\n * <li>[A] or [P] - Selects AM or PM respectively.</li>\n * <li>[0]-[9] - Allows direct time selecting (hours/minutes/seconds).</li>\n * <li>[:] - Allows switching between hours/minutes/seconds clocks. If the last clock is displayed and [:] is pressed, the first clock is beind displayed.</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/TimePicker.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.TimePicker\n * @extends sap.ui.webc.main.TimePickerBase\n * @tagname ui5-time-picker\n * @public\n * @since 1.0.0-rc.6\n */\n@customElement(\"ui5-time-picker\")\nclass TimePicker extends TimePickerBase {\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 * @type {string}\n\t * @name sap.ui.webc.main.TimePicker.prototype.placeholder\n\t * @defaultvalue undefined\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tplaceholder?: string;\n\n\t/**\n\t * Determines the format, displayed in the input field.\n\t *\n\t * Example:\n\t * HH:mm:ss -> 11:42:35\n\t * hh:mm:ss a -> 2:23:15 PM\n\t * mm:ss -> 12:04 (only minutes and seconds)\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.TimePicker.prototype.formatPattern\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\tformatPattern!: string;\n\n\tget _formatPattern() {\n\t\tconst hasHours = !!this.formatPattern.match(/H/i);\n\t\tconst fallback = !this.formatPattern || !hasHours;\n\n\t\tconst localeData = getCachedLocaleDataInstance(getLocale());\n\t\treturn fallback ? localeData.getTimePattern(\"medium\") : this.formatPattern;\n\t}\n\n\tget _displayFormat() {\n\t\t// @ts-ignore oFormatOptions is a private API of DateFormat\n\t\treturn this.getFormat().oFormatOptions.pattern as string;\n\t}\n\n\tget _placeholder() {\n\t\treturn this.placeholder !== undefined ? this.placeholder : this._displayFormat;\n\t}\n\n\t/**\n\t * Currently selected time represented as JavaScript Date instance\n\t *\n\t * @readonly\n\t * @type {Date}\n\t * @public\n\t * @name sap.ui.webc.main.TimePicker.prototype.dateValue\n\t */\n\tget dateValue() {\n\t\treturn this.getFormat().parse(this._effectiveValue as string);\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"ariaRoledescription\": this.dateAriaDescription,\n\t\t\t\"ariaHasPopup\": \"dialog\",\n\t\t\t\"ariaAutoComplete\": \"none\",\n\t\t\t\"ariaControls\": `${this._id}-responsive-popover`,\n\t\t};\n\t}\n\n\tget dateAriaDescription() {\n\t\treturn TimePicker.i18nBundle.getText(TIMEPICKER_INPUT_DESCRIPTION);\n\t}\n}\n\nTimePicker.define();\n\nexport default TimePicker;\nexport type {\n\tTimePickerChangeEventDetail,\n\tTimePickerInputEventDetail,\n};\n"]}
@@ -6,7 +6,7 @@ import "@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js";
6
6
  import "@ui5/webcomponents-icons/dist/time-entry-request.js";
7
7
  import ResponsivePopover from "./ResponsivePopover.js";
8
8
  import Input from "./Input.js";
9
- import type { TimeSelectionChangeEventDetail } from "./TimeSelection.js";
9
+ import type { TimeSelectionChangeEventDetail } from "./TimePickerInternals.js";
10
10
  type TimePickerBaseChangeInputEventDetail = {
11
11
  value: string;
12
12
  valid: boolean;
@@ -25,7 +25,7 @@ import TimePickerTemplate from "./generated/templates/TimePickerTemplate.lit.js"
25
25
  import TimePickerPopoverTemplate from "./generated/templates/TimePickerPopoverTemplate.lit.js";
26
26
  import Input from "./Input.js";
27
27
  import Button from "./Button.js";
28
- import TimeSelection from "./TimeSelection.js";
28
+ import TimeSelectionClocks from "./TimeSelectionClocks.js";
29
29
  import { TIMEPICKER_SUBMIT_BUTTON, TIMEPICKER_CANCEL_BUTTON, } from "./generated/i18n/i18n-defaults.js";
30
30
  // Styles
31
31
  import TimePickerCss from "./generated/themes/TimePicker.css.js";
@@ -72,7 +72,7 @@ let TimePickerBase = TimePickerBase_1 = class TimePickerBase extends UI5Element
72
72
  return this.tempValue;
73
73
  }
74
74
  onTimeSelectionChange(e) {
75
- this.tempValue = e.detail.value; // every time the user changes the sliders -> update tempValue
75
+ this.tempValue = e.detail.value; // every time the user changes the time selection -> update tempValue
76
76
  }
77
77
  submitPickers() {
78
78
  this._updateValueAndFireEvents(this.tempValue, true, ["change", "value-changed"]);
@@ -340,7 +340,7 @@ TimePickerBase = TimePickerBase_1 = __decorate([
340
340
  dependencies: [
341
341
  Icon,
342
342
  ResponsivePopover,
343
- TimeSelection,
343
+ TimeSelectionClocks,
344
344
  Input,
345
345
  Button,
346
346
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"TimePickerBase.js","sourceRoot":"","sources":["../src/TimePickerBase.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,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,SAAS,MAAM,kDAAkD,CAAC;AACzE,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,qEAAqE,CAAC,CAAC,gCAAgC;AAC9G,OAAO,UAAU,MAAM,oDAAoD,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,6DAA6D,CAAC;AACxF,OAAO,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,YAAY,GACZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,qDAAqD,CAAC;AAC7D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,yBAAyB,MAAM,wDAAwD,CAAC;AAC/F,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,aAAa,MAAM,oBAAoB,CAA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;YACjB,aAAa;YACb,KAAK;YACL,MAAM;SACN;KACD,CAAC;IACF;;;;;;;;MAQE;;IACD,KAAK,CAAC,QAAQ,EAAE;QAChB,MAAM,EAAE;YACP,KAAK,EAAE;gBACN,IAAI,EAAE,MAAM;aACZ;YACD,KAAK,EAAE;gBACN,IAAI,EAAE,OAAO;aACb;SACD;KACD,CAAC;IAEF;;;;;;;MAOE;;IACD,KAAK,CAAC,OAAO,EAAE;QACf,MAAM,EAAE;YACP,KAAK,EAAE;gBACN,IAAI,EAAE,MAAM;aACZ;YACD,KAAK,EAAE;gBACN,IAAI,EAAE,OAAO;aACb;SACD;KACD,CAAC;GACI,cAAc,CA8XnB;AAED,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\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport \"@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js\"; // default calendar for bundling\nimport DateFormat from \"@ui5/webcomponents-localization/dist/DateFormat.js\";\nimport { fetchCldr } from \"@ui5/webcomponents-base/dist/asset-registries/LocaleData.js\";\nimport {\n\tisShow,\n\tisPageUp,\n\tisPageDown,\n\tisPageUpShift,\n\tisPageDownShift,\n\tisPageUpShiftCtrl,\n\tisPageDownShiftCtrl,\n\tisTabNext,\n\tisTabPrevious,\n\tisF6Next,\n\tisF6Previous,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport \"@ui5/webcomponents-icons/dist/time-entry-request.js\";\nimport Icon from \"./Icon.js\";\nimport ResponsivePopover from \"./ResponsivePopover.js\";\nimport TimePickerTemplate from \"./generated/templates/TimePickerTemplate.lit.js\";\nimport TimePickerPopoverTemplate from \"./generated/templates/TimePickerPopoverTemplate.lit.js\";\nimport Input from \"./Input.js\";\nimport Button from \"./Button.js\";\nimport TimeSelection from \"./TimeSelection.js\";\nimport type { TimeSelectionChangeEventDetail } from \"./TimeSelection.js\";\n\nimport {\n\tTIMEPICKER_SUBMIT_BUTTON,\n\tTIMEPICKER_CANCEL_BUTTON,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport TimePickerCss from \"./generated/themes/TimePicker.css.js\";\nimport TimePickerPopoverCss from \"./generated/themes/TimePickerPopover.css.js\";\nimport ResponsivePopoverCommonCss from \"./generated/themes/ResponsivePopoverCommon.css.js\";\n\ntype TimePickerBaseChangeInputEventDetail = {\n\tvalue: string,\n\tvalid: boolean,\n}\n\ntype TimePickerBaseChangeEventDetail = TimePickerBaseChangeInputEventDetail;\ntype TimePickerBaseInputEventDetail = TimePickerBaseChangeInputEventDetail;\n\n/**\n * @class\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.TimePickerBase\n * @extends sap.ui.webc.base.UI5Element\n * @public\n * @since 1.0.0-rc.6\n */\n@customElement({\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: TimePickerTemplate,\n\tstyles: TimePickerCss,\n\tstaticAreaTemplate: TimePickerPopoverTemplate,\n\tstaticAreaStyles: [ResponsivePopoverCommonCss, TimePickerPopoverCss],\n\tdependencies: [\n\t\tIcon,\n\t\tResponsivePopover,\n\t\tTimeSelection,\n\t\tInput,\n\t\tButton,\n\t],\n})\n/**\n * Fired when the input operation has finished by clicking the \"OK\" button or\n * when the text in the input field has changed and the focus leaves the input field.\n*\n* @event sap.ui.webc.main.TimePickerBase#change\n * @public\n * @param {string} value The submitted value.\n * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.\n*/\n@event(\"change\", {\n\tdetail: {\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t},\n\t\tvalid: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\n\n/**\n * Fired when the value of the <code>ui5-time-picker</code> is changed at each key stroke.\n *\n * @event sap.ui.webc.main.TimePickerBase#input\n * @public\n * @param {string} value The current value.\n * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.\n*/\n@event(\"input\", {\n\tdetail: {\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t},\n\t\tvalid: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\nclass TimePickerBase extends UI5Element {\n\t/**\n\t * Defines a formatted time value.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.value\n\t * @defaultvalue undefined\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tvalue?: string;\n\n\t/**\n\t * Defines the value state of the <code>ui5-time-picker</code>.\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 * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.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 * Determines whether the <code>ui5-time-picker</code> is displayed as disabled.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.disabled\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 <code>ui5-time-picker</code> is displayed as readonly.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.readonly\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\treadonly!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_isPickerOpen!: boolean;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the <code>ui5-time-picker</code>.\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 <code>ui5-time-picker</code> is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.\n\t * @type {HTMLElement}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.valueStateMessage\n\t * @since 1.0.0-rc.8\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\tvalueStateMessage!: Array<HTMLElement>;\n\n\ttempValue?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\t[TimePickerBase.i18nBundle] = await Promise.all([\n\t\t\tgetI18nBundle(\"@ui5/webcomponents\"),\n\t\t\tfetchCldr(getLocale().getLanguage(), getLocale().getRegion(), getLocale().getScript()),\n\t\t]);\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * @abstract\n\t * @protected\n\t */\n\tget _placeholder(): string | undefined {\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * @abstract\n\t * @protected\n\t */\n\tget _formatPattern(): string | undefined {\n\t\treturn undefined;\n\t}\n\n\tget _effectiveValue() {\n\t\treturn this.value;\n\t}\n\n\tget _timeSelectionValue() {\n\t\treturn this.tempValue;\n\t}\n\n\tonTimeSelectionChange(e: CustomEvent<TimeSelectionChangeEventDetail>) {\n\t\tthis.tempValue = e.detail.value; // every time the user changes the sliders -> update tempValue\n\t}\n\n\tsubmitPickers() {\n\t\tthis._updateValueAndFireEvents(this.tempValue!, true, [\"change\", \"value-changed\"]);\n\t\tthis.closePicker();\n\t}\n\n\tonResponsivePopoverAfterClose() {\n\t\tthis._isPickerOpen = false;\n\t}\n\n\tasync _handleInputClick() {\n\t\tif (this._isPickerOpen) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst inputField = await this._getInputField();\n\n\t\tif (inputField) {\n\t\t\t(inputField as HTMLInputElement).select();\n\t\t}\n\t}\n\n\t_updateValueAndFireEvents(value: string, normalizeValue: boolean, eventsNames: Array<string>) {\n\t\tif (value === this.value) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst valid = this.isValid(value);\n\t\tif (value !== undefined && valid && normalizeValue) { // if value === undefined, valid is guaranteed to be falsy\n\t\t\tvalue = this.normalizeValue(value); // transform valid values (in any format) to the correct format\n\t\t}\n\n\t\tif (!eventsNames.includes(\"input\")) {\n\t\t\tthis.value = \"\"; // Do not remove! DurationPicker (an external component extending TimePickerBase) use case -> value is 05:10, user tries 05:12, after normalization value is changed back to 05:10 so no invalidation happens, but the input still shows 05:12. Thus we enforce invalidation with the \"\"\n\t\t\tthis.value = value;\n\t\t}\n\t\tthis.tempValue = value; // if the picker is open, sync it\n\t\tthis._updateValueState(); // Change the value state to Error/None, but only if needed\n\t\teventsNames.forEach(eventName => {\n\t\t\tthis.fireEvent<TimePickerBaseChangeInputEventDetail>(eventName, { value, valid });\n\t\t});\n\t}\n\n\t_updateValueState() {\n\t\tconst isValid = this.isValid(this.value);\n\t\tif (!isValid) { // If not valid - always set Error regardless of the current value state\n\t\t\tthis.valueState = ValueState.Error;\n\t\t} else if (isValid && this.valueState === ValueState.Error) { // However if valid, change only Error (but not the others) to None\n\t\t\tthis.valueState = ValueState.None;\n\t\t}\n\t}\n\n\t_handleInputChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tthis._updateValueAndFireEvents(target.value, true, [\"change\", \"value-changed\"]);\n\t}\n\n\t_handleInputLiveChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tthis._updateValueAndFireEvents(target.value, false, [\"input\"]);\n\t}\n\n\t/**\n\t * Closes the picker\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#closePicker\n\t */\n\tasync closePicker() {\n\t\tconst responsivePopover = await this._getPopover();\n\t\tresponsivePopover.close();\n\t\tthis._isPickerOpen = false;\n\t}\n\n\t/**\n\t * Opens the picker.\n\t * @async\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#openPicker\n\t * @returns {Promise} Resolves when the picker is open\n\t */\n\tasync openPicker() {\n\t\tthis.tempValue = this.value && this.isValid(this.value) ? this.value : this.getFormat().format(new Date());\n\t\tconst responsivePopover = await this._getPopover();\n\t\tresponsivePopover.showAt(this);\n\t\tthis._isPickerOpen = true;\n\t}\n\n\ttogglePicker() {\n\t\tif (this.isOpen()) {\n\t\t\tthis.closePicker();\n\t\t} else if (this._canOpenPicker()) {\n\t\t\tthis.openPicker();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the picker is open\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#isOpen\n\t * @returns {boolean}\n\t */\n\tisOpen() {\n\t\treturn !!this._isPickerOpen;\n\t}\n\n\t_canOpenPicker() {\n\t\treturn !this.disabled && !this.readonly;\n\t}\n\n\tasync _getPopover() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\t_getInput(): Input {\n\t\treturn this.shadowRoot!.querySelector<Input>(\"[ui5-input]\")!;\n\t}\n\n\t_getInputField() {\n\t\tconst input = this._getInput();\n\t\treturn input && input.getInputDOMRef();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isShow(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis.togglePicker();\n\t\t}\n\n\t\tconst target = e.target as Node;\n\t\tif ((this._getInput().isEqualNode(target) && this.isOpen()) && (isTabNext(e) || isTabPrevious(e) || isF6Next(e) || isF6Previous(e))) {\n\t\t\tthis.closePicker();\n\t\t}\n\n\t\tif (this.isOpen()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isPageUpShiftCtrl(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"second\");\n\t\t} else if (isPageUpShift(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"minute\");\n\t\t} else if (isPageUp(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"hour\");\n\t\t} else if (isPageDownShiftCtrl(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"second\");\n\t\t} else if (isPageDownShift(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"minute\");\n\t\t} else if (isPageDown(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"hour\");\n\t\t}\n\t}\n\n\tget _isPattern() {\n\t\treturn this._formatPattern !== \"medium\" && this._formatPattern !== \"short\" && this._formatPattern !== \"long\";\n\t}\n\n\tgetFormat() {\n\t\tlet dateFormat;\n\t\tif (this._isPattern) {\n\t\t\tdateFormat = DateFormat.getDateInstance({\n\t\t\t\tpattern: this._formatPattern,\n\t\t\t});\n\t\t} else {\n\t\t\tdateFormat = DateFormat.getDateInstance({\n\t\t\t\tstyle: this._formatPattern,\n\t\t\t});\n\t\t}\n\n\t\treturn dateFormat;\n\t}\n\n\t/**\n\t * Formats a Java Script date object into a string representing a locale date and time\n\t * according to the <code>formatPattern</code> property of the TimePicker instance\n\t * @param {Date} date A Java Script date object to be formatted as string\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#formatValue\n\t * @returns {string}\n\t */\n\tformatValue(date: Date) {\n\t\treturn this.getFormat().format(date);\n\t}\n\n\t/**\n\t * Checks if a value is valid against the current <code>formatPattern</code> value.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> an empty string is considered as valid value.\n\t * @param {string} value The value to be tested against the current date format\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#isValid\n\t * @returns {boolean}\n\t */\n\tisValid(value: string | undefined) {\n\t\tif (value === \"\") {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn !!this.getFormat().parse(value as string);\n\t}\n\n\tnormalizeValue(value: string) {\n\t\tif (value === \"\") {\n\t\t\treturn value;\n\t\t}\n\n\t\treturn this.getFormat().format(this.getFormat().parse(value));\n\t}\n\n\t_modifyValueBy(amount: number, unit: string) {\n\t\tconst date = this.getFormat().parse(this._effectiveValue as string) as Date;\n\t\tif (!date) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (unit === \"hour\") {\n\t\t\tdate.setHours(date.getHours() + amount);\n\t\t} else if (unit === \"minute\") {\n\t\t\tdate.setMinutes(date.getMinutes() + amount);\n\t\t} else if (unit === \"second\") {\n\t\t\tdate.setSeconds(date.getSeconds() + amount);\n\t\t}\n\n\t\tconst newValue = this.formatValue(date);\n\t\tthis._updateValueAndFireEvents(newValue, true, [\"change\", \"value-changed\"]);\n\t}\n\n\t/**\n\t *\n\t * @param {event} e Wheel Event\n\t * @private\n\t *\n\t * The listener for this event can't be passive as it calls preventDefault()\n\t */\n\t_handleWheel(e: WheelEvent) {\n\t\te.preventDefault();\n\t}\n\n\tget submitButtonLabel() {\n\t\treturn TimePickerBase.i18nBundle.getText(TIMEPICKER_SUBMIT_BUTTON);\n\t}\n\n\tget cancelButtonLabel() {\n\t\treturn TimePickerBase.i18nBundle.getText(TIMEPICKER_CANCEL_BUTTON);\n\t}\n\n\t/**\n\t * @protected\n\t */\n\tget openIconName() {\n\t\treturn \"time-entry-request\";\n\t}\n}\n\nexport default TimePickerBase;\nexport type {\n\tTimeSelectionChangeEventDetail,\n\tTimePickerBaseChangeEventDetail,\n\tTimePickerBaseInputEventDetail,\n};\n"]}
1
+ {"version":3,"file":"TimePickerBase.js","sourceRoot":"","sources":["../src/TimePickerBase.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,O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E;gBACN,IAAI,EAAE,MAAM;aACZ;YACD,KAAK,EAAE;gBACN,IAAI,EAAE,OAAO;aACb;SACD;KACD,CAAC;GACI,cAAc,CA8XnB;AAED,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\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport getLocale from \"@ui5/webcomponents-base/dist/locale/getLocale.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport \"@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js\"; // default calendar for bundling\nimport DateFormat from \"@ui5/webcomponents-localization/dist/DateFormat.js\";\nimport { fetchCldr } from \"@ui5/webcomponents-base/dist/asset-registries/LocaleData.js\";\nimport {\n\tisShow,\n\tisPageUp,\n\tisPageDown,\n\tisPageUpShift,\n\tisPageDownShift,\n\tisPageUpShiftCtrl,\n\tisPageDownShiftCtrl,\n\tisTabNext,\n\tisTabPrevious,\n\tisF6Next,\n\tisF6Previous,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport \"@ui5/webcomponents-icons/dist/time-entry-request.js\";\nimport Icon from \"./Icon.js\";\nimport ResponsivePopover from \"./ResponsivePopover.js\";\nimport TimePickerTemplate from \"./generated/templates/TimePickerTemplate.lit.js\";\nimport TimePickerPopoverTemplate from \"./generated/templates/TimePickerPopoverTemplate.lit.js\";\nimport Input from \"./Input.js\";\nimport Button from \"./Button.js\";\nimport TimeSelectionClocks from \"./TimeSelectionClocks.js\";\nimport type { TimeSelectionChangeEventDetail } from \"./TimePickerInternals.js\";\n\nimport {\n\tTIMEPICKER_SUBMIT_BUTTON,\n\tTIMEPICKER_CANCEL_BUTTON,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport TimePickerCss from \"./generated/themes/TimePicker.css.js\";\nimport TimePickerPopoverCss from \"./generated/themes/TimePickerPopover.css.js\";\nimport ResponsivePopoverCommonCss from \"./generated/themes/ResponsivePopoverCommon.css.js\";\n\ntype TimePickerBaseChangeInputEventDetail = {\n\tvalue: string,\n\tvalid: boolean,\n}\n\ntype TimePickerBaseChangeEventDetail = TimePickerBaseChangeInputEventDetail;\ntype TimePickerBaseInputEventDetail = TimePickerBaseChangeInputEventDetail;\n\n/**\n * @class\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.TimePickerBase\n * @extends sap.ui.webc.base.UI5Element\n * @public\n * @since 1.0.0-rc.6\n */\n@customElement({\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: TimePickerTemplate,\n\tstyles: TimePickerCss,\n\tstaticAreaTemplate: TimePickerPopoverTemplate,\n\tstaticAreaStyles: [ResponsivePopoverCommonCss, TimePickerPopoverCss],\n\tdependencies: [\n\t\tIcon,\n\t\tResponsivePopover,\n\t\tTimeSelectionClocks,\n\t\tInput,\n\t\tButton,\n\t],\n})\n/**\n * Fired when the input operation has finished by clicking the \"OK\" button or\n * when the text in the input field has changed and the focus leaves the input field.\n*\n* @event sap.ui.webc.main.TimePickerBase#change\n * @public\n * @param {string} value The submitted value.\n * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.\n*/\n@event(\"change\", {\n\tdetail: {\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t},\n\t\tvalid: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\n\n/**\n * Fired when the value of the <code>ui5-time-picker</code> is changed at each key stroke.\n *\n * @event sap.ui.webc.main.TimePickerBase#input\n * @public\n * @param {string} value The current value.\n * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.\n*/\n@event(\"input\", {\n\tdetail: {\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t},\n\t\tvalid: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\nclass TimePickerBase extends UI5Element {\n\t/**\n\t * Defines a formatted time value.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.value\n\t * @defaultvalue undefined\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ defaultValue: undefined })\n\tvalue?: string;\n\n\t/**\n\t * Defines the value state of the <code>ui5-time-picker</code>.\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 * @type {sap.ui.webc.base.types.ValueState}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.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 * Determines whether the <code>ui5-time-picker</code> is displayed as disabled.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.disabled\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 <code>ui5-time-picker</code> is displayed as readonly.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.readonly\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\treadonly!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_isPickerOpen!: boolean;\n\n\t/**\n\t * Defines the value state message that will be displayed as pop up under the <code>ui5-time-picker</code>.\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 <code>ui5-time-picker</code> is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.\n\t * @type {HTMLElement}\n\t * @name sap.ui.webc.main.TimePickerBase.prototype.valueStateMessage\n\t * @since 1.0.0-rc.8\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\tvalueStateMessage!: Array<HTMLElement>;\n\n\ttempValue?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\t[TimePickerBase.i18nBundle] = await Promise.all([\n\t\t\tgetI18nBundle(\"@ui5/webcomponents\"),\n\t\t\tfetchCldr(getLocale().getLanguage(), getLocale().getRegion(), getLocale().getScript()),\n\t\t]);\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * @abstract\n\t * @protected\n\t */\n\tget _placeholder(): string | undefined {\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * @abstract\n\t * @protected\n\t */\n\tget _formatPattern(): string | undefined {\n\t\treturn undefined;\n\t}\n\n\tget _effectiveValue() {\n\t\treturn this.value;\n\t}\n\n\tget _timeSelectionValue() {\n\t\treturn this.tempValue;\n\t}\n\n\tonTimeSelectionChange(e: CustomEvent<TimeSelectionChangeEventDetail>) {\n\t\tthis.tempValue = e.detail.value; // every time the user changes the time selection -> update tempValue\n\t}\n\n\tsubmitPickers() {\n\t\tthis._updateValueAndFireEvents(this.tempValue!, true, [\"change\", \"value-changed\"]);\n\t\tthis.closePicker();\n\t}\n\n\tonResponsivePopoverAfterClose() {\n\t\tthis._isPickerOpen = false;\n\t}\n\n\tasync _handleInputClick() {\n\t\tif (this._isPickerOpen) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst inputField = await this._getInputField();\n\n\t\tif (inputField) {\n\t\t\t(inputField as HTMLInputElement).select();\n\t\t}\n\t}\n\n\t_updateValueAndFireEvents(value: string, normalizeValue: boolean, eventsNames: Array<string>) {\n\t\tif (value === this.value) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst valid = this.isValid(value);\n\t\tif (value !== undefined && valid && normalizeValue) { // if value === undefined, valid is guaranteed to be falsy\n\t\t\tvalue = this.normalizeValue(value); // transform valid values (in any format) to the correct format\n\t\t}\n\n\t\tif (!eventsNames.includes(\"input\")) {\n\t\t\tthis.value = \"\"; // Do not remove! DurationPicker (an external component extending TimePickerBase) use case -> value is 05:10, user tries 05:12, after normalization value is changed back to 05:10 so no invalidation happens, but the input still shows 05:12. Thus we enforce invalidation with the \"\"\n\t\t\tthis.value = value;\n\t\t}\n\t\tthis.tempValue = value; // if the picker is open, sync it\n\t\tthis._updateValueState(); // Change the value state to Error/None, but only if needed\n\t\teventsNames.forEach(eventName => {\n\t\t\tthis.fireEvent<TimePickerBaseChangeInputEventDetail>(eventName, { value, valid });\n\t\t});\n\t}\n\n\t_updateValueState() {\n\t\tconst isValid = this.isValid(this.value);\n\t\tif (!isValid) { // If not valid - always set Error regardless of the current value state\n\t\t\tthis.valueState = ValueState.Error;\n\t\t} else if (isValid && this.valueState === ValueState.Error) { // However if valid, change only Error (but not the others) to None\n\t\t\tthis.valueState = ValueState.None;\n\t\t}\n\t}\n\n\t_handleInputChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tthis._updateValueAndFireEvents(target.value, true, [\"change\", \"value-changed\"]);\n\t}\n\n\t_handleInputLiveChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tthis._updateValueAndFireEvents(target.value, false, [\"input\"]);\n\t}\n\n\t/**\n\t * Closes the picker\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#closePicker\n\t */\n\tasync closePicker() {\n\t\tconst responsivePopover = await this._getPopover();\n\t\tresponsivePopover.close();\n\t\tthis._isPickerOpen = false;\n\t}\n\n\t/**\n\t * Opens the picker.\n\t * @async\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#openPicker\n\t * @returns {Promise} Resolves when the picker is open\n\t */\n\tasync openPicker() {\n\t\tthis.tempValue = this.value && this.isValid(this.value) ? this.value : this.getFormat().format(new Date());\n\t\tconst responsivePopover = await this._getPopover();\n\t\tresponsivePopover.showAt(this);\n\t\tthis._isPickerOpen = true;\n\t}\n\n\ttogglePicker() {\n\t\tif (this.isOpen()) {\n\t\t\tthis.closePicker();\n\t\t} else if (this._canOpenPicker()) {\n\t\t\tthis.openPicker();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the picker is open\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#isOpen\n\t * @returns {boolean}\n\t */\n\tisOpen() {\n\t\treturn !!this._isPickerOpen;\n\t}\n\n\t_canOpenPicker() {\n\t\treturn !this.disabled && !this.readonly;\n\t}\n\n\tasync _getPopover() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\t_getInput(): Input {\n\t\treturn this.shadowRoot!.querySelector<Input>(\"[ui5-input]\")!;\n\t}\n\n\t_getInputField() {\n\t\tconst input = this._getInput();\n\t\treturn input && input.getInputDOMRef();\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isShow(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis.togglePicker();\n\t\t}\n\n\t\tconst target = e.target as Node;\n\t\tif ((this._getInput().isEqualNode(target) && this.isOpen()) && (isTabNext(e) || isTabPrevious(e) || isF6Next(e) || isF6Previous(e))) {\n\t\t\tthis.closePicker();\n\t\t}\n\n\t\tif (this.isOpen()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isPageUpShiftCtrl(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"second\");\n\t\t} else if (isPageUpShift(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"minute\");\n\t\t} else if (isPageUp(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(1, \"hour\");\n\t\t} else if (isPageDownShiftCtrl(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"second\");\n\t\t} else if (isPageDownShift(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"minute\");\n\t\t} else if (isPageDown(e)) {\n\t\t\te.preventDefault();\n\t\t\tthis._modifyValueBy(-1, \"hour\");\n\t\t}\n\t}\n\n\tget _isPattern() {\n\t\treturn this._formatPattern !== \"medium\" && this._formatPattern !== \"short\" && this._formatPattern !== \"long\";\n\t}\n\n\tgetFormat() {\n\t\tlet dateFormat;\n\t\tif (this._isPattern) {\n\t\t\tdateFormat = DateFormat.getDateInstance({\n\t\t\t\tpattern: this._formatPattern,\n\t\t\t});\n\t\t} else {\n\t\t\tdateFormat = DateFormat.getDateInstance({\n\t\t\t\tstyle: this._formatPattern,\n\t\t\t});\n\t\t}\n\n\t\treturn dateFormat;\n\t}\n\n\t/**\n\t * Formats a Java Script date object into a string representing a locale date and time\n\t * according to the <code>formatPattern</code> property of the TimePicker instance\n\t * @param {Date} date A Java Script date object to be formatted as string\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#formatValue\n\t * @returns {string}\n\t */\n\tformatValue(date: Date) {\n\t\treturn this.getFormat().format(date);\n\t}\n\n\t/**\n\t * Checks if a value is valid against the current <code>formatPattern</code> value.\n\t *\n\t * <br><br>\n\t * <b>Note:</b> an empty string is considered as valid value.\n\t * @param {string} value The value to be tested against the current date format\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.TimePickerBase#isValid\n\t * @returns {boolean}\n\t */\n\tisValid(value: string | undefined) {\n\t\tif (value === \"\") {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn !!this.getFormat().parse(value as string);\n\t}\n\n\tnormalizeValue(value: string) {\n\t\tif (value === \"\") {\n\t\t\treturn value;\n\t\t}\n\n\t\treturn this.getFormat().format(this.getFormat().parse(value));\n\t}\n\n\t_modifyValueBy(amount: number, unit: string) {\n\t\tconst date = this.getFormat().parse(this._effectiveValue as string) as Date;\n\t\tif (!date) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (unit === \"hour\") {\n\t\t\tdate.setHours(date.getHours() + amount);\n\t\t} else if (unit === \"minute\") {\n\t\t\tdate.setMinutes(date.getMinutes() + amount);\n\t\t} else if (unit === \"second\") {\n\t\t\tdate.setSeconds(date.getSeconds() + amount);\n\t\t}\n\n\t\tconst newValue = this.formatValue(date);\n\t\tthis._updateValueAndFireEvents(newValue, true, [\"change\", \"value-changed\"]);\n\t}\n\n\t/**\n\t *\n\t * @param {event} e Wheel Event\n\t * @private\n\t *\n\t * The listener for this event can't be passive as it calls preventDefault()\n\t */\n\t_handleWheel(e: WheelEvent) {\n\t\te.preventDefault();\n\t}\n\n\tget submitButtonLabel() {\n\t\treturn TimePickerBase.i18nBundle.getText(TIMEPICKER_SUBMIT_BUTTON);\n\t}\n\n\tget cancelButtonLabel() {\n\t\treturn TimePickerBase.i18nBundle.getText(TIMEPICKER_CANCEL_BUTTON);\n\t}\n\n\t/**\n\t * @protected\n\t */\n\tget openIconName() {\n\t\treturn \"time-entry-request\";\n\t}\n}\n\nexport default TimePickerBase;\nexport type {\n\tTimeSelectionChangeEventDetail,\n\tTimePickerBaseChangeEventDetail,\n\tTimePickerBaseInputEventDetail,\n};\n"]}