@itwin/imodel-components-react 4.17.6 → 5.0.0-dev.3

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 (541) hide show
  1. package/CHANGELOG.md +1 -31
  2. package/README.md +15 -2
  3. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +2 -4
  4. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +0 -2
  5. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +0 -2
  6. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +1 -1
  7. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +2 -4
  8. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +5 -6
  9. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -2
  10. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -10
  11. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -2
  12. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +3 -5
  13. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +1 -1
  14. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -2
  15. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +2 -4
  16. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +7 -9
  17. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +2 -4
  18. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -2
  19. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -2
  20. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +1 -1
  21. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +2 -4
  22. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +5 -6
  23. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -2
  24. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -10
  25. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +0 -2
  26. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +3 -5
  27. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +1 -1
  28. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +0 -2
  29. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +2 -4
  30. package/lib/esm/imodel-components-react/timeline/Timeline.scss +7 -9
  31. package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
  32. package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
  33. package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
  34. package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
  35. package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
  36. package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
  37. package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
  38. package/lib/imodel-components-react/color/AlphaSlider.scss +71 -0
  39. package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
  40. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
  41. package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
  42. package/lib/imodel-components-react/color/ColorPickerButton.scss +88 -0
  43. package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
  44. package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
  45. package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
  46. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
  47. package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
  48. package/lib/imodel-components-react/color/ColorPickerPopup.scss +62 -0
  49. package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
  50. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
  51. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
  52. package/lib/imodel-components-react/color/HueSlider.scss +78 -0
  53. package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
  54. package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
  55. package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
  56. package/lib/imodel-components-react/color/SaturationPicker.scss +36 -0
  57. package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
  58. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
  59. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
  60. package/lib/imodel-components-react/color/Swatch.scss +22 -0
  61. package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
  62. package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
  63. package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
  64. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
  65. package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
  66. package/lib/imodel-components-react/editors/ColorEditor.scss +16 -0
  67. package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
  68. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
  69. package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
  70. package/lib/imodel-components-react/editors/WeightEditor.scss +14 -0
  71. package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
  72. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
  73. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
  74. package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
  75. package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
  76. package/lib/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
  77. package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
  78. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
  79. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
  80. package/lib/imodel-components-react/lineweight/Swatch.scss +46 -0
  81. package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
  82. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
  83. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
  84. package/lib/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
  85. package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
  86. package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
  87. package/lib/imodel-components-react/navigationaids/Cube.scss +19 -0
  88. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
  89. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
  90. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
  91. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
  92. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
  93. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
  94. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
  95. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
  96. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
  97. package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
  98. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
  99. package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
  100. package/lib/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
  101. package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
  102. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
  103. package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
  104. package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
  105. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
  106. package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
  107. package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
  108. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
  109. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
  110. package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
  111. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
  112. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
  113. package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
  114. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
  115. package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
  116. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
  117. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
  118. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
  119. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
  120. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
  121. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
  122. package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
  123. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
  124. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
  125. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
  126. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
  127. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
  128. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
  129. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
  130. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
  131. package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
  132. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
  133. package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
  134. package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
  135. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
  136. package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
  137. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
  138. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
  139. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
  140. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
  141. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
  142. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
  143. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
  144. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
  145. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
  146. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
  147. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
  148. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
  149. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
  150. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
  151. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
  152. package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
  153. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
  154. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
  155. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
  156. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
  157. package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
  158. package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
  159. package/lib/imodel-components-react/timeline/InlineEdit.scss +22 -0
  160. package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
  161. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
  162. package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
  163. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
  164. package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
  165. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
  166. package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
  167. package/lib/imodel-components-react/timeline/Scrubber.scss +105 -0
  168. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
  169. package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
  170. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
  171. package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
  172. package/lib/imodel-components-react/timeline/SolarTimeline.scss +43 -0
  173. package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
  174. package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
  175. package/lib/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
  176. package/lib/imodel-components-react/timeline/Timeline.scss +163 -0
  177. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
  178. package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
  179. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
  180. package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
  181. package/lib/imodel-components-react/timeline/TimelineComponent.scss +48 -0
  182. package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
  183. package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
  184. package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
  185. package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
  186. package/lib/imodel-components-react/useTranslation.js.map +1 -0
  187. package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
  188. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
  189. package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
  190. package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
  191. package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
  192. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
  193. package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
  194. package/lib/imodel-components-react.d.ts +77 -0
  195. package/lib/imodel-components-react.d.ts.map +1 -0
  196. package/lib/imodel-components-react.js +90 -0
  197. package/lib/imodel-components-react.js.map +1 -0
  198. package/lib/internal.d.ts +2 -0
  199. package/lib/internal.d.ts.map +1 -0
  200. package/lib/internal.js +6 -0
  201. package/lib/internal.js.map +1 -0
  202. package/package.json +51 -46
  203. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  204. package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
  205. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
  206. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  207. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
  208. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
  209. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  210. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
  211. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  212. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  213. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
  214. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  215. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  216. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
  217. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  218. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  219. package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
  220. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
  221. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  222. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
  223. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
  224. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
  225. package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
  226. package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
  227. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  228. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
  229. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  230. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  231. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
  232. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
  233. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  234. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
  235. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
  236. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  237. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
  238. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
  239. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  240. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
  241. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  242. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  243. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
  244. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
  245. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  246. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
  247. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
  248. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  249. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
  250. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
  251. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
  252. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  253. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
  254. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  255. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  256. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
  257. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  258. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  259. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
  260. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  261. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  262. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
  263. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  264. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  265. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
  266. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  267. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  268. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
  269. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
  270. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  271. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
  272. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
  273. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  274. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
  275. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  276. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  277. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
  278. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  279. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  280. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
  281. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  282. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  283. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
  284. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
  285. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  286. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
  287. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  288. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  289. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
  290. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  291. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  292. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
  293. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  294. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  295. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
  296. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  297. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  298. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
  299. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  300. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  301. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
  302. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  303. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  304. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
  305. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  306. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  307. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
  308. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  309. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  310. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
  311. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  312. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  313. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
  314. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
  315. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  316. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
  317. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  318. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  319. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
  320. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  321. package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  322. package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
  323. package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
  324. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  325. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
  326. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
  327. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
  328. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  329. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
  330. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  331. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  332. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
  333. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  334. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
  335. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  336. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
  337. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  338. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  339. package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
  340. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
  341. package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
  342. package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
  343. package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
  344. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  345. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
  346. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  347. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  348. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
  349. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  350. package/lib/cjs/imodel-components-react.d.ts +0 -80
  351. package/lib/cjs/imodel-components-react.d.ts.map +0 -1
  352. package/lib/cjs/imodel-components-react.js +0 -103
  353. package/lib/cjs/imodel-components-react.js.map +0 -1
  354. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
  355. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  356. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
  357. package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
  358. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
  359. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  360. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
  361. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
  362. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  363. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  364. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
  365. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  366. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  367. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
  368. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  369. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  370. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
  371. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  372. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
  373. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  374. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
  375. package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
  376. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
  377. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
  378. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  379. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  380. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
  381. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  382. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
  383. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
  384. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  385. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
  386. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
  387. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  388. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
  389. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  390. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  391. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
  392. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  393. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
  394. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  395. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
  396. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  397. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
  398. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  399. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  400. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
  401. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  402. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  403. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
  404. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  405. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  406. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
  407. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  408. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  409. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
  410. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  411. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  412. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
  413. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  414. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
  415. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  416. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
  417. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  418. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  419. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
  420. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  421. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  422. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
  423. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  424. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  425. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
  426. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  427. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
  428. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  429. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  430. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
  431. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  432. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  433. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
  434. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  435. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  436. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
  437. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  438. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  439. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
  440. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  441. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  442. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
  443. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  444. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  445. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
  446. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  447. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  448. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
  449. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  450. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  451. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
  452. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  453. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  454. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
  455. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  456. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
  457. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  458. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  459. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
  460. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  461. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  462. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
  463. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  464. package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
  465. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
  466. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  467. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
  468. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  469. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  470. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
  471. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  472. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  473. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  474. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  475. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
  476. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  477. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
  478. package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
  479. package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
  480. package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
  481. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
  482. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  483. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  484. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
  485. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  486. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  487. package/lib/esm/imodel-components-react.d.ts +0 -80
  488. package/lib/esm/imodel-components-react.d.ts.map +0 -1
  489. package/lib/esm/imodel-components-react.js +0 -85
  490. package/lib/esm/imodel-components-react.js.map +0 -1
  491. /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
  492. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
  493. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
  494. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
  495. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
  496. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
  497. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
  498. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
  499. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
  500. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
  501. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
  502. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
  503. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
  504. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
  505. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
  506. /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
  507. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
  508. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
  509. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
  510. /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
  511. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
  512. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
  513. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
  514. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
  515. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
  516. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
  517. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
  518. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
  519. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
  520. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
  521. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
  522. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
  523. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
  524. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
  525. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
  526. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
  527. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
  528. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
  529. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
  530. /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
  531. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
  532. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
  533. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
  534. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
  535. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
  536. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
  537. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
  538. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
  539. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
  540. /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
  541. /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
