@ui5/webcomponents 2.3.1-rc.0 → 2.4.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (540) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/cypress/specs/Button.cy.ts +13 -26
  3. package/cypress/specs/Form.cy.ts +100 -96
  4. package/cypress/specs/Menu.cy.ts +5 -10
  5. package/cypress/specs/RTL.cy.ts +2 -4
  6. package/cypress/specs/base/AriaLabelHelper.cy.ts +2 -4
  7. package/cypress/specs/base/Events.cy.ts +207 -0
  8. package/dist/.tsbuildinfo +1 -1
  9. package/dist/Avatar.js +4 -2
  10. package/dist/Avatar.js.map +1 -1
  11. package/dist/AvatarGroup.js +2 -2
  12. package/dist/AvatarGroup.js.map +1 -1
  13. package/dist/Breadcrumbs.js +6 -5
  14. package/dist/Breadcrumbs.js.map +1 -1
  15. package/dist/Button.js +8 -3
  16. package/dist/Button.js.map +1 -1
  17. package/dist/Calendar.js +17 -12
  18. package/dist/Calendar.js.map +1 -1
  19. package/dist/CalendarLegend.js +6 -3
  20. package/dist/CalendarLegend.js.map +1 -1
  21. package/dist/CardHeader.js +6 -4
  22. package/dist/CardHeader.js.map +1 -1
  23. package/dist/Carousel.js +4 -3
  24. package/dist/Carousel.js.map +1 -1
  25. package/dist/CheckBox.js +16 -5
  26. package/dist/CheckBox.js.map +1 -1
  27. package/dist/ColorPalette.js +1 -1
  28. package/dist/ColorPalette.js.map +1 -1
  29. package/dist/ColorPaletteItem.js +5 -0
  30. package/dist/ColorPaletteItem.js.map +1 -1
  31. package/dist/ColorPalettePopover.js +12 -3
  32. package/dist/ColorPalettePopover.js.map +1 -1
  33. package/dist/ColorPicker.js +5 -2
  34. package/dist/ColorPicker.js.map +1 -1
  35. package/dist/ComboBox.js +16 -11
  36. package/dist/ComboBox.js.map +1 -1
  37. package/dist/DatePicker.js +8 -5
  38. package/dist/DatePicker.js.map +1 -1
  39. package/dist/DayPicker.js +15 -7
  40. package/dist/DayPicker.js.map +1 -1
  41. package/dist/FileUploader.js +5 -3
  42. package/dist/FileUploader.js.map +1 -1
  43. package/dist/Form.d.ts +3 -3
  44. package/dist/Form.js +5 -5
  45. package/dist/Form.js.map +1 -1
  46. package/dist/FormGroup.js +3 -0
  47. package/dist/FormGroup.js.map +1 -1
  48. package/dist/Icon.js +5 -3
  49. package/dist/Icon.js.map +1 -1
  50. package/dist/Input.js +41 -19
  51. package/dist/Input.js.map +1 -1
  52. package/dist/Link.d.ts +1 -6
  53. package/dist/Link.js +10 -15
  54. package/dist/Link.js.map +1 -1
  55. package/dist/List.d.ts +1 -0
  56. package/dist/List.js +31 -19
  57. package/dist/List.js.map +1 -1
  58. package/dist/ListItem.d.ts +1 -0
  59. package/dist/ListItem.js +20 -7
  60. package/dist/ListItem.js.map +1 -1
  61. package/dist/ListItemBase.js +21 -10
  62. package/dist/ListItemBase.js.map +1 -1
  63. package/dist/ListItemGroup.js +6 -5
  64. package/dist/ListItemGroup.js.map +1 -1
  65. package/dist/MessageStrip.js +4 -2
  66. package/dist/MessageStrip.js.map +1 -1
  67. package/dist/MonthPicker.js +9 -5
  68. package/dist/MonthPicker.js.map +1 -1
  69. package/dist/MultiComboBox.js +24 -15
  70. package/dist/MultiComboBox.js.map +1 -1
  71. package/dist/MultiInput.js +6 -3
  72. package/dist/MultiInput.js.map +1 -1
  73. package/dist/Panel.js +5 -3
  74. package/dist/Panel.js.map +1 -1
  75. package/dist/Popover.js +1 -1
  76. package/dist/Popover.js.map +1 -1
  77. package/dist/Popup.js +16 -13
  78. package/dist/Popup.js.map +1 -1
  79. package/dist/RadioButton.js +4 -2
  80. package/dist/RadioButton.js.map +1 -1
  81. package/dist/RadioButtonGroup.js +1 -1
  82. package/dist/RadioButtonGroup.js.map +1 -1
  83. package/dist/RangeSlider.d.ts +16 -6
  84. package/dist/RangeSlider.js +172 -21
  85. package/dist/RangeSlider.js.map +1 -1
  86. package/dist/RatingIndicator.js +5 -3
  87. package/dist/RatingIndicator.js.map +1 -1
  88. package/dist/ResponsivePopover.js +1 -1
  89. package/dist/ResponsivePopover.js.map +1 -1
  90. package/dist/SegmentedButton.js +2 -1
  91. package/dist/SegmentedButton.js.map +1 -1
  92. package/dist/Select.d.ts +3 -3
  93. package/dist/Select.js +20 -8
  94. package/dist/Select.js.map +1 -1
  95. package/dist/Slider.d.ts +10 -2
  96. package/dist/Slider.js +55 -7
  97. package/dist/Slider.js.map +1 -1
  98. package/dist/SliderBase.d.ts +28 -4
  99. package/dist/SliderBase.js +82 -12
  100. package/dist/SliderBase.js.map +1 -1
  101. package/dist/SplitButton.js +8 -4
  102. package/dist/SplitButton.js.map +1 -1
  103. package/dist/StepInput.js +8 -5
  104. package/dist/StepInput.js.map +1 -1
  105. package/dist/Switch.js +16 -4
  106. package/dist/Switch.js.map +1 -1
  107. package/dist/TabContainer.js +16 -14
  108. package/dist/TabContainer.js.map +1 -1
  109. package/dist/Table.js +2 -1
  110. package/dist/Table.js.map +1 -1
  111. package/dist/TableGrowing.js +4 -2
  112. package/dist/TableGrowing.js.map +1 -1
  113. package/dist/TableSelection.js +6 -4
  114. package/dist/TableSelection.js.map +1 -1
  115. package/dist/Tag.js +4 -2
  116. package/dist/Tag.js.map +1 -1
  117. package/dist/TextArea.js +26 -10
  118. package/dist/TextArea.js.map +1 -1
  119. package/dist/TimePicker.js +11 -5
  120. package/dist/TimePicker.js.map +1 -1
  121. package/dist/TimePickerClock.js +3 -2
  122. package/dist/TimePickerClock.js.map +1 -1
  123. package/dist/TimePickerInternals.js +2 -1
  124. package/dist/TimePickerInternals.js.map +1 -1
  125. package/dist/TimeSelectionClocks.d.ts +1 -2
  126. package/dist/TimeSelectionClocks.js +5 -10
  127. package/dist/TimeSelectionClocks.js.map +1 -1
  128. package/dist/TimeSelectionInputs.js +5 -1
  129. package/dist/TimeSelectionInputs.js.map +1 -1
  130. package/dist/Toast.js +4 -2
  131. package/dist/Toast.js.map +1 -1
  132. package/dist/Token.js +7 -4
  133. package/dist/Token.js.map +1 -1
  134. package/dist/Tokenizer.js +23 -17
  135. package/dist/Tokenizer.js.map +1 -1
  136. package/dist/Toolbar.js +14 -1
  137. package/dist/Toolbar.js.map +1 -1
  138. package/dist/ToolbarSelect.js +5 -2
  139. package/dist/ToolbarSelect.js.map +1 -1
  140. package/dist/Tree.js +34 -12
  141. package/dist/Tree.js.map +1 -1
  142. package/dist/TreeItemBase.js +8 -5
  143. package/dist/TreeItemBase.js.map +1 -1
  144. package/dist/YearPicker.js +9 -5
  145. package/dist/YearPicker.js.map +1 -1
  146. package/dist/bundle.scoped.config.d.ts +1 -0
  147. package/dist/bundle.scoped.config.js +5 -0
  148. package/dist/bundle.scoped.config.js.map +1 -0
  149. package/dist/bundle.scoped.esm.d.ts +1 -0
  150. package/dist/bundle.scoped.esm.js +1 -4
  151. package/dist/bundle.scoped.esm.js.map +1 -1
  152. package/dist/css/themes/Avatar.css +1 -1
  153. package/dist/css/themes/AvatarGroup.css +1 -1
  154. package/dist/css/themes/Bar.css +1 -1
  155. package/dist/css/themes/Breadcrumbs.css +1 -1
  156. package/dist/css/themes/BusyIndicator.css +1 -1
  157. package/dist/css/themes/Button.css +1 -1
  158. package/dist/css/themes/Calendar.css +1 -1
  159. package/dist/css/themes/CalendarHeader.css +1 -1
  160. package/dist/css/themes/CalendarLegend.css +1 -1
  161. package/dist/css/themes/CalendarLegendItem.css +1 -1
  162. package/dist/css/themes/Card.css +1 -1
  163. package/dist/css/themes/CardHeader.css +1 -1
  164. package/dist/css/themes/Carousel.css +1 -1
  165. package/dist/css/themes/CheckBox.css +1 -1
  166. package/dist/css/themes/ColorPalette.css +1 -1
  167. package/dist/css/themes/ColorPaletteItem.css +1 -1
  168. package/dist/css/themes/ColorPalettePopover.css +1 -1
  169. package/dist/css/themes/ColorPicker.css +1 -1
  170. package/dist/css/themes/ComboBox.css +1 -1
  171. package/dist/css/themes/DatePicker.css +1 -1
  172. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  173. package/dist/css/themes/DayPicker.css +1 -1
  174. package/dist/css/themes/Dialog.css +1 -1
  175. package/dist/css/themes/FileUploader.css +1 -1
  176. package/dist/css/themes/Form.css +1 -1
  177. package/dist/css/themes/FormItem.css +1 -1
  178. package/dist/css/themes/FormLabelSpan.css +1 -1
  179. package/dist/css/themes/FormLayout.css +1 -1
  180. package/dist/css/themes/GrowingButton.css +1 -1
  181. package/dist/css/themes/Icon.css +1 -1
  182. package/dist/css/themes/Input.css +1 -1
  183. package/dist/css/themes/InputIcon.css +1 -1
  184. package/dist/css/themes/InputSharedStyles.css +1 -1
  185. package/dist/css/themes/Link.css +1 -1
  186. package/dist/css/themes/List.css +1 -1
  187. package/dist/css/themes/ListItem.css +1 -1
  188. package/dist/css/themes/ListItemBase.css +1 -1
  189. package/dist/css/themes/ListItemCustom.css +1 -1
  190. package/dist/css/themes/ListItemGroup.css +1 -1
  191. package/dist/css/themes/ListItemGroupHeader.css +1 -1
  192. package/dist/css/themes/ListItemIcon.css +1 -1
  193. package/dist/css/themes/Menu.css +1 -1
  194. package/dist/css/themes/MenuItem.css +1 -1
  195. package/dist/css/themes/MessageStrip.css +1 -1
  196. package/dist/css/themes/MonthPicker.css +1 -1
  197. package/dist/css/themes/MultiComboBox.css +1 -1
  198. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  199. package/dist/css/themes/MultiInput.css +1 -1
  200. package/dist/css/themes/NavigationMenu.css +1 -1
  201. package/dist/css/themes/NavigationMenuItem.css +1 -1
  202. package/dist/css/themes/OptionBase.css +1 -1
  203. package/dist/css/themes/Panel.css +1 -1
  204. package/dist/css/themes/Popover.css +1 -1
  205. package/dist/css/themes/PopupsCommon.css +1 -1
  206. package/dist/css/themes/ProgressIndicator.css +1 -1
  207. package/dist/css/themes/RadioButton.css +1 -1
  208. package/dist/css/themes/RangeSlider.css +1 -1
  209. package/dist/css/themes/RatingIndicator.css +1 -1
  210. package/dist/css/themes/ResponsivePopover.css +1 -1
  211. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  212. package/dist/css/themes/SegmentedButton.css +1 -1
  213. package/dist/css/themes/SegmentedButtonItem.css +1 -1
  214. package/dist/css/themes/Select.css +1 -1
  215. package/dist/css/themes/SliderBase.css +1 -1
  216. package/dist/css/themes/SplitButton.css +1 -1
  217. package/dist/css/themes/StepInput.css +1 -1
  218. package/dist/css/themes/SuggestionItem.css +1 -1
  219. package/dist/css/themes/SuggestionItemCustom.css +1 -1
  220. package/dist/css/themes/Switch.css +1 -1
  221. package/dist/css/themes/TabContainer.css +1 -1
  222. package/dist/css/themes/TabInOverflow.css +1 -1
  223. package/dist/css/themes/TabInStrip.css +1 -1
  224. package/dist/css/themes/TabSemanticIcon.css +1 -1
  225. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  226. package/dist/css/themes/Table.css +1 -1
  227. package/dist/css/themes/TableCellBase.css +1 -1
  228. package/dist/css/themes/TableHeaderRow.css +1 -1
  229. package/dist/css/themes/TableRow.css +1 -1
  230. package/dist/css/themes/TableRowBase.css +1 -1
  231. package/dist/css/themes/Tag.css +1 -1
  232. package/dist/css/themes/Text.css +1 -1
  233. package/dist/css/themes/TextArea.css +1 -1
  234. package/dist/css/themes/TimePicker.css +1 -1
  235. package/dist/css/themes/Toast.css +1 -1
  236. package/dist/css/themes/ToggleButton.css +1 -1
  237. package/dist/css/themes/Token.css +1 -1
  238. package/dist/css/themes/Tokenizer.css +1 -1
  239. package/dist/css/themes/TokenizerPopover.css +1 -1
  240. package/dist/css/themes/Toolbar.css +1 -1
  241. package/dist/css/themes/ToolbarPopover.css +1 -1
  242. package/dist/css/themes/TreeItem.css +1 -1
  243. package/dist/css/themes/ValueStateMessage.css +1 -1
  244. package/dist/css/themes/YearPicker.css +1 -1
  245. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  246. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  247. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  248. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  249. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  250. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  251. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  252. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  253. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  254. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  255. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  256. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  257. package/dist/custom-elements-internal.json +499 -59
  258. package/dist/custom-elements.json +94 -21
  259. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  260. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  261. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  262. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  263. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  264. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  265. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  266. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  267. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  268. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  269. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  270. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  271. package/dist/generated/i18n/i18n-defaults.d.ts +3 -1
  272. package/dist/generated/i18n/i18n-defaults.js +3 -1
  273. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  274. package/dist/generated/templates/DialogTemplate.lit.js +1 -1
  275. package/dist/generated/templates/DialogTemplate.lit.js.map +1 -1
  276. package/dist/generated/templates/LinkTemplate.lit.js +1 -1
  277. package/dist/generated/templates/LinkTemplate.lit.js.map +1 -1
  278. package/dist/generated/templates/ListTemplate.lit.js +5 -4
  279. package/dist/generated/templates/ListTemplate.lit.js.map +1 -1
  280. package/dist/generated/templates/PopoverTemplate.lit.js +1 -1
  281. package/dist/generated/templates/PopoverTemplate.lit.js.map +1 -1
  282. package/dist/generated/templates/PopupTemplate.lit.js +1 -1
  283. package/dist/generated/templates/PopupTemplate.lit.js.map +1 -1
  284. package/dist/generated/templates/RangeSliderTemplate.lit.js +9 -3
  285. package/dist/generated/templates/RangeSliderTemplate.lit.js.map +1 -1
  286. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +1 -1
  287. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js.map +1 -1
  288. package/dist/generated/templates/SliderBaseTemplate.lit.js +3 -1
  289. package/dist/generated/templates/SliderBaseTemplate.lit.js.map +1 -1
  290. package/dist/generated/templates/SliderTemplate.lit.js +6 -2
  291. package/dist/generated/templates/SliderTemplate.lit.js.map +1 -1
  292. package/dist/generated/templates/TimeSelectionClocksTemplate.lit.js +2 -2
  293. package/dist/generated/templates/TimeSelectionClocksTemplate.lit.js.map +1 -1
  294. package/dist/generated/themes/Avatar.css.js +1 -1
  295. package/dist/generated/themes/Avatar.css.js.map +1 -1
  296. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  297. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  298. package/dist/generated/themes/Bar.css.js +1 -1
  299. package/dist/generated/themes/Bar.css.js.map +1 -1
  300. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  301. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  302. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  303. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  304. package/dist/generated/themes/Button.css.js +1 -1
  305. package/dist/generated/themes/Button.css.js.map +1 -1
  306. package/dist/generated/themes/Calendar.css.js +1 -1
  307. package/dist/generated/themes/Calendar.css.js.map +1 -1
  308. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  309. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  310. package/dist/generated/themes/CalendarLegend.css.js +1 -1
  311. package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
  312. package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
  313. package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
  314. package/dist/generated/themes/Card.css.js +1 -1
  315. package/dist/generated/themes/Card.css.js.map +1 -1
  316. package/dist/generated/themes/CardHeader.css.js +1 -1
  317. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  318. package/dist/generated/themes/Carousel.css.js +1 -1
  319. package/dist/generated/themes/Carousel.css.js.map +1 -1
  320. package/dist/generated/themes/CheckBox.css.js +1 -1
  321. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  322. package/dist/generated/themes/ColorPalette.css.js +1 -1
  323. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  324. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  325. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  326. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  327. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  328. package/dist/generated/themes/ColorPicker.css.js +1 -1
  329. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  330. package/dist/generated/themes/ComboBox.css.js +1 -1
  331. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  332. package/dist/generated/themes/DatePicker.css.js +1 -1
  333. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  334. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  335. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  336. package/dist/generated/themes/DayPicker.css.js +1 -1
  337. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  338. package/dist/generated/themes/Dialog.css.js +1 -1
  339. package/dist/generated/themes/Dialog.css.js.map +1 -1
  340. package/dist/generated/themes/FileUploader.css.js +1 -1
  341. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  342. package/dist/generated/themes/Form.css.js +1 -1
  343. package/dist/generated/themes/Form.css.js.map +1 -1
  344. package/dist/generated/themes/FormItem.css.js +1 -1
  345. package/dist/generated/themes/FormItem.css.js.map +1 -1
  346. package/dist/generated/themes/FormLabelSpan.css.js +1 -1
  347. package/dist/generated/themes/FormLabelSpan.css.js.map +1 -1
  348. package/dist/generated/themes/FormLayout.css.js +1 -1
  349. package/dist/generated/themes/FormLayout.css.js.map +1 -1
  350. package/dist/generated/themes/GrowingButton.css.js +1 -1
  351. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  352. package/dist/generated/themes/Icon.css.js +1 -1
  353. package/dist/generated/themes/Icon.css.js.map +1 -1
  354. package/dist/generated/themes/Input.css.js +1 -1
  355. package/dist/generated/themes/Input.css.js.map +1 -1
  356. package/dist/generated/themes/InputIcon.css.js +1 -1
  357. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  358. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  359. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  360. package/dist/generated/themes/Link.css.js +1 -1
  361. package/dist/generated/themes/Link.css.js.map +1 -1
  362. package/dist/generated/themes/List.css.js +1 -1
  363. package/dist/generated/themes/List.css.js.map +1 -1
  364. package/dist/generated/themes/ListItem.css.js +1 -1
  365. package/dist/generated/themes/ListItem.css.js.map +1 -1
  366. package/dist/generated/themes/ListItemBase.css.js +1 -1
  367. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  368. package/dist/generated/themes/ListItemCustom.css.js +1 -1
  369. package/dist/generated/themes/ListItemCustom.css.js.map +1 -1
  370. package/dist/generated/themes/ListItemGroup.css.js +1 -1
  371. package/dist/generated/themes/ListItemGroup.css.js.map +1 -1
  372. package/dist/generated/themes/ListItemGroupHeader.css.js +1 -1
  373. package/dist/generated/themes/ListItemGroupHeader.css.js.map +1 -1
  374. package/dist/generated/themes/ListItemIcon.css.js +1 -1
  375. package/dist/generated/themes/ListItemIcon.css.js.map +1 -1
  376. package/dist/generated/themes/Menu.css.js +1 -1
  377. package/dist/generated/themes/Menu.css.js.map +1 -1
  378. package/dist/generated/themes/MenuItem.css.js +1 -1
  379. package/dist/generated/themes/MenuItem.css.js.map +1 -1
  380. package/dist/generated/themes/MessageStrip.css.js +1 -1
  381. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  382. package/dist/generated/themes/MonthPicker.css.js +1 -1
  383. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  384. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  385. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  386. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  387. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  388. package/dist/generated/themes/MultiInput.css.js +1 -1
  389. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  390. package/dist/generated/themes/NavigationMenu.css.js +1 -1
  391. package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
  392. package/dist/generated/themes/NavigationMenuItem.css.js +1 -1
  393. package/dist/generated/themes/NavigationMenuItem.css.js.map +1 -1
  394. package/dist/generated/themes/OptionBase.css.js +1 -1
  395. package/dist/generated/themes/OptionBase.css.js.map +1 -1
  396. package/dist/generated/themes/Panel.css.js +1 -1
  397. package/dist/generated/themes/Panel.css.js.map +1 -1
  398. package/dist/generated/themes/Popover.css.js +1 -1
  399. package/dist/generated/themes/Popover.css.js.map +1 -1
  400. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  401. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  402. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  403. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  404. package/dist/generated/themes/RadioButton.css.js +1 -1
  405. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  406. package/dist/generated/themes/RangeSlider.css.js +1 -1
  407. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  408. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  409. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  410. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  411. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  412. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  413. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  414. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  415. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  416. package/dist/generated/themes/SegmentedButtonItem.css.js +1 -1
  417. package/dist/generated/themes/SegmentedButtonItem.css.js.map +1 -1
  418. package/dist/generated/themes/Select.css.js +1 -1
  419. package/dist/generated/themes/Select.css.js.map +1 -1
  420. package/dist/generated/themes/SliderBase.css.js +1 -1
  421. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  422. package/dist/generated/themes/SplitButton.css.js +1 -1
  423. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  424. package/dist/generated/themes/StepInput.css.js +1 -1
  425. package/dist/generated/themes/StepInput.css.js.map +1 -1
  426. package/dist/generated/themes/SuggestionItem.css.js +1 -1
  427. package/dist/generated/themes/SuggestionItem.css.js.map +1 -1
  428. package/dist/generated/themes/SuggestionItemCustom.css.js +1 -1
  429. package/dist/generated/themes/SuggestionItemCustom.css.js.map +1 -1
  430. package/dist/generated/themes/Switch.css.js +1 -1
  431. package/dist/generated/themes/Switch.css.js.map +1 -1
  432. package/dist/generated/themes/TabContainer.css.js +1 -1
  433. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  434. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  435. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  436. package/dist/generated/themes/TabInStrip.css.js +1 -1
  437. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  438. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  439. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  440. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  441. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  442. package/dist/generated/themes/Table.css.js +1 -1
  443. package/dist/generated/themes/Table.css.js.map +1 -1
  444. package/dist/generated/themes/TableCellBase.css.js +1 -1
  445. package/dist/generated/themes/TableCellBase.css.js.map +1 -1
  446. package/dist/generated/themes/TableHeaderRow.css.js +1 -1
  447. package/dist/generated/themes/TableHeaderRow.css.js.map +1 -1
  448. package/dist/generated/themes/TableRow.css.js +1 -1
  449. package/dist/generated/themes/TableRow.css.js.map +1 -1
  450. package/dist/generated/themes/TableRowBase.css.js +1 -1
  451. package/dist/generated/themes/TableRowBase.css.js.map +1 -1
  452. package/dist/generated/themes/Tag.css.js +1 -1
  453. package/dist/generated/themes/Tag.css.js.map +1 -1
  454. package/dist/generated/themes/Text.css.js +1 -1
  455. package/dist/generated/themes/Text.css.js.map +1 -1
  456. package/dist/generated/themes/TextArea.css.js +1 -1
  457. package/dist/generated/themes/TextArea.css.js.map +1 -1
  458. package/dist/generated/themes/TimePicker.css.js +1 -1
  459. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  460. package/dist/generated/themes/Toast.css.js +1 -1
  461. package/dist/generated/themes/Toast.css.js.map +1 -1
  462. package/dist/generated/themes/ToggleButton.css.js +1 -1
  463. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  464. package/dist/generated/themes/Token.css.js +1 -1
  465. package/dist/generated/themes/Token.css.js.map +1 -1
  466. package/dist/generated/themes/Tokenizer.css.js +1 -1
  467. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  468. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  469. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  470. package/dist/generated/themes/Toolbar.css.js +1 -1
  471. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  472. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  473. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  474. package/dist/generated/themes/TreeItem.css.js +1 -1
  475. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  476. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  477. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  478. package/dist/generated/themes/YearPicker.css.js +1 -1
  479. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  480. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  481. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  482. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  483. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  484. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  485. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  486. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  487. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  488. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  489. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  490. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  491. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  492. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  493. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  494. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  495. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  496. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  497. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  498. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  499. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  500. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  501. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  502. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  503. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  504. package/dist/vscode.html-custom-data.json +21 -6
  505. package/dist/web-types.json +52 -32
  506. package/package.json +9 -9
  507. package/src/Link.hbs +0 -1
  508. package/src/List.hbs +7 -1
  509. package/src/Popup.hbs +2 -2
  510. package/src/RangeSlider.hbs +70 -38
  511. package/src/Slider.hbs +37 -18
  512. package/src/SliderBase.hbs +13 -4
  513. package/src/TimeSelectionClocks.hbs +0 -2
  514. package/src/i18n/messagebundle.properties +6 -0
  515. package/src/themes/ColorPaletteItem.css +23 -1
  516. package/src/themes/ColorPicker.css +9 -1
  517. package/src/themes/Form.css +3 -2
  518. package/src/themes/FormLayout.css +3 -3
  519. package/src/themes/GrowingButton.css +5 -2
  520. package/src/themes/Input.css +0 -1
  521. package/src/themes/Link.css +10 -6
  522. package/src/themes/ListItemBase.css +3 -3
  523. package/src/themes/ListItemGroupHeader.css +4 -0
  524. package/src/themes/SliderBase.css +27 -7
  525. package/src/themes/Switch.css +2 -1
  526. package/src/themes/base/ColorPalette-parameters.css +3 -0
  527. package/src/themes/base/sizes-parameters.css +1 -1
  528. package/src/themes/sap_fiori_3/SliderBase-parameters.css +7 -0
  529. package/src/themes/sap_fiori_3/sizes-parameters.css +4 -0
  530. package/src/themes/sap_fiori_3_dark/SliderBase-parameters.css +7 -0
  531. package/src/themes/sap_fiori_3_dark/sizes-parameters.css +4 -0
  532. package/src/themes/sap_fiori_3_hcb/sizes-parameters.css +6 -0
  533. package/src/themes/sap_fiori_3_hcw/sizes-parameters.css +6 -0
  534. package/src/themes/sap_horizon/ColorPalette-parameters.css +3 -0
  535. package/src/themes/sap_horizon_dark/ColorPalette-parameters.css +3 -0
  536. package/src/themes/sap_horizon_dark_exp/ColorPalette-parameters.css +3 -0
  537. package/src/themes/sap_horizon_exp/ColorPalette-parameters.css +3 -0
  538. package/src/themes/sap_horizon_hcb/SliderBase-parameters.css +1 -1
  539. package/src/themes/sap_horizon_hcw/SliderBase-parameters.css +1 -1
  540. package/tsconfig.json +2 -0
