@itwin/imodel-components-react 4.0.0-dev.2 → 4.0.0-dev.21

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 (265) hide show
  1. package/CHANGELOG.md +139 -2
  2. package/LICENSE.md +1 -1
  3. package/README.md +2 -2
  4. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  5. package/lib/cjs/imodel-components-react/UiIModelComponents.js +3 -7
  6. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -1
  7. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts +2 -2
  8. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +6 -2
  9. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +1 -1
  10. package/lib/cjs/imodel-components-react/color/AlphaSlider.scss +63 -63
  11. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  12. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +9 -4
  13. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  14. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +90 -90
  15. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +5 -1
  16. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  17. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  18. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +10 -4
  19. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  20. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +62 -63
  21. package/lib/cjs/imodel-components-react/color/HueSlider.js +5 -1
  22. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +1 -1
  23. package/lib/cjs/imodel-components-react/color/HueSlider.scss +61 -61
  24. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +5 -1
  25. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +1 -1
  26. package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +35 -35
  27. package/lib/cjs/imodel-components-react/color/Swatch.js +5 -1
  28. package/lib/cjs/imodel-components-react/color/Swatch.js.map +1 -1
  29. package/lib/cjs/imodel-components-react/color/Swatch.scss +22 -23
  30. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  31. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +5 -1
  32. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +1 -1
  33. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +18 -18
  34. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +5 -1
  35. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +1 -1
  36. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +16 -16
  37. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +5 -1
  38. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  39. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts +1 -1
  40. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  41. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +11 -4
  42. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  43. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +106 -107
  44. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +5 -1
  45. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +1 -1
  46. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +48 -48
  47. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +6 -2
  48. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  49. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +51 -52
  50. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +5 -1
  51. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +1 -1
  52. package/lib/cjs/imodel-components-react/navigationaids/Cube.scss +19 -19
  53. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +4 -24
  54. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  55. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +46 -54
  56. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  57. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +178 -182
  58. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  59. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +16 -6
  60. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  61. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +135 -134
  62. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +6 -2
  63. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  64. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +59 -63
  65. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +7 -4
  66. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  67. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  68. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +10 -5
  69. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  70. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +6 -3
  71. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  72. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +6 -3
  73. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  74. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +10 -10
  75. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  76. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +8 -5
  77. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  78. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +5 -1
  79. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  80. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +5 -1
  81. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  82. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +5 -1
  83. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  84. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +5 -1
  85. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  86. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +5 -1
  87. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  88. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +5 -1
  89. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  90. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +5 -1
  91. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  92. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +5 -1
  93. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  94. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +5 -1
  95. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  96. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +6 -3
  97. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  98. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +5 -1
  99. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  100. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  101. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +22 -23
  102. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  103. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  104. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +5 -1
  105. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  106. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +26 -26
  107. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  108. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js +12 -4
  109. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  110. package/lib/cjs/imodel-components-react/timeline/PlayerButton.scss +28 -31
  111. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +5 -1
  112. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +1 -1
  113. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +105 -112
  114. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  115. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +13 -5
  116. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  117. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +359 -356
  118. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +5 -1
  119. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  120. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +39 -39
  121. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +164 -164
  122. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +3 -6
  123. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  124. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +59 -19
  125. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  126. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +178 -164
  127. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts +3 -32
  128. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  129. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -1
  130. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts +1 -1
  131. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  132. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +12 -10
  133. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  134. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +1 -1
  135. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  136. package/lib/cjs/imodel-components-react.d.ts +0 -1
  137. package/lib/cjs/imodel-components-react.d.ts.map +1 -1
  138. package/lib/cjs/imodel-components-react.js +5 -2
  139. package/lib/cjs/imodel-components-react.js.map +1 -1
  140. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  141. package/lib/esm/imodel-components-react/UiIModelComponents.js +4 -7
  142. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -1
  143. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +2 -2
  144. package/lib/esm/imodel-components-react/color/AlphaSlider.js +1 -1
  145. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +1 -1
  146. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +63 -63
  147. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  148. package/lib/esm/imodel-components-react/color/ColorPickerButton.js +5 -4
  149. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  150. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +90 -90
  151. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  152. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  153. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +6 -4
  154. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  155. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +62 -63
  156. package/lib/esm/imodel-components-react/color/HueSlider.js.map +1 -1
  157. package/lib/esm/imodel-components-react/color/HueSlider.scss +61 -61
  158. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +1 -1
  159. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +35 -35
  160. package/lib/esm/imodel-components-react/color/Swatch.js.map +1 -1
  161. package/lib/esm/imodel-components-react/color/Swatch.scss +22 -23
  162. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  163. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +1 -1
  164. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +18 -18
  165. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +1 -1
  166. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +16 -16
  167. package/lib/esm/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  168. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +1 -1
  169. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  170. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +7 -4
  171. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  172. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +106 -107
  173. package/lib/esm/imodel-components-react/lineweight/Swatch.js.map +1 -1
  174. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +48 -48
  175. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js +2 -1
  176. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  177. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +51 -52
  178. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +1 -1
  179. package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -19
  180. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +4 -24
  181. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  182. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +42 -52
  183. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  184. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +178 -182
  185. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  186. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +12 -5
  187. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  188. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +135 -134
  189. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js +1 -1
  190. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  191. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +59 -63
  192. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js +2 -3
  193. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  194. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  195. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +6 -5
  196. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  197. package/lib/esm/imodel-components-react/quantityformat/FormatType.js +1 -2
  198. package/lib/esm/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  199. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js +1 -2
  200. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  201. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js +5 -9
  202. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  203. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js +3 -4
  204. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  205. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  206. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  207. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  208. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  209. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  210. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  211. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  212. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  213. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  214. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +1 -2
  215. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  216. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  217. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  218. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js +22 -23
  219. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  220. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  221. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  222. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +26 -26
  223. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  224. package/lib/esm/imodel-components-react/timeline/PlayerButton.js +7 -3
  225. package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  226. package/lib/esm/imodel-components-react/timeline/PlayerButton.scss +28 -31
  227. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +1 -1
  228. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +105 -112
  229. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  230. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +10 -6
  231. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  232. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +359 -356
  233. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  234. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +39 -39
  235. package/lib/esm/imodel-components-react/timeline/Timeline.scss +164 -164
  236. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts +3 -6
  237. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  238. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +47 -11
  239. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  240. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +178 -164
  241. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +3 -32
  242. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  243. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -1
  244. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +1 -1
  245. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  246. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js +7 -9
  247. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  248. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js +2 -1
  249. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  250. package/lib/esm/imodel-components-react.d.ts +0 -1
  251. package/lib/esm/imodel-components-react.d.ts.map +1 -1
  252. package/lib/esm/imodel-components-react.js +0 -1
  253. package/lib/esm/imodel-components-react.js.map +1 -1
  254. package/lib/public/locales/en/UiIModelComponents.json +139 -139
  255. package/package.json +38 -39
  256. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts +0 -22
  257. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts.map +0 -1
  258. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js +0 -146
  259. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js.map +0 -1
  260. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.scss +0 -94
  261. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts +0 -22
  262. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts.map +0 -1
  263. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js +0 -123
  264. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js.map +0 -1
  265. package/lib/esm/imodel-components-react/color/ColorPickerPanel.scss +0 -94