@@ -0,0 +1,38 @@
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
+ .speed-timeline {
6
+ position: relative;
7
+ height: 25px;
8
+
9
+ .railOuter {
10
+ position: absolute;
11
+ width: 100%;
12
+ height: 100%;
13
+ cursor: pointer;
14
+ }
15
+
16
+ .railInner {
17
+ position: absolute;
18
+ top: 50%;
19
+ transform: translateY(-50%);
20
+ width: 100%;
21
+ height: 2px;
22
+ pointer-events: none;
23
+ background: var(--iui-color-background-disabled);
24
+ }
25
+
26
+ .scrubberHandle {
27
+ position: absolute;
28
+ top: 50%;
29
+ transform: translate(-50%, -50%);
30
+ z-index: 4;
31
+ width: 12px;
32
+ height: 12px;
33
+ cursor: pointer;
34
+ border: none;
35
+ border-radius: 50%;
36
+ background: var(--iui-color-icon-accent);
37
+ }
38
+ }
@@ -0,0 +1,163 @@
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
+ .timeline {
6
+ position: relative;
7
+ height: 110px;
8
+ background: var(--iui-color-background);
9
+ border: 1px solid var(--iui-color-background-disabled);
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .rail {
14
+ position: absolute;
15
+ width: 100%;
16
+ height: 40px;
17
+ top: 50%;
18
+ transform: translateY(-50%);
19
+ cursor: pointer;
20
+ z-index: 3;
21
+ }
22
+
23
+ .rail-center {
24
+ position: absolute;
25
+ left: 0;
26
+ right: 0;
27
+ top: 50%;
28
+ transform: translateY(-50%);
29
+ height: 4px;
30
+ cursor: pointer;
31
+ pointer-events: none;
32
+ background: var(--iui-color-background-disabled);
33
+ }
34
+
35
+ .tooltip-rail {
36
+ position: absolute;
37
+ margin-left: -11px;
38
+ top: 50%;
39
+ transform: translateY(-50%);
40
+ z-index: 1;
41
+ }
42
+
43
+ .needle {
44
+ position: absolute;
45
+ top: 0;
46
+ transform: translateX(-50%);
47
+ z-index: 4;
48
+ width: 2px;
49
+ height: 100%;
50
+ background: var(--iui-color-icon-accent);
51
+ cursor: pointer;
52
+ }
53
+
54
+ .handle {
55
+ position: absolute;
56
+ top: 50%;
57
+ transform: translate(-50%, -50%);
58
+ z-index: 4;
59
+ width: 14px;
60
+ height: 14px;
61
+ cursor: pointer;
62
+ border: none;
63
+ border-radius: 50%;
64
+ background: var(--iui-color-icon-accent);
65
+ border: 2px solid var(--iui-color-background);
66
+
67
+ > span {
68
+ position: absolute;
69
+ left: 50%;
70
+ bottom: -25px;
71
+ font-size: 14px;
72
+ white-space: nowrap;
73
+ transform: translateX(-50%);
74
+ color: rgba(black, 0.85);
75
+ }
76
+
77
+ input {
78
+ position: absolute;
79
+ border: none;
80
+ margin-top: 10px;
81
+ top: 1.2rem;
82
+ left: 50%;
83
+ transform: translateX(-50%);
84
+ cursor: pointer;
85
+ }
86
+
87
+ input:focus {
88
+ cursor: text;
89
+ left: -0.25rem;
90
+ top: calc(1.2rem - 0.25rem);
91
+ width: 140px;
92
+ padding: 0.25rem;
93
+ border: 1px solid #ddd;
94
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.11);
95
+ box-sizing: border-box;
96
+ outline: none;
97
+ }
98
+ }
99
+
100
+ .tick-line {
101
+ position: absolute;
102
+ width: 2px;
103
+ height: 11px;
104
+ transform: translateX(-50%);
105
+ background: var(--iui-color-background-disabled);
106
+ }
107
+
108
+ .tick-label {
109
+ position: absolute;
110
+ margin-top: 9px;
111
+ font-size: 14px;
112
+ color: rgba(black, 0.85);
113
+ white-space: nowrap;
114
+ }
115
+
116
+ .tick-label.start {
117
+ left: -50px;
118
+ }
119
+
120
+ .tick-label.end {
121
+ right: -50px;
122
+ text-align: right;
123
+ }
124
+
125
+ .tick-label.tick {
126
+ margin-left: 11px;
127
+ text-align: left;
128
+ }
129
+
130
+ .tooltip {
131
+ position: absolute;
132
+ top: -20px;
133
+ display: inline-block;
134
+ border-bottom: 1px dotted #222;
135
+ margin-left: 22px;
136
+ font-size: 14px;
137
+
138
+ .tooltip-text {
139
+ width: 100px;
140
+ background-color: #222;
141
+ color: #fff;
142
+ // opacity: 0.8;
143
+ text-align: center;
144
+ border-radius: 6px;
145
+ padding: 8px 0;
146
+ position: absolute;
147
+ z-index: 1;
148
+ bottom: 150%;
149
+ left: 50%;
150
+ margin-left: -60px;
151
+
152
+ &:after {
153
+ content: "";
154
+ position: absolute;
155
+ top: 100%;
156
+ left: 50%;
157
+ margin-left: -5px;
158
+ border-width: 5px;
159
+ border-style: solid;
160
+ border-color: #222 transparent transparent transparent;
161
+ }
162
+ }
163
+ }
@@ -5,7 +5,7 @@ import "./TimelineComponent.scss";
5
5
  import * as React from "react";
6
6
  import type { DateFormatOptions } from "@itwin/components-react";
7
7
  import type { Slider } from "@itwin/itwinui-react";
