@ui5/webcomponents 1.9.3 → 1.10.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 (1155) hide show
  1. package/CHANGELOG.md +0 -8
  2. package/dist/Avatar.d.ts +251 -0
  3. package/dist/Avatar.js +203 -406
  4. package/dist/Avatar.js.map +1 -0
  5. package/dist/AvatarGroup.js +8 -8
  6. package/dist/Badge.d.ts +82 -0
  7. package/dist/Badge.js +65 -117
  8. package/dist/Badge.js.map +1 -0
  9. package/dist/Breadcrumbs.d.ts +200 -0
  10. package/dist/Breadcrumbs.js +438 -584
  11. package/dist/Breadcrumbs.js.map +1 -0
  12. package/dist/BreadcrumbsItem.d.ts +73 -0
  13. package/dist/BreadcrumbsItem.js +33 -87
  14. package/dist/BreadcrumbsItem.js.map +1 -0
  15. package/dist/BusyIndicator.js +6 -7
  16. package/dist/Button.d.ts +257 -0
  17. package/dist/Button.js +236 -456
  18. package/dist/Button.js.map +1 -0
  19. package/dist/Calendar.d.ts +251 -0
  20. package/dist/Calendar.js +266 -350
  21. package/dist/Calendar.js.map +1 -0
  22. package/dist/CalendarDate.d.ts +28 -0
  23. package/dist/CalendarDate.js +20 -30
  24. package/dist/CalendarDate.js.map +1 -0
  25. package/dist/CalendarHeader.d.ts +87 -0
  26. package/dist/CalendarHeader.js +144 -198
  27. package/dist/CalendarHeader.js.map +1 -0
  28. package/dist/CalendarPart.d.ts +53 -0
  29. package/dist/CalendarPart.js +71 -92
  30. package/dist/CalendarPart.js.map +1 -0
  31. package/dist/Card.d.ts +91 -0
  32. package/dist/Card.js +68 -123
  33. package/dist/Card.js.map +1 -0
  34. package/dist/CardHeader.d.ts +123 -0
  35. package/dist/CardHeader.js +152 -240
  36. package/dist/CardHeader.js.map +1 -0
  37. package/dist/Carousel.js +33 -11
  38. package/dist/CheckBox.d.ts +256 -0
  39. package/dist/CheckBox.js +219 -410
  40. package/dist/CheckBox.js.map +1 -0
  41. package/dist/ColorPalette.d.ts +140 -0
  42. package/dist/ColorPalette.js +362 -455
  43. package/dist/ColorPalette.js.map +1 -0
  44. package/dist/ColorPaletteItem.d.ts +68 -0
  45. package/dist/ColorPaletteItem.js +66 -114
  46. package/dist/ColorPaletteItem.js.map +1 -0
  47. package/dist/ColorPalettePopover.d.ts +127 -0
  48. package/dist/ColorPalettePopover.js +144 -203
  49. package/dist/ColorPalettePopover.js.map +1 -0
  50. package/dist/ColorPicker.d.ts +147 -0
  51. package/dist/ColorPicker.js +371 -556
  52. package/dist/ColorPicker.js.map +1 -0
  53. package/dist/ComboBox.js +9 -9
  54. package/dist/ComboBoxGroupItem.js +6 -6
  55. package/dist/ComboBoxItem.js +4 -4
  56. package/dist/CustomListItem.d.ts +44 -0
  57. package/dist/CustomListItem.js +52 -79
  58. package/dist/CustomListItem.js.map +1 -0
  59. package/dist/DateComponentBase.d.ts +83 -0
  60. package/dist/DateComponentBase.js +101 -143
  61. package/dist/DateComponentBase.js.map +1 -0
  62. package/dist/DatePicker.d.ts +452 -0
  63. package/dist/DatePicker.js +540 -737
  64. package/dist/DatePicker.js.map +1 -0
  65. package/dist/DateRangePicker.d.ts +169 -0
  66. package/dist/DateRangePicker.js +269 -315
  67. package/dist/DateRangePicker.js.map +1 -0
  68. package/dist/DateTimePicker.d.ts +207 -0
  69. package/dist/DateTimePicker.js +254 -339
  70. package/dist/DateTimePicker.js.map +1 -0
  71. package/dist/DayPicker.d.ts +243 -0
  72. package/dist/DayPicker.js +605 -730
  73. package/dist/DayPicker.js.map +1 -0
  74. package/dist/Dialog.d.ts +238 -0
  75. package/dist/Dialog.js +380 -606
  76. package/dist/Dialog.js.map +1 -0
  77. package/dist/DurationPicker.js +5 -5
  78. package/dist/FileUploader.d.ts +238 -0
  79. package/dist/FileUploader.js +305 -489
  80. package/dist/FileUploader.js.map +1 -0
  81. package/dist/Filters.d.ts +5 -0
  82. package/dist/Filters.js +10 -21
  83. package/dist/Filters.js.map +1 -0
  84. package/dist/GroupHeaderListItem.d.ts +45 -0
  85. package/dist/GroupHeaderListItem.js +42 -76
  86. package/dist/GroupHeaderListItem.js.map +1 -0
  87. package/dist/Icon.d.ts +252 -0
  88. package/dist/Icon.js +179 -306
  89. package/dist/Icon.js.map +1 -0
  90. package/dist/Input.d.ts +607 -0
  91. package/dist/Input.js +1095 -1627
  92. package/dist/Input.js.map +1 -0
  93. package/dist/Interfaces.d.ts +161 -0
  94. package/dist/Interfaces.js +45 -85
  95. package/dist/Interfaces.js.map +1 -0
  96. package/dist/Label.d.ts +98 -0
  97. package/dist/Label.js +63 -124
  98. package/dist/Label.js.map +1 -0
  99. package/dist/Link.d.ts +222 -0
  100. package/dist/Link.js +177 -358
  101. package/dist/Link.js.map +1 -0
  102. package/dist/List.d.ts +383 -0
  103. package/dist/List.js +706 -1029
  104. package/dist/List.js.map +1 -0
  105. package/dist/ListItem.d.ts +201 -0
  106. package/dist/ListItem.js +298 -407
  107. package/dist/ListItem.js.map +1 -0
  108. package/dist/ListItemBase.d.ts +61 -0
  109. package/dist/ListItemBase.js +114 -167
  110. package/dist/ListItemBase.js.map +1 -0
  111. package/dist/Menu.d.ts +187 -0
  112. package/dist/Menu.js +428 -453
  113. package/dist/Menu.js.map +1 -0
  114. package/dist/MenuItem.d.ts +124 -0
  115. package/dist/MenuItem.js +66 -166
  116. package/dist/MenuItem.js.map +1 -0
  117. package/dist/MessageStrip.d.ts +135 -0
  118. package/dist/MessageStrip.js +119 -207
  119. package/dist/MessageStrip.js.map +1 -0
  120. package/dist/MonthPicker.d.ts +109 -0
  121. package/dist/MonthPicker.js +260 -285
  122. package/dist/MonthPicker.js.map +1 -0
  123. package/dist/MultiComboBox.js +13 -11
  124. package/dist/MultiComboBoxGroupItem.js +6 -6
  125. package/dist/MultiComboBoxItem.js +4 -4
  126. package/dist/MultiInput.js +13 -10
  127. package/dist/Option.js +6 -6
  128. package/dist/Panel.d.ts +238 -0
  129. package/dist/Panel.js +230 -405
  130. package/dist/Panel.js.map +1 -0
  131. package/dist/Popover.d.ts +332 -0
  132. package/dist/Popover.js +520 -766
  133. package/dist/Popover.js.map +1 -0
  134. package/dist/Popup.d.ts +293 -0
  135. package/dist/Popup.js +404 -576
  136. package/dist/Popup.js.map +1 -0
  137. package/dist/ProgressIndicator.d.ts +121 -0
  138. package/dist/ProgressIndicator.js +121 -207
  139. package/dist/ProgressIndicator.js.map +1 -0
  140. package/dist/RadioButton.js +7 -8
  141. package/dist/RadioButtonGroup.js +1 -1
  142. package/dist/RangeSlider.d.ts +363 -0
  143. package/dist/RangeSlider.js +682 -757
  144. package/dist/RangeSlider.js.map +1 -0
  145. package/dist/RatingIndicator.js +7 -7
  146. package/dist/ResponsivePopover.d.ts +108 -0
  147. package/dist/ResponsivePopover.js +148 -174
  148. package/dist/ResponsivePopover.js.map +1 -0
  149. package/dist/SegmentedButton.js +24 -11
  150. package/dist/SegmentedButtonItem.js +5 -5
  151. package/dist/Select.js +8 -8
  152. package/dist/Slider.d.ts +163 -0
  153. package/dist/Slider.js +241 -261
  154. package/dist/Slider.js.map +1 -0
  155. package/dist/SliderBase.d.ts +357 -0
  156. package/dist/SliderBase.js +588 -794
  157. package/dist/SliderBase.js.map +1 -0
  158. package/dist/SplitButton.d.ts +220 -0
  159. package/dist/SplitButton.js +211 -382
  160. package/dist/SplitButton.js.map +1 -0
  161. package/dist/StandardListItem.d.ts +158 -0
  162. package/dist/StandardListItem.js +79 -174
  163. package/dist/StandardListItem.js.map +1 -0
  164. package/dist/StepInput.d.ts +301 -0
  165. package/dist/StepInput.js +378 -615
  166. package/dist/StepInput.js.map +1 -0
  167. package/dist/SuggestionGroupItem.d.ts +35 -0
  168. package/dist/SuggestionGroupItem.js +35 -51
  169. package/dist/SuggestionGroupItem.js.map +1 -0
  170. package/dist/SuggestionItem.d.ts +104 -0
  171. package/dist/SuggestionItem.js +49 -131
  172. package/dist/SuggestionItem.js.map +1 -0
  173. package/dist/SuggestionListItem.d.ts +47 -0
  174. package/dist/SuggestionListItem.js +38 -52
  175. package/dist/SuggestionListItem.js.map +1 -0
  176. package/dist/Switch.d.ts +167 -0
  177. package/dist/Switch.js +136 -251
  178. package/dist/Switch.js.map +1 -0
  179. package/dist/Tab.js +13 -8
  180. package/dist/TabContainer.js +21 -20
  181. package/dist/TabSeparator.js +3 -3
  182. package/dist/Table.d.ts +426 -0
  183. package/dist/Table.js +792 -1107
  184. package/dist/Table.js.map +1 -0
  185. package/dist/TableCell.d.ts +51 -0
  186. package/dist/TableCell.js +43 -60
  187. package/dist/TableCell.js.map +1 -0
  188. package/dist/TableColumn.d.ts +101 -0
  189. package/dist/TableColumn.js +53 -99
  190. package/dist/TableColumn.js.map +1 -0
  191. package/dist/TableGroupRow.d.ts +79 -0
  192. package/dist/TableGroupRow.js +97 -134
  193. package/dist/TableGroupRow.js.map +1 -0
  194. package/dist/TableRow.d.ts +160 -0
  195. package/dist/TableRow.js +315 -429
  196. package/dist/TableRow.js.map +1 -0
  197. package/dist/TextArea.js +11 -11
  198. package/dist/TimePicker.d.ts +116 -0
  199. package/dist/TimePicker.js +61 -96
  200. package/dist/TimePicker.js.map +1 -0
  201. package/dist/TimePickerBase.d.ts +188 -0
  202. package/dist/TimePickerBase.js +350 -453
  203. package/dist/TimePickerBase.js.map +1 -0
  204. package/dist/TimeSelection.d.ts +162 -0
  205. package/dist/TimeSelection.js +358 -468
  206. package/dist/TimeSelection.js.map +1 -0
  207. package/dist/Title.d.ts +69 -0
  208. package/dist/Title.js +62 -105
  209. package/dist/Title.js.map +1 -0
  210. package/dist/Toast.js +6 -6
  211. package/dist/ToggleButton.js +3 -4
  212. package/dist/Token.js +24 -7
  213. package/dist/Tokenizer.js +12 -8
  214. package/dist/Tree.js +28 -14
  215. package/dist/TreeItem.js +5 -5
  216. package/dist/TreeItemBase.js +12 -13
  217. package/dist/TreeItemCustom.js +5 -5
  218. package/dist/TreeList.js +9 -4
  219. package/dist/WheelSlider.d.ts +122 -0
  220. package/dist/WheelSlider.js +302 -410
  221. package/dist/WheelSlider.js.map +1 -0
  222. package/dist/YearPicker.d.ts +105 -0
  223. package/dist/YearPicker.js +298 -328
  224. package/dist/YearPicker.js.map +1 -0
  225. package/dist/api.json +1 -1
  226. package/dist/assets/HT-1000.59a0ea5a.jpg +0 -0
  227. package/dist/assets/HT-1010.7b05e4f5.jpg +0 -0
  228. package/dist/assets/HT-1022.6fa171f0.jpg +0 -0
  229. package/dist/assets/ar.76457d6b.js +1 -0
  230. package/dist/assets/ar_EG.facab575.js +1 -0
  231. package/dist/assets/ar_SA.037c760a.js +1 -0
  232. package/dist/assets/bg.eb54e36a.js +1 -0
  233. package/dist/assets/ca.1047c043.js +1 -0
  234. package/dist/assets/cs.47109072.js +1 -0
  235. package/dist/assets/da.1562c279.js +1 -0
  236. package/dist/assets/de.3397b9d2.js +1 -0
  237. package/dist/assets/de_AT.fb777626.js +1 -0
  238. package/dist/assets/de_CH.c4011bf2.js +1 -0
  239. package/dist/assets/el.52a181c7.js +1 -0
  240. package/dist/assets/el_CY.065e8a48.js +1 -0
  241. package/dist/assets/en.8b571af2.js +1 -0
  242. package/dist/assets/en_AU.29f5e0e2.js +1 -0
  243. package/dist/assets/en_GB.b0afb274.js +1 -0
  244. package/dist/assets/en_HK.188c8a39.js +1 -0
  245. package/dist/assets/en_IE.b52bdf4f.js +1 -0
  246. package/dist/assets/en_IN.5925f501.js +1 -0
  247. package/dist/assets/en_NZ.adc1b6af.js +1 -0
  248. package/dist/assets/en_PG.2e475ab9.js +1 -0
  249. package/dist/assets/en_SG.400dc7e5.js +1 -0
  250. package/dist/assets/en_ZA.06de0b73.js +1 -0
  251. package/dist/assets/es.d137c08c.js +1 -0
  252. package/dist/assets/es_AR.a719c078.js +1 -0
  253. package/dist/assets/es_BO.ba051d49.js +1 -0
  254. package/dist/assets/es_CL.876855d2.js +1 -0
  255. package/dist/assets/es_CO.51c37c4d.js +1 -0
  256. package/dist/assets/es_MX.c11d012e.js +1 -0
  257. package/dist/assets/es_PE.1a5de4db.js +1 -0
  258. package/dist/assets/es_UY.29036823.js +1 -0
  259. package/dist/assets/es_VE.22e2164a.js +1 -0
  260. package/dist/assets/et.d802827f.js +1 -0
  261. package/dist/assets/fa.59b6aa5f.js +1 -0
  262. package/dist/assets/fi.2cc79303.js +1 -0
  263. package/dist/assets/fr.055c2d0d.js +1 -0
  264. package/dist/assets/fr_BE.79a4448b.js +1 -0
  265. package/dist/assets/fr_CA.0c4a98e4.js +1 -0
  266. package/dist/assets/fr_CH.ba0db8bd.js +1 -0
  267. package/dist/assets/fr_LU.21a6bcea.js +1 -0
  268. package/dist/assets/he.e187c6df.js +1 -0
  269. package/dist/assets/hi.cb35adb1.js +1 -0
  270. package/dist/assets/hr.24bc905c.js +1 -0
  271. package/dist/assets/hu.aadbd74c.js +1 -0
  272. package/dist/assets/id.b9bd26e5.js +1 -0
  273. package/dist/assets/it.36ffae4a.js +1 -0
  274. package/dist/assets/{it.bcf089f4.js → it_CH.7ef1e2bf.js} +1 -1
  275. package/dist/assets/ja.a08af783.js +1 -0
  276. package/dist/assets/kk.5d3dddbe.js +1 -0
  277. package/dist/assets/ko.264fdf35.js +1 -0
  278. package/dist/assets/lt.b967d42b.js +1 -0
  279. package/dist/assets/lv.9c0f8206.js +1 -0
  280. package/dist/assets/{messagebundle_ar.dec7510d.js → messagebundle_ar.7f1e385c.js} +1 -1
  281. package/dist/assets/{messagebundle_bg.39183011.js → messagebundle_bg.67505cb7.js} +1 -1
  282. package/dist/assets/messagebundle_ca.64fb370c.js +1 -0
  283. package/dist/assets/messagebundle_cs.ce8b8a69.js +1 -0
  284. package/dist/assets/messagebundle_cy.3dad0e1d.js +1 -0
  285. package/dist/assets/messagebundle_da.ff79429b.js +1 -0
  286. package/dist/assets/messagebundle_de.e9f4d979.js +1 -0
  287. package/dist/assets/{messagebundle_el.d41a6312.js → messagebundle_el.50666070.js} +1 -1
  288. package/dist/assets/messagebundle_en.edda053c.js +1 -0
  289. package/dist/assets/messagebundle_en_GB.9eb5f8cf.js +1 -0
  290. package/dist/assets/{messagebundle_en_US_sappsd.86cc73b7.js → messagebundle_en_US_sappsd.c97ca89f.js} +1 -1
  291. package/dist/assets/{messagebundle_en_US_saprigi.a7b06ef5.js → messagebundle_en_US_saprigi.d0b577b7.js} +1 -1
  292. package/dist/assets/messagebundle_en_US_saptrc.7da9b71b.js +1 -0
  293. package/dist/assets/messagebundle_es.3b0d6da4.js +1 -0
  294. package/dist/assets/messagebundle_es_MX.da0228db.js +1 -0
  295. package/dist/assets/messagebundle_et.2cfc3295.js +1 -0
  296. package/dist/assets/messagebundle_fi.f62f59fc.js +1 -0
  297. package/dist/assets/messagebundle_fr.7d7c418f.js +1 -0
  298. package/dist/assets/messagebundle_fr_CA.a4592fb9.js +1 -0
  299. package/dist/assets/{messagebundle_hi.b968aad6.js → messagebundle_hi.2f3db639.js} +1 -1
  300. package/dist/assets/messagebundle_hr.f8282341.js +1 -0
  301. package/dist/assets/messagebundle_hu.2589bdb3.js +1 -0
  302. package/dist/assets/messagebundle_it.146c4b3c.js +1 -0
  303. package/dist/assets/messagebundle_iw.2766f5a1.js +1 -0
  304. package/dist/assets/messagebundle_ja.b0b6d3d0.js +1 -0
  305. package/dist/assets/{messagebundle_kk.24effffd.js → messagebundle_kk.f9132ede.js} +1 -1
  306. package/dist/assets/messagebundle_ko.d23a9de8.js +1 -0
  307. package/dist/assets/messagebundle_lt.e2f6f5b0.js +1 -0
  308. package/dist/assets/messagebundle_lv.6b0ad93c.js +1 -0
  309. package/dist/assets/messagebundle_ms.8d8ac7f1.js +1 -0
  310. package/dist/assets/messagebundle_nl.1bb5da42.js +1 -0
  311. package/dist/assets/messagebundle_no.c7ee6784.js +1 -0
  312. package/dist/assets/messagebundle_pl.0d1b3dd1.js +1 -0
  313. package/dist/assets/messagebundle_pt.33ff9d42.js +1 -0
  314. package/dist/assets/messagebundle_pt_PT.a91f6468.js +1 -0
  315. package/dist/assets/messagebundle_ro.bd2e01e0.js +1 -0
  316. package/dist/assets/{messagebundle_ru.e7ffdb7d.js → messagebundle_ru.388e4272.js} +1 -1
  317. package/dist/assets/messagebundle_sh.122ca47b.js +1 -0
  318. package/dist/assets/messagebundle_sk.66d70983.js +1 -0
  319. package/dist/assets/messagebundle_sl.3f1a077f.js +1 -0
  320. package/dist/assets/messagebundle_sv.71f16a40.js +1 -0
  321. package/dist/assets/{messagebundle_th.4f145df6.js → messagebundle_th.700d6a4a.js} +1 -1
  322. package/dist/assets/messagebundle_tr.6f267da9.js +1 -0
  323. package/dist/assets/{messagebundle_uk.fc20aaae.js → messagebundle_uk.52e9f0c8.js} +1 -1
  324. package/dist/assets/messagebundle_vi.e9fe4caa.js +1 -0
  325. package/dist/assets/messagebundle_zh_CN.8ff0766b.js +1 -0
  326. package/dist/assets/messagebundle_zh_TW.25b49650.js +1 -0
  327. package/dist/assets/ms.5a523fbe.js +1 -0
  328. package/dist/assets/nb.6e98bbca.js +1 -0
  329. package/dist/assets/nl.84e9e6df.js +1 -0
  330. package/dist/assets/nl_BE.0f374ea5.js +1 -0
  331. package/dist/assets/parameters-bundle.css.09fdcedf.js +1 -0
  332. package/dist/assets/parameters-bundle.css.0c16556f.js +1 -0
  333. package/dist/assets/parameters-bundle.css.1d5159c7.js +1 -0
  334. package/dist/assets/parameters-bundle.css.3d586108.js +1 -0
  335. package/dist/assets/parameters-bundle.css.3fe96be2.js +1 -0
  336. package/dist/assets/parameters-bundle.css.44ff7825.js +1 -0
  337. package/dist/assets/parameters-bundle.css.58325286.js +1 -0
  338. package/dist/assets/parameters-bundle.css.5c29069a.js +1 -0
  339. package/dist/assets/parameters-bundle.css.759ff23e.js +1 -0
  340. package/dist/assets/parameters-bundle.css.7ad77620.js +1 -0
  341. package/dist/assets/parameters-bundle.css.ab7cc9c4.js +1 -0
  342. package/dist/assets/parameters-bundle.css.e7002fc1.js +1 -0
  343. package/dist/assets/pl.c8acba9e.js +1 -0
  344. package/dist/assets/pt.676d5650.js +1 -0
  345. package/dist/assets/pt_PT.0bbc2da6.js +1 -0
  346. package/dist/assets/ro.10993af2.js +1 -0
  347. package/dist/assets/ru.4aba168e.js +1 -0
  348. package/dist/assets/ru_UA.334d6613.js +1 -0
  349. package/dist/assets/sk.3183c85e.js +1 -0
  350. package/dist/assets/sl.edad6042.js +1 -0
  351. package/dist/assets/sr.3e293379.js +1 -0
  352. package/dist/assets/sr_Latn.0f4a03c3.js +1 -0
  353. package/dist/assets/sv.e76e14e4.js +1 -0
  354. package/dist/assets/th.f5491ec1.js +1 -0
  355. package/dist/assets/tr.3b838818.js +1 -0
  356. package/dist/assets/uk.ebbd81a0.js +1 -0
  357. package/dist/assets/vi.87616fa0.js +1 -0
  358. package/dist/assets/zh_CN.de478ef9.js +1 -0
  359. package/dist/assets/zh_HK.834c3161.js +1 -0
  360. package/dist/assets/zh_SG.13241ee3.js +1 -0
  361. package/dist/assets/zh_TW.8f4a16b5.js +1 -0
  362. package/dist/css/themes/Avatar.css +1 -1
  363. package/dist/css/themes/BusyIndicator.css +1 -1
  364. package/dist/css/themes/Button.css +1 -1
  365. package/dist/css/themes/CardHeader.css +1 -1
  366. package/dist/css/themes/Carousel.css +1 -1
  367. package/dist/css/themes/ComboBox.css +1 -1
  368. package/dist/css/themes/DatePicker.css +1 -1
  369. package/dist/css/themes/Dialog.css +1 -1
  370. package/dist/css/themes/Icon.css +1 -1
  371. package/dist/css/themes/Input.css +1 -1
  372. package/dist/css/themes/ListItem.css +1 -1
  373. package/dist/css/themes/MultiComboBox.css +1 -1
  374. package/dist/css/themes/MultiInput.css +1 -1
  375. package/dist/css/themes/RadioButton.css +1 -1
  376. package/dist/css/themes/Select.css +1 -1
  377. package/dist/css/themes/TabInStrip.css +1 -1
  378. package/dist/css/themes/Table.css +1 -1
  379. package/dist/css/themes/TableCell.css +1 -1
  380. package/dist/css/themes/TableRow.css +1 -1
  381. package/dist/css/themes/TextArea.css +1 -1
  382. package/dist/css/themes/Tokenizer.css +1 -1
  383. package/dist/css/themes/ValueStateMessage.css +1 -1
  384. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  385. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  386. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  387. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  388. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  389. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  390. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  391. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  392. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  393. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  394. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  395. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  396. package/dist/features/ColorPaletteMoreColors.d.ts +13 -0
  397. package/dist/features/ColorPaletteMoreColors.js +23 -33
  398. package/dist/features/ColorPaletteMoreColors.js.map +1 -0
  399. package/dist/features/InputElementsFormSupport.d.ts +31 -0
  400. package/dist/features/InputElementsFormSupport.js +95 -101
  401. package/dist/features/InputElementsFormSupport.js.map +1 -0
  402. package/dist/features/InputSuggestions.d.ts +130 -0
  403. package/dist/features/InputSuggestions.js +457 -590
  404. package/dist/features/InputSuggestions.js.map +1 -0
  405. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  406. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  407. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  408. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  409. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  410. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  411. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  412. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  413. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  414. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  415. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  416. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  417. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  418. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  419. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  420. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  421. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  422. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  423. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  424. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  425. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  426. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  427. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  428. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  429. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  430. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  431. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  432. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  433. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  434. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  435. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  436. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  437. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  438. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  439. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  440. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  441. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  442. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  443. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  444. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  445. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  446. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  447. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  448. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  449. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  450. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  451. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  452. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  453. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  454. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  455. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  456. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  457. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  458. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  459. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  460. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  461. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  462. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  463. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  464. package/dist/generated/i18n/i18n-defaults.js +2 -2
  465. package/dist/generated/templates/CardHeaderTemplate.lit.js +1 -1
  466. package/dist/generated/templates/CardTemplate.lit.js +1 -1
  467. package/dist/generated/templates/CheckBoxTemplate.lit.js +1 -1
  468. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +19 -17
  469. package/dist/generated/templates/CustomListItemTemplate.lit.js +9 -7
  470. package/dist/generated/templates/DialogTemplate.lit.js +1 -1
  471. package/dist/generated/templates/IconTemplate.lit.js +1 -1
  472. package/dist/generated/templates/InputTemplate.lit.js +1 -1
  473. package/dist/generated/templates/LinkTemplate.lit.js +1 -1
  474. package/dist/generated/templates/ListItemTemplate.lit.js +9 -7
  475. package/dist/generated/templates/ListTemplate.lit.js +3 -3
  476. package/dist/generated/templates/MenuTemplate.lit.js +1 -1
  477. package/dist/generated/templates/MonthPickerTemplate.lit.js +1 -1
  478. package/dist/generated/templates/MultiInputTemplate.lit.js +1 -1
  479. package/dist/generated/templates/PopoverTemplate.lit.js +1 -1
  480. package/dist/generated/templates/RangeSliderTemplate.lit.js +1 -1
  481. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +1 -1
  482. package/dist/generated/templates/SegmentedButtonTemplate.lit.js +1 -1
  483. package/dist/generated/templates/SliderTemplate.lit.js +1 -1
  484. package/dist/generated/templates/StandardListItemTemplate.lit.js +20 -16
  485. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +23 -19
  486. package/dist/generated/templates/SwitchTemplate.lit.js +1 -1
  487. package/dist/generated/templates/TabInStripTemplate.lit.js +1 -1
  488. package/dist/generated/templates/TableRowTemplate.lit.js +5 -2
  489. package/dist/generated/templates/TableTemplate.lit.js +1 -1
  490. package/dist/generated/templates/TokenTemplate.lit.js +1 -1
  491. package/dist/generated/templates/TreeItemBaseTemplate.lit.js +10 -8
  492. package/dist/generated/templates/TreeItemCustomTemplate.lit.js +10 -8
  493. package/dist/generated/templates/TreeItemTemplate.lit.js +10 -8
  494. package/dist/generated/templates/TreeTemplate.lit.js +1 -1
  495. package/dist/generated/templates/YearPickerTemplate.lit.js +1 -1
  496. package/dist/generated/themes/Avatar.css.js +1 -1
  497. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  498. package/dist/generated/themes/Button.css.js +1 -1
  499. package/dist/generated/themes/CardHeader.css.js +1 -1
  500. package/dist/generated/themes/Carousel.css.js +1 -1
  501. package/dist/generated/themes/ComboBox.css.js +1 -1
  502. package/dist/generated/themes/DatePicker.css.js +1 -1
  503. package/dist/generated/themes/Dialog.css.js +1 -1
  504. package/dist/generated/themes/Icon.css.js +1 -1
  505. package/dist/generated/themes/Input.css.js +1 -1
  506. package/dist/generated/themes/ListItem.css.js +1 -1
  507. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  508. package/dist/generated/themes/MultiInput.css.js +1 -1
  509. package/dist/generated/themes/RadioButton.css.js +1 -1
  510. package/dist/generated/themes/Select.css.js +1 -1
  511. package/dist/generated/themes/TabInStrip.css.js +1 -1
  512. package/dist/generated/themes/Table.css.js +1 -1
  513. package/dist/generated/themes/TableCell.css.js +1 -1
  514. package/dist/generated/themes/TableRow.css.js +1 -1
  515. package/dist/generated/themes/TextArea.css.js +1 -1
  516. package/dist/generated/themes/Tokenizer.css.js +1 -1
  517. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  518. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  519. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  520. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  521. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  522. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  523. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  524. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  525. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  526. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  527. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  528. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  529. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  530. package/dist/i18n/messagebundle.properties +6 -0
  531. package/dist/i18n/messagebundle_ar.properties +4 -0
  532. package/dist/i18n/messagebundle_bg.properties +4 -0
  533. package/dist/i18n/messagebundle_ca.properties +4 -0
  534. package/dist/i18n/messagebundle_cs.properties +4 -0
  535. package/dist/i18n/messagebundle_cy.properties +4 -0
  536. package/dist/i18n/messagebundle_da.properties +4 -0
  537. package/dist/i18n/messagebundle_de.properties +4 -0
  538. package/dist/i18n/messagebundle_el.properties +4 -0
  539. package/dist/i18n/messagebundle_en.properties +4 -0
  540. package/dist/i18n/messagebundle_en_GB.properties +4 -0
  541. package/dist/i18n/messagebundle_en_US_sappsd.properties +4 -0
  542. package/dist/i18n/messagebundle_en_US_saprigi.properties +4 -0
  543. package/dist/i18n/messagebundle_en_US_saptrc.properties +4 -0
  544. package/dist/i18n/messagebundle_es.properties +4 -0
  545. package/dist/i18n/messagebundle_es_MX.properties +4 -0
  546. package/dist/i18n/messagebundle_et.properties +4 -0
  547. package/dist/i18n/messagebundle_fi.properties +4 -0
  548. package/dist/i18n/messagebundle_fr.properties +4 -0
  549. package/dist/i18n/messagebundle_fr_CA.properties +4 -0
  550. package/dist/i18n/messagebundle_hi.properties +4 -0
  551. package/dist/i18n/messagebundle_hr.properties +4 -0
  552. package/dist/i18n/messagebundle_hu.properties +4 -0
  553. package/dist/i18n/messagebundle_id.properties +4 -0
  554. package/dist/i18n/messagebundle_it.properties +4 -0
  555. package/dist/i18n/messagebundle_iw.properties +4 -0
  556. package/dist/i18n/messagebundle_ja.properties +4 -0
  557. package/dist/i18n/messagebundle_kk.properties +4 -0
  558. package/dist/i18n/messagebundle_ko.properties +4 -0
  559. package/dist/i18n/messagebundle_lt.properties +4 -0
  560. package/dist/i18n/messagebundle_lv.properties +4 -0
  561. package/dist/i18n/messagebundle_ms.properties +4 -0
  562. package/dist/i18n/messagebundle_nl.properties +4 -0
  563. package/dist/i18n/messagebundle_no.properties +5 -1
  564. package/dist/i18n/messagebundle_pl.properties +4 -0
  565. package/dist/i18n/messagebundle_pt.properties +4 -0
  566. package/dist/i18n/messagebundle_pt_PT.properties +4 -0
  567. package/dist/i18n/messagebundle_ro.properties +4 -0
  568. package/dist/i18n/messagebundle_ru.properties +4 -0
  569. package/dist/i18n/messagebundle_sh.properties +4 -0
  570. package/dist/i18n/messagebundle_sk.properties +4 -0
  571. package/dist/i18n/messagebundle_sl.properties +4 -0
  572. package/dist/i18n/messagebundle_sv.properties +4 -0
  573. package/dist/i18n/messagebundle_th.properties +4 -0
  574. package/dist/i18n/messagebundle_tr.properties +4 -0
  575. package/dist/i18n/messagebundle_uk.properties +4 -0
  576. package/dist/i18n/messagebundle_vi.properties +4 -0
  577. package/dist/i18n/messagebundle_zh_CN.properties +4 -0
  578. package/dist/i18n/messagebundle_zh_TW.properties +4 -0
  579. package/dist/popup-utils/OpenedPopupsRegistry.d.ts +9 -0
  580. package/dist/popup-utils/OpenedPopupsRegistry.js +43 -37
  581. package/dist/popup-utils/OpenedPopupsRegistry.js.map +1 -0
  582. package/dist/popup-utils/PopoverRegistry.d.ts +9 -0
  583. package/dist/popup-utils/PopoverRegistry.js +103 -123
  584. package/dist/popup-utils/PopoverRegistry.js.map +1 -0
  585. package/dist/timepicker-utils/TimeSlider.d.ts +15 -0
  586. package/dist/timepicker-utils/TimeSlider.js +80 -92
  587. package/dist/timepicker-utils/TimeSlider.js.map +1 -0
  588. package/dist/types/AvatarColorScheme.d.ts +78 -0
  589. package/dist/types/AvatarColorScheme.js +75 -99
  590. package/dist/types/AvatarColorScheme.js.map +1 -0
  591. package/dist/types/AvatarGroupType.d.ts +26 -0
  592. package/dist/types/AvatarGroupType.js +22 -37
  593. package/dist/types/AvatarGroupType.js.map +1 -0
  594. package/dist/types/AvatarShape.d.ts +24 -0
  595. package/dist/types/AvatarShape.js +20 -35
  596. package/dist/types/AvatarShape.js.map +1 -0
  597. package/dist/types/AvatarSize.d.ts +47 -0
  598. package/dist/types/AvatarSize.js +43 -61
  599. package/dist/types/AvatarSize.js.map +1 -0
  600. package/dist/types/BreadcrumbsDesign.d.ts +26 -0
  601. package/dist/types/BreadcrumbsDesign.js +23 -37
  602. package/dist/types/BreadcrumbsDesign.js.map +1 -0
  603. package/dist/types/BreadcrumbsSeparatorStyle.d.ts +48 -0
  604. package/dist/types/BreadcrumbsSeparatorStyle.js +45 -64
  605. package/dist/types/BreadcrumbsSeparatorStyle.js.map +1 -0
  606. package/dist/types/BusyIndicatorSize.d.ts +30 -0
  607. package/dist/types/BusyIndicatorSize.js +27 -42
  608. package/dist/types/BusyIndicatorSize.js.map +1 -0
  609. package/dist/types/ButtonDesign.d.ts +48 -0
  610. package/dist/types/ButtonDesign.js +45 -63
  611. package/dist/types/ButtonDesign.js.map +1 -0
  612. package/dist/types/CalendarSelectionMode.d.ts +30 -0
  613. package/dist/types/CalendarSelectionMode.js +27 -42
  614. package/dist/types/CalendarSelectionMode.js.map +1 -0
  615. package/dist/types/CarouselArrowsPlacement.d.ts +24 -0
  616. package/dist/types/CarouselArrowsPlacement.js +21 -35
  617. package/dist/types/CarouselArrowsPlacement.js.map +1 -0
  618. package/dist/types/CarouselPageIndicatorStyle.d.ts +25 -0
  619. package/dist/types/CarouselPageIndicatorStyle.js +27 -0
  620. package/dist/types/CarouselPageIndicatorStyle.js.map +1 -0
  621. package/dist/types/HasPopup.d.ts +42 -0
  622. package/dist/types/HasPopup.js +38 -56
  623. package/dist/types/HasPopup.js.map +1 -0
  624. package/dist/types/IconDesign.d.ts +60 -0
  625. package/dist/types/IconDesign.js +62 -0
  626. package/dist/types/IconDesign.js.map +1 -0
  627. package/dist/types/InputType.d.ts +48 -0
  628. package/dist/types/InputType.js +45 -63
  629. package/dist/types/InputType.js.map +1 -0
  630. package/dist/types/LinkDesign.d.ts +30 -0
  631. package/dist/types/LinkDesign.js +27 -42
  632. package/dist/types/LinkDesign.js.map +1 -0
  633. package/dist/types/ListGrowingMode.d.ts +31 -0
  634. package/dist/types/ListGrowingMode.js +28 -43
  635. package/dist/types/ListGrowingMode.js.map +1 -0
  636. package/dist/types/ListItemType.d.ts +36 -0
  637. package/dist/types/ListItemType.js +33 -42
  638. package/dist/types/ListItemType.js.map +1 -0
  639. package/dist/types/ListMode.d.ts +56 -0
  640. package/dist/types/ListMode.js +53 -72
  641. package/dist/types/ListMode.js.map +1 -0
  642. package/dist/types/ListSeparators.d.ts +31 -0
  643. package/dist/types/ListSeparators.js +28 -41
  644. package/dist/types/ListSeparators.js.map +1 -0
  645. package/dist/types/MessageStripDesign.d.ts +36 -0
  646. package/dist/types/MessageStripDesign.js +33 -49
  647. package/dist/types/MessageStripDesign.js.map +1 -0
  648. package/dist/types/PanelAccessibleRole.d.ts +33 -0
  649. package/dist/types/PanelAccessibleRole.js +30 -43
  650. package/dist/types/PanelAccessibleRole.js.map +1 -0
  651. package/dist/types/PopoverHorizontalAlign.d.ts +36 -0
  652. package/dist/types/PopoverHorizontalAlign.js +33 -49
  653. package/dist/types/PopoverHorizontalAlign.js.map +1 -0
  654. package/dist/types/PopoverPlacementType.d.ts +36 -0
  655. package/dist/types/PopoverPlacementType.js +33 -49
  656. package/dist/types/PopoverPlacementType.js.map +1 -0
  657. package/dist/types/PopoverVerticalAlign.d.ts +36 -0
  658. package/dist/types/PopoverVerticalAlign.js +33 -49
  659. package/dist/types/PopoverVerticalAlign.js.map +1 -0
  660. package/dist/types/Priority.d.ts +36 -0
  661. package/dist/types/Priority.js +32 -49
  662. package/dist/types/Priority.js.map +1 -0
  663. package/dist/types/SemanticColor.d.ts +42 -0
  664. package/dist/types/SemanticColor.js +39 -56
  665. package/dist/types/SemanticColor.js.map +1 -0
  666. package/dist/types/SwitchDesign.d.ts +24 -0
  667. package/dist/types/SwitchDesign.js +21 -35
  668. package/dist/types/SwitchDesign.js.map +1 -0
  669. package/dist/types/TabContainerBackgroundDesign.d.ts +30 -0
  670. package/dist/types/TabContainerBackgroundDesign.js +27 -43
  671. package/dist/types/TabContainerBackgroundDesign.js.map +1 -0
  672. package/dist/types/TabContainerTabsPlacement.d.ts +24 -0
  673. package/dist/types/TabContainerTabsPlacement.js +21 -35
  674. package/dist/types/TabContainerTabsPlacement.js.map +1 -0
  675. package/dist/types/TabLayout.d.ts +24 -0
  676. package/dist/types/TabLayout.js +21 -35
  677. package/dist/types/TabLayout.js.map +1 -0
  678. package/dist/types/TableColumnPopinDisplay.d.ts +24 -0
  679. package/dist/types/TableColumnPopinDisplay.js +26 -0
  680. package/dist/types/TableColumnPopinDisplay.js.map +1 -0
  681. package/dist/types/TableGrowingMode.d.ts +31 -0
  682. package/dist/types/TableGrowingMode.js +28 -43
  683. package/dist/types/TableGrowingMode.js.map +1 -0
  684. package/dist/types/TableMode.d.ts +30 -0
  685. package/dist/types/TableMode.js +27 -42
  686. package/dist/types/TableMode.js.map +1 -0
  687. package/dist/types/TableRowType.d.ts +24 -0
  688. package/dist/types/TableRowType.js +21 -35
  689. package/dist/types/TableRowType.js.map +1 -0
  690. package/dist/types/TabsOverflowMode.d.ts +24 -0
  691. package/dist/types/TabsOverflowMode.js +21 -35
  692. package/dist/types/TabsOverflowMode.js.map +1 -0
  693. package/dist/types/TitleLevel.d.ts +48 -0
  694. package/dist/types/TitleLevel.js +45 -63
  695. package/dist/types/TitleLevel.js.map +1 -0
  696. package/dist/types/ToastPlacement.d.ts +67 -0
  697. package/dist/types/ToastPlacement.js +64 -86
  698. package/dist/types/ToastPlacement.js.map +1 -0
  699. package/dist/types/WrappingType.d.ts +24 -0
  700. package/dist/types/WrappingType.js +20 -35
  701. package/dist/types/WrappingType.js.map +1 -0
  702. package/global.d.ts +12 -0
  703. package/package-scripts.js +1 -0
  704. package/package.json +7 -7
  705. package/src/Avatar.ts +435 -0
  706. package/src/AvatarGroup.js +8 -8
  707. package/src/Badge.ts +143 -0
  708. package/src/Breadcrumbs.hbs +41 -38
  709. package/src/{Breadcrumbs.js → Breadcrumbs.ts} +228 -187
  710. package/src/BreadcrumbsItem.ts +92 -0
  711. package/src/BusyIndicator.js +6 -7
  712. package/src/Button.ts +503 -0
  713. package/src/{Calendar.js → Calendar.ts} +152 -142
  714. package/src/CalendarDate.ts +36 -0
  715. package/src/CalendarHeader.ts +218 -0
  716. package/src/{CalendarPart.js → CalendarPart.ts} +15 -26
  717. package/src/Card.hbs +1 -1
  718. package/src/{Card.js → Card.ts} +67 -75
  719. package/src/CardHeader.hbs +1 -1
  720. package/src/CardHeader.ts +275 -0
  721. package/src/Carousel.hbs +72 -72
  722. package/src/Carousel.js +33 -11
  723. package/src/CheckBox.hbs +3 -3
  724. package/src/CheckBox.ts +466 -0
  725. package/src/{ColorPalette.js → ColorPalette.ts} +184 -165
  726. package/src/ColorPaletteItem.ts +124 -0
  727. package/src/{ColorPalettePopover.js → ColorPalettePopover.ts} +99 -97
  728. package/src/ColorPicker.ts +536 -0
  729. package/src/ComboBox.js +9 -9
  730. package/src/ComboBoxGroupItem.js +6 -6
  731. package/src/ComboBoxItem.js +4 -4
  732. package/src/ComboBoxPopover.hbs +45 -42
  733. package/src/CustomListItem.ts +89 -0
  734. package/src/DateComponentBase.ts +174 -0
  735. package/src/{DatePicker.js → DatePicker.ts} +355 -330
  736. package/src/{DateRangePicker.js → DateRangePicker.ts} +65 -61
  737. package/src/{DateTimePicker.js → DateTimePicker.ts} +82 -80
  738. package/src/{DayPicker.js → DayPicker.ts} +274 -218
  739. package/src/Dialog.hbs +1 -1
  740. package/src/{Dialog.js → Dialog.ts} +208 -195
  741. package/src/DurationPicker.js +5 -5
  742. package/src/FileUploader.ts +526 -0
  743. package/src/Filters.ts +28 -0
  744. package/src/GroupHeaderListItem.ts +86 -0
  745. package/src/Icon.hbs +1 -1
  746. package/src/{Icon.js → Icon.ts} +204 -182
  747. package/src/Input.hbs +3 -1
  748. package/src/{Input.js → Input.ts} +738 -706
  749. package/src/{Interfaces.js → Interfaces.ts} +40 -40
  750. package/src/Label.ts +143 -0
  751. package/src/Link.hbs +1 -1
  752. package/src/Link.ts +406 -0
  753. package/src/List.hbs +11 -2
  754. package/src/List.ts +1143 -0
  755. package/src/ListItem.hbs +12 -2
  756. package/src/ListItem.ts +497 -0
  757. package/src/ListItemBase.ts +168 -0
  758. package/src/Menu.hbs +4 -1
  759. package/src/Menu.ts +609 -0
  760. package/src/MenuItem.ts +168 -0
  761. package/src/MessageStrip.ts +245 -0
  762. package/src/MonthPicker.hbs +1 -0
  763. package/src/{MonthPicker.js → MonthPicker.ts} +147 -104
  764. package/src/MultiComboBox.js +13 -11
  765. package/src/MultiComboBoxGroupItem.js +6 -6
  766. package/src/MultiComboBoxItem.js +4 -4
  767. package/src/MultiInput.js +13 -10
  768. package/src/Option.js +6 -6
  769. package/src/{Panel.js → Panel.ts} +179 -219
  770. package/src/Popover.hbs +1 -1
  771. package/src/{Popover.js → Popover.ts} +293 -268
  772. package/src/{Popup.js → Popup.ts} +227 -210
  773. package/src/{ProgressIndicator.js → ProgressIndicator.ts} +91 -95
  774. package/src/RadioButton.js +7 -8
  775. package/src/RadioButtonGroup.js +1 -1
  776. package/src/RangeSlider.hbs +11 -5
  777. package/src/{RangeSlider.js → RangeSlider.ts} +248 -173
  778. package/src/RatingIndicator.js +7 -7
  779. package/src/{ResponsivePopover.js → ResponsivePopover.ts} +84 -62
  780. package/src/SegmentedButton.hbs +1 -0
  781. package/src/SegmentedButton.js +24 -11
  782. package/src/SegmentedButtonItem.js +5 -5
  783. package/src/Select.js +8 -8
  784. package/src/Slider.hbs +2 -2
  785. package/src/{Slider.js → Slider.ts} +94 -62
  786. package/src/{SliderBase.js → SliderBase.ts} +238 -270
  787. package/src/{SplitButton.js → SplitButton.ts} +217 -235
  788. package/src/StandardListItem.hbs +10 -4
  789. package/src/StandardListItem.ts +217 -0
  790. package/src/StepInput.hbs +1 -1
  791. package/src/{StepInput.js → StepInput.ts} +275 -314
  792. package/src/SuggestionGroupItem.ts +51 -0
  793. package/src/SuggestionItem.ts +134 -0
  794. package/src/{SuggestionListItem.js → SuggestionListItem.ts} +30 -32
  795. package/src/Switch.hbs +2 -2
  796. package/src/Switch.ts +299 -0
  797. package/src/Tab.js +13 -8
  798. package/src/TabContainer.js +21 -20
  799. package/src/TabInStrip.hbs +2 -1
  800. package/src/TabSeparator.js +3 -3
  801. package/src/Table.hbs +7 -1
  802. package/src/Table.ts +1303 -0
  803. package/src/{TableCell.js → TableCell.ts} +32 -42
  804. package/src/TableColumn.ts +135 -0
  805. package/src/TableGroupRow.ts +159 -0
  806. package/src/TableRow.hbs +17 -5
  807. package/src/TableRow.ts +505 -0
  808. package/src/TextArea.js +11 -11
  809. package/src/{TimePicker.js → TimePicker.ts} +43 -50
  810. package/src/{TimePickerBase.js → TimePickerBase.ts} +154 -145
  811. package/src/{TimeSelection.js → TimeSelection.ts} +198 -170
  812. package/src/Title.ts +117 -0
  813. package/src/Toast.js +6 -6
  814. package/src/ToggleButton.js +3 -4
  815. package/src/Token.hbs +1 -0
  816. package/src/Token.js +24 -7
  817. package/src/Tokenizer.js +12 -8
  818. package/src/Tree.hbs +2 -1
  819. package/src/Tree.js +28 -14
  820. package/src/TreeItem.js +5 -5
  821. package/src/TreeItemBase.js +12 -13
  822. package/src/TreeItemCustom.js +5 -5
  823. package/src/TreeList.js +9 -4
  824. package/src/{WheelSlider.js → WheelSlider.ts} +120 -126
  825. package/src/YearPicker.hbs +1 -0
  826. package/src/{YearPicker.js → YearPicker.ts} +146 -101
  827. package/src/features/{ColorPaletteMoreColors.js → ColorPaletteMoreColors.ts} +8 -3
  828. package/src/features/{InputElementsFormSupport.js → InputElementsFormSupport.ts} +49 -17
  829. package/src/features/{InputSuggestions.js → InputSuggestions.ts} +154 -99
  830. package/src/i18n/messagebundle.properties +6 -0
  831. package/src/i18n/messagebundle_ar.properties +4 -0
  832. package/src/i18n/messagebundle_bg.properties +4 -0
  833. package/src/i18n/messagebundle_ca.properties +4 -0
  834. package/src/i18n/messagebundle_cs.properties +4 -0
  835. package/src/i18n/messagebundle_cy.properties +4 -0
  836. package/src/i18n/messagebundle_da.properties +4 -0
  837. package/src/i18n/messagebundle_de.properties +4 -0
  838. package/src/i18n/messagebundle_el.properties +4 -0
  839. package/src/i18n/messagebundle_en.properties +4 -0
  840. package/src/i18n/messagebundle_en_GB.properties +4 -0
  841. package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
  842. package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
  843. package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
  844. package/src/i18n/messagebundle_es.properties +4 -0
  845. package/src/i18n/messagebundle_es_MX.properties +4 -0
  846. package/src/i18n/messagebundle_et.properties +4 -0
  847. package/src/i18n/messagebundle_fi.properties +4 -0
  848. package/src/i18n/messagebundle_fr.properties +4 -0
  849. package/src/i18n/messagebundle_fr_CA.properties +4 -0
  850. package/src/i18n/messagebundle_hi.properties +4 -0
  851. package/src/i18n/messagebundle_hr.properties +4 -0
  852. package/src/i18n/messagebundle_hu.properties +4 -0
  853. package/src/i18n/messagebundle_id.properties +4 -0
  854. package/src/i18n/messagebundle_it.properties +4 -0
  855. package/src/i18n/messagebundle_iw.properties +4 -0
  856. package/src/i18n/messagebundle_ja.properties +4 -0
  857. package/src/i18n/messagebundle_kk.properties +4 -0
  858. package/src/i18n/messagebundle_ko.properties +4 -0
  859. package/src/i18n/messagebundle_lt.properties +4 -0
  860. package/src/i18n/messagebundle_lv.properties +4 -0
  861. package/src/i18n/messagebundle_ms.properties +4 -0
  862. package/src/i18n/messagebundle_nl.properties +4 -0
  863. package/src/i18n/messagebundle_no.properties +5 -1
  864. package/src/i18n/messagebundle_pl.properties +4 -0
  865. package/src/i18n/messagebundle_pt.properties +4 -0
  866. package/src/i18n/messagebundle_pt_PT.properties +4 -0
  867. package/src/i18n/messagebundle_ro.properties +4 -0
  868. package/src/i18n/messagebundle_ru.properties +4 -0
  869. package/src/i18n/messagebundle_sh.properties +4 -0
  870. package/src/i18n/messagebundle_sk.properties +4 -0
  871. package/src/i18n/messagebundle_sl.properties +4 -0
  872. package/src/i18n/messagebundle_sv.properties +4 -0
  873. package/src/i18n/messagebundle_th.properties +4 -0
  874. package/src/i18n/messagebundle_tr.properties +4 -0
  875. package/src/i18n/messagebundle_uk.properties +4 -0
  876. package/src/i18n/messagebundle_vi.properties +4 -0
  877. package/src/i18n/messagebundle_zh_CN.properties +4 -0
  878. package/src/i18n/messagebundle_zh_TW.properties +4 -0
  879. package/src/popup-utils/{OpenedPopupsRegistry.js → OpenedPopupsRegistry.ts} +31 -5
  880. package/src/popup-utils/{PopoverRegistry.js → PopoverRegistry.ts} +50 -29
  881. package/src/themes/Avatar.css +5 -2
  882. package/src/themes/BusyIndicator.css +1 -1
  883. package/src/themes/Button.css +14 -13
  884. package/src/themes/CardHeader.css +19 -2
  885. package/src/themes/Carousel.css +4 -4
  886. package/src/themes/DatePicker.css +7 -1
  887. package/src/themes/Dialog.css +2 -2
  888. package/src/themes/Icon.css +37 -0
  889. package/src/themes/Input.css +26 -2
  890. package/src/themes/ListItem.css +20 -2
  891. package/src/themes/MultiComboBox.css +0 -4
  892. package/src/themes/MultiInput.css +1 -5
  893. package/src/themes/RadioButton.css +6 -6
  894. package/src/themes/Select.css +1 -1
  895. package/src/themes/TabInStrip.css +10 -10
  896. package/src/themes/Table.css +1 -1
  897. package/src/themes/TableCell.css +4 -0
  898. package/src/themes/TableRow.css +9 -0
  899. package/src/themes/TextArea.css +16 -23
  900. package/src/themes/Tokenizer.css +1 -1
  901. package/src/themes/ValueStateMessage.css +9 -1
  902. package/src/themes/base/Avatar-parameters.css +1 -0
  903. package/src/themes/base/Input-parameters.css +11 -1
  904. package/src/themes/base/Select-parameters.css +1 -1
  905. package/src/themes/base/TextArea-parameters.css +18 -0
  906. package/src/themes/base/Tokenizer-parameters.css +1 -0
  907. package/src/themes/base/sizes-parameters.css +1 -9
  908. package/src/themes/sap_belize/TextArea-parameters.css +8 -0
  909. package/src/themes/sap_belize_hcb/TextArea-parameters.css +8 -0
  910. package/src/themes/sap_belize_hcw/TextArea-parameters.css +8 -0
  911. package/src/themes/sap_fiori_3_hcb/TextArea-parameters.css +13 -3
  912. package/src/themes/sap_fiori_3_hcw/TextArea-parameters.css +13 -3
  913. package/src/themes/sap_horizon/CheckBox-parameters.css +1 -0
  914. package/src/themes/sap_horizon/Input-parameters.css +3 -0
  915. package/src/themes/sap_horizon/TextArea-parameters.css +14 -0
  916. package/src/themes/sap_horizon/Tokenizer-parameters.css +5 -0
  917. package/src/themes/sap_horizon/parameters-bundle.css +1 -1
  918. package/src/themes/sap_horizon_dark/Input-parameters.css +3 -0
  919. package/src/themes/sap_horizon_dark/ListItemBase-parameters.css +0 -1
  920. package/src/themes/sap_horizon_dark/TextArea-parameters.css +14 -0
  921. package/src/themes/sap_horizon_dark/Tokenizer-parameters.css +5 -0
  922. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  923. package/src/themes/sap_horizon_exp/Select-parameters.css +1 -1
  924. package/src/themes/sap_horizon_hcb/Input-parameters.css +1 -0
  925. package/src/themes/sap_horizon_hcb/TextArea-parameters.css +15 -6
  926. package/src/themes/sap_horizon_hcw/Input-parameters.css +1 -0
  927. package/src/themes/sap_horizon_hcw/TextArea-parameters.css +15 -6
  928. package/src/timepicker-utils/{TimeSlider.js → TimeSlider.ts} +26 -9
  929. package/src/types/AvatarColorScheme.ts +89 -0
  930. package/src/types/AvatarGroupType.ts +28 -0
  931. package/src/types/AvatarShape.ts +26 -0
  932. package/src/types/AvatarSize.ts +52 -0
  933. package/src/types/BreadcrumbsDesign.ts +28 -0
  934. package/src/types/BreadcrumbsSeparatorStyle.ts +55 -0
  935. package/src/types/BusyIndicatorSize.ts +33 -0
  936. package/src/types/ButtonDesign.ts +54 -0
  937. package/src/types/CalendarSelectionMode.ts +33 -0
  938. package/src/types/CarouselArrowsPlacement.ts +26 -0
  939. package/src/types/CarouselPageIndicatorStyle.ts +27 -0
  940. package/src/types/HasPopup.ts +47 -0
  941. package/src/types/IconDesign.ts +68 -0
  942. package/src/types/{InputType.js → InputType.ts} +13 -27
  943. package/src/types/LinkDesign.ts +33 -0
  944. package/src/types/ListGrowingMode.ts +34 -0
  945. package/src/types/ListItemType.ts +40 -0
  946. package/src/types/{ListMode.js → ListMode.ts} +14 -28
  947. package/src/types/ListSeparators.ts +32 -0
  948. package/src/types/MessageStripDesign.ts +40 -0
  949. package/src/types/PanelAccessibleRole.ts +37 -0
  950. package/src/types/PopoverHorizontalAlign.ts +40 -0
  951. package/src/types/PopoverPlacementType.ts +40 -0
  952. package/src/types/PopoverVerticalAlign.ts +40 -0
  953. package/src/types/Priority.ts +40 -0
  954. package/src/types/SemanticColor.ts +47 -0
  955. package/src/types/SwitchDesign.ts +26 -0
  956. package/src/types/TabContainerBackgroundDesign.ts +33 -0
  957. package/src/types/TabContainerTabsPlacement.ts +26 -0
  958. package/src/types/TabLayout.ts +26 -0
  959. package/src/types/TableColumnPopinDisplay.ts +26 -0
  960. package/src/types/TableGrowingMode.ts +34 -0
  961. package/src/types/TableMode.ts +33 -0
  962. package/src/types/TableRowType.ts +26 -0
  963. package/src/types/TabsOverflowMode.ts +26 -0
  964. package/src/types/{TitleLevel.js → TitleLevel.ts} +13 -27
  965. package/src/types/ToastPlacement.ts +77 -0
  966. package/src/types/WrappingType.ts +26 -0
  967. package/tsconfig.json +14 -0
  968. package/dist/assets/ar.7fd1011b.js +0 -1
  969. package/dist/assets/ar_EG.4dd5f305.js +0 -1
  970. package/dist/assets/ar_SA.8c5a937a.js +0 -1
  971. package/dist/assets/bg.a4d82c03.js +0 -1
  972. package/dist/assets/ca.0021f734.js +0 -1
  973. package/dist/assets/cs.0e585b65.js +0 -1
  974. package/dist/assets/da.521611de.js +0 -1
  975. package/dist/assets/de.63fdffdf.js +0 -1
  976. package/dist/assets/de_AT.ea95f993.js +0 -1
  977. package/dist/assets/de_CH.90d5e701.js +0 -1
  978. package/dist/assets/el.3e1beb01.js +0 -1
  979. package/dist/assets/el_CY.209073e0.js +0 -1
  980. package/dist/assets/en.1af5f31c.js +0 -1
  981. package/dist/assets/en_AU.25e8cf38.js +0 -1
  982. package/dist/assets/en_GB.43297e37.js +0 -1
  983. package/dist/assets/en_HK.0da1e0b5.js +0 -1
  984. package/dist/assets/en_IE.c4988873.js +0 -1
  985. package/dist/assets/en_IN.96d721e2.js +0 -1
  986. package/dist/assets/en_NZ.1091e526.js +0 -1
  987. package/dist/assets/en_PG.f028e345.js +0 -1
  988. package/dist/assets/en_SG.8d370bdb.js +0 -1
  989. package/dist/assets/en_ZA.0cbf9d6e.js +0 -1
  990. package/dist/assets/es.37dda275.js +0 -1
  991. package/dist/assets/es_AR.da796f99.js +0 -1
  992. package/dist/assets/es_BO.2b15333c.js +0 -1
  993. package/dist/assets/es_CL.048ca1f2.js +0 -1
  994. package/dist/assets/es_CO.257ed3d6.js +0 -1
  995. package/dist/assets/es_MX.061e6bbb.js +0 -1
  996. package/dist/assets/es_PE.f7c17b7a.js +0 -1
  997. package/dist/assets/es_UY.73781c0c.js +0 -1
  998. package/dist/assets/es_VE.fe0f3310.js +0 -1
  999. package/dist/assets/et.fbe81c9d.js +0 -1
  1000. package/dist/assets/fa.acfcfa4d.js +0 -1
  1001. package/dist/assets/fi.0379b5fc.js +0 -1
  1002. package/dist/assets/fr.f6c58c06.js +0 -1
  1003. package/dist/assets/fr_BE.c6e52c3f.js +0 -1
  1004. package/dist/assets/fr_CA.e3c92112.js +0 -1
  1005. package/dist/assets/fr_CH.fc89bdfc.js +0 -1
  1006. package/dist/assets/fr_LU.4fffec47.js +0 -1
  1007. package/dist/assets/he.ca2cb3e0.js +0 -1
  1008. package/dist/assets/hi.82a0ad5b.js +0 -1
  1009. package/dist/assets/hr.ab15877f.js +0 -1
  1010. package/dist/assets/hu.c3d72d24.js +0 -1
  1011. package/dist/assets/id.163ccc8d.js +0 -1
  1012. package/dist/assets/it_CH.69227571.js +0 -1
  1013. package/dist/assets/ja.18f39a5b.js +0 -1
  1014. package/dist/assets/kk.a697e741.js +0 -1
  1015. package/dist/assets/ko.ebe1e5db.js +0 -1
  1016. package/dist/assets/lt.775927de.js +0 -1
  1017. package/dist/assets/lv.d7e9d5e6.js +0 -1
  1018. package/dist/assets/messagebundle_ca.0d94d392.js +0 -1
  1019. package/dist/assets/messagebundle_cs.fd5eaccc.js +0 -1
  1020. package/dist/assets/messagebundle_cy.ff1e6c97.js +0 -1
  1021. package/dist/assets/messagebundle_da.5ff8a1f1.js +0 -1
  1022. package/dist/assets/messagebundle_de.bff2fc47.js +0 -1
  1023. package/dist/assets/messagebundle_en.fdb7abce.js +0 -1
  1024. package/dist/assets/messagebundle_en_GB.4a95abfb.js +0 -1
  1025. package/dist/assets/messagebundle_en_US_saptrc.71435964.js +0 -1
  1026. package/dist/assets/messagebundle_es.04498029.js +0 -1
  1027. package/dist/assets/messagebundle_es_MX.a39214a3.js +0 -1
  1028. package/dist/assets/messagebundle_et.d2e7cd16.js +0 -1
  1029. package/dist/assets/messagebundle_fi.1aa86ded.js +0 -1
  1030. package/dist/assets/messagebundle_fr.d651062e.js +0 -1
  1031. package/dist/assets/messagebundle_fr_CA.5a066480.js +0 -1
  1032. package/dist/assets/messagebundle_hr.51d15b46.js +0 -1
  1033. package/dist/assets/messagebundle_hu.f66f6bd4.js +0 -1
  1034. package/dist/assets/messagebundle_it.fc18db7c.js +0 -1
  1035. package/dist/assets/messagebundle_iw.61cc9591.js +0 -1
  1036. package/dist/assets/messagebundle_ja.9d222bf0.js +0 -1
  1037. package/dist/assets/messagebundle_ko.c1f9bbe4.js +0 -1
  1038. package/dist/assets/messagebundle_lt.68cc1270.js +0 -1
  1039. package/dist/assets/messagebundle_lv.45ee5e9b.js +0 -1
  1040. package/dist/assets/messagebundle_ms.5c238d83.js +0 -1
  1041. package/dist/assets/messagebundle_nl.42d4c6f9.js +0 -1
  1042. package/dist/assets/messagebundle_no.040efcc2.js +0 -1
  1043. package/dist/assets/messagebundle_pl.180e5190.js +0 -1
  1044. package/dist/assets/messagebundle_pt.8c0b8aa8.js +0 -1
  1045. package/dist/assets/messagebundle_pt_PT.08badb3a.js +0 -1
  1046. package/dist/assets/messagebundle_ro.dc736139.js +0 -1
  1047. package/dist/assets/messagebundle_sh.06513aad.js +0 -1
  1048. package/dist/assets/messagebundle_sk.f8c93117.js +0 -1
  1049. package/dist/assets/messagebundle_sl.e321cf3f.js +0 -1
  1050. package/dist/assets/messagebundle_sv.7c70049d.js +0 -1
  1051. package/dist/assets/messagebundle_tr.b1de509f.js +0 -1
  1052. package/dist/assets/messagebundle_vi.39c09ada.js +0 -1
  1053. package/dist/assets/messagebundle_zh_CN.cb6c2fc4.js +0 -1
  1054. package/dist/assets/messagebundle_zh_TW.38b9d6a7.js +0 -1
  1055. package/dist/assets/ms.d6569411.js +0 -1
  1056. package/dist/assets/nb.e08266d5.js +0 -1
  1057. package/dist/assets/nl.9999541e.js +0 -1
  1058. package/dist/assets/nl_BE.10b9e463.js +0 -1
  1059. package/dist/assets/parameters-bundle.css.1f15a001.js +0 -1
  1060. package/dist/assets/parameters-bundle.css.2c92b83f.js +0 -1
  1061. package/dist/assets/parameters-bundle.css.37d45e6a.js +0 -1
  1062. package/dist/assets/parameters-bundle.css.43cfec9f.js +0 -1
  1063. package/dist/assets/parameters-bundle.css.6ac2a3ec.js +0 -1
  1064. package/dist/assets/parameters-bundle.css.8156fdfe.js +0 -1
  1065. package/dist/assets/parameters-bundle.css.9ff9d4cd.js +0 -1
  1066. package/dist/assets/parameters-bundle.css.abcd1057.js +0 -1
  1067. package/dist/assets/parameters-bundle.css.b58e1801.js +0 -1
  1068. package/dist/assets/parameters-bundle.css.d4817fb4.js +0 -1
  1069. package/dist/assets/parameters-bundle.css.dd8f8072.js +0 -1
  1070. package/dist/assets/parameters-bundle.css.feee54fa.js +0 -1
  1071. package/dist/assets/pl.896f748a.js +0 -1
  1072. package/dist/assets/pt.9282da43.js +0 -1
  1073. package/dist/assets/pt_PT.8de6f4a2.js +0 -1
  1074. package/dist/assets/ro.f27aab0d.js +0 -1
  1075. package/dist/assets/ru.925a56df.js +0 -1
  1076. package/dist/assets/ru_UA.066d9903.js +0 -1
  1077. package/dist/assets/sk.cea36c4c.js +0 -1
  1078. package/dist/assets/sl.00e904c8.js +0 -1
  1079. package/dist/assets/sr.5ffa8a72.js +0 -1
  1080. package/dist/assets/sr_Latn.37760dd7.js +0 -1
  1081. package/dist/assets/sv.e8d71660.js +0 -1
  1082. package/dist/assets/th.9c7b50b0.js +0 -1
  1083. package/dist/assets/tr.0a0fb3ee.js +0 -1
  1084. package/dist/assets/uk.7ee1da23.js +0 -1
  1085. package/dist/assets/vi.b1f74e9c.js +0 -1
  1086. package/dist/assets/zh_CN.a1d71c11.js +0 -1
  1087. package/dist/assets/zh_HK.a47dd921.js +0 -1
  1088. package/dist/assets/zh_SG.1cd17a31.js +0 -1
  1089. package/dist/assets/zh_TW.b03069d7.js +0 -1
  1090. package/dist/types/GrowingMode.js +0 -48
  1091. package/src/Avatar.js +0 -451
  1092. package/src/Badge.js +0 -151
  1093. package/src/BreadcrumbsItem.js +0 -103
  1094. package/src/Button.js +0 -513
  1095. package/src/CalendarDate.js +0 -45
  1096. package/src/CalendarHeader.js +0 -213
  1097. package/src/CardHeader.js +0 -283
  1098. package/src/CheckBox.js +0 -471
  1099. package/src/ColorPaletteItem.js +0 -137
  1100. package/src/ColorPicker.js +0 -600
  1101. package/src/CustomListItem.js +0 -99
  1102. package/src/DateComponentBase.js +0 -168
  1103. package/src/FileUploader.js +0 -533
  1104. package/src/Filters.js +0 -28
  1105. package/src/GroupHeaderListItem.js +0 -94
  1106. package/src/Label.js +0 -158
  1107. package/src/Link.js +0 -410
  1108. package/src/List.js +0 -1120
  1109. package/src/ListItem.js +0 -428
  1110. package/src/ListItemBase.js +0 -181
  1111. package/src/Menu.js +0 -502
  1112. package/src/MenuItem.js +0 -193
  1113. package/src/MessageStrip.js +0 -256
  1114. package/src/StandardListItem.js +0 -207
  1115. package/src/SuggestionGroupItem.js +0 -64
  1116. package/src/SuggestionItem.js +0 -146
  1117. package/src/Switch.js +0 -306
  1118. package/src/Table.js +0 -1200
  1119. package/src/TableColumn.js +0 -129
  1120. package/src/TableGroupRow.js +0 -167
  1121. package/src/TableRow.js +0 -464
  1122. package/src/Title.js +0 -132
  1123. package/src/types/AvatarColorScheme.js +0 -104
  1124. package/src/types/AvatarGroupType.js +0 -43
  1125. package/src/types/AvatarShape.js +0 -41
  1126. package/src/types/AvatarSize.js +0 -67
  1127. package/src/types/BreadcrumbsDesign.js +0 -42
  1128. package/src/types/BreadcrumbsSeparatorStyle.js +0 -69
  1129. package/src/types/BusyIndicatorSize.js +0 -47
  1130. package/src/types/ButtonDesign.js +0 -68
  1131. package/src/types/CalendarSelectionMode.js +0 -47
  1132. package/src/types/CarouselArrowsPlacement.js +0 -40
  1133. package/src/types/GrowingMode.js +0 -48
  1134. package/src/types/HasPopup.js +0 -62
  1135. package/src/types/LinkDesign.js +0 -47
  1136. package/src/types/ListGrowingMode.js +0 -48
  1137. package/src/types/ListItemType.js +0 -47
  1138. package/src/types/ListSeparators.js +0 -46
  1139. package/src/types/MessageStripDesign.js +0 -54
  1140. package/src/types/PanelAccessibleRole.js +0 -48
  1141. package/src/types/PopoverHorizontalAlign.js +0 -54
  1142. package/src/types/PopoverPlacementType.js +0 -54
  1143. package/src/types/PopoverVerticalAlign.js +0 -54
  1144. package/src/types/Priority.js +0 -55
  1145. package/src/types/SemanticColor.js +0 -61
  1146. package/src/types/SwitchDesign.js +0 -40
  1147. package/src/types/TabContainerBackgroundDesign.js +0 -48
  1148. package/src/types/TabContainerTabsPlacement.js +0 -40
  1149. package/src/types/TabLayout.js +0 -40
  1150. package/src/types/TableGrowingMode.js +0 -48
  1151. package/src/types/TableMode.js +0 -47
  1152. package/src/types/TableRowType.js +0 -40
  1153. package/src/types/TabsOverflowMode.js +0 -40
  1154. package/src/types/ToastPlacement.js +0 -91
  1155. package/src/types/WrappingType.js +0 -41