@@ -8,7 +8,11 @@
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
12
16
  }) : (function(o, m, k, k2) {
13
17
  if (k2 === undefined) k2 = k;
14
18
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"SpeedTimeline.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/SpeedTimeline.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gCAA8B;AAC9B,4DAAoC;AACpC,6CAA+B;AAC/B,wDAA8C;AAU9C;;GAEG;AACH,gEAAgE;AAChE,SAAgB,aAAa,CAAC,KAAiB;IAC7C,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,CAAC,MAA6B,EAAE,EAAE;QACjD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC9C,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,sBAAM,IACL,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,CAAC,EACN,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACrB,gBAAgB,EAAC,MAAM,EACvB,YAAY,EAAE,YAAY,GAAI,CAC5B,CACP,CAAC;AACJ,CAAC;AA3BD,sCA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Timeline\n */\n\nimport \"./SpeedTimeline.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Slider } from \"@itwin/itwinui-react\";\nimport { CommonProps } from \"@itwin/core-react\";\n\n// component is in alpha state - it may change after usability testing - test coverage not complete\n\ninterface SpeedProps extends CommonProps {\n speed: number;\n onChange?: (value: number) => void;\n}\n\n/** Speed Timeline used in Solar Timeline component\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function SpeedTimeline(props: SpeedProps) {\n // istanbul ignore next - WIP\n const onChange = (values: ReadonlyArray<number>) => {\n const value = values[0];\n if (props.onChange && (value >= 1 && value <= 6))\n props.onChange(value);\n };\n\n const tooltipProps = React.useCallback(() => {\n return { visible: false };\n }, []);\n\n return (\n <div className={classnames(\"speed-timeline\", props.className)}>\n <Slider\n step={1}\n min={1}\n max={6}\n minLabel=\"\"\n maxLabel=\"\"\n onUpdate={onChange}\n onChange={onChange}\n values={[props.speed]}\n trackDisplayMode=\"none\"\n tooltipProps={tooltipProps} />\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SpeedTimeline.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/SpeedTimeline.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gCAA8B;AAC9B,4DAAoC;AACpC,6CAA+B;AAC/B,wDAA8C;AAU9C;;GAEG;AACH,gEAAgE;AAChE,SAAgB,aAAa,CAAC,KAAiB;IAC7C,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,CAAC,MAA6B,EAAE,EAAE;QACjD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC9C,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,sBAAM,IACL,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,CAAC,EACN,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACrB,gBAAgB,EAAC,MAAM,EACvB,YAAY,EAAE,YAAY,GAAI,CAC5B,CACP,CAAC;AACJ,CAAC;AA3BD,sCA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Timeline\r\n */\r\n\r\nimport \"./SpeedTimeline.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Slider } from \"@itwin/itwinui-react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\n\r\n// component is in alpha state - it may change after usability testing - test coverage not complete\r\n\r\ninterface SpeedProps extends CommonProps {\r\n speed: number;\r\n onChange?: (value: number) => void;\r\n}\r\n\r\n/** Speed Timeline used in Solar Timeline component\r\n * @internal\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport function SpeedTimeline(props: SpeedProps) {\r\n // istanbul ignore next - WIP\r\n const onChange = (values: ReadonlyArray<number>) => {\r\n const value = values[0];\r\n if (props.onChange && (value >= 1 && value <= 6))\r\n props.onChange(value);\r\n };\r\n\r\n const tooltipProps = React.useCallback(() => {\r\n return { visible: false };\r\n }, []);\r\n\r\n return (\r\n <div className={classnames(\"speed-timeline\", props.className)}>\r\n <Slider\r\n step={1}\r\n min={1}\r\n max={6}\r\n minLabel=\"\"\r\n maxLabel=\"\"\r\n onUpdate={onChange}\r\n onChange={onChange}\r\n values={[props.speed]}\r\n trackDisplayMode=\"none\"\r\n tooltipProps={tooltipProps} />\r\n </div>\r\n );\r\n}\r\n"]}
@@ -1,40 +1,40 @@
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
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
-
7
- .speed-timeline {
8
- position: relative;
9
- height: 25px;
10
-
11
- .railOuter {
12
- position: absolute;
13
- width: 100%;
14
- height: 100%;
15
- cursor: pointer;
16
- }
17
-
18
- .railInner {
19
- position: absolute;
20
- top: 50%;
21
- transform: translateY(-50%);
22
- width: 100%;
23
- height: 2px;
24
- pointer-events: none;
25
- background: $buic-background-5;
26
- }
27
-
28
- .scrubberHandle {
29
- position: absolute;
30
- top: 50%;
31
- transform: translate(-50%, -50%);
32
- z-index: 4;
33
- width: 12px;
34
- height: 12px;
35
- cursor: pointer;
36
- border: none;
37
- border-radius: 50%;
38
- background: $buic-foreground-primary;
39
- }
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
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
+
7
+ .speed-timeline {
8
+ position: relative;
9
+ height: 25px;
10
+
11
+ .railOuter {
12
+ position: absolute;
13
+ width: 100%;
14
+ height: 100%;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .railInner {
19
+ position: absolute;
20
+ top: 50%;
21
+ transform: translateY(-50%);
22
+ width: 100%;
23
+ height: 2px;
24
+ pointer-events: none;
25
+ background: $buic-background-5;
26
+ }
27
+
28
+ .scrubberHandle {
29
+ position: absolute;
30
+ top: 50%;
31
+ transform: translate(-50%, -50%);
32
+ z-index: 4;
33
+ width: 12px;
34
+ height: 12px;
35
+ cursor: pointer;
36
+ border: none;
37
+ border-radius: 50%;
38
+ background: $buic-foreground-primary;
39
+ }
40
40
  }
@@ -1,165 +1,165 @@
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
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
-
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;
13
- }
14
-
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;
23
- }
24
-
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;
35
- }
36
-
37
- .tooltip-rail {
38
- position: absolute;
39
- margin-left: -11px;
40
- top: 50%;
41
- transform: translateY(-50%);
42
- z-index: 1;
43
- }
44
-
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;
54
- }
55
-
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 {
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
- }
88
-
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
- }
100
- }
101
-
102
- .tick-line {
103
- position: absolute;
104
- width: 2px;
105
- height: 11px;
106
- transform: translateX(-50%);
107
- background: $buic-background-5;
108
- }
109
-
110
- .tick-label {
111
- position: absolute;
112
- margin-top: 9px;
113
- font-size: 14px;
114
- color: rgba(black, .85);
115
- white-space: nowrap;
116
- }
117
-
118
- .tick-label.start {
119
- left: -50px;
120
- }
121
-
122
- .tick-label.end {
123
- right: -50px;
124
- text-align: right;
125
- }
126
-
127
- .tick-label.tick {
128
- margin-left: 11px;
129
- text-align: left;
130
- }
131
-
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;
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
- }
164
- }
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
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
+
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;
13
+ }
14
+
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;
23
+ }
24
+
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;
35
+ }
36
+
37
+ .tooltip-rail {
38
+ position: absolute;
39
+ margin-left: -11px;
40
+ top: 50%;
41
+ transform: translateY(-50%);
42
+ z-index: 1;
43
+ }
44
+
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;
54
+ }
55
+
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 {
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
+ }
88
+
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
+ }
100
+ }
101
+
102
+ .tick-line {
103
+ position: absolute;
104
+ width: 2px;
105
+ height: 11px;
106
+ transform: translateX(-50%);
107
+ background: $buic-background-5;
108
+ }
109
+
110
+ .tick-label {
111
+ position: absolute;
112
+ margin-top: 9px;
113
+ font-size: 14px;
114
+ color: rgba(black, .85);
115
+ white-space: nowrap;
116
+ }
117
+
118
+ .tick-label.start {
119
+ left: -50px;
120
+ }
121
+
122
+ .tick-label.end {
123
+ right: -50px;
124
+ text-align: right;
125
+ }
126
+
127
+ .tick-label.tick {
128
+ margin-left: 11px;
129
+ text-align: left;
130
+ }
131
+
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;
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
+ }
164
+ }
165
165
  }