8
- import type { PlaybackSettings } from "./interfaces";
8
+ import type { PlaybackSettings } from "./interfaces.js";
9
9
  /** [[TimelineMenuItemOption]]: specifies how the app wants the timeline speeds to be installed on the TimelineComponent's ContextMenu
10
10
  * "replace" : use the app-supplied items in place of the standard items
11
11
  * "append" : add the app-supplied items following the standard items
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineComponent.d.ts","sourceRoot":"","sources":["../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQnD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,iBAAiB,CAAC;AAU/E;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,6GAA6G;IAC7G,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;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IACpB,qEAAqE;IACrE,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CACxC,OAAO,MAAM,CACd,CAAC,qBAAqB,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAwN9D"}
@@ -11,11 +11,11 @@ import { UiAdmin } from "@itwin/appui-abstract";
11
11
  import { toDateString, toTimeString } from "@itwin/components-react";
12
12
  import { SvgCheckmark, SvgMoreVertical } from "@itwin/itwinui-icons-react";
13
13
  import { DropdownMenu, IconButton, MenuDivider, MenuItem, } from "@itwin/itwinui-react";
14
- import { InlineEdit } from "./InlineEdit";
15
- import { TimelinePausePlayAction } from "./interfaces";
16
- import { PlayButton } from "./PlayButton";
17
- import { Scrubber } from "./Scrubber";
18
- import { useTranslation } from "../useTranslation";
14
+ import { InlineEdit } from "./InlineEdit.js";
15
+ import { TimelinePausePlayAction } from "./interfaces.js";
16
+ import { PlayButton } from "./PlayButton.js";
17
+ import { Scrubber } from "./Scrubber.js";
18
+ import { useTranslation } from "../useTranslation.js";
19
19
  const slowSpeed = 60 * 1000;
20
20
  const mediumSpeed = 20 * 1000;
21
21
  const fastSpeed = 10 * 1000;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineComponent.js","sourceRoot":"","sources":["../../../src/imodel-components-react/timeline/TimelineComponent.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AACH,OAAO,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,EACL,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OA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oCAAoC;IACpC,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IACrC,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IACrC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;AACnD,CAAC","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 */\nimport \"./TimelineComponent.scss\";\nimport * as React from \"react\";\nimport { UiAdmin } from \"@itwin/appui-abstract\";\nimport type { DateFormatOptions } from \"@itwin/components-react\";\nimport { toDateString, toTimeString } from \"@itwin/components-react\";\nimport { SvgCheckmark, SvgMoreVertical } from \"@itwin/itwinui-icons-react\";\nimport type { Slider } from \"@itwin/itwinui-react\";\nimport {\n DropdownMenu,\n IconButton,\n MenuDivider,\n MenuItem,\n} from \"@itwin/itwinui-react\";\nimport { InlineEdit } from \"./InlineEdit.js\";\nimport type { PlaybackSettings, TimelinePausePlayArgs } from \"./interfaces.js\";\nimport { TimelinePausePlayAction } from \"./interfaces.js\";\nimport { PlayButton } from \"./PlayButton.js\";\nimport { Scrubber } from \"./Scrubber.js\";\nimport { useTranslation } from \"../useTranslation.js\";\n\nconst slowSpeed = 60 * 1000;\nconst mediumSpeed = 20 * 1000;\nconst fastSpeed = 10 * 1000;\n\n/** [[TimelineMenuItemOption]]: specifies how the app wants the timeline speeds to be installed on the TimelineComponent's ContextMenu\n * \"replace\" : use the app-supplied items in place of the standard items\n * \"append\" : add the app-supplied items following the standard items\n * \"prefix\" : add the app-supplied items before the standard items\n *\n * @public\n */\nexport type TimelineMenuItemOption = \"replace\" | \"append\" | \"prefix\";\n\n/** [[TimelineMenuItemProps]] specifies playback speed entries in the Timeline's ContextMenu\n * @public\n */\nexport interface TimelineMenuItemProps {\n /** localized label for menu item */\n label: string;\n\n /** duration for the entire timeline to play */\n timelineDuration: number;\n}\n\n/** TimelineDateMarkerProps: Mark a date on the timeline with an indicator\n * @public\n */\nexport interface TimelineDateMarkerProps {\n /** Date to mark. If undefined, today's date will be used. */\n date?: Date;\n /** ReactNode to use as the marker on the timeline. If undefined, a short vertical bar will mark the date. */\n dateMarker?: React.ReactNode;\n}\n\n/** [[TimelineComponentProps]] configure the timeline\n * @public\n */\nexport interface TimelineComponentProps {\n /** Start date: beginning of the date range of a date-based timeline. */\n startDate?: Date;\n /** End date: end of the date range of a date-based timeline. */\n endDate?: Date;\n /** Total duration: range of the timeline in milliseconds.\n * @note This can be changed by user interaction. See {@link TimelineComponentProps.appMenuItems}.\n */\n totalDuration: number;\n /** Initial value for the current duration (the location of the thumb) in milliseconds */\n initialDuration?: number;\n /** Show in minimized mode (For future use. This prop will always be treated as true.)\n * @deprecated in 4.10.0. Has no effect.\n */\n minimized?: boolean;\n /** When playing, repeat indefinitely. Defaults to `false`.\n * @note This can be changed by user interaction. See {@link TimelineComponentProps.includeRepeat}.\n */\n repeat?: boolean;\n /** Show duration instead of time */\n showDuration?: boolean;\n /** Callback with current duration value (as a fraction) */\n onChange?: (duration: number) => void;\n /** Callback triggered when play/pause button is pressed */\n onPlayPause?: (playing: boolean) => void;\n /** Callback triggered when backward/forward buttons are pressed.\n * @deprecated in 4.10.0. Has no effect.\n */\n onJump?: (forward: boolean) => void;\n /** Callback triggered when a setting is changed */\n onSettingsChange?: (arg: PlaybackSettings) => void;\n /** Always display in miniMode with no expand menu (For future use. This prop will always be treated as true)\n * @deprecated in 4.10.0. Has no effect.\n */\n alwaysMinimized?: boolean;\n /** ComponentId -- must be set to use TimelineComponentEvents\n * @deprecated in 4.11.0. Use the isPlaying prop instead.\n */\n componentId?: string;\n /** Include the repeat option on the Timeline Context Menu. Defaults to `true`. */\n includeRepeat?: boolean;\n /** App-supplied speed entries in the Timeline Context Menu. Defaults to `[Slow, Medium, Fast]` items. */\n appMenuItems?: TimelineMenuItemProps[];\n /** How to include the supplied app menu items in the Timeline Context Menu (prefix, append or replace). Defaults to `replace`. */\n appMenuItemOption?: TimelineMenuItemOption;\n /** Display date and time offset by the number of minutes specified. When undefined - local timezone will be used */\n timeZoneOffset?: number;\n /** Display a marker on the timeline rail to indicate current date - will only work if starDate and endDate are defined */\n markDate?: TimelineDateMarkerProps;\n /** Options used to format date string. If not defined it will user browser default locale settings. */\n dateFormatOptions?: DateFormatOptions;\n /** Options used to format time string. If not defined it will user browser default locale settings. */\n timeFormatOptions?: DateFormatOptions;\n /** Used to control the play/pause state of the Timeline.*/\n isPlaying?: boolean;\n /** Props for a container that holds the slider thumbs and tracks. */\n trackContainerProps?: React.ComponentProps<\n typeof Slider\n >[\"trackContainerProps\"];\n}\n\n/** [[TimelineComponent]] is used to playback timeline data\n * @public\n */\nexport function TimelineComponent(props: TimelineComponentProps) {\n const {\n appMenuItemOption = \"replace\",\n startDate,\n endDate,\n showDuration,\n timeZoneOffset,\n dateFormatOptions,\n timeFormatOptions,\n includeRepeat = true,\n onSettingsChange,\n onChange,\n onPlayPause,\n } = props;\n const [isPlaying, setIsPlaying] = React.useState(!!props.isPlaying);\n const [currentDuration, setCurrentDuration] = React.useState(\n props.initialDuration ?? 0\n );\n const [totalDuration, setTotalDuration] = React.useState(props.totalDuration);\n const [repeat, setRepeat] = React.useState(props.repeat ?? false);\n\n const playOrReplay = React.useCallback(() => {\n if (isPlaying) return;\n\n if (currentDuration >= totalDuration) {\n setCurrentDuration(0);\n }\n\n setIsPlaying(true);\n onPlayPause?.(true);\n }, [isPlaying, onPlayPause, currentDuration, totalDuration]);\n const pause = React.useCallback(() => {\n if (!isPlaying) return;\n setIsPlaying(false);\n onPlayPause?.(false);\n }, [isPlaying, onPlayPause]);\n const updateTotalDuration = (newTotalDuration: number) => {\n if (newTotalDuration === totalDuration) return;\n\n const fraction = currentDuration / totalDuration;\n const newCurrentDuration = fraction * newTotalDuration;\n\n setTotalDuration(newTotalDuration);\n setCurrentDuration(newCurrentDuration);\n onSettingsChange?.({ duration: newTotalDuration });\n };\n const updateDuration = (\n newDuration: number,\n currentTotalDuration = totalDuration\n ) => {\n newDuration = Math.max(newDuration, 0);\n newDuration = Math.min(newDuration, currentTotalDuration);\n\n if (newDuration === currentDuration) return;\n setCurrentDuration(newDuration);\n\n const fraction = newDuration / currentTotalDuration;\n onChange?.(fraction);\n };\n const updateRepeat = (newRepeat: boolean) => {\n if (newRepeat === repeat) return;\n\n setRepeat(newRepeat);\n onSettingsChange?.({ loop: newRepeat });\n };\n\n const [prevTotalDuration, setPrevTotalDuration] = React.useState(\n props.totalDuration\n );\n if (prevTotalDuration !== props.totalDuration) {\n setPrevTotalDuration(props.totalDuration);\n updateTotalDuration(props.totalDuration);\n }\n\n const [prevInitialDuration, setPrevInitialDuration] = React.useState(\n props.initialDuration\n );\n if (prevInitialDuration !== props.initialDuration) {\n setPrevInitialDuration(props.initialDuration);\n updateDuration(props.initialDuration ?? 0, props.totalDuration);\n }\n\n const [prevRepeat, setPrevRepeat] = React.useState(props.repeat);\n if (prevRepeat !== props.repeat) {\n setPrevRepeat(props.repeat);\n updateRepeat(props.repeat ?? repeat);\n }\n\n React.useEffect(() => {\n // eslint-disable-next-line deprecation/deprecation\n if (!props.componentId) return;\n return UiAdmin.onGenericUiEvent.addListener((args) => {\n const timelineArgs = args as TimelinePausePlayArgs;\n if (\n !timelineArgs ||\n // eslint-disable-next-line deprecation/deprecation\n props.componentId !== timelineArgs.uiComponentId ||\n timelineArgs.timelineAction === undefined\n )\n return;\n\n switch (timelineArgs.timelineAction) {\n case TimelinePausePlayAction.Play:\n playOrReplay();\n break;\n case TimelinePausePlayAction.Pause:\n pause();\n break;\n case TimelinePausePlayAction.Toggle:\n if (isPlaying) {\n pause();\n } else {\n playOrReplay();\n }\n break;\n }\n });\n // eslint-disable-next-line deprecation/deprecation\n }, [isPlaying, pause, playOrReplay, props.componentId]);\n useAnimation(({ delta }) => {\n const duration = currentDuration + delta;\n updateDuration(duration);\n\n if (duration >= totalDuration) {\n if (repeat) {\n setCurrentDuration(0);\n return;\n }\n\n pause();\n }\n }, isPlaying);\n\n React.useEffect(() => {\n if (props.isPlaying) playOrReplay();\n\n if (props.isPlaying === false) pause();\n }, [props.isPlaying, playOrReplay, pause]);\n\n const onTimelineChange = (values: ReadonlyArray<number>) => {\n const newDuration = values[0];\n updateDuration(newDuration);\n };\n\n const currentDurationStr = toDisplayTime(currentDuration);\n const totalDurationStr = toDisplayTime(totalDuration);\n const hasDates = !!startDate && !!endDate;\n return (\n <div data-testid=\"timeline-component\" className=\"timeline-component\">\n <PlayButton isPlaying={isPlaying} onPlay={playOrReplay} onPause={pause} />\n <div className=\"time-container\">\n {hasDates && (\n <span data-testid=\"test-start-date\" className=\"timeline-date\">\n {toDateString(startDate, timeZoneOffset, dateFormatOptions)}\n </span>\n )}\n {hasDates && !showDuration && (\n <span data-testid=\"test-start-time\" className=\"timeline-time\">\n {toTimeString(startDate, timeZoneOffset, timeFormatOptions)}\n </span>\n )}\n {showDuration && (\n <span className=\"timeline-duration-time\">{currentDurationStr}</span>\n )}\n </div>\n <Scrubber\n className=\"slider\"\n currentDuration={currentDuration}\n totalDuration={totalDuration}\n startDate={startDate}\n endDate={endDate}\n isPlaying={isPlaying}\n showTime={!showDuration}\n onChange={onTimelineChange}\n onUpdate={onTimelineChange}\n timeZoneOffset={props.timeZoneOffset}\n markDate={props.markDate}\n trackContainerProps={props.trackContainerProps}\n />\n <div className=\"time-container\">\n {hasDates && (\n <span data-testid=\"test-end-date\" className=\"timeline-date\">\n {toDateString(endDate, timeZoneOffset)}\n </span>\n )}\n {hasDates && !showDuration && (\n <span className=\"timeline-time\">\n {toTimeString(endDate, timeZoneOffset, timeFormatOptions)}\n </span>\n )}\n {showDuration && (\n <InlineEdit\n className=\"timeline-duration-time\"\n defaultValue={totalDurationStr}\n onChange={(value) => {\n const newTotalDuration = timeToMs(value);\n updateTotalDuration(newTotalDuration);\n }}\n />\n )}\n </div>\n <SettingsMenu\n appMenuItems={props.appMenuItems}\n appMenuItemOption={appMenuItemOption}\n includeRepeat={includeRepeat}\n repeat={repeat}\n totalDuration={totalDuration}\n onRepeatClick={() => {\n updateRepeat(!repeat);\n }}\n onTotalDurationChange={(newTotalDuration) => {\n updateTotalDuration(newTotalDuration);\n }}\n />\n </div>\n );\n}\n\ntype SettingsMenuProps = Pick<\n TimelineComponentProps,\n \"appMenuItems\" | \"totalDuration\"\n> &\n Pick<\n Required<TimelineComponentProps>,\n \"appMenuItemOption\" | \"includeRepeat\" | \"repeat\"\n > & {\n onRepeatClick: () => void;\n onTotalDurationChange: (totalDuration: number) => void;\n };\n\nfunction SettingsMenu({\n appMenuItems,\n appMenuItemOption,\n includeRepeat,\n repeat,\n totalDuration,\n onRepeatClick,\n onTotalDurationChange,\n}: SettingsMenuProps) {\n const { translate } = useTranslation();\n\n const menuItems = React.useMemo(() => {\n const standardItems: TimelineMenuItemProps[] = [\n {\n label: translate(\"timeline.slow\"),\n timelineDuration: slowSpeed,\n },\n {\n label: translate(\"timeline.medium\"),\n timelineDuration: mediumSpeed,\n },\n {\n label: translate(\"timeline.fast\"),\n timelineDuration: fastSpeed,\n },\n ];\n\n if (!appMenuItems) {\n return standardItems;\n }\n\n if (appMenuItemOption === \"append\") {\n return [...standardItems, ...appMenuItems];\n }\n if (appMenuItemOption === \"prefix\") {\n return [...appMenuItems, ...standardItems];\n }\n // Replace\n return appMenuItems;\n }, [appMenuItemOption, appMenuItems, translate]);\n\n return (\n <DropdownMenu\n menuItems={(close) => {\n return [\n ...(includeRepeat\n ? [\n <MenuItem\n key=\"repeat\"\n onClick={() => {\n onRepeatClick();\n close();\n }}\n startIcon={repeat ? <SvgCheckmark /> : <></>}\n >\n {translate(\"timeline.repeat\")}\n </MenuItem>,\n <MenuDivider key=\"divider\" />,\n ]\n : []),\n ...menuItems.map((item, index) => {\n const checked = totalDuration === item.timelineDuration;\n return (\n <MenuItem\n key={index}\n startIcon={checked ? <SvgCheckmark /> : <></>}\n onClick={() => {\n onTotalDurationChange(item.timelineDuration);\n close();\n }}\n >\n {item.label}\n </MenuItem>\n );\n }),\n ];\n }}\n placement=\"top-start\"\n >\n <IconButton\n data-testid=\"timeline-settings\"\n label={translate(\"timeline.settings\")}\n styleType=\"borderless\"\n >\n <SvgMoreVertical />\n </IconButton>\n </DropdownMenu>\n );\n}\n\nfunction useAnimation(\n onAnimate: (args: { delta: number }) => void,\n playing = true\n) {\n const onAnimateRef = React.useRef(onAnimate);\n onAnimateRef.current = onAnimate;\n\n const lastTimeRef = React.useRef<number | undefined>();\n\n React.useEffect(() => {\n if (!playing) return;\n\n let handle = 0;\n let didCancel = false;\n\n const animate = (time: number) => {\n if (lastTimeRef.current === undefined) {\n lastTimeRef.current = time;\n }\n\n const delta = time - lastTimeRef.current;\n lastTimeRef.current = time;\n\n onAnimateRef.current({\n delta,\n });\n\n if (didCancel) return;\n\n handle = window.requestAnimationFrame(animate);\n };\n\n handle = window.requestAnimationFrame(animate);\n return () => {\n didCancel = true;\n lastTimeRef.current = undefined;\n window.cancelAnimationFrame(handle);\n };\n }, [playing]);\n}\n\nfunction timeToMs(time: string) {\n if (time.indexOf(\":\") !== -1) {\n return (\n (Number(time.split(\":\")[0]) * 60 + Number(time.split(\":\")[1])) * 1000\n );\n } else {\n return Number(time) * 1000;\n }\n}\n\nfunction toDisplayTime(ms: number) {\n const addZero = (i: number) => {\n return i < 10 ? `0${i}` : i;\n };\n\n const date = new Date(ms);\n // const hours = date.getUTCHours();\n const minutes = date.getUTCMinutes();\n const seconds = date.getUTCSeconds();\n return `${addZero(minutes)}:${addZero(seconds)}`;\n}\n"]}
