@itwin/imodel-components-react 4.1.0-dev.1 → 4.2.0-dev.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 (322) hide show
  1. package/CHANGELOG.md +327 -319
  2. package/LICENSE.md +9 -9
  3. package/README.md +11 -11
  4. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  5. package/lib/cjs/imodel-components-react/UiIModelComponents.js +11 -6
  6. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -1
  7. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +1 -1
  8. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +23 -17
  9. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +1 -1
  10. package/lib/cjs/imodel-components-react/color/AlphaSlider.scss +15 -7
  11. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts +1 -1
  12. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  13. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +10 -8
  14. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  15. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts +1 -1
  16. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -1
  17. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +6 -8
  18. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  19. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts +1 -1
  20. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  21. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +11 -12
  22. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  23. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts +1 -1
  24. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +1 -1
  25. package/lib/cjs/imodel-components-react/color/HueSlider.js +32 -15
  26. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +1 -1
  27. package/lib/cjs/imodel-components-react/color/HueSlider.scss +27 -10
  28. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts +1 -1
  29. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +1 -1
  30. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +14 -11
  31. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +1 -1
  32. package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +5 -4
  33. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +1 -1
  34. package/lib/cjs/imodel-components-react/color/Swatch.js +5 -8
  35. package/lib/cjs/imodel-components-react/color/Swatch.js.map +1 -1
  36. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -1
  37. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +3 -3
  38. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  39. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +1 -1
  40. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +17 -9
  41. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +1 -1
  42. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +1 -1
  43. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +8 -6
  44. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +1 -1
  45. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts +1 -1
  46. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -1
  47. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +18 -12
  48. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  49. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts +1 -1
  50. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  51. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +35 -21
  52. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  53. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +1 -1
  54. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +12 -16
  55. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +1 -1
  56. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -1
  57. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +14 -10
  58. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  59. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +1 -1
  60. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +31 -11
  61. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +1 -1
  62. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  63. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +98 -39
  64. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  65. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  66. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +171 -66
  67. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  68. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -1
  69. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +19 -12
  70. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  71. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -1
  72. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +4 -6
  73. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  74. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  75. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +12 -8
  76. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  77. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -1
  78. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +31 -10
  79. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  80. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -1
  81. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +15 -8
  82. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  83. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -1
  84. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +34 -22
  85. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  86. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -1
  87. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +61 -38
  88. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  89. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -1
  90. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +8 -7
  91. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  92. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -1
  93. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +55 -16
  94. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  95. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -1
  96. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +11 -5
  97. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  98. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -1
  99. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +39 -12
  100. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  101. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -1
  102. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +11 -5
  103. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  104. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -1
  105. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +19 -7
  106. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  107. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -1
  108. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +21 -8
  109. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  110. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -1
  111. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +11 -5
  112. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  113. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -1
  114. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +13 -6
  115. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  116. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -1
  117. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +21 -10
  118. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  119. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -1
  120. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +30 -13
  121. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  122. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  123. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +15 -7
  124. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  125. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -1
  126. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +11 -9
  127. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  128. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -1
  129. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +7 -4
  130. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  131. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +4 -4
  132. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  133. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js +3 -3
  134. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  135. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts +1 -1
  136. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +1 -1
  137. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +32 -17
  138. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +1 -1
  139. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  140. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +61 -27
  141. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  142. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -1
  143. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +4 -5
  144. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  145. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +4 -4
  146. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +124 -124
  147. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  148. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +56 -29
  149. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  150. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +4 -4
  151. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  152. package/lib/cjs/imodel-components-react/timeline/interfaces.js +3 -3
  153. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -1
  154. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts +2 -2
  155. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  156. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +40 -26
  157. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  158. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -1
  159. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +5 -4
  160. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  161. package/lib/cjs/imodel-components-react.js +3 -3
  162. package/lib/cjs/imodel-components-react.js.map +1 -1
  163. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  164. package/lib/esm/imodel-components-react/UiIModelComponents.js +11 -6
  165. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -1
  166. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +1 -1
  167. package/lib/esm/imodel-components-react/color/AlphaSlider.js +23 -17
  168. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +1 -1
  169. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +15 -7
  170. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +1 -1
  171. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  172. package/lib/esm/imodel-components-react/color/ColorPickerButton.js +10 -8
  173. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  174. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +1 -1
  175. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -1
  176. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js +7 -9
  177. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  178. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +1 -1
  179. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  180. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +13 -14
  181. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  182. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +1 -1
  183. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +1 -1
  184. package/lib/esm/imodel-components-react/color/HueSlider.js +32 -15
  185. package/lib/esm/imodel-components-react/color/HueSlider.js.map +1 -1
  186. package/lib/esm/imodel-components-react/color/HueSlider.scss +27 -10
  187. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +1 -1
  188. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +1 -1
  189. package/lib/esm/imodel-components-react/color/SaturationPicker.js +14 -11
  190. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +1 -1
  191. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +5 -4
  192. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +1 -1
  193. package/lib/esm/imodel-components-react/color/Swatch.js +5 -8
  194. package/lib/esm/imodel-components-react/color/Swatch.js.map +1 -1
  195. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -1
  196. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js +3 -3
  197. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  198. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +1 -1
  199. package/lib/esm/imodel-components-react/editors/ColorEditor.js +18 -10
  200. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +1 -1
  201. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +1 -1
  202. package/lib/esm/imodel-components-react/editors/WeightEditor.js +10 -8
  203. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +1 -1
  204. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +1 -1
  205. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -1
  206. package/lib/esm/imodel-components-react/inputs/QuantityInput.js +18 -12
  207. package/lib/esm/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  208. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +1 -1
  209. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  210. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +37 -23
  211. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  212. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +1 -1
  213. package/lib/esm/imodel-components-react/lineweight/Swatch.js +12 -16
  214. package/lib/esm/imodel-components-react/lineweight/Swatch.js.map +1 -1
  215. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -1
  216. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js +14 -10
  217. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  218. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +1 -1
  219. package/lib/esm/imodel-components-react/navigationaids/Cube.js +31 -11
  220. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +1 -1
  221. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  222. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +100 -41
  223. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  224. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  225. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +173 -68
  226. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  227. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -1
  228. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js +19 -12
  229. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  230. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -1
  231. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js +4 -6
  232. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  233. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  234. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +12 -8
  235. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  236. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -1
  237. package/lib/esm/imodel-components-react/quantityformat/FormatType.js +31 -10
  238. package/lib/esm/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  239. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -1
  240. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js +15 -8
  241. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  242. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -1
  243. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js +34 -22
  244. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  245. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -1
  246. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js +61 -38
  247. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  248. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -1
  249. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js +8 -7
  250. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  251. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -1
  252. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js +55 -16
  253. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  254. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -1
  255. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js +11 -5
  256. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  257. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -1
  258. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js +39 -12
  259. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  260. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -1
  261. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js +11 -5
  262. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  263. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -1
  264. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js +19 -7
  265. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  266. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -1
  267. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +21 -8
  268. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  269. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -1
  270. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js +11 -5
  271. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  272. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -1
  273. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js +13 -6
  274. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  275. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -1
  276. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +21 -10
  277. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  278. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -1
  279. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js +30 -13
  280. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  281. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  282. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js +16 -8
  283. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  284. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -1
  285. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js +11 -9
  286. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  287. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -1
  288. package/lib/esm/imodel-components-react/timeline/InlineEdit.js +7 -4
  289. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  290. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +4 -4
  291. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  292. package/lib/esm/imodel-components-react/timeline/PlayerButton.js +3 -3
  293. package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  294. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +1 -1
  295. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +1 -1
  296. package/lib/esm/imodel-components-react/timeline/Scrubber.js +32 -17
  297. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +1 -1
  298. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  299. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +63 -29
  300. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  301. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -1
  302. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js +4 -5
  303. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  304. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +4 -4
  305. package/lib/esm/imodel-components-react/timeline/Timeline.scss +124 -124
  306. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  307. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +58 -31
  308. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  309. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +4 -4
  310. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  311. package/lib/esm/imodel-components-react/timeline/interfaces.js +3 -3
  312. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -1
  313. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +2 -2
  314. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  315. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js +42 -28
  316. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  317. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -1
  318. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js +5 -4
  319. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  320. package/lib/esm/imodel-components-react.js +3 -3
  321. package/lib/esm/imodel-components-react.js.map +1 -1
  322. package/package.json +15 -24