@@ -1,10 +1,7 @@
1
- /** @packageDocumentation
2
- * @module Timeline
3
- */
4
- import "./TimelineComponent.scss";
5
- import * as React from "react";
6
1
  import { DateFormatOptions } from "@itwin/components-react";
2
+ import * as React from "react";
7
3
  import { PlaybackSettings } from "./interfaces";
4
+ import "./TimelineComponent.scss";
8
5
  /**
9
6
  * [[TimelineMenuItemOption]]: specifies how the app wants the timeline speeds to be installed on the TimelineComponent's ContextMenu
10
7
  * "replace" : use the app-supplied items in place of the standard items
@@ -13,7 +10,7 @@ import { PlaybackSettings } from "./interfaces";
13
10
  *
14
11
  * @public
15
12
  */
16
- export declare type TimelineMenuItemOption = "replace" | "append" | "prefix";
13
+ export type TimelineMenuItemOption = "replace" | "append" | "prefix";
17
14
  /**
18
15
  * [[TimelineMenuItemProps]] specifies playback speed entries in the Timeline's ContextMenu
19
16
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineComponent.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,0BAA0B,CAAC;AAElC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAA4C,MAAM,yBAAyB,CAAC;AAGtG,OAAO,EAAE,gBAAgB,EAAkD,MAAM,cAAc,CAAC;AAUhG;;;;;;;GAOG;AACH,oBAAY,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,EAAE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B,CAyBnC;IAGF,OAAO,CAAC,WAAW,CAIjB;IAGF,OAAO,CAAC,UAAU,CAIhB;IAGF,OAAO,CAAC,OAAO,CAcb;IAGF,OAAO,CAAC,QAAQ,CAcd;IAGF,OAAO,CAAC,iBAAiB,CAGvB;IAGF,OAAO,CAAC,YAAY,CAYlB;IAGF,OAAO,CAAC,gBAAgB,CA6BtB;IAEF,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,OAAO,CAGb;IAEF,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,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,14 +1,11 @@
1
1
  "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Timeline
8
- */
9
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
3
  if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