@@ -0,0 +1,48 @@
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
+ .timeline-component {
6
+ width: 100%;
7
+ min-width: 275px;
8
+
9
+ display: flex;
10
+ flex-direction: row;
11
+ align-items: center;
12
+ padding: 8px 16px;
13
+ box-sizing: border-box;
14
+ gap: 8px;
15
+
16
+ .time-container {
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ }
21
+
22
+ .timeline-time {
23
+ font-size: 12px;
24
+ color: var(--iui-color-text-muted);
25
+ text-align: center;
26
+ min-height: inherit;
27
+ }
28
+
29
+ .timeline-duration-time {
30
+ font-size: 14px;
31
+ width: 40px;
32
+ color: var(--iui-color-text);
33
+ text-align: center;
34
+ min-height: inherit;
35
+ }
36
+
37
+ .timeline-date {
38
+ font-size: 12px;
39
+ color: var(--iui-color-text-muted);
40
+ padding-bottom: 4px;
41
+ }
42
+
43
+ .slider {
44
+ position: relative;
45
+ flex: 1;
46
+ margin: 0 20px;
47
+ }
48
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/imodel-components-react/timeline/interfaces.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;GAEG;AACH,oBAAY,aAAa;IACvB,iBAAiB;IACjB,KAAK,IAAA;IACL,oBAAoB;IACpB,QAAQ,IAAA;IACR,kBAAkB;IAClB,MAAM,IAAA;IACN,gBAAgB;IAChB,IAAI,IAAA;IACJ,iBAAiB;IACjB,KAAK,IAAA;CACN;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,qDAAqD;IACrD,UAAU,IAAA;IACV,sEAAsE;IACtE,WAAW,IAAA;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kDAAkD;IAClD,SAAS,CAAC,EAAE,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AAiB;IACjB,mDAAK,CAAA;IACL,oBAAoB;IACpB,yDAAQ,CAAA;IACR,kBAAkB;IAClB,qDAAM,CAAA;IACN,gBAAgB;IAChB,iDAAI,CAAA;IACJ,iBAAiB;IACjB,mDAAK,CAAA;AACP,CAAC,EAXW,aAAa,KAAb,aAAa,QAWxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,qDAAqD;IACrD,yEAAU,CAAA;IACV,sEAAsE;IACtE,2EAAW,CAAA;AACb,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAwCD;;GAEG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,yEAAM,CAAA;IACN,uEAAK,CAAA;IACL,qEAAI,CAAA;AACN,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC","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 type { ColorDef } from \"@itwin/core-common\";\nimport type { ScreenViewport } from \"@itwin/core-frontend\";\n\n/** The timeline scale.\n * @public\n */\nexport enum TimelineScale {\n /** Show years */\n Years,\n /** Show quarters */\n Quarters,\n /** Show months */\n Months,\n /** Show days */\n Days,\n /** Show hours */\n Hours,\n}\n\n/** Determines if data displayed to use is the actual date or the amount of time elapsed since project start.\n * @public\n */\nexport enum TimelineDateDisplay {\n /** Display time axis using actual start/end dates */\n ActualTime,\n /** Display time axis using time relative to actual start/end dates */\n ProjectTime,\n}\n\n/**\n * Playback Settings.\n * @public\n */\nexport interface PlaybackSettings {\n /** time in milliseconds to play animation from start date to end date */\n duration?: number;\n /** Set to True if animation to restart each time playbackEnd is reached. Defaults to false. */\n loop?: boolean;\n /** If true a minimal set of data is displayed. */\n minimized?: boolean;\n /** Playback start. If defined must be within start-end range. If not define 'start' is used. */\n playbackStart?: Date;\n /** Playback end. If defined must be within start-end range and later than playbackStart. If not define 'end' is used. */\n playbackEnd?: Date;\n /** Set to True if user should be allowed to insert milestone dates. Defaults to false */\n allowMilestoneEdits?: boolean;\n /** Define if actual date/times are used or date/times relative to project are used to draw timeline axis. */\n dateDisplay?: TimelineDateDisplay;\n}\n\n/**\n * An interface used to notify Handlers of the current pointer position in the timeline playback. Valid range is 0 to 1 and it determines percentage complete.\n * @public\n */\nexport type AnimationFractionChangeHandler = (\n animationFraction: number\n) => void;\n\n/**\n * An interface used to notify Handlers of Playback Settings changes.\n * Contains the settings to be used.\n * @public\n */\nexport type PlaybackSettingsChangeHandler = (\n settingsChange: PlaybackSettings\n) => void;\n\n/** Actions for Pause/Play event\n * @public\n */\nexport enum TimelinePausePlayAction {\n Toggle,\n Pause,\n Play,\n}\n/** Args for event to pause or play the timeline component\n * @public\n */\nexport interface TimelinePausePlayArgs {\n uiComponentId: string;\n timelineAction: TimelinePausePlayAction;\n}\n/** Interface for a timeline data provider class\n * @public\n */\nexport interface TimelineDataProvider {\n /** uniqueId of provider */\n id: string;\n /** view id when viewport is initially assigned */\n viewId: string;\n /** returns true if the provider has timeline animation data available */\n supportsTimelineAnimation: boolean;\n /** Starting date for entire timeline */\n start?: Date;\n /** End date for entire timeline */\n end?: Date;\n /** Current animation fraction from 0.0 to 1.0 */\n animationFraction?: number;\n getSettings(): PlaybackSettings;\n /** Called to get the initial scrubber location. This must be a value between 0 and the duration in PlaybackSettings. */\n initialDuration: number;\n /** Called to get the duration of the Playback. */\n duration: number;\n /** If true the playback will continuously loop. */\n loop: boolean;\n /** Called to save the playback settings */\n updateSettings(settings: PlaybackSettings): void;\n /** Async call to load milestone and settings data */\n loadTimelineData(): Promise<boolean>;\n /** Called when an internal process has defined the playback settings and the UI needs to be updated */\n onPlaybackSettingChanged?: PlaybackSettingsChangeHandler;\n /** Called when the an internal process has defined the playback settings and the UI needs to be updated */\n onAnimationFractionChanged?: AnimationFractionChangeHandler;\n /** viewport to show animation */\n viewport?: ScreenViewport;\n}\n\n/**\n * An interface used to notify Handlers of Playback progress.\n * Contains the settings to be used.\n * @alpha\n */\nexport type SolarPlaybackProgressHandler = (time: Date) => void;\n\n/** Data Provider interface for getting and setting solar position\n * @alpha\n */\nexport interface SolarDataProvider {\n // View Id used to determine sunrise and sunset\n viewId: string;\n /** returns true if the provider has timeline animation data available */\n supportsTimelineAnimation: boolean;\n // set to true is timeline should be shown - return false if view is not set to display shadow.\n readonly shouldShowTimeline: boolean;\n /** Starting date for entire timeline */\n day: Date;\n /** Starting time for day in milliseconds */\n readonly dayStartMs: number;\n /** Time of day for sun */\n readonly timeOfDay: Date;\n /** Called during playback to update animation */\n onTimeChanged?: SolarPlaybackProgressHandler;\n /** viewport to show animation */\n viewport?: ScreenViewport;\n /** Time of Sunrise to nearest minute */\n readonly sunrise: Date;\n /** time of Sunrise to nearest minute */\n readonly sunset: Date;\n /** shadow color */\n shadowColor: ColorDef;\n /** timezone offset for local project time */\n readonly timeZoneOffset: number;\n /** set date for shadow study. If isProjectDate is false the is assume to be in users\n * current time and the value is adjusted to be the same date and time at the project location. */\n setDateAndTime: (day: Date, isProjectDate?: boolean) => void;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/imodel-components-react/useTranslation.tsx"],"names":[],"mappings":"AASA;;GAEG;AACH,wBAAgB,cAAc;;EAY7B"}
@@ -4,8 +4,8 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as defaults from "./UiIModelComponents.json";
6
6
  import * as React from "react";