@@ -1,165 +1,165 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
6
 
7
7
  .timeline {
8
- position: relative;
9
- height: 110px;
10
- background: $buic-background-1;
11
- border: 1px solid $buic-background-5;
12
- box-sizing: border-box;
8
+ position: relative;
9
+ height: 110px;
10
+ background: $buic-background-1;
11
+ border: 1px solid $buic-background-5;
12
+ box-sizing: border-box;
13
13
  }
14
14
 
15
15
  .rail {
16
- position: absolute;
17
- width: 100%;
18
- height: 40px;
19
- top: 50%;
20
- transform: translateY(-50%);
21
- cursor: pointer;
22
- z-index: 3;
16
+ position: absolute;
17
+ width: 100%;
18
+ height: 40px;
19
+ top: 50%;
20
+ transform: translateY(-50%);
21
+ cursor: pointer;
22
+ z-index: 3;
23
23
  }
24
24
 
25
25
  .rail-center {
26
- position: absolute;
27
- left: 0;
28
- right: 0;
29
- top: 50%;
30
- transform: translateY(-50%);
31
- height: 4px;
32
- cursor: pointer;
33
- pointer-events: none;
34
- background: $buic-background-5;
26
+ position: absolute;
27
+ left: 0;
28
+ right: 0;
29
+ top: 50%;
30
+ transform: translateY(-50%);
31
+ height: 4px;
32
+ cursor: pointer;
33
+ pointer-events: none;
34
+ background: $buic-background-5;
35
35
  }
