@itwin/imodel-components-react 4.17.0 → 5.0.0-dev.2

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 (532) hide show
  1. package/README.md +15 -2
  2. package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
  3. package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
  4. package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
  5. package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
  6. package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
  7. package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
  8. package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
  9. package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
  10. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
  11. package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
  12. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.scss +2 -4
  13. package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
  14. package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
  15. package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
  16. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
  17. package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
  18. package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
  19. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
  20. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
  21. package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
  22. package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
  23. package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
  24. package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
  25. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
  26. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
  27. package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
  28. package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
  29. package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
  30. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
  31. package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
  32. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.scss +0 -2
  33. package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
  34. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
  35. package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
  36. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.scss +0 -2
  37. package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
  38. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
  39. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
  40. package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
  41. package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
  42. package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
  43. package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
  44. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
  45. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
  46. package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.scss +2 -4
  47. package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
  48. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
  49. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
  50. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.scss +5 -6
  51. package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
  52. package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
  53. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
  54. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
  55. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
  56. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
  57. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.scss +1 -2
  58. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
  59. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
  60. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
  61. package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.scss +9 -10
  62. package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
  63. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
  64. package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
  65. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.scss +0 -2
  66. package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
  67. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
  68. package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
  69. package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
  70. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
  71. package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
  72. package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
  73. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
  74. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
  75. package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
  76. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
  77. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
  78. package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
  79. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
  80. package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
  81. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
  82. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
  83. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
  84. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
  85. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
  86. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
  87. package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
  88. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
  89. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
  90. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
  91. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
  92. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
  93. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
  94. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
  95. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
  96. package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
  97. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
  98. package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
  99. package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
  100. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
  101. package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
  102. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
  103. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
  104. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
  105. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
  106. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
  107. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
  108. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
  109. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
  110. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
  111. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
  112. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
  113. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
  114. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
  115. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
  116. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
  117. package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
  118. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
  119. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
  120. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
  121. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
  122. package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
  123. package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
  124. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.scss +3 -5
  125. package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
  126. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
  127. package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
  128. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
  129. package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
  130. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
  131. package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
  132. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.scss +1 -1
  133. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
  134. package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
  135. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
  136. package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
  137. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.scss +0 -2
  138. package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
  139. package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
  140. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.scss +2 -4
  141. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Timeline.scss +7 -9
  142. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
  143. package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
  144. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
  145. package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
  146. package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
  147. package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
  148. package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
  149. package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
  150. package/lib/imodel-components-react/useTranslation.js.map +1 -0
  151. package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
  152. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
  153. package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
  154. package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
  155. package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
  156. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
  157. package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
  158. package/lib/imodel-components-react.d.ts +77 -0
  159. package/lib/imodel-components-react.d.ts.map +1 -0
  160. package/lib/imodel-components-react.js +90 -0
  161. package/lib/imodel-components-react.js.map +1 -0
  162. package/lib/internal.d.ts +2 -0
  163. package/lib/internal.d.ts.map +1 -0
  164. package/lib/{esm/imodel-components-react/navigationaids/Cube.scss → internal.js} +2 -15
  165. package/lib/internal.js.map +1 -0
  166. package/package.json +46 -36
  167. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  168. package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
  169. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
  170. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  171. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
  172. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
  173. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  174. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
  175. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  176. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +0 -90
  177. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  178. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
  179. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  180. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  181. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
  182. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  183. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  184. package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
  185. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
  186. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  187. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
  188. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
  189. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
  190. package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
  191. package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
  192. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  193. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
  194. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  195. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  196. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
  197. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
  198. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  199. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
  200. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
  201. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  202. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
  203. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
  204. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  205. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
  206. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  207. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  208. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
  209. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
  210. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  211. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
  212. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
  213. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +0 -51
  214. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  215. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
  216. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
  217. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
  218. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  219. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
  220. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  221. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -178
  222. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  223. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
  224. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  225. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  226. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
  227. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  228. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -55
  229. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  230. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
  231. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  232. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  233. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
  234. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  235. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  236. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
  237. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
  238. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  239. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
  240. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
  241. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  242. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
  243. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  244. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  245. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
  246. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  247. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  248. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
  249. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  250. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  251. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
  252. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
  253. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  254. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
  255. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  256. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  257. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
  258. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  259. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  260. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
  261. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  262. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  263. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
  264. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  265. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  266. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
  267. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  268. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  269. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
  270. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  271. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  272. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
  273. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  274. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  275. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
  276. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  277. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  278. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
  279. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  280. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  281. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
  282. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
  283. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  284. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
  285. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  286. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  287. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
  288. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  289. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +0 -24
  290. package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  291. package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
  292. package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
  293. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  294. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
  295. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
  296. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +0 -105
  297. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
  298. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  299. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
  300. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  301. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -45
  302. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  303. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
  304. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  305. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +0 -165
  306. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
  307. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  308. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
  309. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  310. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  311. package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
  312. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
  313. package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
  314. package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
  315. package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
  316. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  317. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
  318. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  319. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  320. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
  321. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  322. package/lib/cjs/imodel-components-react.d.ts +0 -80
  323. package/lib/cjs/imodel-components-react.d.ts.map +0 -1
  324. package/lib/cjs/imodel-components-react.js +0 -103
  325. package/lib/cjs/imodel-components-react.js.map +0 -1
  326. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
  327. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  328. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
  329. package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
  330. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
  331. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  332. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
  333. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +0 -71
  334. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
  335. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  336. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  337. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
  338. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  339. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  340. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
  341. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  342. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  343. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +0 -62
  344. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
  345. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  346. package/lib/esm/imodel-components-react/color/HueSlider.scss +0 -78
  347. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
  348. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  349. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
  350. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +0 -36
  351. package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
  352. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
  353. package/lib/esm/imodel-components-react/color/Swatch.scss +0 -22
  354. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
  355. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  356. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  357. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
  358. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  359. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
  360. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -18
  361. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
  362. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  363. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
  364. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -16
  365. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
  366. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  367. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
  368. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  369. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  370. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +0 -106
  371. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
  372. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  373. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +0 -48
  374. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
  375. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  376. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
  377. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  378. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
  379. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  380. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  381. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
  382. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  383. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  384. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +0 -134
  385. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
  386. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  387. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  388. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
  389. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  390. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  391. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
  392. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  393. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  394. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
  395. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  396. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
  397. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  398. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
  399. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  400. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  401. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
  402. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  403. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  404. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
  405. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  406. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  407. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
  408. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  409. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
  410. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  411. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  412. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
  413. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  414. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  415. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
  416. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  417. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  418. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
  419. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  420. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  421. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
  422. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  423. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  424. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
  425. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  426. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  427. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
  428. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  429. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  430. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
  431. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  432. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  433. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
  434. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  435. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  436. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
  437. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  438. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
  439. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  440. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  441. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
  442. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  443. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  444. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
  445. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  446. package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
  447. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
  448. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  449. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
  450. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  451. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  452. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
  453. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  454. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  455. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +0 -40
  456. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  457. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  458. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +0 -48
  459. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
  460. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  461. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
  462. package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
  463. package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
  464. package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
  465. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
  466. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  467. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  468. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
  469. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  470. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  471. package/lib/esm/imodel-components-react.d.ts +0 -80
  472. package/lib/esm/imodel-components-react.d.ts.map +0 -1
  473. package/lib/esm/imodel-components-react.js +0 -85
  474. package/lib/esm/imodel-components-react.js.map +0 -1
  475. /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
  476. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
  477. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.scss +0 -0
  478. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
  479. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
  480. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
  481. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
  482. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.scss +0 -0
  483. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
  484. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.scss +0 -0
  485. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
  486. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.scss +0 -0
  487. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
  488. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.scss +0 -0
  489. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
  490. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
  491. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
  492. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
  493. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
  494. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
  495. /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
  496. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
  497. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
  498. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
  499. /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
  500. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.scss +0 -0
  501. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
  502. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
  503. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
  504. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
  505. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
  506. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
  507. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
  508. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
  509. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
  510. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
  511. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
  512. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
  513. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
  514. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
  515. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
  516. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
  517. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
  518. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
  519. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
  520. /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
  521. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
  522. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
  523. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
  524. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
  525. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
  526. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
  527. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
  528. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.scss +0 -0
  529. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
  530. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
  531. /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
  532. /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