7
- import { usePackageTranslation } from "@itwin/core-react";
8
- import { UiIModelComponents } from "./UiIModelComponents";
7
+ import { usePackageTranslation } from "@itwin/core-react/internal";
8
+ import { UiIModelComponents } from "./UiIModelComponents.js";
9
9
  /** Returns a translation function.
10
10
  * @internal
11
11
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../src/imodel-components-react/useTranslation.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,GAAW,EAAE,EAAE;QACjD,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;YACpC,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,qBAAqB,CAAC;QAC3B,SAAS,EAAE,kBAAkB,CAAC,qBAAqB;QACnD,QAAQ;QACR,QAAQ;KACT,CAAC,CAAC;AACL,CAAC","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 *--------------------------------------------------------------------------------------------*/\nimport * as defaults from \"./UiIModelComponents.json\";\nimport * as React from \"react\";\nimport { usePackageTranslation } from \"@itwin/core-react/internal\";\nimport { UiIModelComponents } from \"./UiIModelComponents.js\";\n\n/** Returns a translation function.\n * @internal\n */\nexport function useTranslation() {\n const fallback = React.useCallback((key: string) => {\n if (!UiIModelComponents.initialized) {\n return undefined;\n }\n return UiIModelComponents.translate(key);\n }, []);\n return usePackageTranslation({\n namespace: UiIModelComponents.localizationNamespace,\n fallback,\n defaults,\n });\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewportComponent.d.ts","sourceRoot":"","sources":["../../../src/imodel-components-react/viewport/ViewportComponent.tsx"],"names":[],"m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@itwin/core-geometry";
11
11
  import { NpcCenter } from "@itwin/core-common";
12
12
  import { IModelApp, ScreenViewport, StandardView, ToolSettings, } from "@itwin/core-frontend";