12
9
  }) : (function(o, m, k, k2) {
13
10
  if (k2 === undefined) k2 = k;
14
11
  o[k2] = m[k];
@@ -30,17 +27,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
27
  };
31
28
  Object.defineProperty(exports, "__esModule", { value: true });
32
29
  exports.TimelineComponent = void 0;
33
- require("./TimelineComponent.scss");
34
- const classnames_1 = __importDefault(require("classnames"));
35
- const React = __importStar(require("react"));
30
+ /*---------------------------------------------------------------------------------------------
31
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
32
+ * See LICENSE.md in the project root for license terms and full copyright notice.
33
+ *--------------------------------------------------------------------------------------------*/
34
+ /** @packageDocumentation
35
+ * @module Timeline
36
+ */
36
37
  const appui_abstract_1 = require("@itwin/appui-abstract");
37
38
  const components_react_1 = require("@itwin/components-react");
39
+ const core_react_1 = require("@itwin/core-react");
40
+ const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
41
+ const itwinui_react_1 = require("@itwin/itwinui-react");
42
+ const classnames_1 = __importDefault(require("classnames"));
43
+ const React = __importStar(require("react"));
38
44
  const UiIModelComponents_1 = require("../UiIModelComponents");
39
45
  const InlineEdit_1 = require("./InlineEdit");
40
46
  const interfaces_1 = require("./interfaces");
41
47
  const PlayerButton_1 = require("./PlayerButton");
42
48
  const Scrubber_1 = require("./Scrubber");
43
- const itwinui_react_1 = require("@itwin/itwinui-react");
49
+ require("./TimelineComponent.scss");
44
50
  // cspell:ignore millisec
45
51
  const slowSpeed = 60 * 1000;
46
52
  const mediumSpeed = 20 * 1000;
@@ -237,7 +243,9 @@ class TimelineComponent extends React.Component {
237
243
  let keyIndex = 0;
238
244
  if (this.state.includeRepeat) {
239
245
  const checked = this.state.repeat;
240
- const icon = checked ? React.createElement("span", { className: "icon icon-checkmark" }) : React.createElement("span", null);
246
+ const icon = checked ? React.createElement("span", { className: "icon" },
247
+ React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgCheckmark, null) }),
248
+ " ") : React.createElement("span", null);
241
249
  itemNodes.push(React.createElement(itwinui_react_1.MenuItem, { key: ++keyIndex, onClick: () => { this._onRepeatChanged(); close(); }, icon: icon }, this._repeatLabel));