36
36
 
37
37
  .tooltip-rail {
38
- position: absolute;
39
- margin-left: -11px;
40
- top: 50%;
41
- transform: translateY(-50%);
42
- z-index: 1;
38
+ position: absolute;
39
+ margin-left: -11px;
40
+ top: 50%;
41
+ transform: translateY(-50%);
42
+ z-index: 1;
43
43
  }
44
44
 
45
45
  .needle {
46
- position: absolute;
47
- top: 0;
48
- transform: translateX(-50%);
49
- z-index: 4;
50
- width: 2px;
51
- height: 100%;
52
- background: $buic-foreground-primary;
53
- cursor: pointer;
46
+ position: absolute;
47
+ top: 0;
48
+ transform: translateX(-50%);
49
+ z-index: 4;
50
+ width: 2px;
51
+ height: 100%;
52
+ background: $buic-foreground-primary;
53
+ cursor: pointer;
54
54
  }
55
55
 
56
56
  .handle {
57
+ position: absolute;
58
+ top: 50%;
59
+ transform: translate(-50%, -50%);
60
+ z-index: 4;
61
+ width: 14px;
62
+ height: 14px;
63
+ cursor: pointer;
64
+ border: none;
65
+ border-radius: 50%;
66
+ background: $buic-foreground-primary;
67
+ border: 2px solid $buic-background-1;
68
+
69
+ > span {
57
70
  position: absolute;
58
- top: 50%;
59
- transform: translate(-50%, -50%);
60
- z-index: 4;
61
- width: 14px;
62
- height: 14px;
63
- cursor: pointer;
64
- border: none;
65
- border-radius: 50%;
66
- background: $buic-foreground-primary;
67
- border: 2px solid $buic-background-1;
68
-
69
- >span {
70
- position: absolute;
71
- left: 50%;
72
- bottom: -25px;
73
- font-size: 14px;
74
- white-space: nowrap;
75
- transform: translateX(-50%);
76
- color: rgba(black, .85);
77
- }
78
-
79
- input {
80
- position: absolute;
81
- border: none;
82
- margin-top: 10px;
83
- top: 1.2rem;
84
- left: 50%;
85
- transform: translateX(-50%);
86
- cursor: pointer;
87
- }
71
+ left: 50%;
72
+ bottom: -25px;
73
+ font-size: 14px;
74
+ white-space: nowrap;
75
+ transform: translateX(-50%);
76
+ color: rgba(black, 0.85);
77
+ }
88
78
 
89
- input:focus {
90
- cursor: text;
91
- left: -.25rem;
92
- top: calc(1.2rem - .25rem);
93
- width: 140px;
94
- padding: .25rem;
95
- border: 1px solid #ddd;
96
- box-shadow: 0 1px 2px rgba(0, 0, 0, .11);
97
- box-sizing: border-box;
98
- outline: none;
99
- }
79
+ input {
80
+ position: absolute;
81
+ border: none;
82
+ margin-top: 10px;
83
+ top: 1.2rem;
84
+ left: 50%;
85
+ transform: translateX(-50%);
86
+ cursor: pointer;
87
+ }
88
+
89
+ input:focus {
90
+ cursor: text;
91
+ left: -0.25rem;
92
+ top: calc(1.2rem - 0.25rem);
93
+ width: 140px;
94
+ padding: 0.25rem;
95
+ border: 1px solid #ddd;
96
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.11);
97
+ box-sizing: border-box;
98
+ outline: none;
99
+ }
100
100
  }