13
- import { ViewportComponentEvents } from "./ViewportComponentEvents";
13
+ import { ViewportComponentEvents } from "./ViewportComponentEvents.js";
14
14
  /** A viewport React component that creates a ScreenViewport.
15
15
  * @public
16
16
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewportComponent.js","sourceRoot":"","sources":["../../../src/imodel-components-react/viewport/ViewportComponent.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAO/C,OAAO,EACL,SAAS,EACT,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAmCvE;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAoB;IACpD,MAAM,EACJ,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,KAAK,EACL,SAAS,EACT,sBAAsB,EACtB,SAAS,EACT,WAAW,GACZ,GAAG,KAAK,CAAC;IACV,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CACjC,mBAAmB,IAAI,SAAS,CAAC,WAAW,CAC7C,CAAC;IACF,MAAM,yBAAyB,GAAG,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACvE,MAAM,qBAAqB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAA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,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACzE,CAAC;iBAAM,CAAC;gBACN,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;IAE/C,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CACzC,CAAC,CAAmB,EAAE,EAAE;QACtB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,aAAa;YAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC,EACD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,MAAM,cAAc,GAAwB;QAC1C,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,UAAU;KACrB,CAAC;IAEF,MAAM,gBAAgB,GAAwB;QAC5C,GAAG,KAAK;QACR,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd,CAAC;IAEF,OAAO,CACL,6BAAK,KAAK,EAAE,cAAc,kBAAgB,SAAS;QACjD,6BACE,GAAG,EAAE,WAAW,iBACJ,oBAAoB,EAChC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,gBAAgB,EACvB,aAAa,EAAE,iBAAiB,GAChC;QACD,WAAW,CACR,CACP,CAAC;AACJ,CAAC","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 Viewport\n */\n\nimport * as React from \"react\";\nimport type { Id64String } from \"@itwin/core-bentley\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Point3d } from \"@itwin/core-geometry\";\nimport { Transform } from \"@itwin/core-geometry\";\nimport { NpcCenter } from \"@itwin/core-common\";\nimport type {\n IModelConnection,\n TentativePoint,\n ViewManager,\n ViewState,\n} from \"@itwin/core-frontend\";\nimport {\n IModelApp,\n ScreenViewport,\n StandardView,\n ToolSettings,\n} from \"@itwin/core-frontend\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { ListenerType } from \"@itwin/core-react/internal\";\nimport { ViewportComponentEvents } from \"./ViewportComponentEvents.js\";\n\n/** Type for a ViewState prop\n * @public\n */\nexport type ViewStateProp = ViewState | (() => ViewState);\n\n/**\n * Properties for [[ViewportComponent]] component.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ViewportProps extends CommonProps {\n /** IModel to display */\n imodel: IModelConnection;\n /** Id of a default view definition to load as a starting point */\n viewDefinitionId?: Id64String;\n /** ViewState to use as a starting point */\n viewState?: ViewStateProp;\n /** Function to get a reference to the ScreenViewport */\n viewportRef?: (v: ScreenViewport) => void;\n /** controlId for this content component @internal */\n controlId?: string;\n /** @internal */\n onContextMenu?: (e: React.MouseEvent) => boolean;\n /** @internal */\n getViewOverlay?: (viewport: ScreenViewport) => React.ReactNode;\n /** @internal used only for testing */\n viewManagerOverride?: ViewManager;\n /** @internal used only for testing */\n screenViewportOverride?: typeof ScreenViewport;\n /** @internal used only for testing */\n tentativePointOverride?: TentativePoint;\n}\n\n/** A viewport React component that creates a ScreenViewport.\n * @public\n */\nexport function ViewportComponent(props: ViewportProps) {\n const {\n viewState,\n imodel,\n viewDefinitionId,\n getViewOverlay,\n viewManagerOverride,\n tentativePointOverride,\n onContextMenu,\n style,\n className,\n screenViewportOverride,\n controlId,\n viewportRef,\n } = props;\n const viewManagerRef = React.useRef(\n viewManagerOverride ?? IModelApp.viewManager\n );\n const tentativePointOverrideRef = React.useRef(tentativePointOverride);\n const screenViewportCreated = React.useRef(false);\n const viewportDiv = React.useRef<HTMLDivElement>(null);\n const screenViewportRef = React.useRef<ScreenViewport | null>(null);\n const isMounted = React.useRef(false);\n const viewClassFullName = React.useRef(\"\");\n const viewId = React.useRef(\"0\");\n\n const handleViewChanged: ListenerType<ScreenViewport[\"onViewChanged\"]> = (\n vp\n ) => {\n if (!(vp.iModel.isOpen || vp.iModel.isBlank)) return;\n ViewportComponentEvents.setViewMatrix(vp);\n if (viewClassFullName.current !== vp.view.classFullName) {\n setTimeout(() => {\n ViewportComponentEvents.onViewClassFullNameChangedEvent.emit({\n viewport: vp,\n oldName: viewClassFullName.current,\n newName: vp.view.classFullName,\n });\n viewClassFullName.current = vp.view.classFullName;\n });\n }\n if (viewId.current !== vp.view.id) {\n setTimeout(() => {\n ViewportComponentEvents.onViewIdChangedEvent.emit({\n viewport: vp,\n oldId: viewId.current,\n newId: vp.view.id,\n });\n viewId.current = vp.view.id;\n });\n }\n };\n\n const handleStandardRotationChangeEvent: ListenerType<\n typeof ViewportComponentEvents.onStandardRotationChangeEvent\n > = (args) => {\n const viewManager = viewManagerRef.current;\n const currentScreenViewport = screenViewportRef.current;\n if (\n currentScreenViewport &&\n viewManager.selectedView === currentScreenViewport\n ) {\n currentScreenViewport.view.setRotationAboutPoint(\n StandardView.getStandardRotation(args.standardRotation)\n );\n currentScreenViewport.synchWithView();\n }\n };\n\n const handleDrawingViewportChangeEvent: ListenerType<\n typeof ViewportComponentEvents.onDrawingViewportChangeEvent\n > = (args) => {\n const viewManager = viewManagerRef.current;\n const currentScreenViewport = screenViewportRef.current;\n if (\n currentScreenViewport &&\n viewManager.selectedView === currentScreenViewport\n ) {\n currentScreenViewport.view.setOrigin(args.origin);\n currentScreenViewport.view.setRotation(args.rotation);\n currentScreenViewport.synchWithView({\n noSaveInUndo: args.complete !== true,\n });\n }\n };\n\n const targetPoint = React.useRef<Point3d | null>(null);\n\n const getRotatePoint = (vp: ScreenViewport): Point3d => {\n const lastTargetPoint = targetPoint.current;\n const tentativePoint =\n tentativePointOverrideRef.current ?? IModelApp.tentativePoint;\n if (tentativePoint.isActive) return tentativePoint.getPoint();\n\n if (null !== lastTargetPoint) {\n const testPt = vp.worldToView(lastTargetPoint);\n const viewRect = vp.viewRect.clone();\n viewRect.scaleAboutCenter(0.25, 0.25);\n if (viewRect.containsPoint(testPt)) return lastTargetPoint;\n targetPoint.current = null;\n }\n\n const visiblePoint = vp.pickNearestVisibleGeometry(\n vp.npcToWorld(NpcCenter),\n vp.pixelsFromInches(ToolSettings.viewToolPickRadiusInches)\n );\n targetPoint.current =\n undefined !== visiblePoint ? visiblePoint : vp.view.getTargetPoint();\n return targetPoint.current ?? vp.view.getCenter();\n };\n\n const handleCubeRotationChangeEvent: ListenerType<\n typeof ViewportComponentEvents.onCubeRotationChangeEvent\n > = (args) => {\n const viewManager = viewManagerRef.current;\n const currentScreenViewport = screenViewportRef.current;\n if (\n currentScreenViewport &&\n viewManager.selectedView === currentScreenViewport\n ) {\n const rotMatrix = args.rotMatrix;\n if (currentScreenViewport.rotation !== rotMatrix) {\n const inverse = rotMatrix.transpose(); // rotation is from current nav cube state...\n const center = getRotatePoint(currentScreenViewport);\n const targetMatrix = inverse.multiplyMatrixMatrix(\n currentScreenViewport.view.getRotation()\n );\n const worldTransform = Transform.createFixedPointAndMatrix(\n center,\n targetMatrix\n );\n const frustum = currentScreenViewport.getWorldFrustum();\n frustum.multiply(worldTransform);\n currentScreenViewport.view.setupFromFrustum(frustum);\n currentScreenViewport.synchWithView({ noSaveInUndo: !args.complete });\n }\n }\n };\n\n const handleDisconnectFromViewManager = () => {\n const screenViewport = screenViewportRef.current;\n if (screenViewport) {\n const viewManager = IModelApp.viewManager;\n screenViewport.onViewChanged.removeListener(handleViewChanged);\n screenViewportRef.current = null;\n screenViewportCreated.current = false;\n ViewportComponentEvents.onDrawingViewportChangeEvent.removeListener(\n handleDrawingViewportChangeEvent\n );\n ViewportComponentEvents.onCubeRotationChangeEvent.removeListener(\n handleCubeRotationChangeEvent\n );\n ViewportComponentEvents.onStandardRotationChangeEvent.removeListener(\n handleStandardRotationChangeEvent\n );\n viewManager.dropViewport(screenViewport, true);\n }\n };\n\n const handleWindowUnload = () => {\n const parentDiv = viewportDiv.current;\n if (parentDiv) {\n const parentWindow = parentDiv.ownerDocument.defaultView as Window;\n if (parentWindow !== window) {\n handleDisconnectFromViewManager();\n }\n }\n };\n\n const getScreenViewport = (\n parentDiv: HTMLDivElement,\n inViewState: ViewState\n ) => {\n const screenViewportFactory = screenViewportOverride\n ? screenViewportOverride\n : ScreenViewport;\n const parentWindow = parentDiv.ownerDocument.defaultView as Window;\n parentWindow.addEventListener(\"unload\", handleWindowUnload, {\n once: true,\n capture: true,\n }); // by specifying 'once', listener clears after being called\n ViewportComponentEvents.initialize();\n ViewportComponentEvents.onDrawingViewportChangeEvent.addListener(\n handleDrawingViewportChangeEvent\n );\n ViewportComponentEvents.onCubeRotationChangeEvent.addListener(\n handleCubeRotationChangeEvent\n );\n ViewportComponentEvents.onStandardRotationChangeEvent.addListener(\n handleStandardRotationChangeEvent\n );\n const screenViewport = screenViewportFactory.create(parentDiv, inViewState);\n screenViewportCreated.current = true;\n viewClassFullName.current = screenViewport.view.classFullName;\n viewId.current = screenViewport.view.id;\n screenViewport.onViewChanged.addListener(handleViewChanged);\n return screenViewport;\n };\n\n React.useEffect(() => {\n isMounted.current = true;\n Logger.logInfo(\n \"ViewportComponent\",\n `mounting ViewportComponent for controlId=${controlId}`\n );\n\n return () => {\n isMounted.current = false;\n Logger.logInfo(\n \"ViewportComponent\",\n `un-mounting ViewportComponent for controlId=${controlId}`\n );\n handleDisconnectFromViewManager();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const [initialViewState, setInitialViewState] = React.useState<\n ViewState | undefined\n >(undefined);\n React.useEffect(() => {\n setInitialViewState(undefined);\n }, [viewDefinitionId, viewState]);\n React.useEffect(() => {\n async function fetchInitialViewstate() {\n let currentViewState: ViewState | undefined;\n if (viewState) {\n if (typeof viewState === \"function\") currentViewState = viewState();\n else currentViewState = viewState;\n } else if (viewDefinitionId && imodel) {\n try {\n currentViewState = await imodel.views.load(viewDefinitionId);\n if (!currentViewState) {\n Logger.logError(\"ViewportComponent\", `Viewstate failed to load`);\n }\n } catch (_e) {\n Logger.logError(\"ViewportComponent\", `Viewstate failed to load`);\n }\n } else {\n Logger.logError(\n \"ViewportComponent\",\n `A Viewstate or a viewId and imodel must be provided`\n );\n }\n if (\n isMounted.current &&\n (currentViewState?.iModel.isOpen || currentViewState?.iModel.isBlank)\n ) {\n setInitialViewState(currentViewState?.clone());\n }\n }\n if (undefined === initialViewState) void fetchInitialViewstate();\n }, [imodel, initialViewState, viewDefinitionId, viewState]);\n\n const [viewOverlay, setViewOverlay] = React.useState<React.ReactNode>(null);\n\n // This useEffect connects to ViewManger as soon as initialViewState is available once component is mounted.\n React.useEffect(() => {\n const parentDiv = viewportDiv.current;\n const viewManager = viewManagerRef.current;\n if (\n parentDiv &&\n initialViewState &&\n (initialViewState?.iModel.isOpen || initialViewState?.iModel.isBlank)\n ) {\n if (!screenViewportCreated.current) {\n const screenViewport = getScreenViewport(parentDiv, initialViewState);\n screenViewportRef.current = screenViewport;\n\n if (viewportRef) viewportRef(screenViewport);\n\n Logger.logInfo(\n \"ViewportComponent\",\n `processing viewManager.addViewport for controlId=${controlId}`\n );\n viewManager.addViewport(screenViewport);\n\n // overlay component is set up once a ScreenViewport is available. The overlay component must handle any view changes itself.\n setViewOverlay(getViewOverlay ? getViewOverlay(screenViewport) : null);\n } else {\n screenViewportRef.current?.changeView(initialViewState);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [controlId, initialViewState, viewportRef]);\n\n const handleContextMenu = React.useCallback(\n (e: React.MouseEvent) => {\n e.preventDefault();\n if (onContextMenu) onContextMenu(e);\n },\n [onContextMenu]\n );\n\n const parentDivStyle: React.CSSProperties = {\n height: \"100%\",\n width: \"100%\",\n position: \"relative\",\n };\n\n const viewportDivStyle: React.CSSProperties = {\n ...style,\n height: \"100%\",\n width: \"100%\",\n };\n\n return (\n <div style={parentDivStyle} data-item-id={controlId}>\n <div\n ref={viewportDiv}\n data-testid=\"viewport-component\"\n className={className}\n style={viewportDivStyle}\n onContextMenu={handleContextMenu}\n />\n {viewOverlay}\n </div>\n );\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  import { Matrix3d, Point3d, Vector3d } from "@itwin/core-geometry";
5
5
  import type { StandardViewId, Viewport } from "@itwin/core-frontend";