242
250
  itemNodes.push(React.createElement(itwinui_react_1.MenuDivider, { key: ++keyIndex }));
243
251
  }
@@ -246,8 +254,38 @@ class TimelineComponent extends React.Component {
246
254
  });
247
255
  return itemNodes;
248
256
  };
249
- return (React.createElement(itwinui_react_1.DropdownMenu, { menuItems: createMenuItemNodes },
250
- React.createElement("span", { "data-testid": "timeline-settings", className: "timeline-settings icon icon-more-vertical-2", role: "button", tabIndex: -1, title: components_react_1.UiComponents.translate("button.label.settings") })));
257
+ return (React.createElement(itwinui_react_1.DropdownMenu, { menuItems: createMenuItemNodes, placement: "top-start", popperOptions: {
258
+ modifiers: [
259
+ {
260
+ name: "hide", // When the timeline is no longer visible, hide the popper.
261
+ },
262
+ {
263
+ name: "preventOverflow",
264
+ options: {
265
+ altAxis: true, // Allow the popper to go below the reference element and use as much space as needed.
266
+ },
267
+ },
268
+ {
269
+ name: "computeStyles",
270
+ options: {
271
+ roundOffsets: ({ x, y }) => ({
272
+ x,
273
+ y: Math.max(y, 0), // Ensure that the top of the popper will not go over the top of the document.
274
+ }),
275
+ },
276
+ },
277
+ {
278
+ name: "setPopperClass",
279
+ enabled: true,
280
+ phase: "beforeWrite",
281
+ fn({ state }) {
282
+ state.attributes.popper.class = "timeline-component-max-sized-scrolling-menu";
283
+ },
284
+ },
285
+ ]
286
+ } },
287
+ React.createElement("span", { "data-testid": "timeline-settings", className: "timeline-settings icon", role: "button", tabIndex: -1, title: components_react_1.UiComponents.translate("button.label.settings") },
288
+ React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgMoreVertical, null) }))));
251
289
  };
