@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
@@ -1,20 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { FormatterSpec } from "@itwin/core-quantity";
6
- import type { CommonProps } from "@itwin/core-react";
7
- /** Properties of [[FormatSample]] component.
8
- * @alpha
9
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatSample>`
10
- */
11
- export interface FormatSampleProps extends CommonProps {
12
- formatSpec?: FormatterSpec;
13
- initialMagnitude?: number;
14
- hideLabels?: boolean;
15
- }
16
- /** Component to show the persistence value and formatted value given a FormatterSpec.
17
- * @alpha
18
- */
19
- export declare function FormatSample(props: FormatSampleProps): React.JSX.Element;
20
- //# sourceMappingURL=FormatSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatSample.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatSample.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD;;;GAGG;AAEH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AAEH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAqFpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatSample.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatSample.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAanD;;GAEG;AACH,mDAAmD;AACnD,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3D,MAAM,EAA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V,CACF,CACN,CACJ,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\nimport type { FormatterSpec } from \"@itwin/core-quantity\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Icon } from \"@itwin/core-react\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport { SvgProgressForward } from \"@itwin/itwinui-icons-react\";\nimport { useTranslation } from \"../useTranslation\";\n\n/** Properties of [[FormatSample]] component.\n * @alpha\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatSample>`\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface FormatSampleProps extends CommonProps {\n formatSpec?: FormatterSpec;\n initialMagnitude?: number;\n hideLabels?: boolean;\n}\n\n/** Component to show the persistence value and formatted value given a FormatterSpec.\n * @alpha\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function FormatSample(props: FormatSampleProps) {\n const { initialMagnitude, formatSpec, hideLabels } = props;\n const { translate } = useTranslation();\n const initialValue = initialMagnitude ?? 0;\n const [magnitude, setMagnitude] = React.useState(initialValue);\n const [sampleValue, setSampleValue] = React.useState(initialValue.toString());\n\n React.useEffect(() => {\n const value = initialMagnitude ?? 0;\n setMagnitude(value);\n setSampleValue(value.toString());\n }, [initialMagnitude]);\n\n const handleOnValueBlur = React.useCallback(() => {\n let newValue = Number.parseFloat(sampleValue);\n if (Number.isNaN(newValue)) newValue = 0;\n setMagnitude(newValue);\n setSampleValue(newValue.toString());\n }, [sampleValue]);\n\n const handleOnValueChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n setSampleValue(event.target.value);\n },\n []\n );\n\n const handleKeyDown = React.useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === Key.Enter.valueOf()) {\n let newValue = Number.parseFloat(sampleValue);\n if (Number.isNaN(newValue)) newValue = 0;\n setMagnitude(newValue);\n setSampleValue(newValue.toString());\n e.preventDefault();\n }\n },\n [sampleValue]\n );\n\n const activePersistenceUnitLabel = formatSpec\n ? formatSpec.persistenceUnit.label\n : \"\";\n const formattedValue = formatSpec\n ? formatSpec.applyFormatting(magnitude)\n : \"\";\n\n return (\n <>\n {!hideLabels && (\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.value\")}\n </span>\n )}\n <span className=\"components-inline\">\n <Input\n data-testid=\"format-sample-input\"\n className=\"components-quantity-persistence-input\"\n value={sampleValue}\n onChange={handleOnValueChange}\n onKeyDown={handleKeyDown}\n onBlur={handleOnValueBlur}\n size=\"small\"\n />\n {activePersistenceUnitLabel}\n </span>\n {!hideLabels && (\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.formatted\")}\n </span>\n )}\n <span data-testid=\"progress-forward\">\n {hideLabels && formattedValue.length > 0 && (\n // eslint-disable-next-line deprecation/deprecation\n <Icon iconSpec={<SvgProgressForward />} />\n )}\n <span\n data-testid=\"format-sample-formatted\"\n className={\"uicore-label components-quantity-formatted-sample\"}\n >\n {formattedValue}\n </span>\n </span>\n </>\n );\n}\n"]}
@@ -1,19 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import type { FormatProps } from "@itwin/core-quantity";
7
- /** Properties of [[FormatTypeOption]] component.
8
- * @alpha
9
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatTypeOption>`
10
- */
11
- export interface FormatTypeOptionProps extends CommonProps {
12
- formatProps: FormatProps;
13
- onChange?: (format: FormatProps) => void;
14
- }
15
- /** Component to set the Quantity Format type.
16
- * @alpha
17
- */
18
- export declare function FormatTypeOption(props: FormatTypeOptionProps): React.JSX.Element;
19
- //# sourceMappingURL=FormatType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatType.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatType.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkExD;;;GAGG;AAEH,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AAED;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAwD5D"}
@@ -1,19 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import type { FormatProps } from "@itwin/core-quantity";
7
- /** Properties of [[FormatUnitLabel]] component.
8
- * @alpha
9
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatUnitLabel>`
10
- */
11
- export interface FormatUnitLabelProps extends CommonProps {
12
- formatProps: FormatProps;
13
- onUnitLabelChange?: (format: FormatProps) => void;
14
- }
15
- /** Component to set the label separator definition in a Quantity Format and if it the label is to be displayed.
16
- * @alpha
17
- */
18
- export declare function FormatUnitLabel(props: FormatUnitLabelProps): React.JSX.Element;
19
- //# sourceMappingURL=FormatUnitLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatUnitLabel.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnitLabel.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAqDxD;;;GAGG;AAEH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACnD;AAED;;GAEG;AAEH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAuF1D"}
@@ -1,21 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import type { FormatProps, UnitProps, UnitsProvider } from "@itwin/core-quantity";
7
- /** Properties of [[FormatUnits]] component.
8
- * @alpha
9
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatUnits>`
10
- */
11
- export interface FormatUnitsProps extends CommonProps {
12
- initialFormat: FormatProps;
13
- persistenceUnit?: UnitProps;
14
- unitsProvider: UnitsProvider;
15
- onUnitsChange?: (format: FormatProps) => void;
16
- }
17
- /** Component to show/edit Units used for Quantity Formatting.
18
- * @alpha
19
- */
20
- export declare function FormatUnits(props: FormatUnitsProps): React.JSX.Element;
21
- //# sourceMappingURL=FormatUnits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatUnits.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatUnits.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACd,MAAM,sBAAsB,CAAC;AAK9B;;;GAGG;AAEH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,aAAa,EAAE,WAAW,CAAC;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,aAAa,EAAE,aAAa,CAAC;IA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AC,MAAM,IAAI,EAAE,EACzC,QAAQ,EAAE,oBAAoB,EAC9B,IAAI,EAAC,OAAO,GACZ,CACD,CACJ,CACF,CACJ,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type {\n FormatProps,\n UnitProps,\n UnitsProvider,\n} from \"@itwin/core-quantity\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport { UnitDescr } from \"./misc/UnitDescr\";\nimport { useTranslation } from \"../useTranslation\";\n\n/** Properties of [[FormatUnits]] component.\n * @alpha\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatUnits>`\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface FormatUnitsProps extends CommonProps {\n initialFormat: FormatProps;\n persistenceUnit?: UnitProps;\n unitsProvider: UnitsProvider;\n onUnitsChange?: (format: FormatProps) => void;\n}\n\n/** Component to show/edit Units used for Quantity Formatting.\n * @alpha\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function FormatUnits(props: FormatUnitsProps) {\n const { initialFormat, persistenceUnit, unitsProvider, onUnitsChange } =\n props;\n const { translate } = useTranslation();\n const initialFormatRef = React.useRef<FormatProps>(initialFormat);\n const [formatProps, setFormatProps] = React.useState(initialFormat);\n\n React.useEffect(() => {\n if (initialFormatRef.current !== initialFormat) {\n initialFormatRef.current = initialFormat;\n setFormatProps(initialFormat);\n }\n }, [initialFormat]);\n\n const handleSetFormatProps = React.useCallback(\n (newProps: FormatProps) => {\n setFormatProps(newProps);\n onUnitsChange && onUnitsChange(newProps);\n },\n [onUnitsChange]\n );\n\n const handleUnitLabelChange = React.useCallback(\n (newLabel: string, index: number) => {\n if (\n formatProps.composite &&\n formatProps.composite.units.length > index &&\n index >= 0\n ) {\n const units = formatProps.composite.units.map((entry, ndx) => {\n if (index === ndx) return { name: entry.name, label: newLabel };\n else return entry;\n });\n\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleUnitChange = React.useCallback(\n (newUnit: string, index: number) => {\n const unitParts = newUnit.split(/:/);\n if (unitParts[0] === \"REMOVEUNIT\") {\n if (formatProps.composite && formatProps.composite.units.length > 1) {\n const units = [...formatProps.composite.units];\n units.pop();\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n } else if (unitParts[0] === \"ADDSUBUNIT\") {\n const units =\n formatProps.composite && formatProps.composite.units.length\n ? [\n ...formatProps.composite.units,\n { name: unitParts[1], label: unitParts[2] },\n ]\n : [{ name: unitParts[1], label: unitParts[2] }];\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n } else {\n if (\n formatProps.composite &&\n formatProps.composite.units.length > index &&\n index >= 0\n ) {\n const units = formatProps.composite.units.map((entry, ndx) => {\n if (index === ndx)\n return { name: unitParts[0], label: unitParts[1] };\n else return entry;\n });\n const composite = { ...formatProps.composite, units };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n } else if (!formatProps.composite) {\n const composite = {\n units: [{ name: unitParts[0], label: unitParts[1] }],\n };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n }\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleOnSpacerChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (formatProps.composite) {\n const spacerValue = e.target.value.length ? e.target.value[0] : \"\"; // spacer can only be empty or a single character\n const composite = { ...formatProps.composite, spacer: spacerValue };\n const newFormatProps = { ...formatProps, composite };\n handleSetFormatProps(newFormatProps);\n }\n },\n [formatProps, handleSetFormatProps]\n );\n\n return (\n <>\n {formatProps.composite?.units\n ? formatProps.composite.units.map((value, index) => (\n <UnitDescr\n key={value.name}\n name={value.name}\n label={value.label ?? \"\"}\n parentUnitName={\n index > 0\n ? formatProps.composite!.units[index - 1].name\n : undefined\n }\n unitsProvider={unitsProvider}\n index={index}\n onUnitChange={handleUnitChange}\n onLabelChange={handleUnitLabelChange}\n readonly={index < formatProps.composite!.units.length - 1}\n />\n ))\n : persistenceUnit && (\n <UnitDescr\n key={persistenceUnit.name}\n name={persistenceUnit.name}\n label={persistenceUnit.label}\n unitsProvider={unitsProvider}\n index={0}\n onUnitChange={handleUnitChange}\n onLabelChange={handleUnitLabelChange}\n />\n )}\n\n {formatProps.composite?.units &&\n formatProps.composite.units.length > 1 && (\n <>\n <span key={\"composite-spacer-label\"} className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.compositeSpacer\")}\n </span>\n <Input\n key={\"composite-spacer\"}\n data-testid=\"composite-spacer\"\n value={formatProps.composite.spacer ?? \"\"}\n onChange={handleOnSpacerChange}\n size=\"small\"\n />\n </>\n )}\n </>\n );\n}\n"]}
@@ -1,23 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import type { FormatProps } from "@itwin/core-quantity";
7
- /** Properties of [[MiscFormatOptions]] component.
8
- * @alpha
9
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof MiscFormatOptions>`
10
- */
11
- export interface MiscFormatOptionsProps extends CommonProps {
12
- formatProps: FormatProps;
13
- onChange?: (format: FormatProps) => void;
14
- enableMinimumProperties?: boolean;
15
- showOptions: boolean;
16
- onShowHideOptions: (show: boolean) => void;
17
- children?: React.ReactNode;
18
- }
19
- /** Component use to set miscellaneous properties is a Formatted Quantity.
20
- * @alpha
21
- */
22
- export declare function MiscFormatOptions(props: MiscFormatOptionsProps): React.JSX.Element;
23
- //# sourceMappingURL=MiscFormatOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MiscFormatOptions.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/MiscFormatOptions.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAqBxE;;;GAGG;AAEH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;GAEG;AAEH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAmW9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MiscFormatOptions.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/MiscFormatOptions.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EACL,MAAM,EACN,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,k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,CACnB,cAAc,EACd,UAAU,KAAK,UAAU,CAAC,UAAU,IAAI,iBAAiB,CAC1D,IAEA,SAAS,CAAC,2CAA2C,CAAC,CAClD;YACP,oBAAC,sBAAsB,mBACT,0BAA0B,EACtC,IAAI,EACF,WAAW,CAAC,cAAc;oBAC1B,WAAW,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC;oBACnC,CAAC,CAAC,mBAAmB,CAAC,WAAW,CAAC,cAAc,EAAE,QAAQ,CAAC;oBAC3D,CAAC,CAAC,cAAc,CAAC,UAAU,EAE/B,QAAQ,EAAE,UAAU,KAAK,UAAU,CAAC,UAAU,EAC9C,QAAQ,EAAE,0BAA0B,GACpC;YAED,KAAK,CAAC,QAAQ;YAEd,uBAAuB,IAAI,WAAW,IAAI,CACzC,2BACE,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,qCAAqC,EAChD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,IAEV,SAAS,CAAC,iCAAiC,CAAC,CAC3C,CACL,CACA,CACJ,CACA,CACJ,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 QuantityFormat\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Checkbox } from \"@itwin/itwinui-react\";\nimport type { FormatProps, ShowSignOption } from \"@itwin/core-quantity\";\nimport {\n Format,\n FormatTraits,\n FormatType,\n getTraitString,\n parseFormatType,\n parseScientificType,\n parseShowSignOption,\n ScientificType,\n scientificTypeToString,\n showSignOptionToString,\n} from \"@itwin/core-quantity\";\nimport { SignOptionSelector } from \"./misc/SignOption\";\nimport { ThousandsSeparator } from \"./misc/ThousandsSeparator\";\nimport { DecimalSeparatorSelector } from \"./misc/DecimalSeparator\";\nimport { ScientificTypeSelector } from \"./misc/ScientificType\";\nimport { StationSeparatorSelector } from \"./misc/StationSeparatorSelector\";\nimport { StationSizeSelector } from \"./misc/StationSizeSelector\";\nimport { useTranslation } from \"../useTranslation\";\n\n/** Properties of [[MiscFormatOptions]] component.\n * @alpha\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof MiscFormatOptions>`\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface MiscFormatOptionsProps extends CommonProps {\n formatProps: FormatProps;\n onChange?: (format: FormatProps) => void;\n enableMinimumProperties?: boolean;\n showOptions: boolean;\n onShowHideOptions: (show: boolean) => void;\n children?: React.ReactNode;\n}\n\n/** Component use to set miscellaneous properties is a Formatted Quantity.\n * @alpha\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function MiscFormatOptions(props: MiscFormatOptionsProps) {\n const {\n formatProps,\n onChange,\n showOptions,\n onShowHideOptions,\n enableMinimumProperties,\n } = props;\n const { translate } = useTranslation();\n\n const handleSetFormatProps = React.useCallback(\n (newFormatProps: FormatProps) => {\n onChange && onChange(newFormatProps);\n },\n [onChange]\n );\n\n const isFormatTraitSet = React.useCallback(\n (trait: FormatTraits) => {\n return Format.isFormatTraitSetInProps(formatProps, trait);\n },\n [formatProps]\n );\n\n const handleShowSignChange = React.useCallback(\n (option: ShowSignOption) => {\n const newShowSignOption = showSignOptionToString(option);\n const newFormatProps = {\n ...formatProps,\n showSignOption: newShowSignOption,\n };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const setFormatTrait = React.useCallback(\n (trait: FormatTraits, setActive: boolean) => {\n const traitStr = getTraitString(trait);\n let formatTraits: string[] = [traitStr];\n if (setActive) {\n // setting trait\n if (formatProps.formatTraits) {\n const traits = Array.isArray(formatProps.formatTraits)\n ? formatProps.formatTraits\n : formatProps.formatTraits.split(/,|;|\\|/);\n if (!traits.find((traitEntry) => traitStr === traitEntry)) {\n formatTraits = [...traits, traitStr];\n }\n }\n } else {\n // clearing trait\n if (!formatProps.formatTraits) return;\n const traits = Array.isArray(formatProps.formatTraits)\n ? formatProps.formatTraits\n : formatProps.formatTraits.split(/,|;|\\|/);\n formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);\n }\n const newFormatProps = { ...formatProps, formatTraits };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleShowTrailingZeroesChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.TrailZeroes, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const handleKeepDecimalPointChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.KeepDecimalPoint, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const handleKeepSingleZeroChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.KeepSingleZero, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const handleZeroEmptyChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.ZeroEmpty, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const handleUseFractionDashChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.FractionDash, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const handleDecimalSeparatorChange = React.useCallback(\n (decimalSeparator: string) => {\n let thousandSeparator = formatProps.thousandSeparator;\n // make sure 1000 and decimal separator do not match\n if (isFormatTraitSet(FormatTraits.Use1000Separator)) {\n switch (decimalSeparator) {\n case \".\":\n thousandSeparator = \",\";\n break;\n case \",\":\n thousandSeparator = \".\";\n break;\n }\n }\n const newFormatProps = {\n ...formatProps,\n thousandSeparator,\n decimalSeparator,\n };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, isFormatTraitSet, handleSetFormatProps]\n );\n\n const handleScientificTypeChange = React.useCallback(\n (type: ScientificType) => {\n const newFormatProps = {\n ...formatProps,\n scientificType: scientificTypeToString(type),\n };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleFormatChange = React.useCallback(\n (newFormatProps: FormatProps) => {\n handleSetFormatProps(newFormatProps);\n },\n [handleSetFormatProps]\n );\n\n const formatType = React.useMemo(\n () => parseFormatType(formatProps.type, \"format\"),\n [formatProps.type]\n );\n const showSignOption = React.useMemo(\n () =>\n parseShowSignOption(\n formatProps.showSignOption ?? \"onlyNegative\",\n \"format\"\n ),\n [formatProps.showSignOption]\n );\n\n const handleToggleButtonClick = React.useCallback(() => {\n onShowHideOptions(!showOptions);\n }, [onShowHideOptions, showOptions]);\n\n const handleKeyUpOnLink = React.useCallback(\n (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n if (e.key === Key.Enter.valueOf() || e.key === \" \") {\n onShowHideOptions(!showOptions);\n e.preventDefault();\n }\n },\n [onShowHideOptions, showOptions]\n );\n\n const handleStationSeparatorChange = React.useCallback(\n (value: string) => {\n const newFormatProps = { ...formatProps, stationSeparator: value };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleStationOffsetChange = React.useCallback(\n (value: number) => {\n const newFormatProps = { ...formatProps, stationOffsetSize: value };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n return (\n <>\n {enableMinimumProperties && !showOptions && (\n <a // eslint-disable-line jsx-a11y/anchor-is-valid\n onClick={handleToggleButtonClick}\n onKeyUp={handleKeyUpOnLink}\n className={\"components-quantityFormat-more-less\"}\n role=\"link\"\n tabIndex={0}\n >\n {translate(\"QuantityFormat.labels.moreLabel\")}\n </a>\n )}\n {(!enableMinimumProperties || showOptions) && (\n <>\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.signOptionLabel\")}\n </span>\n <SignOptionSelector\n data-testid=\"sign-option-selector\"\n signOption={showSignOption}\n onChange={handleShowSignChange}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType !== FormatType.Station && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.stationOffsetLabel\")}\n </span>\n <StationSizeSelector\n data-testid=\"station-size-selector\"\n value={formatProps.stationOffsetSize ?? 2}\n disabled={formatType !== FormatType.Station}\n onChange={handleStationOffsetChange}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType !== FormatType.Station && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.stationSeparatorLabel\")}\n </span>\n <StationSeparatorSelector\n data-testid=\"station-separator-selector\"\n separator={\n undefined !== formatProps.stationSeparator\n ? formatProps.stationSeparator\n : \"+\"\n }\n disabled={formatType !== FormatType.Station}\n onChange={handleStationSeparatorChange}\n />\n\n <ThousandsSeparator\n formatProps={formatProps}\n onChange={handleFormatChange}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType === FormatType.Fractional && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.decimalSeparatorLabel\")}\n </span>\n <DecimalSeparatorSelector\n data-testid=\"decimal-separator-selector\"\n separator={formatProps.decimalSeparator ?? \".\"}\n onChange={handleDecimalSeparatorChange}\n disabled={formatType === FormatType.Fractional}\n />\n\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.showTrailZerosLabel\")}\n </span>\n <Checkbox\n data-testid=\"show-trail-zeros\"\n checked={isFormatTraitSet(FormatTraits.TrailZeroes)}\n onChange={handleShowTrailingZeroesChange}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType === FormatType.Fractional && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.keepDecimalPointLabel\")}\n </span>\n <Checkbox\n data-testid=\"keep-decimal-point\"\n checked={isFormatTraitSet(FormatTraits.KeepDecimalPoint)}\n onChange={handleKeepDecimalPointChange}\n />\n\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.keepSingleZeroLabel\")}\n </span>\n <Checkbox\n data-testid=\"keep-single-zero\"\n checked={isFormatTraitSet(FormatTraits.KeepSingleZero)}\n onChange={handleKeepSingleZeroChange}\n />\n\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.zeroEmptyLabel\")}\n </span>\n <Checkbox\n data-testid=\"zero-empty\"\n checked={isFormatTraitSet(FormatTraits.ZeroEmpty)}\n onChange={handleZeroEmptyChange}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType !== FormatType.Fractional && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.fractionDashLabel\")}\n </span>\n <Checkbox\n data-testid=\"fraction-dash\"\n checked={isFormatTraitSet(FormatTraits.FractionDash)}\n onChange={handleUseFractionDashChange}\n disabled={formatType !== FormatType.Fractional}\n />\n\n <span\n className={classnames(\n \"uicore-label\",\n formatType !== FormatType.Scientific && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.scientificTypeLabel\")}\n </span>\n <ScientificTypeSelector\n data-testid=\"scientific-type-selector\"\n type={\n formatProps.scientificType &&\n formatProps.scientificType.length > 0\n ? parseScientificType(formatProps.scientificType, \"custom\")\n : ScientificType.Normalized\n }\n disabled={formatType !== FormatType.Scientific}\n onChange={handleScientificTypeChange}\n />\n\n {props.children}\n\n {enableMinimumProperties && showOptions && (\n <a // eslint-disable-line jsx-a11y/anchor-is-valid\n onClick={handleToggleButtonClick}\n onKeyUp={handleKeyUpOnLink}\n className={\"components-quantityFormat-more-less\"}\n role=\"link\"\n tabIndex={0}\n >\n {translate(\"QuantityFormat.labels.lessLabel\")}\n </a>\n )}\n </>\n )}\n </>\n );\n}\n"]}
@@ -1,24 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { QuantityTypeArg } from "@itwin/core-frontend";
6
- import type { FormatProps } from "@itwin/core-quantity";
7
- import type { CommonProps } from "@itwin/core-react";
8
- /** Properties of [[QuantityFormatPanel]] component.
9
- * @alpha
10
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof QuantityFormatPanel>`
11
- */
12
- export interface QuantityFormatPanelProps extends CommonProps {
13
- quantityType: QuantityTypeArg;
14
- onFormatChange?: (format: FormatProps) => void;
15
- /** props below are to be passed on to FormatPanel */
16
- showSample?: boolean;
17
- initialMagnitude?: number;
18
- enableMinimumProperties?: boolean;
19
- }
20
- /** Component to set properties that control Quantity Formatting.
21
- * @alpha
22
- */
23
- export declare function QuantityFormatPanel(props: QuantityFormatPanelProps): React.JSX.Element;
24
- //# sourceMappingURL=QuantityFormatPanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuantityFormatPanel.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/QuantityFormatPanel.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA8FrD;;;GAGG;AAEH,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,YAAY,EAAE,eAAe,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED;;GAEG;AAEH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,qBAsKlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuantityFormatPanel.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/QuantityFormatPanel.tsx"],"names":[],"mappings":"AAAA;;;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gB,CACjB,CAAC;QACN,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,EACD,CAAC,uBAAuB,EAAE,YAAY,CAAC,CACxC,CAAC;IAEF,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CACzC,KAAK,EACH,OAAoB,EACpB,gBAA2B,EAC3B,cAA6B,EAC7B,EAAE;QACF,OAAO,SAAS,CAAC,iBAAiB,CAAC,2BAA2B,CAC5D,YAAY,EACZ,OAAO,CACR,CAAC;IACJ,CAAC,EACD,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAC,yCAAyC,IACrD,eAAe,IAAI,WAAW,IAAI,CACjC,oBAAC,WAAW,IACV,cAAc,EAAE,qBAAqB,KACjC,UAAU,EACd,aAAa,EAAE,WAAW,EAC1B,aAAa,EAAE,SAAS,CAAC,iBAAiB,CAAC,aAAa,EACxD,eAAe,EAAE,eAAe,EAChC,sBAAsB,EAAE,sBAAsB,EAC9C,wBAAwB,EAAE,wBAAwB,EAClD,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CACG,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type {\n CustomFormatPropEditorSpec,\n QuantityTypeArg,\n} from \"@itwin/core-frontend\";\nimport {\n getQuantityTypeKey,\n IModelApp,\n isCheckboxFormatPropEditorSpec,\n isCustomQuantityTypeDefinition,\n isTextInputFormatPropEditorSpec,\n isTextSelectFormatPropEditorSpec,\n} from \"@itwin/core-frontend\";\nimport type {\n FormatProps,\n UnitProps,\n UnitsProvider,\n} from \"@itwin/core-quantity\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Checkbox, Input, Select } from \"@itwin/itwinui-react\";\nimport { FormatPanel } from \"./FormatPanel\";\nimport { DeepCompare } from \"@itwin/core-geometry\";\n\nfunction createTextInputFormatPropEditor(\n key: string,\n label: string,\n inProps: FormatProps,\n getString: (props: FormatProps) => string,\n setString: (props: FormatProps, value: string) => FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n) {\n const value = getString(inProps);\n return (\n <React.Fragment key={`${key}`}>\n <span key={`${key}-label`} className={\"uicore-label\"}>\n {label}\n </span>\n <Input\n data-testid={`${key}-editor`}\n key={`${key}-editor`}\n value={value}\n size=\"small\"\n onChange={(e) => {\n const newProps = setString(inProps, e.currentTarget.value);\n fireFormatChange(newProps);\n }}\n />\n </React.Fragment>\n );\n}\nfunction createSelectFormatPropEditor(\n key: string,\n label: string,\n options: { label: string; value: string }[],\n inProps: FormatProps,\n getString: (props: FormatProps) => string,\n setString: (props: FormatProps, value: string) => FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n) {\n const value = getString(inProps);\n return (\n <React.Fragment key={`${key}`}>\n <span key={`${key}-label`} className={\"uicore-label\"}>\n {label}\n </span>\n <Select\n data-testid={`${key}-editor`}\n key={`${key}-editor`}\n value={value}\n options={options}\n size={\"small\"}\n onChange={(newValue) => {\n const newProps = setString(inProps, newValue);\n fireFormatChange(newProps);\n }}\n />\n </React.Fragment>\n );\n}\n\nfunction createCheckboxFormatPropEditor(\n key: string,\n label: string,\n inProps: FormatProps,\n getBool: (props: FormatProps) => boolean,\n setBool: (props: FormatProps, isChecked: boolean) => FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n) {\n const isChecked = getBool(inProps);\n return (\n <React.Fragment key={`${key}`}>\n <span key={`${key}-label`} className={\"uicore-label\"}>\n {label}\n </span>\n <Checkbox\n data-testid={`${key}-editor`}\n key={`${key}-editor`}\n checked={isChecked}\n onChange={(e) => {\n const newProps = setBool(inProps, e.target.checked);\n fireFormatChange(newProps);\n }}\n />\n </React.Fragment>\n );\n}\n\nfunction formatAreEqual(obj1: FormatProps, obj2: FormatProps) {\n const compare = new DeepCompare();\n return compare.compare(obj1, obj2);\n}\n\n/** Properties of [[QuantityFormatPanel]] component.\n * @alpha\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof QuantityFormatPanel>`\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface QuantityFormatPanelProps extends CommonProps {\n quantityType: QuantityTypeArg;\n onFormatChange?: (format: FormatProps) => void;\n /** props below are to be passed on to FormatPanel */\n showSample?: boolean;\n initialMagnitude?: number;\n enableMinimumProperties?: boolean;\n}\n\n/** Component to set properties that control Quantity Formatting.\n * @alpha\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function QuantityFormatPanel(props: QuantityFormatPanelProps) {\n const { quantityType, onFormatChange, ...otherProps } = props;\n const [formatProps, setFormatProps] = React.useState<FormatProps>();\n const initialFormatProps = React.useRef<FormatProps>();\n\n const [persistenceUnit, setPersistenceUnit] = React.useState<UnitProps>();\n\n React.useEffect(() => {\n const newFormatProps =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(quantityType);\n if (!initialFormatProps.current)\n initialFormatProps.current = newFormatProps;\n setFormatProps(newFormatProps);\n const quantityTypeKey = getQuantityTypeKey(quantityType);\n const quantityTypeDefinition =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);\n if (quantityTypeDefinition)\n setPersistenceUnit(quantityTypeDefinition.persistenceUnit);\n else\n throw Error(`Unable to locate a quantity type with type ${quantityType}`);\n }, [quantityType]); // no dependencies defined as we want this to run on every render\n\n // handle case where quantityType does not change but the formatProps for that quantity type has (ie after a Set or Clear)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n React.useEffect(() => {\n const newFormatProps =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(quantityType);\n if (initialFormatProps.current && newFormatProps) {\n if (!formatAreEqual(newFormatProps, initialFormatProps.current)) {\n initialFormatProps.current = newFormatProps;\n setFormatProps(newFormatProps);\n }\n }\n }); // no dependencies defined as we want this to run on every render\n\n const handleOnFormatChanged = React.useCallback(\n async (newProps: FormatProps) => {\n setFormatProps(newProps);\n onFormatChange && onFormatChange(newProps);\n },\n [onFormatChange]\n );\n\n const createCustomPropEditors = React.useCallback(\n (\n specs: CustomFormatPropEditorSpec[],\n inProps: FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n ) => {\n return specs.map((spec, index) => {\n if (isCheckboxFormatPropEditorSpec(spec))\n return createCheckboxFormatPropEditor(\n `${spec.editorType}-${index}`,\n spec.label,\n inProps,\n spec.getBool,\n spec.setBool,\n fireFormatChange\n );\n if (isTextSelectFormatPropEditorSpec(spec))\n return createSelectFormatPropEditor(\n `${spec.editorType}-${index}`,\n spec.label,\n spec.selectOptions,\n inProps,\n spec.getString,\n spec.setString,\n fireFormatChange\n );\n\n if (isTextInputFormatPropEditorSpec(spec))\n return createTextInputFormatPropEditor(\n `${spec.editorType}-${index}`,\n spec.label,\n inProps,\n spec.getString,\n spec.setString,\n fireFormatChange\n );\n\n return <div key={index} />;\n });\n },\n []\n );\n\n const providePrimaryChildren = React.useCallback(\n (\n inProps: FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n ) => {\n const quantityTypeKey = getQuantityTypeKey(quantityType);\n const quantityTypeDefinition =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);\n if (\n quantityTypeDefinition &&\n isCustomQuantityTypeDefinition(quantityTypeDefinition) &&\n quantityTypeDefinition.isCompatibleFormatProps(inProps)\n ) {\n if (quantityTypeDefinition.primaryPropEditorSpecs)\n return createCustomPropEditors(\n quantityTypeDefinition.primaryPropEditorSpecs,\n inProps,\n fireFormatChange\n );\n }\n return null;\n },\n [createCustomPropEditors, quantityType]\n );\n\n const provideSecondaryChildren = React.useCallback(\n (\n inProps: FormatProps,\n fireFormatChange: (newProps: FormatProps) => void\n ) => {\n const quantityTypeKey = getQuantityTypeKey(quantityType);\n const quantityTypeDefinition =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);\n if (\n quantityTypeDefinition &&\n isCustomQuantityTypeDefinition(quantityTypeDefinition) &&\n quantityTypeDefinition.isCompatibleFormatProps(inProps)\n ) {\n if (quantityTypeDefinition.secondaryPropEditorSpecs)\n return createCustomPropEditors(\n quantityTypeDefinition.secondaryPropEditorSpecs,\n inProps,\n fireFormatChange\n );\n }\n return null;\n },\n [createCustomPropEditors, quantityType]\n );\n\n const provideFormatSpec = React.useCallback(\n async (\n inProps: FormatProps,\n _persistenceUnit: UnitProps,\n _unitsProvider: UnitsProvider\n ) => {\n return IModelApp.quantityFormatter.generateFormatterSpecByType(\n quantityType,\n inProps\n );\n },\n [quantityType]\n );\n\n return (\n <div className=\"components-quantityFormat-quantityPanel\">\n {persistenceUnit && formatProps && (\n <FormatPanel\n onFormatChange={handleOnFormatChanged}\n {...otherProps}\n initialFormat={formatProps}\n unitsProvider={IModelApp.quantityFormatter.unitsProvider}\n persistenceUnit={persistenceUnit}\n providePrimaryChildren={providePrimaryChildren}\n provideSecondaryChildren={provideSecondaryChildren}\n provideFormatSpec={provideFormatSpec}\n />\n )}\n </div>\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[DecimalPrecisionSelector]] component.
7
- * @internal
8
- */
9
- export interface DecimalPrecisionSelectorProps extends CommonProps {
10
- precision: number;
11
- onChange: (value: number) => void;
12
- }
13
- /** Component use to set Decimal Precision
14
- * the unit label.
15
- * @internal
16
- */
17
- export declare function DecimalPrecisionSelector(props: DecimalPrecisionSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=DecimalPrecision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecimalPrecision.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/DecimalPrecision.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,qBA0E5E"}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[DecimalSeparatorSelector]] component.
7
- * @internal
8
- */
9
- export interface DecimalSeparatorSelectorProps extends CommonProps {
10
- separator: string;
11
- disabled?: boolean;
12
- onChange: (value: string) => void;
13
- }
14
- /** Component use to set Decimal Separator
15
- * @internal
16
- */
17
- export declare function DecimalSeparatorSelector(props: DecimalSeparatorSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=DecimalSeparator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecimalSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/DecimalSeparator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,qBA8B5E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecimalSeparator.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/DecimalSeparator.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAoC;IAC3E,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,OAAO,GAA2B;QACtC;YACE,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;SAC3D;QACD;YACE,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;SAC3D;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAgB,EAAE,EAAE;QACnB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[DecimalSeparatorSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface DecimalSeparatorSelectorProps extends CommonProps {\n separator: string;\n disabled?: boolean;\n onChange: (value: string) => void;\n}\n\n/** Component use to set Decimal Separator\n * @internal\n */\nexport function DecimalSeparatorSelector(props: DecimalSeparatorSelectorProps) {\n const { separator, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const options: SelectOption<string>[] = [\n {\n value: \".\",\n label: translate(\"QuantityFormat.decimal_separator.point\"),\n },\n {\n value: \",\",\n label: translate(\"QuantityFormat.decimal_separator.comma\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: string) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={options}\n value={separator}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,17 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[FractionPrecisionSelector]] component.
7
- * @internal
8
- */
9
- export interface FractionPrecisionSelectorProps extends CommonProps {
10
- precision: number;
11
- onChange: (value: number) => void;
12
- }
13
- /** Component use to set Fraction precision
14
- * @internal
15
- */
16
- export declare function FractionPrecisionSelector(props: FractionPrecisionSelectorProps): React.JSX.Element;
17
- //# sourceMappingURL=FractionPrecision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FractionPrecision.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/FractionPrecision.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,8BAA+B,SAAQ,WAAW;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,8BAA8B,qBA2DtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FractionPrecision.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/FractionPrecision.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAWtD;;GAEG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAqC;IAErC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,OAAO,GAA2B;QACtC;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;SAC5D;QACD;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;SAC3D;QACD;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,2CAA2C,CAAC;SAC9D;QACD;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,0CAA0C,CAAC;SAC7D;QACD;YACE,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,SAAS,CAAC,6CAA6C,CAAC;SAChE;QACD;YACE,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,SAAS,CAAC,0CAA0C,CAAC;SAC7D;QACD;YACE,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,SAAS,CAAC,0CAA0C,CAAC;SAC7D;QACD;YACE,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,2CAA2C,CAAC;SAC9D;QACD;YACE,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,2CAA2C,CAAC;SAC9D;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAgB,EAAE,EAAE;QACnB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[FractionPrecisionSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface FractionPrecisionSelectorProps extends CommonProps {\n precision: number;\n onChange: (value: number) => void;\n}\n\n/** Component use to set Fraction precision\n * @internal\n */\nexport function FractionPrecisionSelector(\n props: FractionPrecisionSelectorProps\n) {\n const { precision, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const options: SelectOption<number>[] = [\n {\n value: 1,\n label: translate(\"QuantityFormat.fraction_precision.whole\"),\n },\n {\n value: 2,\n label: translate(\"QuantityFormat.fraction_precision.half\"),\n },\n {\n value: 4,\n label: translate(\"QuantityFormat.fraction_precision.quarter\"),\n },\n {\n value: 8,\n label: translate(\"QuantityFormat.fraction_precision.eighth\"),\n },\n {\n value: 16,\n label: translate(\"QuantityFormat.fraction_precision.sixteenth\"),\n },\n {\n value: 32,\n label: translate(\"QuantityFormat.fraction_precision.over32\"),\n },\n {\n value: 64,\n label: translate(\"QuantityFormat.fraction_precision.over64\"),\n },\n {\n value: 128,\n label: translate(\"QuantityFormat.fraction_precision.over128\"),\n },\n {\n value: 256,\n label: translate(\"QuantityFormat.fraction_precision.over256\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: number) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={options}\n value={precision}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,19 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import { ScientificType } from "@itwin/core-quantity";
7
- /** Properties of [[ScientificTypeSelector]] component.
8
- * @internal
9
- */
10
- export interface ScientificTypeSelectorProps extends CommonProps {
11
- type: ScientificType;
12
- onChange: (value: ScientificType) => void;
13
- disabled?: boolean;
14
- }
15
- /** Component use to set Scientific type.
16
- * @internal
17
- */
18
- export declare function ScientificTypeSelector(props: ScientificTypeSelectorProps): React.JSX.Element;
19
- //# sourceMappingURL=ScientificType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScientificType.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ScientificType.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKtD;;GAEG;AAEH,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,qBA8BxE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScientificType.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ScientificType.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAkC;IACvE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,aAAa,GAAmC;QACpD;YACE,KAAK,EAAE,cAAc,CAAC,UAAU;YAChC,KAAK,EAAE,SAAS,CAAC,2CAA2C,CAAC;SAC9D;QACD;YACE,KAAK,EAAE,cAAc,CAAC,cAAc;YACpC,KAAK,EAAE,SAAS,CAAC,gDAAgD,CAAC;SACnE;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAwB,EAAE,EAAE;QAC3B,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { ScientificType } from \"@itwin/core-quantity\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[ScientificTypeSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ScientificTypeSelectorProps extends CommonProps {\n type: ScientificType;\n onChange: (value: ScientificType) => void;\n disabled?: boolean;\n}\n\n/** Component use to set Scientific type.\n * @internal\n */\nexport function ScientificTypeSelector(props: ScientificTypeSelectorProps) {\n const { type, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const formatOptions: SelectOption<ScientificType>[] = [\n {\n value: ScientificType.Normalized,\n label: translate(\"QuantityFormat.scientific-type.normalized\"),\n },\n {\n value: ScientificType.ZeroNormalized,\n label: translate(\"QuantityFormat.scientific-type.zero-normalized\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: ScientificType) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={formatOptions}\n value={type}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import { ShowSignOption } from "@itwin/core-quantity";
7
- /** Properties of [[SignOptionSelector]] component.
8
- * @internal
9
- */
10
- export interface SignOptionSelectorProps extends CommonProps {
11
- signOption: ShowSignOption;
12
- onChange: (value: ShowSignOption) => void;
13
- }
14
- /** Component use to set Sign option.
15
- * @internal
16
- */
17
- export declare function SignOptionSelector(props: SignOptionSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=SignOption.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SignOption.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/SignOption.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKtD;;GAEG;AAEH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAsChE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SignOption.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/SignOption.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAWtD;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,OAAO,GAAmC;QAC9C;YACE,KAAK,EAAE,cAAc,CAAC,MAAM;YAC5B,KAAK,EAAE,SAAS,CAAC,mCAAmC,CAAC;SACtD;QACD;YACE,KAAK,EAAE,cAAc,CAAC,YAAY;YAClC,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;SAC5D;QACD;YACE,KAAK,EAAE,cAAc,CAAC,UAAU;YAChC,KAAK,EAAE,SAAS,CAAC,uCAAuC,CAAC;SAC1D;QACD;YACE,KAAK,EAAE,cAAc,CAAC,mBAAmB;YACzC,KAAK,EAAE,SAAS,CAAC,gDAAgD,CAAC;SACnE;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAwB,EAAE,EAAE;QAC3B,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { ShowSignOption } from \"@itwin/core-quantity\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[SignOptionSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface SignOptionSelectorProps extends CommonProps {\n signOption: ShowSignOption;\n onChange: (value: ShowSignOption) => void;\n}\n\n/** Component use to set Sign option.\n * @internal\n */\nexport function SignOptionSelector(props: SignOptionSelectorProps) {\n const { signOption, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const options: SelectOption<ShowSignOption>[] = [\n {\n value: ShowSignOption.NoSign,\n label: translate(\"QuantityFormat.sign_option.noSign\"),\n },\n {\n value: ShowSignOption.OnlyNegative,\n label: translate(\"QuantityFormat.sign_option.onlyNegative\"),\n },\n {\n value: ShowSignOption.SignAlways,\n label: translate(\"QuantityFormat.sign_option.signAlways\"),\n },\n {\n value: ShowSignOption.NegativeParentheses,\n label: translate(\"QuantityFormat.sign_option.negativeParentheses\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: ShowSignOption) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={options}\n value={signOption}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[StationSeparatorSelector]] component.
7
- * @internal
8
- */
9
- export interface StationSeparatorSelectorProps extends CommonProps {
10
- separator: string;
11
- disabled: boolean;
12
- onChange: (value: string) => void;
13
- }
14
- /** Component use to setStation separator.
15
- * @internal
16
- */
17
- export declare function StationSeparatorSelector(props: StationSeparatorSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=StationSeparatorSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StationSeparatorSelector.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/StationSeparatorSelector.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,qBAmD5E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StationSeparatorSelector.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/StationSeparatorSelector.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAoC;IAC3E,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAgB,EAAE,EAAE;QACnB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,iBAAiB,GAA2B;YAChD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,uCAAuC,CAAC;aAC1D;YACD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;aAC3D;YACD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;aAC3D;YACD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,wCAAwC,CAAC;aAC3D;SACF,CAAC;QACF,MAAM,qBAAqB,GAA2B,EAAE,CAAC;QACzD,IACE,SAAS;YACT,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,EAC9D,CAAC;YACD,qBAAqB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,qBAAqB,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;QACjD,OAAO,qBAAqB,CAAC;IAC/B,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[StationSeparatorSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface StationSeparatorSelectorProps extends CommonProps {\n separator: string;\n disabled: boolean;\n onChange: (value: string) => void;\n}\n\n/** Component use to setStation separator.\n * @internal\n */\nexport function StationSeparatorSelector(props: StationSeparatorSelectorProps) {\n const { separator, disabled, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n\n const handleOnChange = React.useCallback(\n (newValue: string) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n const separatorOptions = React.useMemo(() => {\n const uomDefaultEntries: SelectOption<string>[] = [\n {\n value: \"+\",\n label: translate(\"QuantityFormat.station_separator.plus\"),\n },\n {\n value: \"-\",\n label: translate(\"QuantityFormat.station_separator.minus\"),\n },\n {\n value: \" \",\n label: translate(\"QuantityFormat.station_separator.blank\"),\n },\n {\n value: \"^\",\n label: translate(\"QuantityFormat.station_separator.caret\"),\n },\n ];\n const completeListOfEntries: SelectOption<string>[] = [];\n if (\n undefined ===\n uomDefaultEntries.find((option) => option.value === separator)\n ) {\n completeListOfEntries.push({ value: separator, label: separator });\n }\n completeListOfEntries.push(...uomDefaultEntries);\n return completeListOfEntries;\n }, [separator, translate]);\n\n return (\n <Select\n options={separatorOptions}\n disabled={disabled}\n value={separator}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[StationSizeSelector]] component.
7
- * @internal
8
- */
9
- export interface StationSizeSelectorProps extends CommonProps {
10
- value: number;
11
- disabled: boolean;
12
- onChange: (value: number) => void;
13
- }
14
- /** Component use to set Station size (number of digits from right until '+').
15
- * @internal
16
- */
17
- export declare function StationSizeSelector(props: StationSizeSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=StationSizeSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StationSizeSelector.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/StationSizeSelector.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,qBA+BlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StationSizeSelector.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/StationSizeSelector.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3D,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,gBAAgB,GAA2B;QAC/C;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,iCAAiC,CAAC;SACpD;QACD;YACE,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,SAAS,CAAC,mCAAmC,CAAC;SACtD;KACF,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,QAAgB,EAAE,EAAE;QACnB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[StationSizeSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface StationSizeSelectorProps extends CommonProps {\n value: number;\n disabled: boolean;\n onChange: (value: number) => void;\n}\n\n/** Component use to set Station size (number of digits from right until '+').\n * @internal\n */\nexport function StationSizeSelector(props: StationSizeSelectorProps) {\n const { value, disabled, onChange, ...otherProps } = props;\n const { translate } = useTranslation();\n const separatorOptions: SelectOption<number>[] = [\n {\n value: 2,\n label: translate(\"QuantityFormat.station_size.two\"),\n },\n {\n value: 3,\n label: translate(\"QuantityFormat.station_size.three\"),\n },\n ];\n\n const handleOnChange = React.useCallback(\n (newValue: number) => {\n onChange && onChange(newValue);\n },\n [onChange]\n );\n\n return (\n <Select\n options={separatorOptions}\n disabled={disabled}\n value={value}\n onChange={handleOnChange}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- /** Properties of [[ThousandsSelector]] component.
7
- * @internal
8
- */
9
- export interface ThousandsSelectorProps extends CommonProps {
10
- separator: string;
11
- disabled: boolean;
12
- onChange: (value: string) => void;
13
- }
14
- /** Component use to set Quantity Format thousand group separator.
15
- * @internal
16
- */
17
- export declare function ThousandsSelector(props: ThousandsSelectorProps): React.JSX.Element;
18
- //# sourceMappingURL=ThousandsSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThousandsSelector.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSelector.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;GAEG;AAEH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAkC9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThousandsSelector.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSelector.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAYtD;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,iBAAiB,GAA2B;YAChD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;aAC5D;YACD;gBACE,KAAK,EAAE,GAAG;gBACV,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;aAC5D;SACF,CAAC;QACF,MAAM,qBAAqB,GAA2B,EAAE,CAAC;QACzD,IACE,SAAS;YACT,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,EAC9D,CAAC;YACD,qBAAqB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,qBAAqB,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;QACjD,OAAO,qBAAqB,CAAC;IAC/B,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,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 QuantityFormat\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[ThousandsSelector]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ThousandsSelectorProps extends CommonProps {\n separator: string;\n disabled: boolean;\n onChange: (value: string) => void;\n}\n\n/** Component use to set Quantity Format thousand group separator.\n * @internal\n */\nexport function ThousandsSelector(props: ThousandsSelectorProps) {\n const { separator, ...otherProps } = props;\n const { translate } = useTranslation();\n\n const separatorOptions = React.useMemo(() => {\n const uomDefaultEntries: SelectOption<string>[] = [\n {\n value: \",\",\n label: translate(\"QuantityFormat.thousand_separator.comma\"),\n },\n {\n value: \".\",\n label: translate(\"QuantityFormat.thousand_separator.point\"),\n },\n ];\n const completeListOfEntries: SelectOption<string>[] = [];\n if (\n undefined ===\n uomDefaultEntries.find((option) => option.value === separator)\n ) {\n completeListOfEntries.push({ value: separator, label: separator });\n }\n completeListOfEntries.push(...uomDefaultEntries);\n return completeListOfEntries;\n }, [separator, translate]);\n\n return (\n <Select\n options={separatorOptions}\n value={separator}\n size=\"small\"\n {...otherProps}\n />\n );\n}\n"]}
@@ -1,18 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import * as React from "react";
5
- import type { CommonProps } from "@itwin/core-react";
6
- import type { FormatProps } from "@itwin/core-quantity";
7
- /** Properties of [[ThousandsSeparator]] component.
8
- * @internal
9
- */
10
- export interface ThousandsSeparatorProps extends CommonProps {
11
- formatProps: FormatProps;
12
- onChange?: (format: FormatProps) => void;
13
- }
14
- /** Component use to set Quantity Format thousand group separator.
15
- * @internal
16
- */
17
- export declare function ThousandsSeparator(props: ThousandsSeparatorProps): React.JSX.Element;
18
- //# sourceMappingURL=ThousandsSeparator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThousandsSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSeparator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMxD;;GAEG;AAEH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAiGhE"}