6
6
  import { UiEvent } from "@itwin/appui-abstract";
7
- import { Face } from "../navigationaids/Cube";
7
+ import { Face } from "../navigationaids/Cube.js";
8
8
  /** Arguments for [[DrawingViewportChangeEvent]]
9
9
  * @public
10
10
  * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewportComponentEvents.d.ts","sourceRoot":"","sources":["../../../src/imodel-components-react/viewport/ViewportComponentEvents.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AAEH,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,8BAA8B,CAAC;CAAG;AAE1F;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,QAAQ,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AAEH,qBAAa,uBAAwB,SAAQ,OAAO,CAAC,2BAA2B,CAAC;CAAG;AAEpF;;;GAGG;AACH,MAAM,WAAW,+BAA+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,EACnB,IAAI,OAAY,EAChB,QAAQ,GAAE,OAAe,GACxB,IAAI;WAMO,uBAAuB,CACnC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,GAAE,OAAe,GACxB,IAAI;WAIO,mBAAmB,CAAC,gBAAgB,EAAE,cAAc,GAAG,IAAI;WAI3D,aAAa,CACzB,QAAQ,EAAE,QAAQ,EAClB,aAAa,CAAC,EAAE,MAAM,GACrB,IAAI;CAYR"}
@@ -8,7 +8,7 @@
8
8
  import { Matrix3d, Point3d, Vector3d } from "@itwin/core-geometry";
9
9
  import { IModelApp } from "@itwin/core-frontend";
10
10
  import { UiEvent } from "@itwin/appui-abstract";
11
- import { Face } from "../navigationaids/Cube";
11
+ import { Face } from "../navigationaids/Cube.js";
12
12
  /** Drawing View Change event
13
13
  * @public
14
14
  * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewportComponentEvents.js","sourceRoot":"","sources":["../../../src/imodel-components-react/viewport/ViewportComponentEvents.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAajD;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,0BAA2B,SAAQ,OAAuC;CAAG;AAY1F;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,uBAAwB,SAAQ,OAAoC;CAAG;AAUpF;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,2BAA4B,SAAQ,OAAwC;CAAG;AAW5F;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,uBAAwB,SAAQ,OA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CAAC,CAAC","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 Viewport\n */\n\nimport { Matrix3d, Point3d, Vector3d } from \"@itwin/core-geometry\";\nimport type { StandardViewId, Viewport } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport { Face } from \"../navigationaids/Cube.js\";\nimport type { ListenerType } from \"@itwin/core-react/internal\";\n\n/** Arguments for [[DrawingViewportChangeEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface DrawingViewportChangeEventArgs {\n rotation: Matrix3d;\n origin: Point3d;\n complete: boolean;\n}\n\n/** Drawing View Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class DrawingViewportChangeEvent extends UiEvent<DrawingViewportChangeEventArgs> {}\n\n/** Arguments for [[CubeRotationChangeEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface CubeRotationChangeEventArgs {\n rotMatrix: Matrix3d;\n face: Face;\n complete?: boolean;\n}\n\n/** 3d Cube Rotation Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class CubeRotationChangeEvent extends UiEvent<CubeRotationChangeEventArgs> {}\n\n/** Arguments for [[StandardRotationChangeEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface StandardRotationChangeEventArgs {\n standardRotation: StandardViewId;\n}\n\n/** Standard Rotation Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardRotationChangeEvent extends UiEvent<StandardRotationChangeEventArgs> {}\n\n/** Arguments for [[ViewRotationChangeEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface ViewRotationChangeEventArgs {\n viewport: Viewport;\n animationTime?: number;\n}\n\n/** View Rotation Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class ViewRotationChangeEvent extends UiEvent<ViewRotationChangeEventArgs> {}\n\n/** Arguments for [[ViewClassFullNameChangedEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface ViewClassFullNameChangedEventArgs {\n viewport: Viewport;\n oldName: string;\n newName: string;\n}\n\n/** View Class Full Name Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class ViewClassFullNameChangedEvent extends UiEvent<ViewClassFullNameChangedEventArgs> {}\n\n/** Arguments for [[ViewIdChangedEvent]]\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface ViewIdChangedEventArgs {\n viewport: Viewport;\n oldId: string;\n newId: string;\n}\n\n/** View Id Change event\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class ViewIdChangedEvent extends UiEvent<ViewIdChangedEventArgs> {}\n\n/** Viewport Rotation events and methods\n * @public\n */\nexport class ViewportComponentEvents {\n private static _removeListener?: () => void;\n\n public static initialize() {\n if (undefined !== this._removeListener) return;\n\n this._removeListener =\n IModelApp.viewManager.onSelectedViewportChanged.addListener(\n ViewportComponentEvents._handleSelectedViewportChanged\n );\n }\n\n /** @internal - for unit testing */\n public static terminate() {\n if (this._removeListener) {\n this._removeListener();\n this._removeListener = undefined;\n }\n }\n\n public static face = Face.None;\n public static readonly origin = Point3d.createZero();\n public static readonly extents = Vector3d.createZero();\n public static readonly rotationMatrix = Matrix3d.createIdentity();\n public static readonly onDrawingViewportChangeEvent =\n new DrawingViewportChangeEvent(); // eslint-disable-line deprecation/deprecation\n public static readonly onCubeRotationChangeEvent =\n new CubeRotationChangeEvent(); // eslint-disable-line deprecation/deprecation\n public static readonly onStandardRotationChangeEvent =\n new StandardRotationChangeEvent(); // eslint-disable-line deprecation/deprecation\n public static readonly onViewRotationChangeEvent =\n new ViewRotationChangeEvent(); // eslint-disable-line deprecation/deprecation\n public static readonly onViewClassFullNameChangedEvent =\n new ViewClassFullNameChangedEvent(); // eslint-disable-line deprecation/deprecation\n // eslint-disable-next-line deprecation/deprecation\n public static readonly onViewIdChangedEvent = new ViewIdChangedEvent();\n\n private static _handleSelectedViewportChanged: ListenerType<\n typeof IModelApp.viewManager.onSelectedViewportChanged\n > = (args) => {\n if (args.current) ViewportComponentEvents.setViewMatrix(args.current);\n };\n\n public static setCubeMatrix(\n rotMatrix: Matrix3d,\n face = Face.None,\n complete: boolean = false\n ): void {\n this.rotationMatrix.setFrom(rotMatrix);\n this.face = face;\n this.onCubeRotationChangeEvent.emit({ rotMatrix, complete, face });\n }\n\n public static setDrawingViewportState(\n origin: Point3d,\n rotation: Matrix3d,\n complete: boolean = false\n ): void {\n this.onDrawingViewportChangeEvent.emit({ origin, rotation, complete });\n }\n\n public static setStandardRotation(standardRotation: StandardViewId): void {\n this.onStandardRotationChangeEvent.emit({ standardRotation });\n }\n\n public static setViewMatrix(\n viewport: Viewport,\n animationTime?: number\n ): void {\n // When handling onViewChanged, use setTimeout\n setTimeout(() => {\n if (viewport.view) {\n this.origin.setFrom(viewport.view.getOrigin());\n this.extents.setFrom(viewport.view.getExtents());\n }\n this.rotationMatrix.setFrom(viewport.rotation);\n\n this.onViewRotationChangeEvent.emit({ viewport, animationTime });\n });\n }\n}\n"]}