252
290
  this.state = {
253
291
  isPlaying: false,
@@ -324,7 +362,9 @@ class TimelineComponent extends React.Component {
324
362
  _createMenuItemNode(item, index, currentTimelineDuration, close) {
325
363
  const label = item.label;
326
364
  const checked = currentTimelineDuration === item.timelineDuration;
327
- const icon = checked ? React.createElement("span", { className: "icon icon-checkmark" }) : React.createElement("span", null);
365
+ const icon = checked ? React.createElement("span", { className: "icon" },
366
+ React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgCheckmark, null) }),
367
+ " ") : React.createElement("span", null);
328
368
  return (React.createElement(itwinui_react_1.MenuItem, { key: index, icon: icon, onClick: () => { this._onSetTotalDuration(item.timelineDuration); close(); } }, label));
329
369
  }
330
370
  render() {
@@ -337,9 +377,9 @@ class TimelineComponent extends React.Component {
337
377
  return (React.createElement("div", { "data-testid": "timeline-component", className: (0, classnames_1.default)("timeline-component", !!minimized && "minimized", hasDates && "has-dates") },
338
378
  React.createElement("div", { className: "header" },
339
379
  React.createElement(PlayerButton_1.PlayButton, { className: "play-button", isPlaying: this.state.isPlaying, onPlay: this._onPlay, onPause: this._onPause, "data-testid": "timeline-play" }),
340
- React.createElement(PlayerButton_1.PlayerButton, { className: "play-backward", icon: "icon-caret-left", onClick: this._onBackward, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.backward") }),
341
- React.createElement(PlayerButton_1.PlayerButton, { className: "play-button-step", icon: "icon-media-controls-circular-play", isPlaying: this.state.isPlaying, onPlay: this._onPlay, onPause: this._onPause, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.step") }),
342
- React.createElement(PlayerButton_1.PlayerButton, { className: "play-forward", icon: "icon-caret-right", onClick: this._onForward, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.backward") }),
380
+ React.createElement(PlayerButton_1.PlayerButton, { className: "play-backward", icon: React.createElement(itwinui_icons_react_1.SvgCaretLeft, null), onClick: this._onBackward, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.backward") }),
381
+ React.createElement(PlayerButton_1.PlayerButton, { className: "play-button-step", icon: React.createElement(itwinui_icons_react_1.SvgPlayCircular, null), isPlaying: this.state.isPlaying, onPlay: this._onPlay, onPause: this._onPause, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.step") }),
382
+ React.createElement(PlayerButton_1.PlayerButton, { className: "play-forward", icon: React.createElement(itwinui_icons_react_1.SvgCaretRight, null), onClick: this._onForward, title: UiIModelComponents_1.UiIModelComponents.translate("timeline.backward") }),
343
383
  React.createElement("span", { className: "current-date" }, (0, components_react_1.toDateString)(currentDate, timeZoneOffset, dateFormatOptions))),
344
384
  React.createElement("div", { className: "scrubber" },
345
385
  React.createElement(PlayerButton_1.PlayButton, { className: "play-button", isPlaying: this.state.isPlaying, onPlay: this._onPlay, onPause: this._onPause }),