@@ -8,12 +8,13 @@ var RangeSlider_1;
8
8
  import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
9
9
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
10
10
  import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
11
- import { isEscape, isHome, isEnd, } from "@ui5/webcomponents-base/dist/Keys.js";
11
+ import { isEscape, isEnter, isHome, isEnd, } from "@ui5/webcomponents-base/dist/Keys.js";
12
12
  import SliderBase from "./SliderBase.js";
13
13
  import Icon from "./Icon.js";
14
14
  import RangeSliderTemplate from "./generated/templates/RangeSliderTemplate.lit.js";
15
+ import Input from "./Input.js";
15
16
  // Texts
16
- import { RANGE_SLIDER_ARIA_DESCRIPTION, RANGE_SLIDER_START_HANDLE_DESCRIPTION, RANGE_SLIDER_END_HANDLE_DESCRIPTION, } from "./generated/i18n/i18n-defaults.js";
17
+ import { RANGE_SLIDER_ARIA_DESCRIPTION, RANGE_SLIDER_START_HANDLE_DESCRIPTION, RANGE_SLIDER_END_HANDLE_DESCRIPTION, SLIDER_TOOLTIP_INPUT_LABEL, SLIDER_TOOLTIP_INPUT_DESCRIPTION, } from "./generated/i18n/i18n-defaults.js";
17
18
  // Styles
18
19
  import rangeSliderStyles from "./generated/themes/RangeSlider.css.js";
19
20
  /**
@@ -99,11 +100,16 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
99
100
  */
100
101
  this.endValue = 100;
101
102
  this.rangePressed = false;
103
+ this._isStartValueValid = false;
104
+ this._isEndValueValid = false;
102
105
  this._isPressInCurrentRange = false;
103
106
  this._handeIsPressed = false;
104
107
  this._reversedValues = false;
108
+ this._areInputValuesSwapped = false;
105
109
  this._stateStorage.startValue = undefined;
106
110
  this._stateStorage.endValue = undefined;
111
+ this._lastValidStartValue = this.min.toString();
112
+ this._lastValidEndValue = this.max.toString();
107
113
  }
108
114
  get tooltipStartValue() {
109
115
  const ctor = this.constructor;
@@ -155,12 +161,16 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
155
161
  this._setAffectedValue(affectedValue);
156
162
  this.update(affectedValue, this.startValue, this.endValue);
157
163
  }
164
+ if (this.editableTooltip) {
165
+ this._saveInputValues();
166
+ }
158
167
  if (!this.isCurrentStateOutdated()) {
159
168
  return;
160
169
  }
161
170
  this.notResized = true;
162
171
  this.syncUIAndState();
163
172
  this._updateHandlesAndRange(0);
173
+ this.update(this._valueAffected, this.startValue, this.endValue);
164
174
  }