@@ -1,149 +1,22 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var SliderBase_1;
1
8
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
9
+ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
10
+ import event from "@ui5/webcomponents-base/dist/decorators/event.js";
2
11
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
12
  import Float from "@ui5/webcomponents-base/dist/types/Float.js";
4
13
  import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
5
14
  import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
6
15
  import { isPhone } from "@ui5/webcomponents-base/dist/Device.js";
7
16
  import "@ui5/webcomponents-icons/dist/direction-arrows.js";
8
- import {
9
- isEscape, isHome, isEnd, isUp, isDown, isRight, isLeft, isUpCtrl, isDownCtrl, isRightCtrl, isLeftCtrl, isPlus, isMinus, isPageUp, isPageDown,
10
- } from "@ui5/webcomponents-base/dist/Keys.js";
11
-
17
+ import { isEscape, isHome, isEnd, isUp, isDown, isRight, isLeft, isUpCtrl, isDownCtrl, isRightCtrl, isLeftCtrl, isPlus, isMinus, isPageUp, isPageDown, } from "@ui5/webcomponents-base/dist/Keys.js";
12
18
  // Styles
13
19
  import styles from "./generated/themes/SliderBase.css.js";
14
-
15
- /**
16
- * @public
17
- */
18
- const metadata = {
19
- properties: /** @lends sap.ui.webcomponents.main.SliderBase.prototype */ {
20
- /**
21
- * Defines the minimum value of the slider.
22
- *
23
- * @type {sap.ui.webcomponents.base.types.Float}
24
- * @defaultvalue 0
25
- * @public
26
- */
27
- min: {
28
- type: Float,
29
- defaultValue: 0,
30
- },
31
- /**
32
- * Defines the maximum value of the slider.
33
- *
34
- * @type {sap.ui.webcomponents.base.types.Float}
35
- * @defaultvalue 100
36
- * @public
37
- */
38
- max: {
39
- type: Float,
40
- defaultValue: 100,
41
- },
42
- /**
43
- * Defines the size of the slider's selection intervals (e.g. min = 0, max = 10, step = 5 would result in possible selection of the values 0, 5, 10).
44
- * <br><br>
45
- * <b>Note:</b> If set to 0 the slider handle movement is disabled. When negative number or value other than a number, the component fallbacks to its default value.
46
- *
47
- * @type {sap.ui.webcomponents.base.types.Integer}
48
- * @defaultvalue 1
49
- * @public
50
- */
51
- step: {
52
- type: Float,
53
- defaultValue: 1,
54
- },
55
- /**
56
- * Displays a label with a value on every N-th step.
57
- * <br><br>
58
- * <b>Note:</b> The step and tickmarks properties must be enabled.
59
- * Example - if the step value is set to 2 and the label interval is also specified to 2 - then every second
60
- * tickmark will be labelled, which means every 4th value number.
61
- *
62
- * @type {sap.ui.webcomponents.base.types.Integer}
63
- * @defaultvalue 0
64
- * @public
65
- */
66
- labelInterval: {
67
- type: Integer,
68
- defaultValue: 0,
69
- },
70
- /**
71
- * Enables tickmarks visualization for each step.
72
- * <br><br>
73
- * <b>Note:</b> The step must be a positive number.
74
- *
75
- * @type {boolean}
76
- * @defaultvalue false
77
- * @public
78
- */
79
- showTickmarks: {
80
- type: Boolean,
81
- },
82
- /**
83
- * Enables handle tooltip displaying the current value.
84
- *
85
- * @type {boolean}
86
- * @defaultvalue false
87
- * @public
88
- */
89
- showTooltip: {
90
- type: Boolean,
91
- },
92
- /**
93
- * Defines whether the slider is in disabled state.
94
- *
95
- * @type {boolean}
96
- * @defaultvalue false
97
- * @public
98
- */
99
- disabled: {
100
- type: Boolean,
101
- },
102
-
103
- /**
104
- * Defines the accessible ARIA name of the component.
105
- *
106
- * @type {string}
107
- * @defaultvalue: ""
108
- * @public
109
- * @since 1.4.0
110
- */
111
- accessibleName: {
112
- type: String,
113
- },
114
-
115
- /**
116
- * @private
117
- */
118
- _tooltipVisibility: {
119
- type: String,
120
- defaultValue: "hidden",
121
- },
122
- _labelsOverlapping: {
123
- type: Boolean,
124
- },
125
- _hiddenTickmarks: {
126
- type: Boolean,
127
- },
128
- },
129
- events: /** @lends sap.ui.webcomponents.main.SliderBase.prototype */ {
130
- /**
131
- * Fired when the value changes and the user has finished interacting with the slider.
132
- *
133
- * @event
134
- * @public
135
- */
136
- change: {},
137
- /**
138
- * Fired when the value changes due to user interaction that is not yet finished - during mouse/touch dragging.
139
- *
140
- * @event
141
- * @public
142
- */
143
- input: {},
144
- },
145
- };
146
-
147
20
  /**
148
21
  * @class
149
22
  *
@@ -152,664 +25,585 @@ const metadata = {
152
25
  *
153
26
  * @constructor
154
27
  * @author SAP SE
155
- * @alias sap.ui.webcomponents.main.SliderBase
156
- * @extends sap.ui.webcomponents.base.UI5Element
28
+ * @alias sap.ui.webc.main.SliderBase
29
+ * @extends sap.ui.webc.base.UI5Element
157
30
  * @tagname ui5-slider
158
31
  * @public
159
32
  */