@@ -0,0 +1,77 @@
1
+ export { UiIModelComponents } from "./imodel-components-react/UiIModelComponents.js";
2
+ export { AlphaSlider, AlphaSliderProps, } from "./imodel-components-react/color/AlphaSlider.js";
3
+ export { ColorPickerButton, ColorPickerProps, } from "./imodel-components-react/color/ColorPickerButton.js";
4
+ export { ColorPickerDialog, ColorPickerDialogProps, } from "./imodel-components-react/color/ColorPickerDialog.js";
5
+ export { ColorPickerPopup, ColorPickerPopupProps, } from "./imodel-components-react/color/ColorPickerPopup.js";
6
+ export { HueSlider, HueSliderProps, } from "./imodel-components-react/color/HueSlider.js";
7
+ export { SaturationPicker, SaturationPickerProps, } from "./imodel-components-react/color/SaturationPicker.js";
8
+ export { ColorSwatch, ColorSwatchProps, } from "./imodel-components-react/color/Swatch.js";
9
+ export { ColorEditor, ColorPropertyEditor, } from "./imodel-components-react/editors/ColorEditor.js";
10
+ export { WeightEditor, WeightPropertyEditor, } from "./imodel-components-react/editors/WeightEditor.js";
11
+ export { QuantityInput, QuantityProps, } from "./imodel-components-react/inputs/QuantityInput.js";
12
+ export { QuantityNumberInput, QuantityNumberInputProps, StepFunctionProp, } from "./imodel-components-react/inputs/QuantityNumberInput.js";
13
+ export { LineWeightSwatch, LineWeightSwatchProps, } from "./imodel-components-react/lineweight/Swatch.js";
14
+ export { WeightPickerButton, WeightPickerProps, } from "./imodel-components-react/lineweight/WeightPickerButton.js";
15
+ export { Cube, CubeProps, Face, } from "./imodel-components-react/navigationaids/Cube.js";
16
+ export { CubeNavigationAid, CubeNavigationAidProps, CubeNavigationHitBoxX, CubeNavigationHitBoxY, CubeNavigationHitBoxZ, } from "./imodel-components-react/navigationaids/CubeNavigationAid.js";
17
+ export { DrawingNavigationAid, DrawingNavigationAidProps, } from "./imodel-components-react/navigationaids/DrawingNavigationAid.js";
18
+ export { FormatPanel, FormatPanelProps, } from "./imodel-components-react/quantityformat/FormatPanel.js";
19
+ export { FormatPrecision, FormatPrecisionProps, } from "./imodel-components-react/quantityformat/FormatPrecision.js";
20
+ export { FormatSample, FormatSampleProps, } from "./imodel-components-react/quantityformat/FormatSample.js";
21
+ export { FormatTypeOption, FormatTypeOptionProps, } from "./imodel-components-react/quantityformat/FormatType.js";
22
+ export { FormatUnitLabel, FormatUnitLabelProps, } from "./imodel-components-react/quantityformat/FormatUnitLabel.js";
23
+ export { FormatUnits, FormatUnitsProps, } from "./imodel-components-react/quantityformat/FormatUnits.js";
24
+ export { MiscFormatOptions, MiscFormatOptionsProps, } from "./imodel-components-react/quantityformat/MiscFormatOptions.js";
25
+ export { QuantityFormatPanel, QuantityFormatPanelProps, } from "./imodel-components-react/quantityformat/QuantityFormatPanel.js";
26
+ export { AnimationFractionChangeHandler, PlaybackSettings, PlaybackSettingsChangeHandler, SolarDataProvider, SolarPlaybackProgressHandler, TimelineDataProvider, TimelineDateDisplay, TimelinePausePlayAction, TimelinePausePlayArgs, TimelineScale, } from "./imodel-components-react/timeline/interfaces.js";
27
+ export { BaseTimelineDataProvider } from "./imodel-components-react/timeline/BaseTimelineDataProvider.js";
28
+ export { TimelineComponent, TimelineComponentProps, TimelineDateMarkerProps, TimelineMenuItemOption, TimelineMenuItemProps, } from "./imodel-components-react/timeline/TimelineComponent.js";
29
+ export { SolarTimeline } from "./imodel-components-react/timeline/SolarTimeline.js";
30
+ export { BaseSolarDataProvider } from "./imodel-components-react/timeline/BaseSolarDataProvider.js";
31
+ export { ViewStateProp, ViewportComponent, ViewportProps, } from "./imodel-components-react/viewport/ViewportComponent.js";
32
+ export { ViewportComponentEvents, CubeRotationChangeEvent, CubeRotationChangeEventArgs, DrawingViewportChangeEvent, DrawingViewportChangeEventArgs, StandardRotationChangeEvent, StandardRotationChangeEventArgs, ViewClassFullNameChangedEvent, ViewClassFullNameChangedEventArgs, ViewIdChangedEvent, ViewIdChangedEventArgs, ViewRotationChangeEvent, ViewRotationChangeEventArgs, } from "./imodel-components-react/viewport/ViewportComponentEvents.js";
33
+ /** @docs-package-description
34
+ * The imodel-components-react package contains React components that depend on the core-frontend, core-common or core-quantity packages.
35
+ * The components pertain to Color, Cube, LineWeight, Navigation Aids, Quantity Inputs, Timeline and Viewport.
36
+ */
37
+ /**
38
+ * @docs-group-description Color
39
+ * Classes and components for working with and picking a Color.
40
+ */
41
+ /**
42
+ * @docs-group-description Common
43
+ * Common classes used across various UI components.
44
+ */
45
+ /**
46
+ * @docs-group-description Cube
47
+ * Component for 3D Cube.
48
+ */
49
+ /**
50
+ * @docs-group-description Inputs
51
+ * Input Components that format and parse input for IModelApps.
52
+ */
53
+ /**
54
+ * @docs-group-description LineWeight
55
+ * Classes and components for working with and picking a Line Weight.
56
+ */
57
+ /**
58
+ * @docs-group-description NavigationAids
59
+ * Classes and components for working with Navigation Aids.
60
+ */
61
+ /**
62
+ * @docs-group-description PropertyEditors
63
+ * Classes and components for working with Property Editors.
64
+ */
65
+ /**
66
+ * @docs-group-description QuantityFormat
67
+ * Classes and components for working with a Quantity Formats.
68
+ */
69
+ /**
70
+ * @docs-group-description Timeline
71
+ * Classes and components that provide a timeline
72
+ */
73
+ /**
74
+ * @docs-group-description Viewport
75
+ * Classes and components for working with a Viewport.
76
+ */
77
+ //# sourceMappingURL=imodel-components-react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imodel-components-react.d.ts","sourceRoot":"","sources":["../src/imodel-components-react.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EACL,WAAW,EACX,gBAAgB,GACjB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,SAAS,EACT,cAAc,GACf,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,qDAAqD,CAAC;AAC7D,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