165
175
  syncUIAndState() {
166
176
  // Validate step and update the stored state for the step property.
@@ -214,7 +224,7 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
214
224
  * Resets the stored Range Slider's initial values saved when it was first focused
215
225
  * @private
216
226
  */
217
- _onfocusout() {
227
+ _onfocusout(e) {
218
228
  if (this._isFocusing()) {
219
229
  this._preventFocusOut();
220
230
  return;
@@ -222,9 +232,36 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
222
232
  this._setAffectedValue(undefined);
223
233
  this._startValueInitial = undefined;
224
234
  this._endValueInitial = undefined;
225
- if (this.showTooltip) {
235
+ if (this.showTooltip && !e.relatedTarget?.hasAttribute("ui5-input")) {
236
+ this._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;
237
+ }
238
+ }
239
+ _onInputFocusOut(e) {
240
+ const tooltipInput = e.target;
241
+ const oppositeTooltipInput = tooltipInput.hasAttribute("data-sap-ui-start-value") ? this.shadowRoot.querySelector("[ui5-input][data-sap-ui-end-value]") : this.shadowRoot.querySelector("[ui5-input][data-sap-ui-start-value]");
242
+ const relatedTarget = e.relatedTarget;
243
+ if (this.startValue > this.endValue) {
244
+ this._areInputValuesSwapped = true;
245
+ oppositeTooltipInput.focus();
246
+ return;
247
+ }
248
+ if (tooltipInput.hasAttribute("data-sap-ui-start-value")) {
249
+ this._setAffectedValue("startValue");
250
+ }
251
+ else {
252
+ this._setAffectedValue("endValue");
253
+ }
254
+ if (!this._areInputValuesSwapped || !this.shadowRoot.contains(relatedTarget)) {
226
255
  this._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;
227
256
  }
257
+ this._updateValueFromInput(e);
258
+ this._updateInputValue();
259
+ this.update(this._valueAffected, parseFloat(this._lastValidStartValue), parseFloat(this._lastValidEndValue));
260
+ const isTooltipInputValueValid = parseFloat(tooltipInput.value) >= this.min && parseFloat(tooltipInput.value) <= this.max;
261
+ if (!isTooltipInputValueValid) {
262
+ tooltipInput.value = tooltipInput.hasAttribute("data-sap-ui-start-value") ? this._lastValidStartValue : this._lastValidEndValue;
263
+ tooltipInput.valueState = "None";
264
+ }
228
265
  }
229
266
  /**
230
267
  * Handles keyup logic. If one of the handles came across the other
@@ -232,11 +269,13 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
232
269
  * user interaction.
233
270
  * @private
234
271
  */
235
- _onkeyup() {
236
- super._onkeyup();
237
- this._setAffectedValue(undefined);
272
+ _onkeyup(e) {
273
+ super._onKeyupBase();
274
+ if (!isEnter(e)) {
275
+ this._setAffectedValue(undefined);
276
+ }
238
277
  if (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {
239
- this.fireEvent("change");
278
+ this.fireDecoratorEvent("change");
240
279
  }
241
280
  this._startValueAtBeginningOfAction = undefined;
242
281
  this._endValueAtBeginningOfAction = undefined;
@@ -340,9 +379,12 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
340
379
  * @private
341
380
  */
342
381
  _onmousedown(e) {
382
+ if (e?.button && e?.button !== 0) {
383
+ return;
384
+ }
343
385
  // If step is 0 no interaction is available because there is no constant
344
386
  // (equal for all user environments) quantitative representation of the value
345
- if (this.disabled || this._effectiveStep === 0) {
387
+ if (this.disabled || this._effectiveStep === 0 || e.target.hasAttribute("ui5-input")) {
346
388
  return;
347
389
  }
348
390
  // Calculate the new value from the press position of the event
@@ -387,7 +429,7 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
387
429
  _handleMove(e) {
388
430
  e.preventDefault();
389
431
  // If 'step' is 0 no interaction is available as there is no constant quantitative representation of the value
390
- if (this.disabled || this._effectiveStep === 0) {
432
+ if (this.disabled || this._effectiveStep === 0 || e.target.hasAttribute("ui5-input")) {
391
433
  return;
392
434
  }
393
435
  // Update UI and state when dragging a single Range Slider handle
@@ -421,11 +463,14 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
421
463
  // Update the UI and the state according to the calculated new values
422
464
  this.update(undefined, newValues[0], newValues[1]);
423
465
  }
424
- _handleUp() {
466
+ _handleUp(e) {
467
+ if (e.target.hasAttribute("ui5-input")) {
468
+ return;
469
+ }
425
470
  this._setAffectedValueByFocusedElement();
426
471
  this._setAffectedValue(undefined);
427
472
  if (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {
428
- this.fireEvent("change");
473
+ this.fireDecoratorEvent("change");
429
474
  }
430
475
  this._setIsPressInCurrentRange(false);
431
476
  this.handleUpBase();
@@ -433,6 +478,25 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
433
478
  this._startValueAtBeginningOfAction = undefined;
434
479
  this._endValueAtBeginningOfAction = undefined;
435
480
  }
481
+ _updateValueFromInput(e) {
482
+ if (this._areInputValuesSwapped) {
483
+ return;
484
+ }
485
+ const input = e.target;
486
+ const inputValue = parseFloat(input.value);
487
+ const isValueValid = inputValue >= this._effectiveMin && inputValue <= this._effectiveMax;
488
+ if (!isValueValid) {
489
+ return;
490
+ }
491
+ if (input.hasAttribute("data-sap-ui-start-value")) {
492
+ this.startValue = inputValue;
493
+ return;
494
+ }
495
+ this.endValue = inputValue;
496
+ if (this.startValue > this.endValue) {
497
+ this._areInputValuesSwapped = true;
498
+ }
499
+ }
436
500
  /**
437
501
  * Determines where the press occured and which values of the Range Slider
438
502
  * handles should be updated on further interaction.
@@ -518,6 +582,9 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
518
582
  * @protected
519
583
  */
520
584
  focusInnerElement() {
585
+ if (this.editableTooltip && this._tooltipVisibility === SliderBase.TOOLTIP_VISIBILITY.HIDDEN) {
586
+ return;
587
+ }
521
588
  const isReversed = this._areValuesReversed();
522
589
  const affectedValue = this._valueAffected;
523
590
  if (this._isPressInCurrentRange || !affectedValue) {
@@ -620,6 +687,84 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
620
687
  this._secondHandlePositionFromStart = ((this.endValue - min) / (max - min)) * 100;
621
688
  }
622
689
  }
690
+ _onInputKeydown(e) {
691
+ const targetedInput = e.target;
692
+ const startValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-start-value]");
693
+ const endValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-end-value]");
694
+ const startValue = parseFloat(startValueInput.value);
695
+ const endValue = parseFloat(endValueInput.value);
696
+ const affectedValue = targetedInput.hasAttribute("data-sap-ui-start-value") ? "startValue" : "endValue";
697
+ super._onInputKeydown(e);
698
+ if (isEnter(e) && startValue > endValue) {
699
+ const swappedInput = affectedValue === "startValue" ? endValueInput : startValueInput;
700
+ const isValueValid = parseFloat(targetedInput.value) >= this.min && parseFloat(startValueInput.value) <= this.max;
701
+ if (!isValueValid) {
702
+ targetedInput.valueState = "Negative";
703
+ return;
704
+ }
705
+ this._isEndValueValid = parseFloat(endValueInput.value) >= this.min && parseFloat(endValueInput.value) <= this.max;
706
+ this._areInputValuesSwapped = true;
707
+ this._setAffectedValue(affectedValue === "startValue" ? "endValue" : "startValue");
708
+ startValueInput.value = this._getFormattedValue(this.endValue.toString());
709
+ endValueInput.value = this._getFormattedValue(this.startValue.toString());
710
+ swappedInput.focus();
711
+ return;
712
+ }
713
+ this._setAffectedValue(affectedValue);
714
+ }
715
+ _updateInputValue() {
716
+ const startValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-start-value]");
717
+ const endValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-end-value]");
718
+ if (!startValueInput && !endValueInput) {
719
+ return;
720
+ }
721
+ this._isStartValueValid = parseFloat(startValueInput.value) >= this.min && parseFloat(startValueInput.value) <= this.max;
722
+ this._isEndValueValid = parseFloat(endValueInput.value) >= this.min && parseFloat(endValueInput.value) <= this.max;
723
+ if (!this._isStartValueValid) {
724
+ startValueInput.valueState = "Negative";
725
+ return;
726
+ }
727
+ if (!this._isEndValueValid) {
728
+ endValueInput.valueState = "Negative";
729
+ return;
730
+ }
731
+ this._lastValidStartValue = startValueInput.value;
732
+ this._lastValidEndValue = endValueInput.value;
733
+ startValueInput.valueState = "None";
734
+ endValueInput.valueState = "None";
735
+ }
736
+ _saveInputValues() {
737
+ const startValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-start-value]");
738
+ const endValueInput = this.shadowRoot.querySelector("[ui5-input][data-sap-ui-end-value]");
739
+ if (this.editableTooltip && startValueInput && endValueInput) {
740
+ const inputStartValue = parseFloat(startValueInput.value);
741
+ const inputEndValue = parseFloat(endValueInput.value);
742
+ const isStartValueValid = inputStartValue >= this.min && inputStartValue <= this.max;
743
+ const isEndValueValid = inputEndValue >= this.min && inputEndValue <= this.max;
744
+ if (this._isUserInteraction) {
745
+ startValueInput.value = isStartValueValid ? this._getFormattedValue(this.startValue.toString()) : this._getFormattedValue(this._lastValidStartValue);
746
+ endValueInput.value = isEndValueValid ? this._getFormattedValue(this.endValue.toString()) : this._getFormattedValue(this._lastValidEndValue);
747
+ this.startValue = parseFloat(this._getFormattedValue(this.startValue.toString()));
748
+ this.endValue = parseFloat(this._getFormattedValue(this.endValue.toString()));
749
+ this.syncUIAndState();
750
+ this._updateHandlesAndRange(0);
751
+ this.update(this._valueAffected, this.startValue, this.endValue);
752
+ return;
753
+ }
754
+ this._lastValidStartValue = isStartValueValid ? this._getFormattedValue(inputStartValue.toString()) : this._getFormattedValue(this._lastValidStartValue);
755
+ this._lastValidEndValue = isEndValueValid ? this._getFormattedValue(inputEndValue.toString()) : this._getFormattedValue(this._lastValidEndValue);
756
+ if (startValueInput.valueState !== "Negative" && endValueInput.valueState !== "Negative") {
757
+ startValueInput.value = isStartValueValid ? this._getFormattedValue(inputStartValue.toString()) : this._getFormattedValue(this._lastValidStartValue);
758
+ endValueInput.value = isEndValueValid ? this._getFormattedValue(inputEndValue.toString()) : this._getFormattedValue(this._lastValidEndValue);
759
+ }
760
+ }
761
+ }
762
+ _getFormattedValue(value) {
763
+ const valueNumber = parseFloat(value);
764
+ const ctor = this.constructor;
765
+ const stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);
766
+ return valueNumber.toFixed(stepPrecision).toString();
767
+ }
623
768
  /**
624
769
  * Swaps the start and end values of the handles if one came accros the other:
625
770
  * - If the start value is greater than the endValue swap them and their handles
@@ -648,8 +793,11 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
648
793
  }
649
794
  this._setValuesAreReversed();
650
795
  this._updateHandlesAndRange(this[affectedValue]);
651
- this.focusInnerElement();
796
+ if (!this._areInputValuesSwapped) {
797
+ this.focusInnerElement();
798
+ }
652
799
  this.syncUIAndState();
800
+ this._areInputValuesSwapped = false;
653
801
  }
654
802
  /**
655
803
  * Flag that we have swapped the values of the 'start' and 'end' properties,
@@ -686,14 +834,11 @@ let RangeSlider = RangeSlider_1 = class RangeSlider extends SliderBase {
686
834
  get _progressBar() {
687
835
  return this.shadowRoot.querySelector(".ui5-slider-progress");
688
836
  }
689
- get _ariaLabelledByStartHandleRefs() {
690
- return [`${this._id}-accName`, `${this._id}-startHandleDesc`].join(" ").trim();
691
- }
692
- get _ariaLabelledByEndHandleRefs() {
693
- return [`${this._id}-accName`, `${this._id}-endHandleDesc`].join(" ").trim();
837
+ get _ariaLabelledByInputText() {
838
+ return RangeSlider_1.i18nBundle.getText(SLIDER_TOOLTIP_INPUT_LABEL);
694
839
  }
695
- get _ariaLabelledByProgressBarRefs() {
696
- return [`${this._id}-accName`, `${this._id}-sliderDesc`].join(" ").trim();
840
+ get _ariaDescribedByInputText() {
841
+ return RangeSlider_1.i18nBundle.getText(SLIDER_TOOLTIP_INPUT_DESCRIPTION);
697
842
  }
698
843
  get styles() {
699
844
  return {
@@ -730,6 +875,12 @@ __decorate([
730
875
  __decorate([
731
876
  property({ type: Boolean })
732
877
  ], RangeSlider.prototype, "rangePressed", void 0);
878
+ __decorate([
879
+ property({ type: Boolean })
880
+ ], RangeSlider.prototype, "_isStartValueValid", void 0);
881
+ __decorate([
882
+ property({ type: Boolean })
883
+ ], RangeSlider.prototype, "_isEndValueValid", void 0);
733
884
  __decorate([
734
885
  i18n("@ui5/webcomponents")
735
886
  ], RangeSlider, "i18nBundle", void 0);
@@ -739,7 +890,7 @@ RangeSlider = RangeSlider_1 = __decorate([
739
890
  languageAware: true,
740
891
  formAssociated: true,
741
892
  template: RangeSliderTemplate,
742
- dependencies: [Icon],
893
+ dependencies: [Icon, Input],
743
894
  styles: [SliderBase.styles, rangeSliderStyles],
744
895
  })
745
896
  ], RangeSlider);
@@ -1 +1 @@
1
- {"version":3,"file":"RangeSlider.js","sourceRoot":"","sources":["../src/RangeSlider.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAGnE,OAAO,EACN,QAAQ,EACR,MAAM,EACN,KAAK,GACL,MAAM,sCAAsC,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AC,IAAI,CAAC,cAAc,CAAC,EAAE,GAAG,IAAI,CAAC,6BAA8B,GAAG;aAChE;YACD,WAAW,EAAE;gBACZ,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,GAAG,IAAI,CAAC,6BAA8B,GAAG;aAChE;YACD,SAAS,EAAE;gBACV,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,GAAG,IAAI,CAAC,8BAA+B,GAAG;aACjE;YACD,KAAK,EAAE;gBACN,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,GAAG;aAC/B;YACD,cAAc,EAAE;gBACf,OAAO,EAAE,MAAM;gBACf,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG;aAClD;YACD,OAAO,EAAE;gBACR,YAAY,EAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE;aAC1C;SACD,CAAC;IACH,CAAC;CACD,CAAA;AA/vBA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACZ;AAUf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACP;AAiBd;IADN,IAAI,CAAC,oBAAoB,CAAC;qCACG;AAvCzB,WAAW;IARhB,aAAa,CAAC;QACd,GAAG,EAAE,kBAAkB;QACvB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,mBAAmB;QAC7B,YAAY,EAAE,CAAC,IAAI,CAAC;QACpB,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,iBAAiB,CAAC;KAC9C,CAAC;GACI,WAAW,CAwwBhB;AAED,WAAW,CAAC,MAAM,EAAE,CAAC;AAErB,eAAe,WAAW,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { IFormInputElement } from \"@ui5/webcomponents-base/dist/features/InputElementsFormSupport.js\";\nimport {\n\tisEscape,\n\tisHome,\n\tisEnd,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport SliderBase from \"./SliderBase.js\";\nimport Icon from \"./Icon.js\";\nimport RangeSliderTemplate from \"./generated/templates/RangeSliderTemplate.lit.js\";\n\n// Texts\nimport {\n\tRANGE_SLIDER_ARIA_DESCRIPTION,\n\tRANGE_SLIDER_START_HANDLE_DESCRIPTION,\n\tRANGE_SLIDER_END_HANDLE_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport rangeSliderStyles from \"./generated/themes/RangeSlider.css.js\";\n\ntype AriaHandlesText = {\n\tstartHandleText?: string,\n\tendHandleText?: string,\n}\n\ntype AffectedValue = \"startValue\" | \"endValue\";\n\n/**\n * @class\n *\n * ### Overview\n * Represents a numerical interval and two handles (grips) to select a sub-range within it.\n * The purpose of the component to enable visual selection of sub-ranges within a given interval.\n *\n * ### Structure\n * The most important properties of the Range Slider are:\n *\n * - min - The minimum value of the slider range.\n * - max - The maximum value of the slider range.\n * - value - The current value of the slider.\n * - step - Determines the increments in which the slider will move.\n * - showTooltip - Determines if a tooltip should be displayed above the handle.\n * - showTickmarks - Displays a visual divider between the step values.\n * - labelInterval - Labels some or all of the tickmarks with their values.\n *\n * #### Notes:\n *\n * - The right and left handle can be moved individually and their positions could therefore switch.\n * - The entire range can be moved along the interval.\n *\n * ### Usage\n * The most common use case is to select and move sub-ranges on a continuous numerical scale.\n *\n * ### Responsive Behavior\n * You can move the currently selected range by clicking on it and dragging it along the interval.\n *\n * ### Keyboard Handling\n *\n * - `Left or Down Arrow` - Moves a component's handle or the entire selection one step to the left;\n * - `Right or Up Arrow` - Moves a component's handle or the entire selection one step to the right;\n * - `Left or Down Arrow + Ctrl/Cmd` - Moves a component's handle to the left or the entire range with step equal to 1/10th of the entire range;\n * - `Right or Up Arrow + Ctrl/Cmd` - Moves a component's handle to the right or the entire range with step equal to 1/10th of the entire range;\n * - `Plus` - Same as `Right or Up Arrow`;\n * - `Minus` - Same as `Left or Down Arrow`;\n * - `Home` - Moves the entire selection or the selected handle to the beginning of the component's range;\n * - `End` - Moves the entire selection or the selected handle to the end of the component's range;\n * - `Page Up` - Same as `Right or Up Arrow + Ctrl/Cmd`;\n * - `Page Down` - Same as `Left or Down Arrow + Ctrl/Cmd`;\n * - `Escape` - Resets the `startValue` and `endValue` properties to the values prior the component focusing;\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/RangeSlider.js\";`\n * @constructor\n * @extends SliderBase\n * @since 1.0.0-rc.11\n * @public\n * @csspart progress-container - Used to style the progress container, the horizontal bar that visually represents the range between the minimum and maximum values, of the `ui5-range-slider`.\n * @csspart progress-bar - Used to style the progress bar, which shows the progress of the `ui5-range-slider`.\n * @csspart handle - Used to style the handles of the `ui5-range-slider`.\n */\n@customElement({\n\ttag: \"ui5-range-slider\",\n\tlanguageAware: true,\n\tformAssociated: true,\n\ttemplate: RangeSliderTemplate,\n\tdependencies: [Icon],\n\tstyles: [SliderBase.styles, rangeSliderStyles],\n})\nclass RangeSlider extends SliderBase implements IFormInputElement {\n\t/**\n\t * Defines start point of a selection - position of a first handle on the slider.\n\t * @default 0\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Number })\n\tstartValue = 0;\n\n\t/**\n\t * Defines end point of a selection - position of a second handle on the slider.\n\t * @default 100\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Number })\n\tendValue = 100;\n\n\t@property({ type: Boolean })\n\trangePressed = false;\n\n\t_startValueInitial?: number;\n\t_endValueInitial?: number;\n\t_valueAffected?: AffectedValue;\n\t_isPressInCurrentRange = false;\n\t_handeIsPressed = false;\n\t_initialPageXPosition?: number;\n\t_startValueAtBeginningOfAction?: number;\n\t_endValueAtBeginningOfAction?: number;\n\t_initialStartHandlePageX?: number;\n\t_firstHandlePositionFromStart?: number;\n\t_secondHandlePositionFromStart?: number;\n\t_selectedRange?: number;\n\t_reversedValues = false;\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\n\tget formFormattedValue() {\n\t\tconst formData = new FormData();\n\n\t\tif (!this.name) {\n\t\t\treturn formData;\n\t\t}\n\n\t\tformData.append(this.name, this.startValue.toString());\n\t\tformData.append(this.name, this.endValue.toString());\n\n\t\treturn formData;\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._stateStorage.startValue = undefined;\n\t\tthis._stateStorage.endValue = undefined;\n\t}\n\n\tget tooltipStartValue() {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);\n\t\treturn this.startValue.toFixed(stepPrecision);\n\t}\n\n\tget tooltipEndValue() {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);\n\t\treturn this.endValue.toFixed(stepPrecision);\n\t}\n\n\tget _ariaDisabled() {\n\t\treturn this.disabled || undefined;\n\t}\n\n\tget _ariaLabelledByText() {\n\t\treturn RangeSlider.i18nBundle.getText(RANGE_SLIDER_ARIA_DESCRIPTION);\n\t}\n\n\tget _ariaHandlesText() {\n\t\tconst isRTL = this.effectiveDir === \"rtl\";\n\t\tconst isReversed = this._areValuesReversed();\n\t\tconst ariaHandlesText: AriaHandlesText = {};\n\n\t\tif ((isRTL && !isReversed) || (!isRTL && isReversed)) {\n\t\t\tariaHandlesText.startHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_END_HANDLE_DESCRIPTION);\n\t\t\tariaHandlesText.endHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_START_HANDLE_DESCRIPTION);\n\t\t} else {\n\t\t\tariaHandlesText.startHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_START_HANDLE_DESCRIPTION);\n\t\t\tariaHandlesText.endHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_END_HANDLE_DESCRIPTION);\n\t\t}\n\n\t\treturn ariaHandlesText;\n\t}\n\n\tget _ariaValueNow() {\n\t\treturn Math.abs(this.endValue - this.startValue);\n\t}\n\n\t/**\n\t * Check if the previously saved state is outdated. That would mean\n\t * either it is the initial rendering or that a property has been changed\n\t * programmatically - because the previous state is always updated in\n\t * the interaction handlers.\n\t *\n\t * Normalize current properties, update the previously stored state.\n\t * Update the visual UI representation of the Slider.\n\t *\n\t */\n\tonBeforeRendering() {\n\t\tif (this.startValue > this.endValue) {\n\t\t\tconst affectedValue = this._valueAffected === \"startValue\" ? \"endValue\" : \"startValue\";\n\n\t\t\tthis._swapValues();\n\t\t\tthis._setAffectedValue(affectedValue);\n\t\t\tthis.update(affectedValue, this.startValue, this.endValue);\n\t\t}\n\n\t\tif (!this.isCurrentStateOutdated()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.notResized = true;\n\t\tthis.syncUIAndState();\n\t\tthis._updateHandlesAndRange(0);\n\t}\n\n\tsyncUIAndState() {\n\t\t// Validate step and update the stored state for the step property.\n\t\tif (this.isPropertyUpdated(\"step\")) {\n\t\t\tthis._validateStep(this.step);\n\t\t\tthis.storePropertyState(\"step\");\n\t\t}\n\n\t\t// Recalculate the tickmarks and labels and update the stored state.\n\t\tif (this.isPropertyUpdated(\"min\", \"max\", \"startValue\", \"endValue\")) {\n\t\t\tthis.storePropertyState(\"min\", \"max\");\n\n\t\t\t// Here the value props are changed programmatically (not by user interaction)\n\t\t\t// and it won't be \"stepified\" (rounded to the nearest step). 'Clip' them within\n\t\t\t// min and max bounderies and update the previous state reference.\n\t\t\tconst normalizedStartValue = SliderBase.clipValue(this.startValue, this._effectiveMin, this._effectiveMax);\n\t\t\tthis.startValue = normalizedStartValue;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\t\t\tthis.storePropertyState(\"startValue\");\n\n\t\t\tconst normalizedEndValue = SliderBase.clipValue(this.endValue, this._effectiveMin, this._effectiveMax);\n\t\t\tthis.endValue = normalizedEndValue;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\tthis.storePropertyState(\"endValue\");\n\t\t}\n\n\t\t// Labels must be updated if any of the min/max/step/labelInterval props are changed\n\t\tif (this.labelInterval && this.showTickmarks) {\n\t\t\tthis._createLabels();\n\t\t}\n\n\t\t// Update the stored state for the labelInterval, if changed\n\t\tif (this.isPropertyUpdated(\"labelInterval\")) {\n\t\t\tthis.storePropertyState(\"labelInterval\");\n\t\t}\n\t}\n\n\t_onfocusin() {\n\t\t// If this is the initial focusin of the component save its initial\n\t\t// value properties so they could be restored on ESC key press\n\t\tif (!this._endValueInitial) {\n\t\t\tthis._startValueInitial = this.startValue;\n\t\t\tthis._endValueInitial = this.endValue;\n\t\t}\n\n\t\tif (this.showTooltip) {\n\t\t\tthis._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.VISIBLE;\n\t\t}\n\t}\n\n\t/**\n\t * Handles focus out event of the focusable components inner elements.\n\t * Prevent focusout when the focus is getting initially set within the slider before the\n\t * slider customElement itself is finished focusing.\n\t *\n\t * Prevents the focus from leaving the Range Slider when the focus is managed between\n\t * its inner elements in result of user interactions.\n\t *\n\t * Resets the stored Range Slider's initial values saved when it was first focused\n\t * @private\n\t */\n\t_onfocusout() {\n\t\tif (this._isFocusing()) {\n\t\t\tthis._preventFocusOut();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setAffectedValue(undefined);\n\t\tthis._startValueInitial = undefined;\n\t\tthis._endValueInitial = undefined;\n\n\t\tif (this.showTooltip) {\n\t\t\tthis._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;\n\t\t}\n\t}\n\n\t/**\n\t* Handles keyup logic. If one of the handles came across the other\n\t* swap the start and end values. Reset the affected value by the finished\n\t* user interaction.\n\t* @private\n\t*/\n\t_onkeyup() {\n\t\tsuper._onkeyup();\n\t\tthis._setAffectedValue(undefined);\n\n\t\tif (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {\n\t\t\tthis.fireEvent(\"change\");\n\t\t}\n\n\t\tthis._startValueAtBeginningOfAction = undefined;\n\t\tthis._endValueAtBeginningOfAction = undefined;\n\t}\n\n\t_handleActionKeyPress(e: KeyboardEvent) {\n\t\tthis._startValueAtBeginningOfAction = this.startValue;\n\t\tthis._endValueAtBeginningOfAction = this.endValue;\n\n\t\tif (isEscape(e)) {\n\t\t\tthis.update(undefined, this._startValueInitial, this._endValueInitial);\n\t\t\treturn;\n\t\t}\n\n\t\t// Set the target of the interaction based on the focused inner element\n\t\tthis._setAffectedValueByFocusedElement();\n\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst affectedValue = this._valueAffected!;\n\n\t\t// If home/end key is pressed and no single handle is focused the active element\n\t\t// is the range selection - update both start and end values. Otherwise, if 'home'\n\t\t// is pressed the 'startValue'will be used for the start-handle offset calculation,\n\t\t// if 'End' is pressed - the 'endValue' will be used for the end-handle update.\n\t\tif ((isEnd(e) || isHome(e)) && !affectedValue) {\n\t\t\tthis._homeEndForSelectedRange(e, isHome(e) ? \"startValue\" : \"endValue\", min, max);\n\t\t\treturn;\n\t\t}\n\n\t\t// Calculate how much the value should be increased/decreased based on the action key\n\t\tconst newValueOffset = this._handleActionKeyPressBase(e, affectedValue);\n\n\t\tif (!newValueOffset) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update a single value if one of the handles is focused or the range if not already at min or max\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tif (affectedValue && !this._isPressInCurrentRange) {\n\t\t\tconst propValue = this[affectedValue as keyof RangeSlider] as number;\n\t\t\tconst newValue = ctor.clipValue(newValueOffset + propValue, min, max);\n\t\t\tthis.update(affectedValue, newValue, undefined);\n\t\t} else if ((newValueOffset < 0 && this.startValue > min) || (newValueOffset > 0 && this.endValue < max)) {\n\t\t\tconst newStartValue = ctor.clipValue(newValueOffset + this.startValue, min, max);\n\t\t\tconst newEndValue = ctor.clipValue(newValueOffset + this.endValue, min, max);\n\t\t\tthis.update(affectedValue, newStartValue, newEndValue);\n\t\t}\n\t}\n\n\t/**\n\t * Determines affected value (start/end) depending on the currently\n\t * active inner element within the Range Slider - used in the keyboard handling.\n\t * @private\n\t */\n\t_setAffectedValueByFocusedElement() {\n\t\tif (this.shadowRoot!.activeElement === this._startHandle) {\n\t\t\tthis._setAffectedValue(\"startValue\");\n\t\t}\n\n\t\tif (this.shadowRoot!.activeElement === this._endHandle) {\n\t\t\tthis._setAffectedValue(\"endValue\");\n\t\t}\n\n\t\tif (this.shadowRoot!.activeElement === this._progressBar) {\n\t\t\tthis._setAffectedValue(undefined);\n\t\t}\n\n\t\tthis._setIsPressInCurrentRange(!this._valueAffected);\n\t}\n\n\t/**\n\t * Calculates the start and end values when the 'Home\" or 'End' keys\n\t * are pressed on the selected range bar.\n\t * @private\n\t */\n\t_homeEndForSelectedRange(e: KeyboardEvent, affectedValue: string, min: number, max: number) {\n\t\tconst newValueOffset = this._handleActionKeyPressBase(e, affectedValue);\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst newStartValue = ctor.clipValue(newValueOffset + this.startValue, min, max);\n\t\tconst newEndValue = ctor.clipValue(newValueOffset + this.endValue, min, max);\n\n\t\tthis.update(undefined, newStartValue, newEndValue);\n\t}\n\n\t/**\n\t * Update values, stored inner state and the visual UI representation of the component.\n\t * If no specific type of value property is passed - the range is selected - update both handles,\n\t * otherwise update the handle corresponding to the affected by the user interacton value prop.\n\t * @private\n\t */\n\tupdate(affectedValue: string | undefined, startValue: number | undefined, endValue: number | undefined) {\n\t\tif (!affectedValue) {\n\t\t\tthis.startValue = startValue!;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\n\t\t\tthis.endValue = endValue!;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\tthis._updateHandlesAndRange(0);\n\t\t} else {\n\t\t\tconst newValue = endValue && affectedValue === \"endValue\" ? endValue : startValue;\n\t\t\tthis._updateHandlesAndRange(newValue || 0);\n\n\t\t\tif (affectedValue === \"startValue\") {\n\t\t\t\tthis.startValue = newValue!;\n\t\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\t\t\t}\n\n\t\t\tif (affectedValue === \"endValue\") {\n\t\t\t\tthis.endValue = newValue!;\n\t\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Called when the user starts interacting with the slider\n\t * @private\n\t */\n\t_onmousedown(e: TouchEvent | MouseEvent) {\n\t\t// If step is 0 no interaction is available because there is no constant\n\t\t// (equal for all user environments) quantitative representation of the value\n\t\tif (this.disabled || this._effectiveStep === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Calculate the new value from the press position of the event\n\t\tconst newValue = this.handleDownBase(e);\n\n\t\t// Determine the rest of the needed details from the start of the interaction.\n\t\tthis._saveInteractionStartData(e, newValue);\n\n\t\tthis.rangePressed = this._isPressInCurrentRange;\n\n\t\t// Do not yet update the RangeSlider if press is in range or over a handle.\n\t\tif (this._isPressInCurrentRange || this._handeIsPressed) {\n\t\t\tthis._handeIsPressed = false;\n\t\t\treturn;\n\t\t}\n\n\t\t// Update Slider UI and internal state\n\t\tthis.update(this._valueAffected, newValue, undefined);\n\t}\n\n\t/**\n\t * Determines and saves needed values from the start of the interaction:\n\t *\n\t * Is the value calculated is within the currently selected range;\n\t * Initial pageX position of the start handle affected by the interaction;\n\t * Initial pageX value of the pressed postion;\n\t * Affected value property by the action;\n\t * @private\n\t */\n\t_saveInteractionStartData(e: TouchEvent | MouseEvent, newValue: number) {\n\t\tconst progressBarDom = this.shadowRoot!.querySelector(\".ui5-slider-progress\")!.getBoundingClientRect();\n\n\t\t// Save the state of the value properties on the start of the interaction\n\t\tthis._startValueAtBeginningOfAction = this.startValue;\n\t\tthis._endValueAtBeginningOfAction = this.endValue;\n\n\t\t// Save the initial press point coordinates (position)\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tthis._initialPageXPosition = ctor.getPageXValueFromEvent(e);\n\t\t// Which element of the Range Slider is pressed and which value property to be modified on further interaction\n\t\tthis._pressTargetAndAffectedValue(this._initialPageXPosition, newValue);\n\t\t// Use the progress bar to save the initial coordinates of the start-handle when the interaction begins.\n\t\tthis._initialStartHandlePageX = this.directionStart === \"left\" ? progressBarDom.left : progressBarDom.right;\n\t}\n\n\t/**\n\t * Called when the user moves the slider\n\t * @private\n\t */\n\t_handleMove(e: TouchEvent | MouseEvent) {\n\t\te.preventDefault();\n\n\t\t// If 'step' is 0 no interaction is available as there is no constant quantitative representation of the value\n\t\tif (this.disabled || this._effectiveStep === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update UI and state when dragging a single Range Slider handle\n\t\tif (!this._isPressInCurrentRange) {\n\t\t\tthis._updateValueOnHandleDrag(e);\n\t\t\treturn;\n\t\t}\n\n\t\t// Updates UI and state when dragging of the whole selected range\n\t\tthis._updateValueOnRangeDrag(e);\n\t}\n\n\t/**\n\t * Updates UI and state when dragging a single Range Slider handle\n\t * @private\n\t */\n\t_updateValueOnHandleDrag(event: TouchEvent | MouseEvent) {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst newValue = ctor.getValueFromInteraction(event, this._effectiveStep, this._effectiveMin, this._effectiveMax, this.getBoundingClientRect(), this.directionStart);\n\t\tthis.update(this._valueAffected, newValue, undefined);\n\t}\n\n\t/**\n\t * Updates UI and state when dragging of the whole selected range\n\t * @private\n\t */\n\t_updateValueOnRangeDrag(event: TouchEvent | MouseEvent) {\n\t\t// Calculate the new 'start' and 'end' values from the offset between the original press point and the current position of the mouse\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst currentPageXPos = ctor.getPageXValueFromEvent(event);\n\t\tconst newValues = this._calculateRangeOffset(currentPageXPos, this._initialStartHandlePageX!);\n\n\t\t// No matter the which value is set as the one to be modified (by prev. user action) we want to modify both of them\n\t\tthis._setAffectedValue(undefined);\n\n\t\t// Update the UI and the state according to the calculated new values\n\t\tthis.update(undefined, newValues[0], newValues[1]);\n\t}\n\n\t_handleUp() {\n\t\tthis._setAffectedValueByFocusedElement();\n\t\tthis._setAffectedValue(undefined);\n\n\t\tif (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {\n\t\t\tthis.fireEvent(\"change\");\n\t\t}\n\n\t\tthis._setIsPressInCurrentRange(false);\n\t\tthis.handleUpBase();\n\n\t\tthis.rangePressed = false;\n\t\tthis._startValueAtBeginningOfAction = undefined;\n\t\tthis._endValueAtBeginningOfAction = undefined;\n\t}\n\n\t/**\n\t * Determines where the press occured and which values of the Range Slider\n\t * handles should be updated on further interaction.\n\t *\n\t * If the press is not in the selected range or over one of the Range Slider handles\n\t * determines which one from the value/endValue properties has to be updated\n\t * after the user action (based on closest handle).\n\t *\n\t * Set flags if the press is over a handle or in the selected range,\n\t * in such cases no values are changed on interaction start, but could be\n\t * updated later when dragging.\n\t * @private\n\t */\n\t_pressTargetAndAffectedValue(clientX: number, value: number) {\n\t\tconst startHandle = this.shadowRoot!.querySelector(\".ui5-slider-handle--start\")!;\n\t\tconst endHandle = this.shadowRoot!.querySelector(\".ui5-slider-handle--end\")!;\n\n\t\t// Check if the press point is in the bounds of any of the Range Slider handles\n\t\tconst handleStartDomRect = startHandle.getBoundingClientRect();\n\t\tconst handleEndDomRect = endHandle.getBoundingClientRect();\n\t\tconst inHandleStartDom = clientX >= handleStartDomRect.left && clientX <= handleStartDomRect.right;\n\t\tconst inHandleEndDom = clientX >= handleEndDomRect.left && clientX <= handleEndDomRect.right;\n\n\t\t// Remove the flag for value in current range if the press action is over one of the handles\n\t\tif (inHandleEndDom || inHandleStartDom) {\n\t\t\tthis._handeIsPressed = true;\n\t\t}\n\n\t\t// Return that handle that is closer to the press point\n\t\tif (inHandleEndDom || value > this.endValue) {\n\t\t\tthis._setAffectedValue(\"endValue\");\n\t\t}\n\n\t\t// If one of the handle is pressed return that one\n\t\tif (inHandleStartDom || value < this.startValue) {\n\t\t\tthis._setAffectedValue(\"startValue\");\n\t\t}\n\n\t\t// Flag if press is in the current select range\n\t\tconst isNewValueInCurrentRange = this._startValueAtBeginningOfAction !== undefined && this._endValueAtBeginningOfAction !== undefined && value >= this._startValueAtBeginningOfAction && value <= this._endValueAtBeginningOfAction;\n\t\tthis._setIsPressInCurrentRange(!(this._valueAffected || this._handeIsPressed) ? isNewValueInCurrentRange : false);\n\t}\n\n\t/**\n\t * Sets the value property (start/end) that will get updated\n\t * by a user action depending on that user action's characteristics\n\t * - mouse press position - cursor coordinates relative to the start/end handles\n\t * - selected inner element via a keyboard navigation\n\t * @param affectedValue The value that will get modified by the interaction\n\t * @private\n\t */\n\t_setAffectedValue(affectedValue: AffectedValue | undefined) {\n\t\tthis._valueAffected = affectedValue;\n\n\t\t// If the values have been swapped reset the reversed flag\n\t\tif (this._areValuesReversed()) {\n\t\t\tthis._setValuesAreReversed();\n\t\t}\n\t}\n\n\t/**\n\t * Flag if press action is made on the currently selected range of values\n\t * @param isPressInCurrentRange Did the current press action occur in the current range (between the two handles)\n\t * @private\n\t */\n\t_setIsPressInCurrentRange(isPressInCurrentRange: boolean) {\n\t\tthis._isPressInCurrentRange = isPressInCurrentRange;\n\t}\n\n\t/**\n\t * Manage the focus between the focusable inner elements within the component.\n\t *\n\t * On initial focusin or if the whole range is affected by the user interaction\n\t * set the focus on the progress selection, otherwise on one of the Range Slider\n\t * handles based on the determined affected value by the user action.\n\t *\n\t * If one of the handles came across the other one in result of a user action\n\t * switch the focus between them to keep it visually consistent.\n\t *\n\t * Note:\n\t * In some cases this function is going to get called twice on one user action.\n\t *\n\t * 1. When the focus is initially set to an inner element it is done in the very beginning,\n\t * of an interaction - on 'mousedown' and 'keydown' events. The focus of the host custom element\n\t * is still not being received, causining an immediate focusout that we prevent by\n\t * calling this function once again.\n\t *\n\t * 2. When the focused is manually switched from one inner element to another.\n\t * The focusout handler is one and the same for all focusable parts within the\n\t * Range Slider and when is called it checks if it should keep the focus within\n\t * the component and which part of it should get focused if that is the case.\n\t * @protected\n\t */\n\tfocusInnerElement() {\n\t\tconst isReversed = this._areValuesReversed();\n\t\tconst affectedValue = this._valueAffected;\n\n\t\tif (this._isPressInCurrentRange || !affectedValue) {\n\t\t\tthis._progressBar.focus();\n\t\t}\n\n\t\tif ((affectedValue === \"startValue\" && !isReversed) || (affectedValue === \"endValue\" && isReversed)) {\n\t\t\tthis._startHandle.focus();\n\t\t}\n\n\t\tif ((affectedValue === \"endValue\" && !isReversed) || (affectedValue === \"startValue\" && isReversed)) {\n\t\t\tthis._endHandle.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Calculates startValue/endValue properties when the whole range is moved.\n\t *\n\t * Uses the change of the position of the start handle and adds the initially\n\t * selected range to it, to determine the whole range offset.\n\t * @param currentPageXPos The current horizontal position of the cursor/touch\n\t * @param initialStartHandlePageXPos The initial horizontal position of the start handle\n\t * @private\n\t */\n\t_calculateRangeOffset(currentPageXPos: number, initialStartHandlePageXPos: number) {\n\t\t// Return the current values if there is no difference in the\n\t\t// positions of the initial press and the current pointer\n\t\tif (this._initialPageXPosition === currentPageXPos) {\n\t\t\treturn [this.startValue, this.endValue];\n\t\t}\n\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst selectedRange = this.endValue - this.startValue;\n\n\t\t// Computes the new value based on the difference of the current cursor location from the start of the interaction\n\t\tlet startValue = this._calculateStartValueByOffset(currentPageXPos, initialStartHandlePageXPos);\n\n\t\t// When the end handle reaches the max possible value prevent the start handle from moving\n\t\t// And the opposite - if the start handle reaches the beginning of the slider keep the initially selected range.\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tstartValue = ctor.clipValue(startValue, min, max - selectedRange);\n\n\t\treturn [startValue, startValue + selectedRange];\n\t}\n\n\t/**\n\t * Computes the new value based on the difference of the current cursor location from the\n\t * start of the interaction.\n\t * @param currentPageXPos The current horizontal position of the cursor/touch\n\t * @param initialStartHandlePageXPos The initial horizontal position of the start handle\n\t * @private\n\t */\n\t_calculateStartValueByOffset(currentPageXPos: number, initialStartHandlePageXPos: number) {\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst step = this._effectiveStep;\n\t\tconst dom = this.getBoundingClientRect();\n\n\t\tlet startValue;\n\t\tlet startValuePageX;\n\t\tlet positionOffset;\n\n\t\t/* Depending on the dragging direction:\n\t\t- calculate the new position of the start handle from its old pageX value combined with the movement offset;\n\t\t- calculate the start value based on its new pageX coordinates;\n\t\t- 'stepify' the calculated value based on the specified step property; */\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tif (currentPageXPos > this._initialPageXPosition!) {\n\t\t\t// Difference between the new position of the pointer and when the press event initial occured\n\t\t\tpositionOffset = currentPageXPos - this._initialPageXPosition!;\n\n\t\t\tstartValuePageX = initialStartHandlePageXPos + positionOffset;\n\t\t\tstartValue = ctor.computedValueFromPageX(startValuePageX, min, max, dom, this.directionStart);\n\t\t\tstartValue = ctor.getSteppedValue(startValue, step, min);\n\t\t} else {\n\t\t\tpositionOffset = this._initialPageXPosition! - currentPageXPos;\n\t\t\tstartValuePageX = initialStartHandlePageXPos - positionOffset;\n\t\t\tstartValue = ctor.computedValueFromPageX(startValuePageX, min, max, dom, this.directionStart);\n\t\t\tstartValue = ctor.getSteppedValue(startValue, step, min);\n\t\t}\n\n\t\treturn startValue;\n\t}\n\n\t/**\n\t * Updates the visual representation of the component by calculating\n\t * the styles of the handles and the range selection based on the new state.\n\t * @private\n\t */\n\t_updateHandlesAndRange(newValue: number) {\n\t\tconst max = this._effectiveMax;\n\t\tconst min = this._effectiveMin;\n\t\tconst prevStartValue = this.getStoredPropertyState(\"startValue\") || 0;\n\t\tconst prevEndValue = this.getStoredPropertyState(\"endValue\") || 0;\n\t\tconst affectedValue = this._valueAffected;\n\n\t\t// The value according to which we update the UI can be either the startValue\n\t\t// or the endValue property. It is determined in _getClosestHandle()\n\t\t// depending on to which handle is closer the user interaction.\n\t\tif (affectedValue === \"startValue\") {\n\t\t\tthis._selectedRange = (prevEndValue - newValue) / (max - min);\n\t\t\tthis._firstHandlePositionFromStart = ((newValue - min) / (max - min)) * 100;\n\t\t} else if (affectedValue === \"endValue\") {\n\t\t\tthis._selectedRange = ((newValue - prevStartValue)) / (max - min);\n\t\t\tthis._secondHandlePositionFromStart = ((newValue - min) / (max - min)) * 100;\n\t\t} else {\n\t\t\t// When both values are changed - UI sync or moving the whole selected range:\n\t\t\tthis._selectedRange = ((this.endValue - this.startValue)) / (max - min);\n\t\t\tthis._firstHandlePositionFromStart = ((this.startValue - min) / (max - min)) * 100;\n\t\t\tthis._secondHandlePositionFromStart = ((this.endValue - min) / (max - min)) * 100;\n\t\t}\n\t}\n\n\t/**\n\t * Swaps the start and end values of the handles if one came accros the other:\n\t * - If the start value is greater than the endValue swap them and their handles\n\t * - If the endValue become less than the start value swap them and their handles\n\t *\n\t * Switches the focus to the opposite of the currently focused handle.\n\t *\n\t * Note: Only the property values are reversed, the DOM elements of the handles\n\t * corresponding to them are never switched.\n\t * @private\n\t */\n\t_swapValues() {\n\t\tconst affectedValue = this._valueAffected;\n\t\tif (!affectedValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (affectedValue === \"startValue\" && this.startValue > this.endValue) {\n\t\t\tconst prevEndValue = this.endValue;\n\t\t\tthis.endValue = this.startValue;\n\t\t\tthis.startValue = prevEndValue;\n\t\t}\n\n\t\tif (affectedValue === \"endValue\" && this.endValue < this.startValue) {\n\t\t\tconst prevStartValue = this.startValue;\n\t\t\tthis.startValue = this.endValue;\n\t\t\tthis.endValue = prevStartValue;\n\t\t}\n\n\t\tthis._setValuesAreReversed();\n\t\tthis._updateHandlesAndRange(this[affectedValue]);\n\t\tthis.focusInnerElement();\n\t\tthis.syncUIAndState();\n\t}\n\n\t/**\n\t * Flag that we have swapped the values of the 'start' and 'end' properties,\n\t * to correctly switch the focus within the component from one handle to another\n\t * when the swapping is finished. As we only swap property values and not\n\t * the handle elements themselves, we must also swap their focus.\n\t * @private\n\t */\n\t_setValuesAreReversed() {\n\t\tthis._reversedValues = !this._reversedValues;\n\t }\n\n\t _areValuesReversed() {\n\t\treturn this._reversedValues;\n\t}\n\n\tget tickmarksObject() {\n\t\tconst count = this._tickmarksCount;\n\t\tconst arr = [];\n\n\t\tif (this._hiddenTickmarks) {\n\t\t\treturn [false, false];\n\t\t}\n\n\t\tfor (let i = 0; i <= count; i++) {\n\t\t\tconst isBiggerThanStartValue = this._effectiveMin + (i * this.step) >= this.startValue;\n\t\t\tconst isBiggerThanEndValue = this._effectiveMin + (i * this.step) <= this.endValue;\n\n\t\t\tarr.push(isBiggerThanStartValue && isBiggerThanEndValue);\n\t\t}\n\n\t\treturn arr;\n\t}\n\n\tget _startHandle() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-handle--start\")!;\n\t}\n\n\tget _endHandle() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-handle--end\")!;\n\t}\n\n\tget _progressBar() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-progress\")!;\n\t}\n\n\tget _ariaLabelledByStartHandleRefs() {\n\t\treturn [`${this._id}-accName`, `${this._id}-startHandleDesc`].join(\" \").trim();\n\t}\n\n\tget _ariaLabelledByEndHandleRefs() {\n\t\treturn [`${this._id}-accName`, `${this._id}-endHandleDesc`].join(\" \").trim();\n\t}\n\n\tget _ariaLabelledByProgressBarRefs() {\n\t\treturn [`${this._id}-accName`, `${this._id}-sliderDesc`].join(\" \").trim();\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tprogress: {\n\t\t\t\t\"width\": `${this._selectedRange! * 100}%`,\n\t\t\t\t\"transform-origin\": `${this.directionStart} top`,\n\t\t\t\t[this.directionStart]: `${this._firstHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tstartHandle: {\n\t\t\t\t[this.directionStart]: `${this._firstHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tendHandle: {\n\t\t\t\t[this.directionStart]: `${this._secondHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tlabel: {\n\t\t\t\t\"width\": `${this._labelWidth}%`,\n\t\t\t},\n\t\t\tlabelContainer: {\n\t\t\t\t\"width\": `100%`,\n\t\t\t\t[this.directionStart]: `-${this._labelWidth / 2}%`,\n\t\t\t},\n\t\t\ttooltip: {\n\t\t\t\t\"visibility\": `${this._tooltipVisibility}`,\n\t\t\t},\n\t\t};\n\t}\n}\n\nRangeSlider.define();\n\nexport default RangeSlider;\n"]}
1
+ {"version":3,"file":"RangeSlider.js","sourceRoot":"","sources":["../src/RangeSlider.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAGnE,OAAO,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,GACL,MAAM,sCAAsC,CAAC;AAC9C,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AACnF,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,QAAQ;AACR,OAAO,EACN,6BAA6B,EAC7B,qCAAqC,EACrC,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,GAChC,MAAM,mCAAmC,CAAC;AAE3C,SAAS;AACT,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AAStE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AASH,IAAM,WAAW,mBAAjB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;AAl8BA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACZ;AAUf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACP;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACD;AAG3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDACH;AAoBlB;IADN,IAAI,CAAC,oBAAoB,CAAC;qCACG;AAhDzB,WAAW;IARhB,aAAa,CAAC;QACd,GAAG,EAAE,kBAAkB;QACvB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,mBAAmB;QAC7B,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;QAC3B,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,iBAAiB,CAAC;KAC9C,CAAC;GACI,WAAW,CA28BhB;AAED,WAAW,CAAC,MAAM,EAAE,CAAC;AAErB,eAAe,WAAW,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type { IFormInputElement } from \"@ui5/webcomponents-base/dist/features/InputElementsFormSupport.js\";\nimport {\n\tisEscape,\n\tisEnter,\n\tisHome,\n\tisEnd,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport SliderBase from \"./SliderBase.js\";\nimport Icon from \"./Icon.js\";\nimport RangeSliderTemplate from \"./generated/templates/RangeSliderTemplate.lit.js\";\nimport Input from \"./Input.js\";\n\n// Texts\nimport {\n\tRANGE_SLIDER_ARIA_DESCRIPTION,\n\tRANGE_SLIDER_START_HANDLE_DESCRIPTION,\n\tRANGE_SLIDER_END_HANDLE_DESCRIPTION,\n\tSLIDER_TOOLTIP_INPUT_LABEL,\n\tSLIDER_TOOLTIP_INPUT_DESCRIPTION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport rangeSliderStyles from \"./generated/themes/RangeSlider.css.js\";\n\ntype AriaHandlesText = {\n\tstartHandleText?: string,\n\tendHandleText?: string,\n}\n\ntype AffectedValue = \"startValue\" | \"endValue\";\n\n/**\n * @class\n *\n * ### Overview\n * Represents a numerical interval and two handles (grips) to select a sub-range within it.\n * The purpose of the component to enable visual selection of sub-ranges within a given interval.\n *\n * ### Structure\n * The most important properties of the Range Slider are:\n *\n * - min - The minimum value of the slider range.\n * - max - The maximum value of the slider range.\n * - value - The current value of the slider.\n * - step - Determines the increments in which the slider will move.\n * - showTooltip - Determines if a tooltip should be displayed above the handle.\n * - showTickmarks - Displays a visual divider between the step values.\n * - labelInterval - Labels some or all of the tickmarks with their values.\n *\n * #### Notes:\n *\n * - The right and left handle can be moved individually and their positions could therefore switch.\n * - The entire range can be moved along the interval.\n *\n * ### Usage\n * The most common use case is to select and move sub-ranges on a continuous numerical scale.\n *\n * ### Responsive Behavior\n * You can move the currently selected range by clicking on it and dragging it along the interval.\n *\n * ### Keyboard Handling\n *\n * - `Left or Down Arrow` - Moves a component's handle or the entire selection one step to the left;\n * - `Right or Up Arrow` - Moves a component's handle or the entire selection one step to the right;\n * - `Left or Down Arrow + Ctrl/Cmd` - Moves a component's handle to the left or the entire range with step equal to 1/10th of the entire range;\n * - `Right or Up Arrow + Ctrl/Cmd` - Moves a component's handle to the right or the entire range with step equal to 1/10th of the entire range;\n * - `Plus` - Same as `Right or Up Arrow`;\n * - `Minus` - Same as `Left or Down Arrow`;\n * - `Home` - Moves the entire selection or the selected handle to the beginning of the component's range;\n * - `End` - Moves the entire selection or the selected handle to the end of the component's range;\n * - `Page Up` - Same as `Right or Up Arrow + Ctrl/Cmd`;\n * - `Page Down` - Same as `Left or Down Arrow + Ctrl/Cmd`;\n * - `Escape` - Resets the `startValue` and `endValue` properties to the values prior the component focusing;\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/RangeSlider.js\";`\n * @constructor\n * @extends SliderBase\n * @since 1.0.0-rc.11\n * @public\n * @csspart progress-container - Used to style the progress container, the horizontal bar that visually represents the range between the minimum and maximum values, of the `ui5-range-slider`.\n * @csspart progress-bar - Used to style the progress bar, which shows the progress of the `ui5-range-slider`.\n * @csspart handle - Used to style the handles of the `ui5-range-slider`.\n */\n@customElement({\n\ttag: \"ui5-range-slider\",\n\tlanguageAware: true,\n\tformAssociated: true,\n\ttemplate: RangeSliderTemplate,\n\tdependencies: [Icon, Input],\n\tstyles: [SliderBase.styles, rangeSliderStyles],\n})\nclass RangeSlider extends SliderBase implements IFormInputElement {\n\t/**\n\t * Defines start point of a selection - position of a first handle on the slider.\n\t * @default 0\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Number })\n\tstartValue = 0;\n\n\t/**\n\t * Defines end point of a selection - position of a second handle on the slider.\n\t * @default 100\n\t * @formEvents change input\n\t * @formProperty\n\t * @public\n\t */\n\t@property({ type: Number })\n\tendValue = 100;\n\n\t@property({ type: Boolean })\n\trangePressed = false;\n\n\t@property({ type: Boolean })\n\t_isStartValueValid = false;\n\n\t@property({ type: Boolean })\n\t_isEndValueValid = false;\n\n\t_startValueInitial?: number;\n\t_endValueInitial?: number;\n\t_valueAffected?: AffectedValue;\n\t_isPressInCurrentRange = false;\n\t_handeIsPressed = false;\n\t_initialPageXPosition?: number;\n\t_startValueAtBeginningOfAction?: number;\n\t_endValueAtBeginningOfAction?: number;\n\t_initialStartHandlePageX?: number;\n\t_firstHandlePositionFromStart?: number;\n\t_secondHandlePositionFromStart?: number;\n\t_selectedRange?: number;\n\t_reversedValues = false;\n\t_lastValidStartValue: string;\n\t_lastValidEndValue: string;\n\t_areInputValuesSwapped = false;\n\n\t@i18n(\"@ui5/webcomponents\")\n\tstatic i18nBundle: I18nBundle;\n\n\tget formFormattedValue() {\n\t\tconst formData = new FormData();\n\n\t\tif (!this.name) {\n\t\t\treturn formData;\n\t\t}\n\n\t\tformData.append(this.name, this.startValue.toString());\n\t\tformData.append(this.name, this.endValue.toString());\n\n\t\treturn formData;\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._stateStorage.startValue = undefined;\n\t\tthis._stateStorage.endValue = undefined;\n\t\tthis._lastValidStartValue = this.min.toString();\n\t\tthis._lastValidEndValue = this.max.toString();\n\t}\n\n\tget tooltipStartValue() {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);\n\t\treturn this.startValue.toFixed(stepPrecision);\n\t}\n\n\tget tooltipEndValue() {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);\n\t\treturn this.endValue.toFixed(stepPrecision);\n\t}\n\n\tget _ariaDisabled() {\n\t\treturn this.disabled || undefined;\n\t}\n\n\tget _ariaLabelledByText() {\n\t\treturn RangeSlider.i18nBundle.getText(RANGE_SLIDER_ARIA_DESCRIPTION);\n\t}\n\n\tget _ariaHandlesText() {\n\t\tconst isRTL = this.effectiveDir === \"rtl\";\n\t\tconst isReversed = this._areValuesReversed();\n\t\tconst ariaHandlesText: AriaHandlesText = {};\n\n\t\tif ((isRTL && !isReversed) || (!isRTL && isReversed)) {\n\t\t\tariaHandlesText.startHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_END_HANDLE_DESCRIPTION);\n\t\t\tariaHandlesText.endHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_START_HANDLE_DESCRIPTION);\n\t\t} else {\n\t\t\tariaHandlesText.startHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_START_HANDLE_DESCRIPTION);\n\t\t\tariaHandlesText.endHandleText = RangeSlider.i18nBundle.getText(RANGE_SLIDER_END_HANDLE_DESCRIPTION);\n\t\t}\n\n\t\treturn ariaHandlesText;\n\t}\n\n\tget _ariaValueNow() {\n\t\treturn Math.abs(this.endValue - this.startValue);\n\t}\n\n\t/**\n\t * Check if the previously saved state is outdated. That would mean\n\t * either it is the initial rendering or that a property has been changed\n\t * programmatically - because the previous state is always updated in\n\t * the interaction handlers.\n\t *\n\t * Normalize current properties, update the previously stored state.\n\t * Update the visual UI representation of the Slider.\n\t *\n\t */\n\tonBeforeRendering() {\n\t\tif (this.startValue > this.endValue) {\n\t\t\tconst affectedValue = this._valueAffected === \"startValue\" ? \"endValue\" : \"startValue\";\n\n\t\t\tthis._swapValues();\n\t\t\tthis._setAffectedValue(affectedValue);\n\t\t\tthis.update(affectedValue, this.startValue, this.endValue);\n\t\t}\n\n\t\tif (this.editableTooltip) {\n\t\t\tthis._saveInputValues();\n\t\t}\n\n\t\tif (!this.isCurrentStateOutdated()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.notResized = true;\n\t\tthis.syncUIAndState();\n\t\tthis._updateHandlesAndRange(0);\n\t\tthis.update(this._valueAffected, this.startValue, this.endValue);\n\t}\n\n\tsyncUIAndState() {\n\t\t// Validate step and update the stored state for the step property.\n\t\tif (this.isPropertyUpdated(\"step\")) {\n\t\t\tthis._validateStep(this.step);\n\t\t\tthis.storePropertyState(\"step\");\n\t\t}\n\n\t\t// Recalculate the tickmarks and labels and update the stored state.\n\t\tif (this.isPropertyUpdated(\"min\", \"max\", \"startValue\", \"endValue\")) {\n\t\t\tthis.storePropertyState(\"min\", \"max\");\n\n\t\t\t// Here the value props are changed programmatically (not by user interaction)\n\t\t\t// and it won't be \"stepified\" (rounded to the nearest step). 'Clip' them within\n\t\t\t// min and max bounderies and update the previous state reference.\n\t\t\tconst normalizedStartValue = SliderBase.clipValue(this.startValue, this._effectiveMin, this._effectiveMax);\n\t\t\tthis.startValue = normalizedStartValue;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\t\t\tthis.storePropertyState(\"startValue\");\n\n\t\t\tconst normalizedEndValue = SliderBase.clipValue(this.endValue, this._effectiveMin, this._effectiveMax);\n\t\t\tthis.endValue = normalizedEndValue;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\tthis.storePropertyState(\"endValue\");\n\t\t}\n\n\t\t// Labels must be updated if any of the min/max/step/labelInterval props are changed\n\t\tif (this.labelInterval && this.showTickmarks) {\n\t\t\tthis._createLabels();\n\t\t}\n\n\t\t// Update the stored state for the labelInterval, if changed\n\t\tif (this.isPropertyUpdated(\"labelInterval\")) {\n\t\t\tthis.storePropertyState(\"labelInterval\");\n\t\t}\n\t}\n\n\t_onfocusin() {\n\t\t// If this is the initial focusin of the component save its initial\n\t\t// value properties so they could be restored on ESC key press\n\t\tif (!this._endValueInitial) {\n\t\t\tthis._startValueInitial = this.startValue;\n\t\t\tthis._endValueInitial = this.endValue;\n\t\t}\n\n\t\tif (this.showTooltip) {\n\t\t\tthis._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.VISIBLE;\n\t\t}\n\t}\n\n\t/**\n\t * Handles focus out event of the focusable components inner elements.\n\t * Prevent focusout when the focus is getting initially set within the slider before the\n\t * slider customElement itself is finished focusing.\n\t *\n\t * Prevents the focus from leaving the Range Slider when the focus is managed between\n\t * its inner elements in result of user interactions.\n\t *\n\t * Resets the stored Range Slider's initial values saved when it was first focused\n\t * @private\n\t */\n\t_onfocusout(e: FocusEvent) {\n\t\tif (this._isFocusing()) {\n\t\t\tthis._preventFocusOut();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setAffectedValue(undefined);\n\t\tthis._startValueInitial = undefined;\n\t\tthis._endValueInitial = undefined;\n\n\t\tif (this.showTooltip && !(e.relatedTarget as HTMLInputElement)?.hasAttribute(\"ui5-input\")) {\n\t\t\tthis._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;\n\t\t}\n\t}\n\n\t_onInputFocusOut(e: FocusEvent) {\n\t\tconst tooltipInput = e.target as Input;\n\t\tconst oppositeTooltipInput: Input = tooltipInput.hasAttribute(\"data-sap-ui-start-value\") ? this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-end-value]\")! : this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-start-value]\")!;\n\t\tconst relatedTarget = e.relatedTarget as HTMLElement;\n\n\t\tif (this.startValue > this.endValue) {\n\t\t\tthis._areInputValuesSwapped = true;\n\t\t\toppositeTooltipInput.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tif (tooltipInput.hasAttribute(\"data-sap-ui-start-value\")) {\n\t\t\tthis._setAffectedValue(\"startValue\");\n\t\t} else {\n\t\t\tthis._setAffectedValue(\"endValue\");\n\t\t}\n\n\t\tif (!this._areInputValuesSwapped || !this.shadowRoot!.contains(relatedTarget)) {\n\t\t\tthis._tooltipVisibility = SliderBase.TOOLTIP_VISIBILITY.HIDDEN;\n\t\t}\n\n\t\tthis._updateValueFromInput(e);\n\t\tthis._updateInputValue();\n\t\tthis.update(this._valueAffected, parseFloat(this._lastValidStartValue), parseFloat(this._lastValidEndValue));\n\n\t\tconst isTooltipInputValueValid = parseFloat(tooltipInput.value) >= this.min && parseFloat(tooltipInput.value) <= this.max;\n\n\t\tif (!isTooltipInputValueValid) {\n\t\t\ttooltipInput.value = tooltipInput.hasAttribute(\"data-sap-ui-start-value\") ? this._lastValidStartValue : this._lastValidEndValue;\n\t\t\ttooltipInput.valueState = \"None\";\n\t\t}\n\t}\n\n\t/**\n\t* Handles keyup logic. If one of the handles came across the other\n\t* swap the start and end values. Reset the affected value by the finished\n\t* user interaction.\n\t* @private\n\t*/\n\t_onkeyup(e: KeyboardEvent) {\n\t\tsuper._onKeyupBase();\n\n\t\tif (!isEnter(e)) {\n\t\t\tthis._setAffectedValue(undefined);\n\t\t}\n\n\t\tif (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {\n\t\t\tthis.fireDecoratorEvent(\"change\");\n\t\t}\n\n\t\tthis._startValueAtBeginningOfAction = undefined;\n\t\tthis._endValueAtBeginningOfAction = undefined;\n\t}\n\n\t_handleActionKeyPress(e: KeyboardEvent) {\n\t\tthis._startValueAtBeginningOfAction = this.startValue;\n\t\tthis._endValueAtBeginningOfAction = this.endValue;\n\n\t\tif (isEscape(e)) {\n\t\t\tthis.update(undefined, this._startValueInitial, this._endValueInitial);\n\t\t\treturn;\n\t\t}\n\n\t\t// Set the target of the interaction based on the focused inner element\n\t\tthis._setAffectedValueByFocusedElement();\n\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst affectedValue = this._valueAffected!;\n\n\t\t// If home/end key is pressed and no single handle is focused the active element\n\t\t// is the range selection - update both start and end values. Otherwise, if 'home'\n\t\t// is pressed the 'startValue'will be used for the start-handle offset calculation,\n\t\t// if 'End' is pressed - the 'endValue' will be used for the end-handle update.\n\t\tif ((isEnd(e) || isHome(e)) && !affectedValue) {\n\t\t\tthis._homeEndForSelectedRange(e, isHome(e) ? \"startValue\" : \"endValue\", min, max);\n\t\t\treturn;\n\t\t}\n\n\t\t// Calculate how much the value should be increased/decreased based on the action key\n\t\tconst newValueOffset = this._handleActionKeyPressBase(e, affectedValue);\n\n\t\tif (!newValueOffset) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update a single value if one of the handles is focused or the range if not already at min or max\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tif (affectedValue && !this._isPressInCurrentRange) {\n\t\t\tconst propValue = this[affectedValue as keyof RangeSlider] as number;\n\t\t\tconst newValue = ctor.clipValue(newValueOffset + propValue, min, max);\n\t\t\tthis.update(affectedValue, newValue, undefined);\n\t\t} else if ((newValueOffset < 0 && this.startValue > min) || (newValueOffset > 0 && this.endValue < max)) {\n\t\t\tconst newStartValue = ctor.clipValue(newValueOffset + this.startValue, min, max);\n\t\t\tconst newEndValue = ctor.clipValue(newValueOffset + this.endValue, min, max);\n\t\t\tthis.update(affectedValue, newStartValue, newEndValue);\n\t\t}\n\t}\n\n\t/**\n\t * Determines affected value (start/end) depending on the currently\n\t * active inner element within the Range Slider - used in the keyboard handling.\n\t * @private\n\t */\n\t_setAffectedValueByFocusedElement() {\n\t\tif (this.shadowRoot!.activeElement === this._startHandle) {\n\t\t\tthis._setAffectedValue(\"startValue\");\n\t\t}\n\n\t\tif (this.shadowRoot!.activeElement === this._endHandle) {\n\t\t\tthis._setAffectedValue(\"endValue\");\n\t\t}\n\n\t\tif (this.shadowRoot!.activeElement === this._progressBar) {\n\t\t\tthis._setAffectedValue(undefined);\n\t\t}\n\n\t\tthis._setIsPressInCurrentRange(!this._valueAffected);\n\t}\n\n\t/**\n\t * Calculates the start and end values when the 'Home\" or 'End' keys\n\t * are pressed on the selected range bar.\n\t * @private\n\t */\n\t_homeEndForSelectedRange(e: KeyboardEvent, affectedValue: string, min: number, max: number) {\n\t\tconst newValueOffset = this._handleActionKeyPressBase(e, affectedValue);\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst newStartValue = ctor.clipValue(newValueOffset + this.startValue, min, max);\n\t\tconst newEndValue = ctor.clipValue(newValueOffset + this.endValue, min, max);\n\n\t\tthis.update(undefined, newStartValue, newEndValue);\n\t}\n\n\t/**\n\t * Update values, stored inner state and the visual UI representation of the component.\n\t * If no specific type of value property is passed - the range is selected - update both handles,\n\t * otherwise update the handle corresponding to the affected by the user interacton value prop.\n\t * @private\n\t */\n\tupdate(affectedValue: string | undefined, startValue: number | undefined, endValue: number | undefined) {\n\t\tif (!affectedValue) {\n\t\t\tthis.startValue = startValue!;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\n\t\t\tthis.endValue = endValue!;\n\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\tthis._updateHandlesAndRange(0);\n\t\t} else {\n\t\t\tconst newValue = endValue && affectedValue === \"endValue\" ? endValue : startValue;\n\t\t\tthis._updateHandlesAndRange(newValue || 0);\n\n\t\t\tif (affectedValue === \"startValue\") {\n\t\t\t\tthis.startValue = newValue!;\n\t\t\t\tthis.updateStateStorageAndFireInputEvent(\"startValue\");\n\t\t\t}\n\n\t\t\tif (affectedValue === \"endValue\") {\n\t\t\t\tthis.endValue = newValue!;\n\t\t\t\tthis.updateStateStorageAndFireInputEvent(\"endValue\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Called when the user starts interacting with the slider\n\t * @private\n\t */\n\t_onmousedown(e: TouchEvent | MouseEvent) {\n\t\tif ((e as MouseEvent)?.button && (e as MouseEvent)?.button !== 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If step is 0 no interaction is available because there is no constant\n\t\t// (equal for all user environments) quantitative representation of the value\n\t\tif (this.disabled || this._effectiveStep === 0 || (e.target as HTMLElement).hasAttribute(\"ui5-input\")) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Calculate the new value from the press position of the event\n\t\tconst newValue = this.handleDownBase(e);\n\n\t\t// Determine the rest of the needed details from the start of the interaction.\n\t\tthis._saveInteractionStartData(e, newValue);\n\n\t\tthis.rangePressed = this._isPressInCurrentRange;\n\n\t\t// Do not yet update the RangeSlider if press is in range or over a handle.\n\t\tif (this._isPressInCurrentRange || this._handeIsPressed) {\n\t\t\tthis._handeIsPressed = false;\n\t\t\treturn;\n\t\t}\n\n\t\t// Update Slider UI and internal state\n\t\tthis.update(this._valueAffected, newValue, undefined);\n\t}\n\n\t/**\n\t * Determines and saves needed values from the start of the interaction:\n\t *\n\t * Is the value calculated is within the currently selected range;\n\t * Initial pageX position of the start handle affected by the interaction;\n\t * Initial pageX value of the pressed postion;\n\t * Affected value property by the action;\n\t * @private\n\t */\n\t_saveInteractionStartData(e: TouchEvent | MouseEvent, newValue: number) {\n\t\tconst progressBarDom = this.shadowRoot!.querySelector(\".ui5-slider-progress\")!.getBoundingClientRect();\n\n\t\t// Save the state of the value properties on the start of the interaction\n\t\tthis._startValueAtBeginningOfAction = this.startValue;\n\t\tthis._endValueAtBeginningOfAction = this.endValue;\n\n\t\t// Save the initial press point coordinates (position)\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tthis._initialPageXPosition = ctor.getPageXValueFromEvent(e);\n\t\t// Which element of the Range Slider is pressed and which value property to be modified on further interaction\n\t\tthis._pressTargetAndAffectedValue(this._initialPageXPosition, newValue);\n\t\t// Use the progress bar to save the initial coordinates of the start-handle when the interaction begins.\n\t\tthis._initialStartHandlePageX = this.directionStart === \"left\" ? progressBarDom.left : progressBarDom.right;\n\t}\n\n\t/**\n\t * Called when the user moves the slider\n\t * @private\n\t */\n\t_handleMove(e: TouchEvent | MouseEvent) {\n\t\te.preventDefault();\n\n\t\t// If 'step' is 0 no interaction is available as there is no constant quantitative representation of the value\n\t\tif (this.disabled || this._effectiveStep === 0 || (e.target as HTMLElement).hasAttribute(\"ui5-input\")) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update UI and state when dragging a single Range Slider handle\n\t\tif (!this._isPressInCurrentRange) {\n\t\t\tthis._updateValueOnHandleDrag(e);\n\t\t\treturn;\n\t\t}\n\n\t\t// Updates UI and state when dragging of the whole selected range\n\t\tthis._updateValueOnRangeDrag(e);\n\t}\n\n\t/**\n\t * Updates UI and state when dragging a single Range Slider handle\n\t * @private\n\t */\n\t_updateValueOnHandleDrag(event: TouchEvent | MouseEvent) {\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst newValue = ctor.getValueFromInteraction(event, this._effectiveStep, this._effectiveMin, this._effectiveMax, this.getBoundingClientRect(), this.directionStart);\n\t\tthis.update(this._valueAffected, newValue, undefined);\n\t}\n\n\t/**\n\t * Updates UI and state when dragging of the whole selected range\n\t * @private\n\t */\n\t_updateValueOnRangeDrag(event: TouchEvent | MouseEvent) {\n\t\t// Calculate the new 'start' and 'end' values from the offset between the original press point and the current position of the mouse\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst currentPageXPos = ctor.getPageXValueFromEvent(event);\n\t\tconst newValues = this._calculateRangeOffset(currentPageXPos, this._initialStartHandlePageX!);\n\n\t\t// No matter the which value is set as the one to be modified (by prev. user action) we want to modify both of them\n\t\tthis._setAffectedValue(undefined);\n\n\t\t// Update the UI and the state according to the calculated new values\n\t\tthis.update(undefined, newValues[0], newValues[1]);\n\t}\n\n\t_handleUp(e: MouseEvent) {\n\t\tif ((e.target as HTMLElement).hasAttribute(\"ui5-input\")) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setAffectedValueByFocusedElement();\n\t\tthis._setAffectedValue(undefined);\n\n\t\tif (this.startValue !== this._startValueAtBeginningOfAction || this.endValue !== this._endValueAtBeginningOfAction) {\n\t\t\tthis.fireDecoratorEvent(\"change\");\n\t\t}\n\n\t\tthis._setIsPressInCurrentRange(false);\n\t\tthis.handleUpBase();\n\n\t\tthis.rangePressed = false;\n\t\tthis._startValueAtBeginningOfAction = undefined;\n\t\tthis._endValueAtBeginningOfAction = undefined;\n\t}\n\n\t_updateValueFromInput(e: Event) {\n\t\tif (this._areInputValuesSwapped) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = e.target as HTMLInputElement;\n\t\tconst inputValue = parseFloat(input.value);\n\t\tconst isValueValid = inputValue >= this._effectiveMin && inputValue <= this._effectiveMax;\n\n\t\tif (!isValueValid) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (input.hasAttribute(\"data-sap-ui-start-value\")) {\n\t\t\tthis.startValue = inputValue;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.endValue = inputValue;\n\n\t\tif (this.startValue > this.endValue) {\n\t\t\tthis._areInputValuesSwapped = true;\n\t\t}\n\t}\n\n\t/**\n\t * Determines where the press occured and which values of the Range Slider\n\t * handles should be updated on further interaction.\n\t *\n\t * If the press is not in the selected range or over one of the Range Slider handles\n\t * determines which one from the value/endValue properties has to be updated\n\t * after the user action (based on closest handle).\n\t *\n\t * Set flags if the press is over a handle or in the selected range,\n\t * in such cases no values are changed on interaction start, but could be\n\t * updated later when dragging.\n\t * @private\n\t */\n\t_pressTargetAndAffectedValue(clientX: number, value: number) {\n\t\tconst startHandle = this.shadowRoot!.querySelector(\".ui5-slider-handle--start\")!;\n\t\tconst endHandle = this.shadowRoot!.querySelector(\".ui5-slider-handle--end\")!;\n\n\t\t// Check if the press point is in the bounds of any of the Range Slider handles\n\t\tconst handleStartDomRect = startHandle.getBoundingClientRect();\n\t\tconst handleEndDomRect = endHandle.getBoundingClientRect();\n\t\tconst inHandleStartDom = clientX >= handleStartDomRect.left && clientX <= handleStartDomRect.right;\n\t\tconst inHandleEndDom = clientX >= handleEndDomRect.left && clientX <= handleEndDomRect.right;\n\n\t\t// Remove the flag for value in current range if the press action is over one of the handles\n\t\tif (inHandleEndDom || inHandleStartDom) {\n\t\t\tthis._handeIsPressed = true;\n\t\t}\n\n\t\t// Return that handle that is closer to the press point\n\t\tif (inHandleEndDom || value > this.endValue) {\n\t\t\tthis._setAffectedValue(\"endValue\");\n\t\t}\n\n\t\t// If one of the handle is pressed return that one\n\t\tif (inHandleStartDom || value < this.startValue) {\n\t\t\tthis._setAffectedValue(\"startValue\");\n\t\t}\n\n\t\t// Flag if press is in the current select range\n\t\tconst isNewValueInCurrentRange = this._startValueAtBeginningOfAction !== undefined && this._endValueAtBeginningOfAction !== undefined && value >= this._startValueAtBeginningOfAction && value <= this._endValueAtBeginningOfAction;\n\t\tthis._setIsPressInCurrentRange(!(this._valueAffected || this._handeIsPressed) ? isNewValueInCurrentRange : false);\n\t}\n\n\t/**\n\t * Sets the value property (start/end) that will get updated\n\t * by a user action depending on that user action's characteristics\n\t * - mouse press position - cursor coordinates relative to the start/end handles\n\t * - selected inner element via a keyboard navigation\n\t * @param affectedValue The value that will get modified by the interaction\n\t * @private\n\t */\n\t_setAffectedValue(affectedValue: AffectedValue | undefined) {\n\t\tthis._valueAffected = affectedValue;\n\n\t\t// If the values have been swapped reset the reversed flag\n\t\tif (this._areValuesReversed()) {\n\t\t\tthis._setValuesAreReversed();\n\t\t}\n\t}\n\n\t/**\n\t * Flag if press action is made on the currently selected range of values\n\t * @param isPressInCurrentRange Did the current press action occur in the current range (between the two handles)\n\t * @private\n\t */\n\t_setIsPressInCurrentRange(isPressInCurrentRange: boolean) {\n\t\tthis._isPressInCurrentRange = isPressInCurrentRange;\n\t}\n\n\t/**\n\t * Manage the focus between the focusable inner elements within the component.\n\t *\n\t * On initial focusin or if the whole range is affected by the user interaction\n\t * set the focus on the progress selection, otherwise on one of the Range Slider\n\t * handles based on the determined affected value by the user action.\n\t *\n\t * If one of the handles came across the other one in result of a user action\n\t * switch the focus between them to keep it visually consistent.\n\t *\n\t * Note:\n\t * In some cases this function is going to get called twice on one user action.\n\t *\n\t * 1. When the focus is initially set to an inner element it is done in the very beginning,\n\t * of an interaction - on 'mousedown' and 'keydown' events. The focus of the host custom element\n\t * is still not being received, causining an immediate focusout that we prevent by\n\t * calling this function once again.\n\t *\n\t * 2. When the focused is manually switched from one inner element to another.\n\t * The focusout handler is one and the same for all focusable parts within the\n\t * Range Slider and when is called it checks if it should keep the focus within\n\t * the component and which part of it should get focused if that is the case.\n\t * @protected\n\t */\n\tfocusInnerElement() {\n\t\tif (this.editableTooltip && this._tooltipVisibility === SliderBase.TOOLTIP_VISIBILITY.HIDDEN) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst isReversed = this._areValuesReversed();\n\t\tconst affectedValue = this._valueAffected;\n\n\t\tif (this._isPressInCurrentRange || !affectedValue) {\n\t\t\tthis._progressBar.focus();\n\t\t}\n\n\t\tif ((affectedValue === \"startValue\" && !isReversed) || (affectedValue === \"endValue\" && isReversed)) {\n\t\t\tthis._startHandle.focus();\n\t\t}\n\n\t\tif ((affectedValue === \"endValue\" && !isReversed) || (affectedValue === \"startValue\" && isReversed)) {\n\t\t\tthis._endHandle.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Calculates startValue/endValue properties when the whole range is moved.\n\t *\n\t * Uses the change of the position of the start handle and adds the initially\n\t * selected range to it, to determine the whole range offset.\n\t * @param currentPageXPos The current horizontal position of the cursor/touch\n\t * @param initialStartHandlePageXPos The initial horizontal position of the start handle\n\t * @private\n\t */\n\t_calculateRangeOffset(currentPageXPos: number, initialStartHandlePageXPos: number) {\n\t\t// Return the current values if there is no difference in the\n\t\t// positions of the initial press and the current pointer\n\t\tif (this._initialPageXPosition === currentPageXPos) {\n\t\t\treturn [this.startValue, this.endValue];\n\t\t}\n\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst selectedRange = this.endValue - this.startValue;\n\n\t\t// Computes the new value based on the difference of the current cursor location from the start of the interaction\n\t\tlet startValue = this._calculateStartValueByOffset(currentPageXPos, initialStartHandlePageXPos);\n\n\t\t// When the end handle reaches the max possible value prevent the start handle from moving\n\t\t// And the opposite - if the start handle reaches the beginning of the slider keep the initially selected range.\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tstartValue = ctor.clipValue(startValue, min, max - selectedRange);\n\n\t\treturn [startValue, startValue + selectedRange];\n\t}\n\n\t/**\n\t * Computes the new value based on the difference of the current cursor location from the\n\t * start of the interaction.\n\t * @param currentPageXPos The current horizontal position of the cursor/touch\n\t * @param initialStartHandlePageXPos The initial horizontal position of the start handle\n\t * @private\n\t */\n\t_calculateStartValueByOffset(currentPageXPos: number, initialStartHandlePageXPos: number) {\n\t\tconst min = this._effectiveMin;\n\t\tconst max = this._effectiveMax;\n\t\tconst step = this._effectiveStep;\n\t\tconst dom = this.getBoundingClientRect();\n\n\t\tlet startValue;\n\t\tlet startValuePageX;\n\t\tlet positionOffset;\n\n\t\t/* Depending on the dragging direction:\n\t\t- calculate the new position of the start handle from its old pageX value combined with the movement offset;\n\t\t- calculate the start value based on its new pageX coordinates;\n\t\t- 'stepify' the calculated value based on the specified step property; */\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tif (currentPageXPos > this._initialPageXPosition!) {\n\t\t\t// Difference between the new position of the pointer and when the press event initial occured\n\t\t\tpositionOffset = currentPageXPos - this._initialPageXPosition!;\n\n\t\t\tstartValuePageX = initialStartHandlePageXPos + positionOffset;\n\t\t\tstartValue = ctor.computedValueFromPageX(startValuePageX, min, max, dom, this.directionStart);\n\t\t\tstartValue = ctor.getSteppedValue(startValue, step, min);\n\t\t} else {\n\t\t\tpositionOffset = this._initialPageXPosition! - currentPageXPos;\n\t\t\tstartValuePageX = initialStartHandlePageXPos - positionOffset;\n\t\t\tstartValue = ctor.computedValueFromPageX(startValuePageX, min, max, dom, this.directionStart);\n\t\t\tstartValue = ctor.getSteppedValue(startValue, step, min);\n\t\t}\n\n\t\treturn startValue;\n\t}\n\n\t/**\n\t * Updates the visual representation of the component by calculating\n\t * the styles of the handles and the range selection based on the new state.\n\t * @private\n\t */\n\t_updateHandlesAndRange(newValue: number) {\n\t\tconst max = this._effectiveMax;\n\t\tconst min = this._effectiveMin;\n\t\tconst prevStartValue = this.getStoredPropertyState(\"startValue\") || 0;\n\t\tconst prevEndValue = this.getStoredPropertyState(\"endValue\") || 0;\n\t\tconst affectedValue = this._valueAffected;\n\n\t\t// The value according to which we update the UI can be either the startValue\n\t\t// or the endValue property. It is determined in _getClosestHandle()\n\t\t// depending on to which handle is closer the user interaction.\n\t\tif (affectedValue === \"startValue\") {\n\t\t\tthis._selectedRange = (prevEndValue - newValue) / (max - min);\n\t\t\tthis._firstHandlePositionFromStart = ((newValue - min) / (max - min)) * 100;\n\t\t} else if (affectedValue === \"endValue\") {\n\t\t\tthis._selectedRange = ((newValue - prevStartValue)) / (max - min);\n\t\t\tthis._secondHandlePositionFromStart = ((newValue - min) / (max - min)) * 100;\n\t\t} else {\n\t\t\t// When both values are changed - UI sync or moving the whole selected range:\n\t\t\tthis._selectedRange = ((this.endValue - this.startValue)) / (max - min);\n\t\t\tthis._firstHandlePositionFromStart = ((this.startValue - min) / (max - min)) * 100;\n\t\t\tthis._secondHandlePositionFromStart = ((this.endValue - min) / (max - min)) * 100;\n\t\t}\n\t}\n\n\t_onInputKeydown(e: KeyboardEvent): void {\n\t\tconst targetedInput = e.target as Input;\n\t\tconst startValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-start-value]\") as Input;\n\t\tconst endValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-end-value]\") as Input;\n\n\t\tconst startValue = parseFloat(startValueInput.value);\n\t\tconst endValue = parseFloat(endValueInput.value);\n\t\tconst affectedValue = targetedInput.hasAttribute(\"data-sap-ui-start-value\") ? \"startValue\" : \"endValue\";\n\n\t\tsuper._onInputKeydown(e);\n\n\t\tif (isEnter(e) && startValue > endValue) {\n\t\t\tconst swappedInput = affectedValue === \"startValue\" ? endValueInput : startValueInput;\n\t\t\tconst isValueValid = parseFloat(targetedInput.value) >= this.min && parseFloat(startValueInput.value) <= this.max;\n\n\t\t\tif (!isValueValid) {\n\t\t\t\ttargetedInput.valueState = \"Negative\";\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._isEndValueValid = parseFloat(endValueInput.value) >= this.min && parseFloat(endValueInput.value) <= this.max;\n\n\t\t\tthis._areInputValuesSwapped = true;\n\t\t\tthis._setAffectedValue(affectedValue === \"startValue\" ? \"endValue\" : \"startValue\");\n\n\t\t\tstartValueInput.value = this._getFormattedValue(this.endValue.toString());\n\t\t\tendValueInput.value = this._getFormattedValue(this.startValue.toString());\n\t\t\tswappedInput.focus();\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setAffectedValue(affectedValue);\n\t}\n\n\t_updateInputValue() {\n\t\tconst startValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-start-value]\") as Input;\n\t\tconst endValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-end-value]\") as Input;\n\n\t\tif (!startValueInput && !endValueInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._isStartValueValid = parseFloat(startValueInput.value) >= this.min && parseFloat(startValueInput.value) <= this.max;\n\t\tthis._isEndValueValid = parseFloat(endValueInput.value) >= this.min && parseFloat(endValueInput.value) <= this.max;\n\n\t\tif (!this._isStartValueValid) {\n\t\t\tstartValueInput.valueState = \"Negative\";\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._isEndValueValid) {\n\t\t\tendValueInput.valueState = \"Negative\";\n\t\t\treturn;\n\t\t}\n\n\t\tthis._lastValidStartValue = startValueInput.value;\n\t\tthis._lastValidEndValue = endValueInput.value;\n\n\t\tstartValueInput.valueState = \"None\";\n\t\tendValueInput.valueState = \"None\";\n\t}\n\n\t_saveInputValues() {\n\t\tconst startValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-start-value]\") as Input;\n\t\tconst endValueInput = this.shadowRoot!.querySelector(\"[ui5-input][data-sap-ui-end-value]\") as Input;\n\n\t\tif (this.editableTooltip && startValueInput && endValueInput) {\n\t\t\tconst inputStartValue = parseFloat(startValueInput.value);\n\t\t\tconst inputEndValue = parseFloat(endValueInput.value);\n\n\t\t\tconst isStartValueValid = inputStartValue >= this.min && inputStartValue <= this.max;\n\t\t\tconst isEndValueValid = inputEndValue >= this.min && inputEndValue <= this.max;\n\n\t\t\tif (this._isUserInteraction) {\n\t\t\t\tstartValueInput.value = isStartValueValid ? this._getFormattedValue(this.startValue.toString()) : this._getFormattedValue(this._lastValidStartValue);\n\t\t\t\tendValueInput.value = isEndValueValid ? this._getFormattedValue(this.endValue.toString()) : this._getFormattedValue(this._lastValidEndValue);\n\n\t\t\t\tthis.startValue = parseFloat(this._getFormattedValue(this.startValue.toString()));\n\t\t\t\tthis.endValue = parseFloat(this._getFormattedValue(this.endValue.toString()));\n\n\t\t\t\tthis.syncUIAndState();\n\t\t\t\tthis._updateHandlesAndRange(0);\n\t\t\t\tthis.update(this._valueAffected, this.startValue, this.endValue);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._lastValidStartValue = isStartValueValid ? this._getFormattedValue(inputStartValue.toString()) : this._getFormattedValue(this._lastValidStartValue);\n\t\t\tthis._lastValidEndValue = isEndValueValid ? this._getFormattedValue(inputEndValue.toString()) : this._getFormattedValue(this._lastValidEndValue);\n\n\t\t\tif (startValueInput.valueState !== \"Negative\" && endValueInput.valueState !== \"Negative\") {\n\t\t\t\tstartValueInput.value = isStartValueValid ? this._getFormattedValue(inputStartValue.toString()) : this._getFormattedValue(this._lastValidStartValue);\n\t\t\t\tendValueInput.value = isEndValueValid ? this._getFormattedValue(inputEndValue.toString()) : this._getFormattedValue(this._lastValidEndValue);\n\t\t\t}\n\t\t}\n\t}\n\n\t_getFormattedValue(value: string) {\n\t\tconst valueNumber = parseFloat(value);\n\t\tconst ctor = this.constructor as typeof RangeSlider;\n\t\tconst stepPrecision = ctor._getDecimalPrecisionOfNumber(this._effectiveStep);\n\n\t\treturn valueNumber.toFixed(stepPrecision).toString();\n\t}\n\n\t/**\n\t * Swaps the start and end values of the handles if one came accros the other:\n\t * - If the start value is greater than the endValue swap them and their handles\n\t * - If the endValue become less than the start value swap them and their handles\n\t *\n\t * Switches the focus to the opposite of the currently focused handle.\n\t *\n\t * Note: Only the property values are reversed, the DOM elements of the handles\n\t * corresponding to them are never switched.\n\t * @private\n\t */\n\t_swapValues() {\n\t\tconst affectedValue = this._valueAffected;\n\t\tif (!affectedValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (affectedValue === \"startValue\" && this.startValue > this.endValue) {\n\t\t\tconst prevEndValue = this.endValue;\n\t\t\tthis.endValue = this.startValue;\n\t\t\tthis.startValue = prevEndValue;\n\t\t}\n\n\t\tif (affectedValue === \"endValue\" && this.endValue < this.startValue) {\n\t\t\tconst prevStartValue = this.startValue;\n\t\t\tthis.startValue = this.endValue;\n\t\t\tthis.endValue = prevStartValue;\n\t\t}\n\n\t\tthis._setValuesAreReversed();\n\t\tthis._updateHandlesAndRange(this[affectedValue]);\n\n\t\tif (!this._areInputValuesSwapped) {\n\t\t\tthis.focusInnerElement();\n\t\t}\n\n\t\tthis.syncUIAndState();\n\t\tthis._areInputValuesSwapped = false;\n\t}\n\n\t/**\n\t * Flag that we have swapped the values of the 'start' and 'end' properties,\n\t * to correctly switch the focus within the component from one handle to another\n\t * when the swapping is finished. As we only swap property values and not\n\t * the handle elements themselves, we must also swap their focus.\n\t * @private\n\t */\n\t_setValuesAreReversed() {\n\t\tthis._reversedValues = !this._reversedValues;\n\t }\n\n\t _areValuesReversed() {\n\t\treturn this._reversedValues;\n\t}\n\n\tget tickmarksObject() {\n\t\tconst count = this._tickmarksCount;\n\t\tconst arr = [];\n\n\t\tif (this._hiddenTickmarks) {\n\t\t\treturn [false, false];\n\t\t}\n\n\t\tfor (let i = 0; i <= count; i++) {\n\t\t\tconst isBiggerThanStartValue = this._effectiveMin + (i * this.step) >= this.startValue;\n\t\t\tconst isBiggerThanEndValue = this._effectiveMin + (i * this.step) <= this.endValue;\n\n\t\t\tarr.push(isBiggerThanStartValue && isBiggerThanEndValue);\n\t\t}\n\n\t\treturn arr;\n\t}\n\n\tget _startHandle() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-handle--start\")!;\n\t}\n\n\tget _endHandle() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-handle--end\")!;\n\t}\n\n\tget _progressBar() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-slider-progress\")!;\n\t}\n\n\tget _ariaLabelledByInputText() {\n\t\treturn RangeSlider.i18nBundle.getText(SLIDER_TOOLTIP_INPUT_LABEL);\n\t}\n\n\tget _ariaDescribedByInputText() {\n\t\treturn RangeSlider.i18nBundle.getText(SLIDER_TOOLTIP_INPUT_DESCRIPTION);\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tprogress: {\n\t\t\t\t\"width\": `${this._selectedRange! * 100}%`,\n\t\t\t\t\"transform-origin\": `${this.directionStart} top`,\n\t\t\t\t[this.directionStart]: `${this._firstHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tstartHandle: {\n\t\t\t\t[this.directionStart]: `${this._firstHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tendHandle: {\n\t\t\t\t[this.directionStart]: `${this._secondHandlePositionFromStart!}%`,\n\t\t\t},\n\t\t\tlabel: {\n\t\t\t\t\"width\": `${this._labelWidth}%`,\n\t\t\t},\n\t\t\tlabelContainer: {\n\t\t\t\t\"width\": `100%`,\n\t\t\t\t[this.directionStart]: `-${this._labelWidth / 2}%`,\n\t\t\t},\n\t\t\ttooltip: {\n\t\t\t\t\"visibility\": `${this._tooltipVisibility}`,\n\t\t\t},\n\t\t};\n\t}\n}\n\nRangeSlider.define();\n\nexport default RangeSlider;\n"]}