@@ -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,87 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.FractionPrecisionSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const itwinui_react_1 = require("@itwin/itwinui-react");
36
- const useTranslation_1 = require("../../useTranslation");
37
- /** Component use to set Fraction precision
38
- * @internal
39
- */
40
- function FractionPrecisionSelector(props) {
41
- const { precision, onChange, ...otherProps } = props;
42
- const { translate } = (0, useTranslation_1.useTranslation)();
43
- const options = [
44
- {
45
- value: 1,
46
- label: translate("QuantityFormat.fraction_precision.whole"),
47
- },
48
- {
49
- value: 2,
50
- label: translate("QuantityFormat.fraction_precision.half"),
51
- },
52
- {
53
- value: 4,
54
- label: translate("QuantityFormat.fraction_precision.quarter"),
55
- },
56
- {
57
- value: 8,
58
- label: translate("QuantityFormat.fraction_precision.eighth"),
59
- },
60
- {
61
- value: 16,
62
- label: translate("QuantityFormat.fraction_precision.sixteenth"),
63
- },
64
- {
65
- value: 32,
66
- label: translate("QuantityFormat.fraction_precision.over32"),
67
- },
68
- {
69
- value: 64,
70
- label: translate("QuantityFormat.fraction_precision.over64"),
71
- },
72
- {
73
- value: 128,
74
- label: translate("QuantityFormat.fraction_precision.over128"),
75
- },
76
- {
77
- value: 256,
78
- label: translate("QuantityFormat.fraction_precision.over256"),
79
- },
80
- ];
81
- const handleOnChange = React.useCallback((newValue) => {
82
- onChange && onChange(newValue);
83
- }, [onChange]);
84
- return (React.createElement(itwinui_react_1.Select, { options: options, value: precision, onChange: handleOnChange, size: "small", ...otherProps }));
85
- }
86
- exports.FractionPrecisionSelector = FractionPrecisionSelector;
87
- //# sourceMappingURL=FractionPrecision.js.map
@@ -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,6CAA+B;AAG/B,wDAA8C;AAC9C,yDAAsD;AAWtD;;GAEG;AACH,SAAgB,yBAAyB,CACvC,KAAqC;IAErC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,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,sBAAM,IACL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC;AA5DD,8DA4DC","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 +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,60 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.ScientificTypeSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const core_quantity_1 = require("@itwin/core-quantity");
36
- const itwinui_react_1 = require("@itwin/itwinui-react");
37
- const useTranslation_1 = require("../../useTranslation");
38
- /** Component use to set Scientific type.
39
- * @internal
40
- */
41
- function ScientificTypeSelector(props) {
42
- const { type, onChange, ...otherProps } = props;
43
- const { translate } = (0, useTranslation_1.useTranslation)();
44
- const formatOptions = [
45
- {
46
- value: core_quantity_1.ScientificType.Normalized,
47
- label: translate("QuantityFormat.scientific-type.normalized"),
48
- },
49
- {
50
- value: core_quantity_1.ScientificType.ZeroNormalized,
51
- label: translate("QuantityFormat.scientific-type.zero-normalized"),
52
- },
53
- ];
54
- const handleOnChange = React.useCallback((newValue) => {
55
- onChange && onChange(newValue);
56
- }, [onChange]);
57
- return (React.createElement(itwinui_react_1.Select, { options: formatOptions, value: type, onChange: handleOnChange, size: "small", ...otherProps }));
58
- }
59
- exports.ScientificTypeSelector = ScientificTypeSelector;
60
- //# sourceMappingURL=ScientificType.js.map
@@ -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,6CAA+B;AAE/B,wDAAsD;AAEtD,wDAA8C;AAC9C,yDAAsD;AAYtD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAkC;IACvE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,aAAa,GAAmC;QACpD;YACE,KAAK,EAAE,8BAAc,CAAC,UAAU;YAChC,KAAK,EAAE,SAAS,CAAC,2CAA2C,CAAC;SAC9D;QACD;YACE,KAAK,EAAE,8BAAc,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,sBAAM,IACL,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC;AA9BD,wDA8BC","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 +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,68 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.SignOptionSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const core_quantity_1 = require("@itwin/core-quantity");
36
- const itwinui_react_1 = require("@itwin/itwinui-react");
37
- const useTranslation_1 = require("../../useTranslation");
38
- /** Component use to set Sign option.
39
- * @internal
40
- */
41
- function SignOptionSelector(props) {
42
- const { signOption, onChange, ...otherProps } = props;
43
- const { translate } = (0, useTranslation_1.useTranslation)();
44
- const options = [
45
- {
46
- value: core_quantity_1.ShowSignOption.NoSign,
47
- label: translate("QuantityFormat.sign_option.noSign"),
48
- },
49
- {
50
- value: core_quantity_1.ShowSignOption.OnlyNegative,
51
- label: translate("QuantityFormat.sign_option.onlyNegative"),
52
- },
53
- {
54
- value: core_quantity_1.ShowSignOption.SignAlways,
55
- label: translate("QuantityFormat.sign_option.signAlways"),
56
- },
57
- {
58
- value: core_quantity_1.ShowSignOption.NegativeParentheses,
59
- label: translate("QuantityFormat.sign_option.negativeParentheses"),
60
- },
61
- ];
62
- const handleOnChange = React.useCallback((newValue) => {
63
- onChange && onChange(newValue);
64
- }, [onChange]);
65
- return (React.createElement(itwinui_react_1.Select, { options: options, value: signOption, onChange: handleOnChange, size: "small", ...otherProps }));
66
- }
67
- exports.SignOptionSelector = SignOptionSelector;
68
- //# sourceMappingURL=SignOption.js.map
@@ -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,6CAA+B;AAE/B,wDAAsD;AAEtD,wDAA8C;AAC9C,yDAAsD;AAWtD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,OAAO,GAAmC;QAC9C;YACE,KAAK,EAAE,8BAAc,CAAC,MAAM;YAC5B,KAAK,EAAE,SAAS,CAAC,mCAAmC,CAAC;SACtD;QACD;YACE,KAAK,EAAE,8BAAc,CAAC,YAAY;YAClC,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC;SAC5D;QACD;YACE,KAAK,EAAE,8BAAc,CAAC,UAAU;YAChC,KAAK,EAAE,SAAS,CAAC,uCAAuC,CAAC;SAC1D;QACD;YACE,KAAK,EAAE,8BAAc,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,sBAAM,IACL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC;AAtCD,gDAsCC","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 +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,76 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.StationSeparatorSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const itwinui_react_1 = require("@itwin/itwinui-react");
36
- const useTranslation_1 = require("../../useTranslation");
37
- /** Component use to setStation separator.
38
- * @internal
39
- */
40
- function StationSeparatorSelector(props) {
41
- const { separator, disabled, onChange, ...otherProps } = props;
42
- const { translate } = (0, useTranslation_1.useTranslation)();
43
- const handleOnChange = React.useCallback((newValue) => {
44
- onChange && onChange(newValue);
45
- }, [onChange]);
46
- const separatorOptions = React.useMemo(() => {
47
- const uomDefaultEntries = [
48
- {
49
- value: "+",
50
- label: translate("QuantityFormat.station_separator.plus"),
51
- },
52
- {
53
- value: "-",
54
- label: translate("QuantityFormat.station_separator.minus"),
55
- },
56
- {
57
- value: " ",
58
- label: translate("QuantityFormat.station_separator.blank"),
59
- },
60
- {
61
- value: "^",
62
- label: translate("QuantityFormat.station_separator.caret"),
63
- },
64
- ];
65
- const completeListOfEntries = [];
66
- if (undefined ===
67
- uomDefaultEntries.find((option) => option.value === separator)) {
68
- completeListOfEntries.push({ value: separator, label: separator });
69
- }
70
- completeListOfEntries.push(...uomDefaultEntries);
71
- return completeListOfEntries;
72
- }, [separator, translate]);
73
- return (React.createElement(itwinui_react_1.Select, { options: separatorOptions, disabled: disabled, value: separator, onChange: handleOnChange, size: "small", ...otherProps }));
74
- }
75
- exports.StationSeparatorSelector = StationSeparatorSelector;
76
- //# sourceMappingURL=StationSeparatorSelector.js.map
@@ -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,6CAA+B;AAG/B,wDAA8C;AAC9C,yDAAsD;AAYtD;;GAEG;AACH,SAAgB,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,IAAA,+BAAc,GAAE,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,sBAAM,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;AAnDD,4DAmDC","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 +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,59 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.StationSizeSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const itwinui_react_1 = require("@itwin/itwinui-react");
36
- const useTranslation_1 = require("../../useTranslation");
37
- /** Component use to set Station size (number of digits from right until '+').
38
- * @internal
39
- */
40
- function StationSizeSelector(props) {
41
- const { value, disabled, onChange, ...otherProps } = props;
42
- const { translate } = (0, useTranslation_1.useTranslation)();
43
- const separatorOptions = [
44
- {
45
- value: 2,
46
- label: translate("QuantityFormat.station_size.two"),
47
- },
48
- {
49
- value: 3,
50
- label: translate("QuantityFormat.station_size.three"),
51
- },
52
- ];
53
- const handleOnChange = React.useCallback((newValue) => {
54
- onChange && onChange(newValue);
55
- }, [onChange]);
56
- return (React.createElement(itwinui_react_1.Select, { options: separatorOptions, disabled: disabled, value: value, onChange: handleOnChange, size: "small", ...otherProps }));
57
- }
58
- exports.StationSizeSelector = StationSizeSelector;
59
- //# sourceMappingURL=StationSizeSelector.js.map
@@ -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,6CAA+B;AAG/B,wDAA8C;AAC9C,yDAAsD;AAYtD;;GAEG;AACH,SAAgB,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,IAAA,+BAAc,GAAE,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,sBAAM,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;AA/BD,kDA+BC","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 +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,65 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.ThousandsSelector = void 0;
34
- const React = __importStar(require("react"));
35
- const itwinui_react_1 = require("@itwin/itwinui-react");
36
- const useTranslation_1 = require("../../useTranslation");
37
- /** Component use to set Quantity Format thousand group separator.
38
- * @internal
39
- */
40
- function ThousandsSelector(props) {
41
- const { separator, ...otherProps } = props;
42
- const { translate } = (0, useTranslation_1.useTranslation)();
43
- const separatorOptions = React.useMemo(() => {
44
- const uomDefaultEntries = [
45
- {
46
- value: ",",
47
- label: translate("QuantityFormat.thousand_separator.comma"),
48
- },
49
- {
50
- value: ".",
51
- label: translate("QuantityFormat.thousand_separator.point"),
52
- },
53
- ];
54
- const completeListOfEntries = [];
55
- if (undefined ===
56
- uomDefaultEntries.find((option) => option.value === separator)) {
57
- completeListOfEntries.push({ value: separator, label: separator });
58
- }
59
- completeListOfEntries.push(...uomDefaultEntries);
60
- return completeListOfEntries;
61
- }, [separator, translate]);
62
- return (React.createElement(itwinui_react_1.Select, { options: separatorOptions, value: separator, size: "small", ...otherProps }));
63
- }
64
- exports.ThousandsSelector = ThousandsSelector;
65
- //# sourceMappingURL=ThousandsSelector.js.map
@@ -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,6CAA+B;AAG/B,wDAA8C;AAC9C,yDAAsD;AAYtD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,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,sBAAM,IACL,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,OAAO,KACR,UAAU,GACd,CACH,CAAC;AACJ,CAAC;AAlCD,8CAkCC","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 +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"}
@@ -1,106 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module QuantityFormat
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- var __importDefault = (this && this.__importDefault) || function (mod) {
33
- return (mod && mod.__esModule) ? mod : { "default": mod };
34
- };
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ThousandsSeparator = void 0;
37
- const classnames_1 = __importDefault(require("classnames"));
38
- const React = __importStar(require("react"));
39
- const core_quantity_1 = require("@itwin/core-quantity");
40
- const itwinui_react_1 = require("@itwin/itwinui-react");
41
- const ThousandsSelector_1 = require("./ThousandsSelector");
42
- const useTranslation_1 = require("../../useTranslation");
43
- /** Component use to set Quantity Format thousand group separator.
44
- * @internal
45
- */
46
- function ThousandsSeparator(props) {
47
- const { formatProps, onChange } = props;
48
- const { translate } = (0, useTranslation_1.useTranslation)();
49
- const handleSetFormatProps = React.useCallback((newProps) => {
50
- onChange && onChange(newProps);
51
- }, [onChange]);
52
- const setFormatTrait = React.useCallback((trait, setActive) => {
53
- const traitStr = (0, core_quantity_1.getTraitString)(trait);
54
- let formatTraits = [traitStr];
55
- if (setActive) {
56
- // setting trait
57
- if (formatProps.formatTraits) {
58
- const traits = Array.isArray(formatProps.formatTraits)
59
- ? formatProps.formatTraits
60
- : formatProps.formatTraits.split(/,|;|\|/);
61
- formatTraits = [...traits, traitStr];
62
- }
63
- }
64
- else {
65
- // clearing trait
66
- if (formatProps.formatTraits) {
67
- const traits = Array.isArray(formatProps.formatTraits)
68
- ? formatProps.formatTraits
69
- : formatProps.formatTraits.split(/,|;|\|/);
70
- formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);
71
- }
72
- }
73
- const newFormatProps = { ...formatProps, formatTraits };
74
- handleSetFormatProps(newFormatProps);
75
- }, [formatProps, handleSetFormatProps]);
76
- const handleUseThousandsSeparatorChange = React.useCallback((e) => {
77
- setFormatTrait(core_quantity_1.FormatTraits.Use1000Separator, e.target.checked);
78
- }, [setFormatTrait]);
79
- const isFormatTraitSet = React.useCallback((trait) => {
80
- return core_quantity_1.Format.isFormatTraitSetInProps(formatProps, trait);
81
- }, [formatProps]);
82
- const handleThousandSeparatorChange = React.useCallback((thousandSeparator) => {
83
- let decimalSeparator = formatProps.decimalSeparator;
84
- // make sure 1000 and decimal separator do not match
85
- if (isFormatTraitSet(core_quantity_1.FormatTraits.Use1000Separator)) {
86
- if (thousandSeparator === ".")
87
- decimalSeparator = ",";
88
- // thousandSeparator === ","
89
- else
90
- decimalSeparator = ".";
91
- }
92
- const newFormatProps = {
93
- ...formatProps,
94
- thousandSeparator,
95
- decimalSeparator,
96
- };
97
- handleSetFormatProps(newFormatProps);
98
- }, [formatProps, isFormatTraitSet, handleSetFormatProps]);
99
- return (React.createElement(React.Fragment, null,
100
- React.createElement("span", { className: "uicore-label" }, translate("QuantityFormat.labels.useThousandSeparatorLabel")),
101
- React.createElement(itwinui_react_1.Checkbox, { "data-testid": "use-thousands-separator", checked: isFormatTraitSet(core_quantity_1.FormatTraits.Use1000Separator), onChange: handleUseThousandsSeparatorChange }),
102
- React.createElement("span", { className: (0, classnames_1.default)("uicore-label", !isFormatTraitSet(core_quantity_1.FormatTraits.Use1000Separator) && "uicore-disabled") }, translate("QuantityFormat.labels.thousandSeparatorLabel")),
103
- React.createElement(ThousandsSelector_1.ThousandsSelector, { "data-testid": "thousands-separator-selector", separator: formatProps.thousandSeparator ?? ",", disabled: !isFormatTraitSet(core_quantity_1.FormatTraits.Use1000Separator), onChange: handleThousandSeparatorChange })));
104
- }
105
- exports.ThousandsSeparator = ThousandsSeparator;
106
- //# sourceMappingURL=ThousandsSeparator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThousandsSeparator.js","sourceRoot":"","sources":["../../../../../src/imodel-components-react/quantityformat/misc/ThousandsSeparator.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAAoC;AACpC,6CAA+B;AAG/B,wDAA4E;AAC5E,wDAAgD;AAChD,2DAAwD;AACxD,yDAAsD;AAWtD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAEvC,MAAM,oBAAoB,GAAG,KAAK,CAAC,WAAW,CAC5C,CAAC,QAAqB,EAAE,EAAE;QACxB,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,KAAmB,EAAE,SAAkB,EAAE,EAAE;QAC1C,MAAM,QAAQ,GAAG,IAAA,8BAAc,EAAC,KAAK,CAAC,CAAC;QACvC,IAAI,YAAY,GAAa,CAAC,QAAQ,CAAC,CAAC;QACxC,IAAI,SAAS,EAAE,CAAC;YACd,gBAAgB;YAChB,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;gBAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC;oBACpD,CAAC,CAAC,WAAW,CAAC,YAAY;oBAC1B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAC7C,YAAY,GAAG,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,iBAAiB;YACjB,IAAI,WAAW,CAAC,YAAY,EAAE,CAAC;gBAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC;oBACpD,CAAC,CAAC,WAAW,CAAC,YAAY;oBAC1B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAC7C,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QACD,MAAM,cAAc,GAAG,EAAE,GAAG,WAAW,EAAE,YAAY,EAAE,CAAC;QACxD,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,EACD,CAAC,WAAW,EAAE,oBAAoB,CAAC,CACpC,CAAC;IAEF,MAAM,iCAAiC,GAAG,KAAK,CAAC,WAAW,CACzD,CAAC,CAAsC,EAAE,EAAE;QACzC,cAAc,CAAC,4BAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC,EACD,CAAC,cAAc,CAAC,CACjB,CAAC;IAEF,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACxC,CAAC,KAAmB,EAAE,EAAE;QACtB,OAAO,sBAAM,CAAC,uBAAuB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CAAC;IAEF,MAAM,6BAA6B,GAAG,KAAK,CAAC,WAAW,CACrD,CAAC,iBAAyB,EAAE,EAAE;QAC5B,IAAI,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;QACpD,oDAAoD;QACpD,IAAI,gBAAgB,CAAC,4BAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACpD,IAAI,iBAAiB,KAAK,GAAG;gBAAE,gBAAgB,GAAG,GAAG,CAAC;YACtD,4BAA4B;;gBACvB,gBAAgB,GAAG,GAAG,CAAC;QAC9B,CAAC;QACD,MAAM,cAAc,GAAG;YACrB,GAAG,WAAW;YACd,iBAAiB;YACjB,gBAAgB;SACjB,CAAC;QACF,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,EACD,CAAC,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,CACtD,CAAC;IAEF,OAAO,CACL;QACE,8BAAM,SAAS,EAAE,cAAc,IAC5B,SAAS,CAAC,iDAAiD,CAAC,CACxD;QACP,oBAAC,wBAAQ,mBACK,yBAAyB,EACrC,OAAO,EAAE,gBAAgB,CAAC,4BAAY,CAAC,gBAAgB,CAAC,EACxD,QAAQ,EAAE,iCAAiC,GAC3C;QACF,8BACE,SAAS,EAAE,IAAA,oBAAU,EACnB,cAAc,EACd,CAAC,gBAAgB,CAAC,4BAAY,CAAC,gBAAgB,CAAC,IAAI,iBAAiB,CACtE,IAEA,SAAS,CAAC,8CAA8C,CAAC,CACrD;QACP,oBAAC,qCAAiB,mBACJ,8BAA8B,EAC1C,SAAS,EAAE,WAAW,CAAC,iBAAiB,IAAI,GAAG,EAC/C,QAAQ,EAAE,CAAC,gBAAgB,CAAC,4BAAY,CAAC,gBAAgB,CAAC,EAC1D,QAAQ,EAAE,6BAA6B,GACvC,CACD,CACJ,CAAC;AACJ,CAAC;AAjGD,gDAiGC","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 type { CommonProps } from \"@itwin/core-react\";\nimport type { FormatProps } from \"@itwin/core-quantity\";\nimport { Format, FormatTraits, getTraitString } from \"@itwin/core-quantity\";\nimport { Checkbox } from \"@itwin/itwinui-react\";\nimport { ThousandsSelector } from \"./ThousandsSelector\";\nimport { useTranslation } from \"../../useTranslation\";\n\n/** Properties of [[ThousandsSeparator]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ThousandsSeparatorProps extends CommonProps {\n formatProps: FormatProps;\n onChange?: (format: FormatProps) => void;\n}\n\n/** Component use to set Quantity Format thousand group separator.\n * @internal\n */\nexport function ThousandsSeparator(props: ThousandsSeparatorProps) {\n const { formatProps, onChange } = props;\n const { translate } = useTranslation();\n\n const handleSetFormatProps = React.useCallback(\n (newProps: FormatProps) => {\n onChange && onChange(newProps);\n },\n [onChange]\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 formatTraits = [...traits, traitStr];\n }\n } else {\n // clearing trait\n if (formatProps.formatTraits) {\n const traits = Array.isArray(formatProps.formatTraits)\n ? formatProps.formatTraits\n : formatProps.formatTraits.split(/,|;|\\|/);\n formatTraits = traits.filter((traitEntry) => traitEntry !== traitStr);\n }\n }\n const newFormatProps = { ...formatProps, formatTraits };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, handleSetFormatProps]\n );\n\n const handleUseThousandsSeparatorChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setFormatTrait(FormatTraits.Use1000Separator, e.target.checked);\n },\n [setFormatTrait]\n );\n\n const isFormatTraitSet = React.useCallback(\n (trait: FormatTraits) => {\n return Format.isFormatTraitSetInProps(formatProps, trait);\n },\n [formatProps]\n );\n\n const handleThousandSeparatorChange = React.useCallback(\n (thousandSeparator: string) => {\n let decimalSeparator = formatProps.decimalSeparator;\n // make sure 1000 and decimal separator do not match\n if (isFormatTraitSet(FormatTraits.Use1000Separator)) {\n if (thousandSeparator === \".\") decimalSeparator = \",\";\n // thousandSeparator === \",\"\n else decimalSeparator = \".\";\n }\n const newFormatProps = {\n ...formatProps,\n thousandSeparator,\n decimalSeparator,\n };\n handleSetFormatProps(newFormatProps);\n },\n [formatProps, isFormatTraitSet, handleSetFormatProps]\n );\n\n return (\n <>\n <span className={\"uicore-label\"}>\n {translate(\"QuantityFormat.labels.useThousandSeparatorLabel\")}\n </span>\n <Checkbox\n data-testid=\"use-thousands-separator\"\n checked={isFormatTraitSet(FormatTraits.Use1000Separator)}\n onChange={handleUseThousandsSeparatorChange}\n />\n <span\n className={classnames(\n \"uicore-label\",\n !isFormatTraitSet(FormatTraits.Use1000Separator) && \"uicore-disabled\"\n )}\n >\n {translate(\"QuantityFormat.labels.thousandSeparatorLabel\")}\n </span>\n <ThousandsSelector\n data-testid=\"thousands-separator-selector\"\n separator={formatProps.thousandSeparator ?? \",\"}\n disabled={!isFormatTraitSet(FormatTraits.Use1000Separator)}\n onChange={handleThousandSeparatorChange}\n />\n </>\n );\n}\n"]}