160
- class SliderBase extends UI5Element {
161
- constructor() {
162
- super();
163
- this._resizeHandler = this._handleResize.bind(this);
164
- this._moveHandler = this._handleMove.bind(this);
165
- this._upHandler = this._handleUp.bind(this);
166
-
167
- this._stateStorage = {
168
- step: null,
169
- min: null,
170
- max: null,
171
- labelInterval: null,
172
- };
173
-
174
- const handleTouchStartEvent = event => {
175
- this._onmousedown(event);
176
- };
177
-
178
- this._ontouchstart = {
179
- handleEvent: handleTouchStartEvent,
180
- passive: true,
181
- };
182
- }
183
-
184
- static get metadata() {
185
- return metadata;
186
- }
187
-
188
- static get render() {
189
- return litRender;
190
- }
191
-
192
- static get styles() {
193
- return styles;
194
- }
195
-
196
- static get UP_EVENTS() {
197
- return ["mouseup", "touchend"];
198
- }
199
-
200
- static get MOVE_EVENT_MAP() {
201
- return {
202
- mousedown: "mousemove",
203
- touchstart: "touchmove",
204
- };
205
- }
206
-
207
- static get ACTION_KEYS() {
208
- return [
209
- isLeft,
210
- isRight,
211
- isUp,
212
- isDown,
213
- isLeftCtrl,
214
- isRightCtrl,
215
- isUpCtrl,
216
- isDownCtrl,
217
- isPlus,
218
- isMinus,
219
- isHome,
220
- isEnd,
221
- isPageUp,
222
- isPageDown,
223
- isEscape,
224
- ];
225
- }
226
-
227
- static get MIN_SPACE_BETWEEN_TICKMARKS() {
228
- return 8;
229
- }
230
-
231
- static get TOOLTIP_VISIBILITY() {
232
- return {
233
- VISIBLE: "visible",
234
- HIDDEN: "hidden",
235
- };
236
- }
237
-
238
- get classes() {
239
- return {
240
- root: {
241
- "ui5-slider-root-phone": isPhone(),
242
- },
243
- labelContainer: {
244
- "ui5-slider-hidden-labels": this._labelsOverlapping,
245
- },
246
- };
247
- }
248
-
249
- onEnterDOM() {
250
- ResizeHandler.register(this, this._resizeHandler);
251
- }
252
-
253
- onExitDOM() {
254
- ResizeHandler.deregister(this, this._handleResize);
255
- }
256
-
257
- onAfterRendering() {
258
- // Only call if the resize is triggered by a state changes other than
259
- // the ones that occured on the previous resize and those caused by user interaction.
260
- if (this.notResized) {
261
- this._resizeHandler();
262
- }
263
- }
264
-
265
- /** Shows the tooltip(s) if the <code>showTooltip</code> property is set to true
266
- *
267
- * @private
268
- */
269
- _onmouseover(event) {
270
- if (this.showTooltip) {
271
- this._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.VISIBLE;
272
- }
273
- }
274
-
275
- /**
276
- * Hides the tooltip(s) if the <code>showTooltip</code> property is set to true
277
- *
278
- * @private
279
- */
280
- _onmouseout(event) {
281
- if (this.showTooltip && !this.shadowRoot.activeElement) {
282
- this._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;
283
- }
284
- }
285
-
286
- /**
287
- * Sets initial value when the component is focused in, can be restored with ESC key
288
- *
289
- * @private
290
- */
291
- _setInitialValue(valueType, value) {
292
- this[`_${valueType}Initial`] = value;
293
- }
294
-
295
- _getInitialValue(valueType) {
296
- return this[`_${valueType}Initial`];
297
- }
298
-
299
- _onkeydown(event) {
300
- if (this.disabled || this._effectiveStep === 0) {
301
- return;
302
- }
303
-
304
- if (SliderBase._isActionKey(event)) {
305
- event.preventDefault();
306
-
307
- this._isUserInteraction = true;
308
- this._handleActionKeyPress(event);
309
- }
310
- }
311
-
312
- _onkeyup(event) {
313
- if (this.disabled) {
314
- return;
315
- }
316
-
317
- this._isUserInteraction = false;
318
- }
319
-
320
- /**
321
- * Flags if an inner element is currently being focused
322
- *
323
- * @private
324
- */
325
- _preserveFocus(isFocusing) {
326
- this._isInnerElementFocusing = isFocusing;
327
- }
328
-
329
- /**
330
- * Return if an inside element within the component is currently being focused
331
- *
332
- * @private
333
- */
334
- _isFocusing() {
335
- return this._isInnerElementFocusing;
336
- }
337
-
338
- /**
339
- * Prevent focus out when inner element within the component is currently being in process of focusing in.
340
- * In theory this can be achieved either if the shadow root is focusable and 'delegatesFocus' attribute of
341
- * the .attachShadow() customElement method is set to true, or if we forward it manually.
342
-
343
- * As we use lit-element as base of our core UI5 element class that 'delegatesFocus' property is not set to 'true' and
344
- * we have to manage the focus here. If at some point in the future this changes, the focus delegating logic could be
345
- * removed as it will become redundant.
346
- *
347
- * When we manually set the focus on mouseDown to the first focusable element inside the shadowDom,
348
- * that inner focus (shadowRoot.activeElement) is set a moment before the global document.activeElement
349
- * is set to the customElement (ui5-slider) causing a 'race condition'.
350
- *
351
- * In order for a element within the shadowRoot to be focused, the global document.activeElement MUST be the parent
352
- * customElement of the shadow root, in our case the ui5-slider component. Because of that after our focusin of the handle,
353
- * a focusout event fired by the browser immidiatly after, resetting the focus. Focus out must be manually prevented
354
- * in both initial focusing and switching the focus between inner elements of the component cases.
355
-
356
- * Note: If we set the focus to the handle with a timeout or a bit later in time, on a mouseup or click event it will
357
- * work fine and we will avoid the described race condition as our host customElement will be already finished focusing.
358
- * However, that does not work for us as we need the focus to be set to the handle exactly on mousedown,
359
- * because of the nature of the component and its available drag interactions.
360
- *
361
- * @private
362
- */
363
- _preventFocusOut() {
364
- this.focusInnerElement();
365
- }
366
-
367
- /**
368
- * Manages the focus between the component's inner elements
369
- * @protected
370
- */
371
- focusInnerElement() {
372
- this.focus();
373
- }
374
-
375
- /**
376
- * Handle the responsiveness of the Slider's UI elements when resizing
377
- *
378
- * @private
379
- */
380
- _handleResize() {
381
- if (!this.showTickmarks) {
382
- return;
383
- }
384
-
385
- // Mark resizing to avoid unneccessary calls to that function after rendering
386
- this.notResized = false;
387
-
388
- // Convert the string represented calculation expression to a normal one
389
- // Check the distance in pixels exist between every tickmark
390
- const spaceBetweenTickmarks = this._spaceBetweenTickmarks();
391
-
392
- // If the pixels between the tickmarks are less than 8 only the first and the last one should be visible
393
- // In such case the labels must correspond to the tickmarks, only the first and the last one should exist.
394
- if (spaceBetweenTickmarks < SliderBase.MIN_SPACE_BETWEEN_TICKMARKS) {
395
- this._hiddenTickmarks = true;
396
- this._labelsOverlapping = true;
397
- } else {
398
- this._hiddenTickmarks = false;
399
- }
400
-
401
- if (this.labelInterval <= 0 || this._hiddenTickmarks) {
402
- return;
403
- }
404
-
405
- // Check if there are any overlapping labels.
406
- // If so - only the first and the last one should be visible
407
- const labelItems = this.shadowRoot.querySelectorAll(".ui5-slider-labels li");
408
- this._labelsOverlapping = [...labelItems].some(label => label.scrollWidth > label.clientWidth);
409
- }
410
-
411
- /**
412
- * Called when the user starts interacting with the slider.
413
- * After a down event on the slider root, listen for move events on window, so the slider value
414
- * is updated even if the user drags the pointer outside the slider root.
415
- *
416
- * @protected
417
- */
418
- handleDownBase(event) {
419
- const min = this._effectiveMin;
420
- const max = this._effectiveMax;
421
- const domRect = this.getBoundingClientRect();
422
- const directionStart = this.directionStart;
423
- const step = this._effectiveStep;
424
- const newValue = SliderBase.getValueFromInteraction(event, step, min, max, domRect, directionStart);
425
-
426
- // Mark start of a user interaction
427
- this._isUserInteraction = true;
428
- // Only allow one type of move event to be listened to (the first one registered after the down event)
429
- this._moveEventType = !this._moveEventType ? SliderBase.MOVE_EVENT_MAP[event.type] : this._moveEventType;
430
-
431
- SliderBase.UP_EVENTS.forEach(upEventType => window.addEventListener(upEventType, this._upHandler));
432
- window.addEventListener(this._moveEventType, this._moveHandler);
433
-
434
- this._handleFocusOnMouseDown(event);
435
- return newValue;
436
- }
437
-
438
- /**
439
- * Forward the focus to an inner inner part within the component on press
440
- *
441
- * @private
442
- */
443
- _handleFocusOnMouseDown(event) {
444
- const focusedElement = this.shadowRoot.activeElement;
445
-
446
- if (!focusedElement || focusedElement !== event.target) {
447
- this._preserveFocus(true);
448
- this.focusInnerElement();
449
- }
450
- }
451
-
452
- /**
453
- * Called when the user finish interacting with the slider
454
- * Fires an <code>change</code> event indicating a final value change, after user interaction is finished.
455
- *
456
- * @protected
457
- */
458
- handleUpBase(valueType) {
459
- SliderBase.UP_EVENTS.forEach(upEventType => window.removeEventListener(upEventType, this._upHandler));
460
- window.removeEventListener(this._moveEventType, this._moveHandler);
461
-
462
- this._moveEventType = null;
463
- this._isUserInteraction = false;
464
- this._preserveFocus(false);
465
- }
466
-
467
- /**
468
- * Updates value property of the component that has been changed due to a user action.
469
- * Fires an <code>input</code> event indicating a value change via interaction that is not yet finished.
470
- *
471
- * @protected
472
- */
473
- updateValue(valueType, value) {
474
- this[valueType] = value;
475
- this.storePropertyState(valueType);
476
- if (this._isUserInteraction) {
477
- this.fireEvent("input");
478
- }
479
- }
480
-
481
- /**
482
- * Goes through the key shortcuts available for the component and returns 'true' if the event is triggered by one.
483
- *
484
- * @private
485
- */
486
- static _isActionKey(event) {
487
- return this.ACTION_KEYS.some(actionKey => actionKey(event));
488
- }
489
-
490
- /**
491
- * Locks the given value between min and max boundaries based on slider properties
492
- *
493
- * @protected
494
- */
495
- static clipValue(value, min, max) {
496
- value = Math.min(Math.max(value, min), max);
497
- return value;
498
- }
499
-
500
- /**
501
- * Sets the slider value from an event
502
- *
503
- * @protected
504
- */
505
- static getValueFromInteraction(event, stepSize, min, max, boundingClientRect, directionStart) {
506
- const pageX = this.getPageXValueFromEvent(event);
507
- const value = this.computedValueFromPageX(pageX, min, max, boundingClientRect, directionStart);
508
- const steppedValue = this.getSteppedValue(value, stepSize, min);
509
-
510
- return this.clipValue(steppedValue, min, max);
511
- }
512
-
513
- /**
514
- * "Stepify" the raw value - calculate the new value depending on the specified step property
515
- *
516
- * @protected
517
- */
518
- static getSteppedValue(value, stepSize, min) {
519
- const stepModuloValue = Math.abs((value - min) % stepSize);
520
-
521
- if (stepSize === 0 || stepModuloValue === 0) {
522
- return value;
523
- }
524
-
525
- // Clip (snap) the new value to the nearest step
526
- value = (stepModuloValue * 2 >= stepSize) ? (value + stepSize) - stepModuloValue : value - stepModuloValue;
527
-
528
- // If the step value is not a round number get its precision
529
- const stepPrecision = SliderBase._getDecimalPrecisionOfNumber(stepSize);
530
- return value.toFixed(stepPrecision);
531
- }
532
-
533
- /**
534
- * Gets pageX value from event on user interaction with the Slider
535
- *
536
- * @protected
537
- */
538
- static getPageXValueFromEvent(event) {
539
- if (event.targetTouches && event.targetTouches.length > 0) {
540
- return event.targetTouches[0].pageX;
541
- }
542
-
543
- return event.pageX;
544
- }
545
-
546
- /**
547
- * Computes the new value (in %) from the pageX position of the cursor.
548
- * Returns the value rounded to a precision of at most 2 digits after decimal point.
549
- *
550
- * @protected
551
- */
552
- static computedValueFromPageX(pageX, min, max, boundingClientRect, directionStart) {
553
- // Determine pageX position relative to the Slider DOM
554
- const xRelativePosition = directionStart === "left" ? pageX - boundingClientRect[directionStart] : boundingClientRect[directionStart] - pageX;
555
- // Calculate the percentage complete (the "progress")
556
- const percentageComplete = xRelativePosition / boundingClientRect.width;
557
- // Fit (map) the complete percentage between the min/max value range
558
- return min + percentageComplete * (max - min);
559
- }
560
-
561
- /**
562
- * Calculates the precision (decimal places) of a number, returns 0 if integer
563
- * Handles scientific notation cases.
564
- * @private
565
- */
566
- static _getDecimalPrecisionOfNumber(value) {
567
- if (Number.isInteger(value)) {
568
- return 0;
569
- }
570
- const match = (String(value)).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
571
- return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? Number(match[2]) : 0));
572
- }
573
-
574
- /**
575
- * Normalize current properties, update the previously stored state.
576
- *
577
- * @protected
578
- */
579
- syncUIAndState(...values) {
580
- // Validate step and update the stored state for the step property.
581
- if (this.isPropertyUpdated("step")) {
582
- this._validateStep(this.step);
583
- this.storePropertyState("step");
584
- }
585
-
586
- // Recalculate the tickmarks and labels and update the stored state.
587
- if (this.isPropertyUpdated("min", "max", ...values)) {
588
- this.storePropertyState("min", "max");
589
-
590
- // Here the value props are changed programmatically (not by user interaction)
591
- // and it won't be "stepified" (rounded to the nearest step). 'Clip' them within
592
- // min and max bounderies and update the previous state reference.
593
- values.forEach(valueType => {
594
- const normalizedValue = SliderBase.clipValue(this[valueType], this._effectiveMin, this._effectiveMax);
595
- this.updateValue(valueType, normalizedValue);
596
- this.storePropertyState(valueType);
597
- });
598
- }
599
-
600
- // Labels must be updated if any of the min/max/step/labelInterval props are changed
601
- if (this.labelInterval && this.showTickmarks) {
602
- this._createLabels();
603
- }
604
-
605
- // Update the stored state for the labelInterval, if changed
606
- if (this.isPropertyUpdated("labelInterval")) {
607
- this.storePropertyState("labelInterval");
608
- }
609
- }
610
-
611
- /**
612
- * In order to always keep the visual UI representation and the internal
613
- * state in sync, the component has a 'state storage' that is updated when the
614
- * current state is changed due to a user action.
615
- *
616
- * Check if the previously saved state is outdated. That would mean
617
- * a property has been changed programmatically because the previous state
618
- * is always updated in the interaction handlers.
619
- *
620
- * Will return true if any of the properties is not equal to its previously
621
- * stored value.
622
- *
623
- * @protected
624
- */
625
- isCurrentStateOutdated() {
626
- return Object.entries(this._stateStorage).some(([propName, propValue]) => this[propName] !== propValue);
627
- }
628
-
629
- /**
630
- * Returns the last stored value of a property
631
- *
632
- * @protected
633
- */
634
- getStoredPropertyState(property) {
635
- return this._stateStorage[property];
636
- }
637
-
638
- /**
639
- * Check if one or more properties have been updated compared to their last
640
- * saved values in the state storage.
641
- *
642
- * @protected
643
- */
644
- isPropertyUpdated(...properties) {
645
- return properties.some(prop => this.getStoredPropertyState(prop) !== this[prop]);
646
- }
647
-
648
- /**
649
- * Updates the previously saved in the _stateStorage values of one or more properties.
650
- *
651
- * @protected
652
- */
653
- storePropertyState(...props) {
654
- props.forEach(property => {
655
- this._stateStorage[property] = this[property];
656
- });
657
- }
658
-
659
- /**
660
- * Returns the start side of a direction - left for LTR, right for RTL
661
- */
662
- get directionStart() {
663
- return this.effectiveDir === "rtl" ? "right" : "left";
664
- }
665
-
666
- /**
667
- * Calculates the labels amout, width and text and creates them
668
- *
669
- * @private
670
- */
671
- _createLabels() {
672
- if (!this.labelInterval || !this.showTickmarks) {
673
- return;
674
- }
675
-
676
- const labelInterval = this.labelInterval;
677
- const step = this._effectiveStep;
678
- const newNumberOfLabels = (this._effectiveMax - this._effectiveMin) / (step * labelInterval);
679
-
680
- // If the required labels are already rendered
681
- if (newNumberOfLabels === this._oldNumberOfLabels) {
682
- return;
683
- }
684
-
685
- this._oldNumberOfLabels = newNumberOfLabels;
686
- this._labelWidth = 100 / newNumberOfLabels;
687
- this._labelValues = [];
688
-
689
- // If the step value is not a round number get its precision
690
- const stepPrecision = SliderBase._getDecimalPrecisionOfNumber(step);
691
-
692
- // numberOfLabels below can be float so that the "distance betweenlabels labels"
693
- // calculation to be precize (exactly the same as the distance between the tickmarks).
694
- // That's ok as the loop stop condition is set to an integer, so it will practically
695
- // "floor" the number of labels anyway.
696
- for (let i = 0; i <= newNumberOfLabels; i++) {
697
- // Format the label numbers with the same decimal precision as the value of the step property
698
- const labelItemNumber = ((i * step * labelInterval) + this._effectiveMin).toFixed(stepPrecision);
699
- this._labelValues.push(labelItemNumber);
700
- }
701
- }
702
-
703
- _handleActionKeyPressBase(event, affectedValue) {
704
- const isUpAction = SliderBase._isIncreaseValueAction(event);
705
- const isBigStep = SliderBase._isBigStepAction(event);
706
-
707
- const currentValue = this[affectedValue];
708
- const min = this._effectiveMin;
709
- const max = this._effectiveMax;
710
-
711
- // We need to take into consideration the effective direction of the slider - rtl or ltr.
712
- // While in ltr, the left arrow key decreases the value, in rtl it should actually increase it.
713
- let step = this.effectiveDir === "rtl" ? -this._effectiveStep : this._effectiveStep;
714
-
715
- // If the action key corresponds to a long step and the slider has more than 10 normal steps,
716
- // make a jump of 1/10th of the Slider's length, otherwise just use the normal step property.
717
- step = isBigStep && ((max - min) / step > 10) ? (max - min) / 10 : step;
718
-
719
- if (isEnd(event)) {
720
- return max - currentValue;
721
- }
722
-
723
- if (isHome(event)) {
724
- return (currentValue - min) * -1;
725
- }
726
-
727
- return isUpAction ? step : step * -1;
728
- }
729
-
730
- static _isDecreaseValueAction(event) {
731
- return isDown(event) || isDownCtrl(event) || isLeft(event) || isLeftCtrl(event) || isMinus(event) || isPageDown(event);
732
- }
733
-
734
- static _isIncreaseValueAction(event) {
735
- return isUp(event) || isUpCtrl(event) || isRight(event) || isRightCtrl(event) || isPlus(event) || isPageUp(event);
736
- }
737
-
738
- static _isBigStepAction(event) {
739
- return isDownCtrl(event) || isUpCtrl(event) || isLeftCtrl(event) || isRightCtrl(event) || isPageUp(event) || isPageDown(event);
740
- }
741
-
742
- get _tickmarksCount() {
743
- return (this._effectiveMax - this._effectiveMin) / this._effectiveStep;
744
- }
745
-
746
- /**
747
- * Calculates space between tickmarks
748
- *
749
- * @private
750
- */
751
- _spaceBetweenTickmarks() {
752
- return this.getBoundingClientRect().width / this._tickmarksCount;
753
- }
754
-
755
- /**
756
- * Notify in case of a invalid step value type
757
- *
758
- * @private
759
- */
760
- _validateStep(step) {
761
- if (step === 0) {
762
- console.warn("The 'step' property must be a positive float number"); // eslint-disable-line
763
- }
764
-
765
- if (step < 0) {
766
- console.warn("The 'step' property must be a positive float number. The provided negative number has been converted to its positve equivalent"); // eslint-disable-line
767
- }
768
-
769
- if (typeof step !== "number" || Number.isNaN(step)) {
770
- console.warn("The 'step' property must be a positive float number. It has been set to its default value of 1"); // eslint-disable-line
771
- }
772
- }
773
-
774
- get _labels() {
775
- return this._labelValues || [];
776
- }
777
-
778
- /**
779
- * Normalizes a new <code>step</code> property value.
780
- * If tickmarks are enabled recreates them according to it.
781
- *
782
- * @private
783
- */
784
- get _effectiveStep() {
785
- let step = this.step;
786
-
787
- if (step < 0) {
788
- step = Math.abs(step);
789
- }
790
-
791
- if (typeof step !== "number" || Number.isNaN(step)) {
792
- step = 1;
793
- }
794
-
795
- return step;
796
- }
797
-
798
- get _effectiveMin() {
799
- return Math.min(this.min, this.max);
800
- }
801
-
802
- get _effectiveMax() {
803
- return Math.max(this.min, this.max);
804
- }
805
-
806
- get tabIndex() {
807
- return this.disabled ? "-1" : "0";
808
- }
809
-
810
- get _ariaLabelledByHandleRefs() {
811
- return [`${this._id}-accName`, `${this._id}-sliderDesc`].join(" ").trim();
812
- }
813
- }
814
-
33
+ /**
34
+ * Fired when the value changes and the user has finished interacting with the slider.
35
+ *
36
+ * @event sap.ui.webc.main.SliderBase#change
37
+ * @public
38
+ */
39
+ let SliderBase = SliderBase_1 = class SliderBase extends UI5Element {
40
+ constructor() {
41
+ super();
42
+ this.notResized = false;
43
+ this._isUserInteraction = false;
44
+ this._isInnerElementFocusing = false;
45
+ this._labelWidth = 0;
46
+ this._resizeHandler = this._handleResize.bind(this);
47
+ this._moveHandler = this._handleMove.bind(this);
48
+ this._upHandler = this._handleUp.bind(this);
49
+ this._stateStorage = {
50
+ step: undefined,
51
+ min: undefined,
52
+ max: undefined,
53
+ labelInterval: undefined,
54
+ };
55
+ const handleTouchStartEvent = (e) => {
56
+ this._onmousedown(e);
57
+ };
58
+ this._ontouchstart = {
59
+ handleEvent: handleTouchStartEvent,
60
+ passive: true,
61
+ };
62
+ }
63
+ _handleMove(e) { } // eslint-disable-line
64
+ _handleUp() { }
65
+ _onmousedown(e) { } // eslint-disable-line
66
+ _handleActionKeyPress(e) { } // eslint-disable-line
67
+ static get render() {
68
+ return litRender;
69
+ }
70
+ static get styles() {
71
+ return styles;
72
+ }
73
+ static get ACTION_KEYS() {
74
+ return [
75
+ isLeft,
76
+ isRight,
77
+ isUp,
78
+ isDown,
79
+ isLeftCtrl,
80
+ isRightCtrl,
81
+ isUpCtrl,
82
+ isDownCtrl,
83
+ isPlus,
84
+ isMinus,
85
+ isHome,
86
+ isEnd,
87
+ isPageUp,
88
+ isPageDown,
89
+ isEscape,
90
+ ];
91
+ }
92
+ static get MIN_SPACE_BETWEEN_TICKMARKS() {
93
+ return 8;
94
+ }
95
+ static get TOOLTIP_VISIBILITY() {
96
+ return {
97
+ VISIBLE: "visible",
98
+ HIDDEN: "hidden",
99
+ };
100
+ }
101
+ get classes() {
102
+ return {
103
+ root: {
104
+ "ui5-slider-root-phone": isPhone(),
105
+ },
106
+ labelContainer: {
107
+ "ui5-slider-hidden-labels": this._labelsOverlapping,
108
+ },
109
+ };
110
+ }
111
+ onEnterDOM() {
112
+ ResizeHandler.register(this, this._resizeHandler);
113
+ }
114
+ onExitDOM() {
115
+ ResizeHandler.deregister(this, this._resizeHandler);
116
+ }
117
+ onAfterRendering() {
118
+ // Only call if the resize is triggered by a state changes other than
119
+ // the ones that occured on the previous resize and those caused by user interaction.
120
+ if (this.notResized) {
121
+ this._resizeHandler();
122
+ }
123
+ }
124
+ /** Shows the tooltip(s) if the <code>showTooltip</code> property is set to true
125
+ *
126
+ * @private
127
+ */
128
+ _onmouseover() {
129
+ if (this.showTooltip) {
130
+ this._tooltipVisibility = SliderBase_1.TOOLTIP_VISIBILITY.VISIBLE;
131
+ }
132
+ }
133
+ /**
134
+ * Hides the tooltip(s) if the <code>showTooltip</code> property is set to true
135
+ *
136
+ * @private
137
+ */
138
+ _onmouseout() {
139
+ if (this.showTooltip && !this.shadowRoot.activeElement) {
140
+ this._tooltipVisibility = SliderBase_1.TOOLTIP_VISIBILITY.HIDDEN;
141
+ }
142
+ }
143
+ _onkeydown(e) {
144
+ if (this.disabled || this._effectiveStep === 0) {
145
+ return;
146
+ }
147
+ if (SliderBase_1._isActionKey(e)) {
148
+ e.preventDefault();
149
+ this._isUserInteraction = true;
150
+ this._handleActionKeyPress(e);
151
+ }
152
+ }
153
+ _onkeyup() {
154
+ if (this.disabled) {
155
+ return;
156
+ }
157
+ this._isUserInteraction = false;
158
+ }
159
+ /**
160
+ * Flags if an inner element is currently being focused
161
+ *
162
+ * @private
163
+ */
164
+ _preserveFocus(isFocusing) {
165
+ this._isInnerElementFocusing = isFocusing;
166
+ }
167
+ /**
168
+ * Return if an inside element within the component is currently being focused
169
+ *
170
+ * @private
171
+ */
172
+ _isFocusing() {
173
+ return this._isInnerElementFocusing;
174
+ }
175
+ /**
176
+ * Prevent focus out when inner element within the component is currently being in process of focusing in.
177
+ * In theory this can be achieved either if the shadow root is focusable and 'delegatesFocus' attribute of
178
+ * the .attachShadow() customElement method is set to true, or if we forward it manually.
179
+
180
+ * As we use lit-element as base of our core UI5 element class that 'delegatesFocus' property is not set to 'true' and
181
+ * we have to manage the focus here. If at some point in the future this changes, the focus delegating logic could be
182
+ * removed as it will become redundant.
183
+ *
184
+ * When we manually set the focus on mouseDown to the first focusable element inside the shadowDom,
185
+ * that inner focus (shadowRoot.activeElement) is set a moment before the global document.activeElement
186
+ * is set to the customElement (ui5-slider) causing a 'race condition'.
187
+ *
188
+ * In order for a element within the shadowRoot to be focused, the global document.activeElement MUST be the parent
189
+ * customElement of the shadow root, in our case the ui5-slider component. Because of that after our focusin of the handle,
190
+ * a focusout event fired by the browser immidiatly after, resetting the focus. Focus out must be manually prevented
191
+ * in both initial focusing and switching the focus between inner elements of the component cases.
192
+
193
+ * Note: If we set the focus to the handle with a timeout or a bit later in time, on a mouseup or click event it will
194
+ * work fine and we will avoid the described race condition as our host customElement will be already finished focusing.
195
+ * However, that does not work for us as we need the focus to be set to the handle exactly on mousedown,
196
+ * because of the nature of the component and its available drag interactions.
197
+ *
198
+ * @private
199
+ */
200
+ _preventFocusOut() {
201
+ this.focusInnerElement();
202
+ }
203
+ /**
204
+ * Manages the focus between the component's inner elements
205
+ * @protected
206
+ */
207
+ focusInnerElement() {
208
+ this.focus();
209
+ }
210
+ /**
211
+ * Handle the responsiveness of the Slider's UI elements when resizing
212
+ *
213
+ * @private
214
+ */
215
+ _handleResize() {
216
+ if (!this.showTickmarks) {
217
+ return;
218
+ }
219
+ // Mark resizing to avoid unneccessary calls to that function after rendering
220
+ this.notResized = false;
221
+ // Convert the string represented calculation expression to a normal one
222
+ // Check the distance in pixels exist between every tickmark
223
+ const spaceBetweenTickmarks = this._spaceBetweenTickmarks();
224
+ // If the pixels between the tickmarks are less than 8 only the first and the last one should be visible
225
+ // In such case the labels must correspond to the tickmarks, only the first and the last one should exist.
226
+ if (spaceBetweenTickmarks < SliderBase_1.MIN_SPACE_BETWEEN_TICKMARKS) {
227
+ this._hiddenTickmarks = true;
228
+ this._labelsOverlapping = true;
229
+ }
230
+ else {
231
+ this._hiddenTickmarks = false;
232
+ }
233
+ if (this.labelInterval <= 0 || this._hiddenTickmarks) {
234
+ return;
235
+ }
236
+ // Check if there are any overlapping labels.
237
+ // If so - only the first and the last one should be visible
238
+ const labelItems = this.shadowRoot.querySelectorAll(".ui5-slider-labels li");
239
+ this._labelsOverlapping = [...labelItems].some(label => label.scrollWidth > label.clientWidth);
240
+ }
241
+ /**
242
+ * Called when the user starts interacting with the slider.
243
+ * After a down event on the slider root, listen for move events on window, so the slider value
244
+ * is updated even if the user drags the pointer outside the slider root.
245
+ *
246
+ * @protected
247
+ */
248
+ handleDownBase(e) {
249
+ const min = this._effectiveMin;
250
+ const max = this._effectiveMax;
251
+ const domRect = this.getBoundingClientRect();
252
+ const directionStart = this.directionStart;
253
+ const step = this._effectiveStep;
254
+ const newValue = SliderBase_1.getValueFromInteraction(e, step, min, max, domRect, directionStart);
255
+ // Mark start of a user interaction
256
+ this._isUserInteraction = true;
257
+ window.addEventListener("mouseup", this._upHandler);
258
+ window.addEventListener("touchend", this._upHandler);
259
+ // Only allow one type of move event to be listened to (the first one registered after the down event)
260
+ if (e instanceof TouchEvent) {
261
+ window.addEventListener("touchmove", this._moveHandler);
262
+ }
263
+ else {
264
+ window.addEventListener("mousemove", this._moveHandler);
265
+ }
266
+ this._handleFocusOnMouseDown(e);
267
+ return newValue;
268
+ }
269
+ /**
270
+ * Forward the focus to an inner inner part within the component on press
271
+ *
272
+ * @private
273
+ */
274
+ _handleFocusOnMouseDown(e) {
275
+ const focusedElement = this.shadowRoot.activeElement;
276
+ if (!focusedElement || focusedElement !== e.target) {
277
+ this._preserveFocus(true);
278
+ this.focusInnerElement();
279
+ }
280
+ }
281
+ /**
282
+ * Called when the user finish interacting with the slider
283
+ * Fires an <code>change</code> event indicating a final value change, after user interaction is finished.
284
+ *
285
+ * @protected
286
+ */
287
+ handleUpBase() {
288
+ window.removeEventListener("mouseup", this._upHandler);
289
+ window.removeEventListener("touchend", this._upHandler);
290
+ // Only one of the following was attached, but it's ok to remove both as there is no error
291
+ window.removeEventListener("mousemove", this._moveHandler);
292
+ window.removeEventListener("touchmove", this._moveHandler);
293
+ this._isUserInteraction = false;
294
+ this._preserveFocus(false);
295
+ }
296
+ /**
297
+ * Updates state storage for the value-related property
298
+ * Fires an <code>input</code> event indicating a value change via interaction that is not yet finished.
299
+ *
300
+ * @protected
301
+ */
302
+ updateStateStorageAndFireInputEvent(valueType) {
303
+ this.storePropertyState(valueType);
304
+ if (this._isUserInteraction) {
305
+ this.fireEvent("input");
306
+ }
307
+ }
308
+ /**
309
+ * Goes through the key shortcuts available for the component and returns 'true' if the event is triggered by one.
310
+ *
311
+ * @private
312
+ */
313
+ static _isActionKey(e) {
314
+ return this.ACTION_KEYS.some(actionKey => actionKey(e));
315
+ }
316
+ /**
317
+ * Locks the given value between min and max boundaries based on slider properties
318
+ *
319
+ * @protected
320
+ */
321
+ static clipValue(value, min, max) {
322
+ value = Math.min(Math.max(value, min), max);
323
+ return value;
324
+ }
325
+ /**
326
+ * Sets the slider value from an event
327
+ *
328
+ * @protected
329
+ */
330
+ static getValueFromInteraction(e, stepSize, min, max, boundingClientRect, directionStart) {
331
+ const pageX = this.getPageXValueFromEvent(e);
332
+ const value = this.computedValueFromPageX(pageX, min, max, boundingClientRect, directionStart);
333
+ const steppedValue = this.getSteppedValue(value, stepSize, min);
334
+ return this.clipValue(steppedValue, min, max);
335
+ }
336
+ /**
337
+ * "Stepify" the raw value - calculate the new value depending on the specified step property
338
+ *
339
+ * @protected
340
+ */
341
+ static getSteppedValue(value, stepSize, min) {
342
+ const stepModuloValue = Math.abs((value - min) % stepSize);
343
+ if (stepSize === 0 || stepModuloValue === 0) {
344
+ return value;
345
+ }
346
+ // Clip (snap) the new value to the nearest step
347
+ value = (stepModuloValue * 2 >= stepSize) ? (value + stepSize) - stepModuloValue : value - stepModuloValue;
348
+ // If the step value is not a round number get its precision
349
+ const stepPrecision = SliderBase_1._getDecimalPrecisionOfNumber(stepSize);
350
+ return Number(value.toFixed(stepPrecision));
351
+ }
352
+ /**
353
+ * Gets pageX value from event on user interaction with the Slider
354
+ *
355
+ * @protected
356
+ */
357
+ static getPageXValueFromEvent(e) {
358
+ if (e instanceof TouchEvent) {
359
+ if (e.targetTouches && e.targetTouches.length > 0) {
360
+ return e.targetTouches[0].pageX;
361
+ }
362
+ return 0;
363
+ }
364
+ return e.pageX; // MouseEvent
365
+ }
366
+ /**
367
+ * Computes the new value (in %) from the pageX position of the cursor.
368
+ * Returns the value rounded to a precision of at most 2 digits after decimal point.
369
+ *
370
+ * @protected
371
+ */
372
+ static computedValueFromPageX(pageX, min, max, boundingClientRect, directionStart) {
373
+ // Determine pageX position relative to the Slider DOM
374
+ const xRelativePosition = directionStart === "left" ? pageX - boundingClientRect[directionStart] : boundingClientRect[directionStart] - pageX;
375
+ // Calculate the percentage complete (the "progress")
376
+ const percentageComplete = xRelativePosition / boundingClientRect.width;
377
+ // Fit (map) the complete percentage between the min/max value range
378
+ return min + percentageComplete * (max - min);
379
+ }
380
+ /**
381
+ * Calculates the precision (decimal places) of a number, returns 0 if integer
382
+ * Handles scientific notation cases.
383
+ * @private
384
+ */
385
+ static _getDecimalPrecisionOfNumber(value) {
386
+ if (Number.isInteger(value)) {
387
+ return 0;
388
+ }
389
+ const match = (String(value)).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
390
+ if (!match || match.length < 2) {
391
+ return 0;
392
+ }
393
+ return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? Number(match[2]) : 0));
394
+ }
395
+ /**
396
+ * In order to always keep the visual UI representation and the internal
397
+ * state in sync, the component has a 'state storage' that is updated when the
398
+ * current state is changed due to a user action.
399
+ *
400
+ * Check if the previously saved state is outdated. That would mean
401
+ * a property has been changed programmatically because the previous state
402
+ * is always updated in the interaction handlers.
403
+ *
404
+ * Will return true if any of the properties is not equal to its previously
405
+ * stored value.
406
+ *
407
+ * @protected
408
+ */
409
+ isCurrentStateOutdated() {
410
+ return Object.entries(this._stateStorage).some(([propName, propValue]) => this[propName] !== propValue);
411
+ }
412
+ /**
413
+ * Returns the last stored value of a property
414
+ *
415
+ * @protected
416
+ */
417
+ getStoredPropertyState(prop) {
418
+ return this._stateStorage[prop];
419
+ }
420
+ /**
421
+ * Check if one or more properties have been updated compared to their last
422
+ * saved values in the state storage.
423
+ *
424
+ * @protected
425
+ */
426
+ isPropertyUpdated(...props) {
427
+ return props.some(prop => this.getStoredPropertyState(prop) !== this[prop]);
428
+ }
429
+ /**
430
+ * Updates the previously saved in the _stateStorage values of one or more properties.
431
+ *
432
+ * @protected
433
+ */
434
+ storePropertyState(...props) {
435
+ props.forEach(prop => {
436
+ this._stateStorage[prop] = this[prop];
437
+ });
438
+ }
439
+ /**
440
+ * Returns the start side of a direction - left for LTR, right for RTL
441
+ */
442
+ get directionStart() {
443
+ return this.effectiveDir === "rtl" ? "right" : "left";
444
+ }
445
+ /**
446
+ * Calculates the labels amount, width and text and creates them
447
+ *
448
+ * @private
449
+ */
450
+ _createLabels() {
451
+ if (!this.labelInterval || !this.showTickmarks) {
452
+ return;
453
+ }
454
+ const labelInterval = this.labelInterval;
455
+ const step = this._effectiveStep;
456
+ const newNumberOfLabels = (this._effectiveMax - this._effectiveMin) / (step * labelInterval);
457
+ // If the required labels are already rendered
458
+ if (newNumberOfLabels === this._oldNumberOfLabels) {
459
+ return;
460
+ }
461
+ this._oldNumberOfLabels = newNumberOfLabels;
462
+ this._labelWidth = 100 / newNumberOfLabels;
463
+ this._labelValues = [];
464
+ // If the step value is not a round number get its precision
465
+ const stepPrecision = SliderBase_1._getDecimalPrecisionOfNumber(step);
466
+ // numberOfLabels below can be float so that the "distance betweenlabels labels"
467
+ // calculation to be precize (exactly the same as the distance between the tickmarks).
468
+ // That's ok as the loop stop condition is set to an integer, so it will practically
469
+ // "floor" the number of labels anyway.
470
+ for (let i = 0; i <= newNumberOfLabels; i++) {
471
+ // Format the label numbers with the same decimal precision as the value of the step property
472
+ const labelItemNumber = ((i * step * labelInterval) + this._effectiveMin).toFixed(stepPrecision);
473
+ this._labelValues.push(labelItemNumber);
474
+ }
475
+ }
476
+ _handleActionKeyPressBase(e, affectedPropName) {
477
+ const isUpAction = SliderBase_1._isIncreaseValueAction(e);
478
+ const isBigStep = SliderBase_1._isBigStepAction(e);
479
+ const currentValue = this[affectedPropName];
480
+ const min = this._effectiveMin;
481
+ const max = this._effectiveMax;
482
+ // We need to take into consideration the effective direction of the slider - rtl or ltr.
483
+ // While in ltr, the left arrow key decreases the value, in rtl it should actually increase it.
484
+ let step = this.effectiveDir === "rtl" ? -this._effectiveStep : this._effectiveStep;
485
+ // If the action key corresponds to a long step and the slider has more than 10 normal steps,
486
+ // make a jump of 1/10th of the Slider's length, otherwise just use the normal step property.
487
+ step = isBigStep && ((max - min) / step > 10) ? (max - min) / 10 : step;
488
+ if (isEnd(e)) {
489
+ return max - currentValue;
490
+ }
491
+ if (isHome(e)) {
492
+ return (currentValue - min) * -1;
493
+ }
494
+ return isUpAction ? step : step * -1;
495
+ }
496
+ static _isDecreaseValueAction(e) {
497
+ return isDown(e) || isDownCtrl(e) || isLeft(e) || isLeftCtrl(e) || isMinus(e) || isPageDown(e);
498
+ }
499
+ static _isIncreaseValueAction(e) {
500
+ return isUp(e) || isUpCtrl(e) || isRight(e) || isRightCtrl(e) || isPlus(e) || isPageUp(e);
501
+ }
502
+ static _isBigStepAction(e) {
503
+ return isDownCtrl(e) || isUpCtrl(e) || isLeftCtrl(e) || isRightCtrl(e) || isPageUp(e) || isPageDown(e);
504
+ }
505
+ get _tickmarksCount() {
506
+ return (this._effectiveMax - this._effectiveMin) / this._effectiveStep;
507
+ }
508
+ /**
509
+ * Calculates space between tickmarks
510
+ *
511
+ * @private
512
+ */
513
+ _spaceBetweenTickmarks() {
514
+ return this.getBoundingClientRect().width / this._tickmarksCount;
515
+ }
516
+ /**
517
+ * Notify in case of a invalid step value type
518
+ *
519
+ * @private
520
+ */
521
+ _validateStep(step) {
522
+ if (step === 0) {
523
+ console.warn("The 'step' property must be a positive float number"); // eslint-disable-line
524
+ }
525
+ if (step < 0) {
526
+ console.warn("The 'step' property must be a positive float number. The provided negative number has been converted to its positve equivalent"); // eslint-disable-line
527
+ }
528
+ if (Number.isNaN(step)) {
529
+ console.warn("The 'step' property must be a positive float number. It has been set to its default value of 1"); // eslint-disable-line
530
+ }
531
+ }
532
+ get _labels() {
533
+ return this._labelValues || [];
534
+ }
535
+ /**
536
+ * Normalizes a new <code>step</code> property value.
537
+ * If tickmarks are enabled recreates them according to it.
538
+ *
539
+ * @private
540
+ */
541
+ get _effectiveStep() {
542
+ let step = this.step;
543
+ if (step < 0) {
544
+ step = Math.abs(step);
545
+ }
546
+ if (Number.isNaN(step)) {
547
+ step = 1;
548
+ }
549
+ return step;
550
+ }
551
+ get _effectiveMin() {
552
+ return Math.min(this.min, this.max);
553
+ }
554
+ get _effectiveMax() {
555
+ return Math.max(this.min, this.max);
556
+ }
557
+ get _tabIndex() {
558
+ return this.disabled ? "-1" : "0";
559
+ }
560
+ get _ariaLabelledByHandleRefs() {
561
+ return [`${this._id}-accName`, `${this._id}-sliderDesc`].join(" ").trim();
562
+ }
563
+ };
564
+ __decorate([
565
+ property({ validator: Float, defaultValue: 0 })
566
+ ], SliderBase.prototype, "min", void 0);
567
+ __decorate([
568
+ property({ validator: Float, defaultValue: 100 })
569
+ ], SliderBase.prototype, "max", void 0);
570
+ __decorate([
571
+ property({ validator: Float, defaultValue: 1 })
572
+ ], SliderBase.prototype, "step", void 0);
573
+ __decorate([
574
+ property({ validator: Integer, defaultValue: 0 })
575
+ ], SliderBase.prototype, "labelInterval", void 0);
576
+ __decorate([
577
+ property({ type: Boolean })
578
+ ], SliderBase.prototype, "showTickmarks", void 0);
579
+ __decorate([
580
+ property({ type: Boolean })
581
+ ], SliderBase.prototype, "showTooltip", void 0);
582
+ __decorate([
583
+ property({ type: Boolean })
584
+ ], SliderBase.prototype, "disabled", void 0);
585
+ __decorate([
586
+ property()
587
+ ], SliderBase.prototype, "accessibleName", void 0);
588
+ __decorate([
589
+ property({ defaultValue: "hidden" })
590
+ ], SliderBase.prototype, "_tooltipVisibility", void 0);
591
+ __decorate([
592
+ property({ type: Boolean })
593
+ ], SliderBase.prototype, "_labelsOverlapping", void 0);
594
+ __decorate([
595
+ property({ type: Boolean })
596
+ ], SliderBase.prototype, "_hiddenTickmarks", void 0);
597
+ SliderBase = SliderBase_1 = __decorate([
598
+ event("change")
599
+ /**
600
+ * Fired when the value changes due to user interaction that is not yet finished - during mouse/touch dragging.
601
+ *
602
+ * @event sap.ui.webc.main.SliderBase#input
603
+ * @public
604
+ */
605
+ ,
606
+ event("input")
607
+ ], SliderBase);
815
608
  export default SliderBase;
609
+ //# sourceMappingURL=SliderBase.js.map