101
101
 
102
102
  .tick-line {
103
- position: absolute;
104
- width: 2px;
105
- height: 11px;
106
- transform: translateX(-50%);
107
- background: $buic-background-5;
103
+ position: absolute;
104
+ width: 2px;
105
+ height: 11px;
106
+ transform: translateX(-50%);
107
+ background: $buic-background-5;
108
108
  }
109
109
 
110
110
  .tick-label {
111
- position: absolute;
112
- margin-top: 9px;
113
- font-size: 14px;
114
- color: rgba(black, .85);
115
- white-space: nowrap;
111
+ position: absolute;
112
+ margin-top: 9px;
113
+ font-size: 14px;
114
+ color: rgba(black, 0.85);
115
+ white-space: nowrap;
116
116
  }
117
117
 
118
118
  .tick-label.start {
119
- left: -50px;
119
+ left: -50px;
120
120
  }
121
121
 
122
122
  .tick-label.end {
123
- right: -50px;
124
- text-align: right;
123
+ right: -50px;
124
+ text-align: right;
125
125
  }
126
126
 
127
127
  .tick-label.tick {
128
- margin-left: 11px;
129
- text-align: left;
128
+ margin-left: 11px;
129
+ text-align: left;
130
130
  }
131
131
 
132
132
  .tooltip {
133
+ position: absolute;
134
+ top: -20px;
135
+ display: inline-block;
136
+ border-bottom: 1px dotted #222;
137
+ margin-left: 22px;
138
+ font-size: 14px;
139
+
140
+ .tooltip-text {
141
+ width: 100px;
142
+ background-color: #222;
143
+ color: #fff;
144
+ // opacity: 0.8;
145
+ text-align: center;
146
+ border-radius: 6px;
147
+ padding: 8px 0;
133
148
  position: absolute;
134
- top: -20px;
135
- display: inline-block;
136
- border-bottom: 1px dotted #222;
137
- margin-left: 22px;
138
- font-size: 14px;
139
-
140
- .tooltip-text {
141
- width: 100px;
142
- background-color: #222;
143
- color: #fff;
144
- // opacity: 0.8;
145
- text-align: center;
146
- border-radius: 6px;
147
- padding: 8px 0;
148
- position: absolute;
149
- z-index: 1;
150
- bottom: 150%;
151
- left: 50%;
152
- margin-left: -60px;
153
-
154
- &:after {
155
- content: "";
156
- position: absolute;
157
- top: 100%;
158
- left: 50%;
159
- margin-left: -5px;
160
- border-width: 5px;
161
- border-style: solid;
162
- border-color: #222 transparent transparent transparent;
163
- }
149
+ z-index: 1;
150
+ bottom: 150%;
151
+ left: 50%;
152
+ margin-left: -60px;
153
+
154
+ &:after {
155
+ content: "";
156
+ position: absolute;
157
+ top: 100%;
158
+ left: 50%;
159
+ margin-left: -5px;
160
+ border-width: 5px;
161
+ border-style: solid;
162
+ border-color: #222 transparent transparent transparent;
164
163
  }
165
- }
164
+ }
165
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineComponent.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAMhE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,cAAc,CAAC;AAK5E,OAAO,0BAA0B,CAAC;AAOlC;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACrE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6DA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CAAC,sBAAsB,CAI5B;IAEF,OAAO,CAAC,oBAAoB,CAY1B;IAEF,OAAO,CAAC,gBAAgB,CAStB;IAEF,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,mBAAmB,CASzB;IAEF,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,eAAe,CAuErB;IAEc,MAAM;CAoDvB"}
1
+ {"version":3,"file":"TimelineComponent.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAgBjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,cAAc,CAAC;AAK5E,OAAO,0BAA0B,CAAC;AAOlC;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACrE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,6GAA6G;IAC7G,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AACD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wCAAwC;IACxC,MAAM,CAAC,EAA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iBAAkB,SAAQ,KAAK,CAAC,SAAS,CACpD,sBAAsB,EACtB,sBAAsB,CACvB;IACC,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,eAAe,CAAC,CAAa;IACrC,OAAO,CAAC,0BAA0B,CAahC;gBAEU,KAAK,EAAE,sBAAsB;IA2BzB,oBAAoB;IAMpB,qBAAqB,CACnC,SAAS,EAAE,sBAAsB,EACjC,SAAS,EAAE,sBAAsB;IAkBnB,kBAAkB,CAAC,SAAS,EAAE,sBAAsB;IAoBpE,OAAO,CAAC,6BAA6B,CA2BnC;IAGF,OAAO,CAAC,WAAW,CAGjB;IAGF,OAAO,CAAC,UAAU,CAGhB;IAGF,OAAO,CAAC,OAAO,CAWb;IAGF,OAAO,CAAC,QAAQ,CAYd;IAGF,OAAO,CAAC,iBAAiB,CAGvB;IAGF,OAAO,CAAC,YAAY,CAclB;IAGF,OAAO,CAAC,gBAAgB,CA2BtB;IAEF,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,OAAO,CAGb;IAEF,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,sBAAsB,CAI5B;IAEF,OAAO,CAAC,oBAAoB,CAa1B;IAEF,OAAO,CAAC,gBAAgB,CAUtB;IAEF,OAAO,CAAC,YAAY,CASlB;IAEF,OAAO,CAAC,mBAAmB,CAOzB;IAEF,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,eAAe,CA4GrB;IAEc,MAAM;CAoHvB"}
@@ -55,14 +55,25 @@ class TimelineComponent extends React.Component {
55
55
  this._requestFrame = 0;
56
56
  this._unmounted = false;
57
57
  this._standardTimelineMenuItems = [
58
- { label: UiIModelComponents_1.UiIModelComponents.translate("timeline.slow"), timelineDuration: slowSpeed },
59
- { label: UiIModelComponents_1.UiIModelComponents.translate("timeline.medium"), timelineDuration: mediumSpeed },
60
- { label: UiIModelComponents_1.UiIModelComponents.translate("timeline.fast"), timelineDuration: fastSpeed },
58
+ {
59
+ label: UiIModelComponents_1.UiIModelComponents.translate("timeline.slow"),
60
+ timelineDuration: slowSpeed,
61
+ },
62
+ {
63
+ label: UiIModelComponents_1.UiIModelComponents.translate("timeline.medium"),
64
+ timelineDuration: mediumSpeed,
65
+ },
66
+ {
67
+ label: UiIModelComponents_1.UiIModelComponents.translate("timeline.fast"),
68
+ timelineDuration: fastSpeed,
69
+ },
61
70
  ];
62
71
  this._handleTimelinePausePlayEvent = (args) => {
63
72
  const timelineArgs = args;
64
73
  // istanbul ignore else
65
- if (!timelineArgs || this.props.componentId !== timelineArgs.uiComponentId || timelineArgs.timelineAction === undefined)
74
+ if (!timelineArgs ||
75
+ this.props.componentId !== timelineArgs.uiComponentId ||
76
+ timelineArgs.timelineAction === undefined)
66
77
  return;
67
78
  let startPlaying;
68
79
  switch (timelineArgs.timelineAction) {
@@ -131,7 +142,7 @@ class TimelineComponent extends React.Component {
131
142
  };
132
143
  // set the current duration, which will call the OnChange callback
133
144
  this._setDuration = (currentDuration) => {
134
- const actualDuration = Math.min(this.state.totalDuration, (Math.max(currentDuration, 0)));
145
+ const actualDuration = Math.min(this.state.totalDuration, Math.max(currentDuration, 0));
135
146
  this._timeLastCycle = new Date().getTime();
136
147
  // istanbul ignore else
137
148
  if (!this._unmounted)
@@ -171,7 +182,7 @@ class TimelineComponent extends React.Component {
171
182
  };
172
183
  this._replay = () => {
173
184
  // timeline was complete, restart from the beginning
174
- this.setState({ currentDuration: 0 }, (() => this._play()));
185
+ this.setState({ currentDuration: 0 }, () => this._play());
175
186
  };
176
187
  // user changed the total duration
177
188
  this._onTotalDurationChange = (value) => {
@@ -201,7 +212,8 @@ class TimelineComponent extends React.Component {
201
212
  this._currentDate = () => {
202
213
  const fraction = this.state.currentDuration / this.state.totalDuration;
203
214
  if (this.props.endDate && this.props.startDate) {
204
- const timeElapsed = (this.props.endDate.getTime() - this.props.startDate.getTime()) * fraction;
215
+ const timeElapsed = (this.props.endDate.getTime() - this.props.startDate.getTime()) *
216
+ fraction;
205
217
  return new Date(this.props.startDate.getTime() + timeElapsed);
206
218
  }
207
219
  return new Date();
@@ -236,10 +248,13 @@ class TimelineComponent extends React.Component {
236
248
  let keyIndex = 0;
237
249
  if (this.state.includeRepeat) {
238
250
  const checked = this.state.repeat;
239
- const icon = checked ? React.createElement("span", { className: "icon" },
251
+ const icon = checked ? (React.createElement("span", { className: "icon" },
240
252
  React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgCheckmark, null) }),
241
- " ") : React.createElement("span", null);
242
- itemNodes.push(React.createElement(itwinui_react_1.MenuItem, { key: ++keyIndex, onClick: () => { this._onRepeatChanged(); close(); }, icon: icon }, this._repeatLabel));
253
+ " ")) : (React.createElement("span", null));
254
+ itemNodes.push(React.createElement(itwinui_react_1.MenuItem, { key: ++keyIndex, onClick: () => {
255
+ this._onRepeatChanged();
256
+ close();
257
+ }, icon: icon }, this._repeatLabel));
243
258
  itemNodes.push(React.createElement(itwinui_react_1.MenuDivider, { key: ++keyIndex }));
244
259
  }
245
260
  contextMenuItems.forEach((item, index) => {
@@ -272,10 +287,11 @@ class TimelineComponent extends React.Component {
272
287
  enabled: true,
273
288
  phase: "beforeWrite",
274
289
  fn({ state }) {
275
- state.attributes.popper.class = "timeline-component-max-sized-scrolling-menu";
290
+ state.attributes.popper.class =
291
+ "timeline-component-max-sized-scrolling-menu";
276
292
  },
277
293
  },
278
- ]
294
+ ],
279
295
  } },
280
296
  React.createElement("span", { "data-testid": "timeline-settings", className: "timeline-settings icon", role: "button", tabIndex: -1, title: components_react_1.UiComponents.translate("button.label.settings") },
281
297
  React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgMoreVertical, null) }))));
@@ -283,14 +299,19 @@ class TimelineComponent extends React.Component {
283
299
  this.state = {
284
300
  isPlaying: false,
285
301
  minimized: true,
286
- currentDuration: props.initialDuration ? props.initialDuration : /* istanbul ignore next */ 0,
302
+ currentDuration: props.initialDuration
303
+ ? props.initialDuration
304
+ : /* istanbul ignore next */ 0,
287
305
  totalDuration: this.props.totalDuration,
288
306
  repeat: this.props.repeat ? true : false,
289
- includeRepeat: this.props.includeRepeat || this.props.includeRepeat === undefined ? true : false,
307
+ includeRepeat: this.props.includeRepeat || this.props.includeRepeat === undefined
308
+ ? true
309
+ : false,
290
310
  };
291
311
  this._repeatLabel = UiIModelComponents_1.UiIModelComponents.translate("timeline.repeat");
292
312
  // istanbul ignore else
293
- if (this.props.componentId) { // can't handle an event if we have no id
313
+ if (this.props.componentId) {
314
+ // can't handle an event if we have no id
294
315
  this._removeListener = appui_abstract_1.UiAdmin.onGenericUiEvent.addListener(this._handleTimelinePausePlayEvent);
295
316
  }
296
317
  }
@@ -303,7 +324,8 @@ class TimelineComponent extends React.Component {
303
324
  shouldComponentUpdate(nextProps, nextState) {
304
325
  let result = false;
305
326
  // istanbul ignore next
306
- if (nextState !== this.state || nextProps !== this.props ||
327
+ if (nextState !== this.state ||
328
+ nextProps !== this.props ||
307
329
  nextProps.startDate !== this.props.startDate ||
308
330
  nextProps.endDate !== this.props.endDate ||
309
331
  nextProps.initialDuration !== this.props.initialDuration ||
@@ -314,7 +336,9 @@ class TimelineComponent extends React.Component {
314
336
  componentDidUpdate(prevProps) {
315
337
  // istanbul ignore else
316
338
  if (this.props.initialDuration !== prevProps.initialDuration) {
317
- this._setDuration(this.props.initialDuration ? this.props.initialDuration : /* istanbul ignore next */ 0);
339
+ this._setDuration(this.props.initialDuration
340
+ ? this.props.initialDuration
341
+ : /* istanbul ignore next */ 0);
318
342
  }
319
343
  // istanbul ignore else
320
344
  if (this.props.repeat !== prevProps.repeat) {
@@ -335,7 +359,7 @@ class TimelineComponent extends React.Component {
335
359
  }
336
360
  _displayTime(millisec) {
337
361
  const addZero = (i) => {
338
- return (i < 10) ? `0${i}` : i;
362
+ return i < 10 ? `0${i}` : i;
339
363
  };
340
364
  const date = new Date(millisec);
341
365
  // const hours = date.getUTCHours();
@@ -346,7 +370,7 @@ class TimelineComponent extends React.Component {
346
370
  _getMilliseconds(time) {
347
371
  // istanbul ignore else - WIP
348
372
  if (time.indexOf(":") !== -1) {
349
- return (Number(time.split(":")[0]) * 60 + Number(time.split(":")[1])) * 1000;
373
+ return ((Number(time.split(":")[0]) * 60 + Number(time.split(":")[1])) * 1000);
350
374
  }
351
375
  else {
352
376
  return Number(time) * 1000;
@@ -355,13 +379,16 @@ class TimelineComponent extends React.Component {
355
379
  _createMenuItemNode(item, index, currentTimelineDuration, close) {
356
380
  const label = item.label;
357
381
  const checked = currentTimelineDuration === item.timelineDuration;
358
- const icon = checked ? React.createElement("span", { className: "icon" },
382
+ const icon = checked ? (React.createElement("span", { className: "icon" },
359
383
  React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgCheckmark, null) }),
360
- " ") : React.createElement("span", null);
361
- return (React.createElement(itwinui_react_1.MenuItem, { key: index, icon: icon, onClick: () => { this._onSetTotalDuration(item.timelineDuration); close(); } }, label));
384
+ " ")) : (React.createElement("span", null));
385
+ return (React.createElement(itwinui_react_1.MenuItem, { key: index, icon: icon, onClick: () => {
386
+ this._onSetTotalDuration(item.timelineDuration);
387
+ close();
388
+ } }, label));
362
389
  }
363
390
  render() {
364
- const { startDate, endDate, showDuration, timeZoneOffset, dateFormatOptions, timeFormatOptions } = this.props;
391
+ const { startDate, endDate, showDuration, timeZoneOffset, dateFormatOptions, timeFormatOptions, } = this.props;
365
392
  const { currentDuration, totalDuration, minimized } = this.state;
366
393
  const currentDate = this._currentDate();
367
394
  const durationString = this._displayTime(currentDuration);
@@ -377,14 +404,14 @@ class TimelineComponent extends React.Component {
377
404
  React.createElement("div", { className: "scrubber" },
378
405
  React.createElement(PlayerButton_1.PlayButton, { className: "play-button", isPlaying: this.state.isPlaying, onPlay: this._onPlay, onPause: this._onPause }),
379
406
  React.createElement("div", { className: "start-time-container" },
380
- hasDates && React.createElement("span", { "data-testid": "test-start-date", className: "start-date" }, (0, components_react_1.toDateString)(startDate, timeZoneOffset, dateFormatOptions)),
381
- hasDates && !showDuration && React.createElement("span", { "data-testid": "test-start-time", className: "start-time" }, (0, components_react_1.toTimeString)(startDate, timeZoneOffset, timeFormatOptions)),
382
- showDuration && React.createElement("span", { className: "duration-start-time" }, durationString)),
407
+ hasDates && (React.createElement("span", { "data-testid": "test-start-date", className: "start-date" }, (0, components_react_1.toDateString)(startDate, timeZoneOffset, dateFormatOptions))),
408
+ hasDates && !showDuration && (React.createElement("span", { "data-testid": "test-start-time", className: "start-time" }, (0, components_react_1.toTimeString)(startDate, timeZoneOffset, timeFormatOptions))),
409
+ showDuration && (React.createElement("span", { className: "duration-start-time" }, durationString))),
383
410
  React.createElement(Scrubber_1.Scrubber, { className: "slider", currentDuration: this.state.currentDuration, totalDuration: totalDuration, startDate: startDate, endDate: endDate, isPlaying: this.state.isPlaying, inMiniMode: !!minimized, showTime: !showDuration, onChange: this._onTimelineChange, onUpdate: this._onTimelineChange, timeZoneOffset: this.props.timeZoneOffset, markDate: this.props.markDate }),
384
411
  React.createElement("div", { className: "end-time-container" },
385
- hasDates && React.createElement("span", { className: "end-date" }, (0, components_react_1.toDateString)(endDate, timeZoneOffset)),
386
- hasDates && !showDuration && React.createElement("span", { className: "end-time" }, (0, components_react_1.toTimeString)(endDate, timeZoneOffset, timeFormatOptions)),
387
- showDuration && React.createElement(InlineEdit_1.InlineEdit, { className: "duration-end-time", defaultValue: totalDurationString, onChange: this._onTotalDurationChange })),
412
+ hasDates && (React.createElement("span", { className: "end-date" }, (0, components_react_1.toDateString)(endDate, timeZoneOffset))),
413
+ hasDates && !showDuration && (React.createElement("span", { className: "end-time" }, (0, components_react_1.toTimeString)(endDate, timeZoneOffset, timeFormatOptions))),
414
+ showDuration && (React.createElement(InlineEdit_1.InlineEdit, { className: "duration-end-time", defaultValue: totalDurationString, onChange: this._onTotalDurationChange }))),
388
415
  minimized && this._renderSettings())));
389
416
  }
390
417
  }