@itwin/imodel-components-react 4.0.0-dev.10 → 4.0.0-dev.11

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 (360) hide show
  1. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts +28 -28
  2. package/lib/cjs/imodel-components-react/UiIModelComponents.js +79 -79
  3. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -1
  4. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts +36 -36
  5. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +186 -186
  6. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +1 -1
  7. package/lib/cjs/imodel-components-react/color/AlphaSlider.scss +63 -63
  8. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts +37 -37
  9. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  10. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +108 -107
  11. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  12. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +90 -90
  13. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts +23 -23
  14. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +74 -74
  15. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  16. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts +21 -21
  17. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js +145 -145
  18. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js.map +1 -1
  19. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.scss +93 -93
  20. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts +44 -44
  21. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  22. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +139 -137
  23. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  24. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +62 -63
  25. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts +22 -22
  26. package/lib/cjs/imodel-components-react/color/HueSlider.js +199 -199
  27. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +1 -1
  28. package/lib/cjs/imodel-components-react/color/HueSlider.scss +61 -61
  29. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts +20 -20
  30. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +213 -213
  31. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +1 -1
  32. package/lib/cjs/imodel-components-react/color/SaturationPicker.scss +35 -35
  33. package/lib/cjs/imodel-components-react/color/Swatch.d.ts +22 -22
  34. package/lib/cjs/imodel-components-react/color/Swatch.js +60 -60
  35. package/lib/cjs/imodel-components-react/color/Swatch.js.map +1 -1
  36. package/lib/cjs/imodel-components-react/color/Swatch.scss +22 -23
  37. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts +6 -6
  38. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +23 -23
  39. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  40. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts +44 -44
  41. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +151 -151
  42. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +1 -1
  43. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +18 -18
  44. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts +47 -47
  45. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +160 -160
  46. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +1 -1
  47. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +16 -16
  48. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts +25 -25
  49. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +96 -96
  50. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  51. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts +44 -44
  52. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  53. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +268 -265
  54. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  55. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +106 -107
  56. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts +33 -33
  57. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +85 -85
  58. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +1 -1
  59. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +48 -48
  60. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts +60 -60
  61. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +159 -159
  62. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  63. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +52 -52
  64. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts +45 -45
  65. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +127 -127
  66. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +1 -1
  67. package/lib/cjs/imodel-components-react/navigationaids/Cube.scss +19 -19
  68. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +174 -174
  69. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  70. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +638 -634
  71. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  72. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +178 -182
  73. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +145 -145
  74. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  75. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +653 -647
  76. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  77. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +135 -134
  78. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts +26 -26
  79. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +99 -99
  80. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  81. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +63 -63
  82. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts +17 -17
  83. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +53 -53
  84. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  85. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts +18 -18
  86. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  87. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +84 -83
  88. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  89. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts +17 -17
  90. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +86 -86
  91. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  92. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +17 -17
  93. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +109 -109
  94. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  95. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts +19 -19
  96. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +133 -133
  97. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  98. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +21 -21
  99. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +184 -184
  100. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  101. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +22 -22
  102. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +145 -145
  103. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  104. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +17 -17
  105. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +59 -59
  106. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  107. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +17 -17
  108. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +47 -47
  109. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  110. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +16 -16
  111. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +54 -54
  112. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  113. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts +18 -18
  114. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +48 -48
  115. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  116. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts +17 -17
  117. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +50 -50
  118. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  119. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +17 -17
  120. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +58 -58
  121. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  122. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +17 -17
  123. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +47 -47
  124. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  125. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +17 -17
  126. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +56 -56
  127. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  128. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +17 -17
  129. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +95 -95
  130. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  131. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +23 -23
  132. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +119 -119
  133. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  134. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +52 -52
  135. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +143 -143
  136. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  137. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +31 -31
  138. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +69 -69
  139. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  140. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts +27 -27
  141. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +81 -81
  142. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  143. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +26 -26
  144. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts +33 -33
  145. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  146. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js +95 -91
  147. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  148. package/lib/cjs/imodel-components-react/timeline/PlayerButton.scss +28 -31
  149. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts +54 -54
  150. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +191 -191
  151. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +1 -1
  152. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +105 -112
  153. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +77 -77
  154. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  155. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +428 -424
  156. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  157. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +359 -356
  158. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts +15 -15
  159. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +54 -54
  160. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  161. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +39 -39
  162. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +164 -164
  163. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +133 -133
  164. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  165. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +365 -358
  166. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  167. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +161 -164
  168. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts +174 -174
  169. package/lib/cjs/imodel-components-react/timeline/interfaces.js +45 -45
  170. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -1
  171. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts +42 -42
  172. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +274 -274
  173. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  174. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts +106 -106
  175. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +105 -105
  176. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  177. package/lib/cjs/imodel-components-react.d.ts +82 -82
  178. package/lib/cjs/imodel-components-react.js +101 -101
  179. package/lib/cjs/imodel-components-react.js.map +1 -1
  180. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +28 -28
  181. package/lib/esm/imodel-components-react/UiIModelComponents.js +75 -75
  182. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -1
  183. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +36 -36
  184. package/lib/esm/imodel-components-react/color/AlphaSlider.js +160 -160
  185. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +1 -1
  186. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +63 -63
  187. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +37 -37
  188. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  189. package/lib/esm/imodel-components-react/color/ColorPickerButton.js +83 -82
  190. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  191. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +90 -90
  192. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +23 -23
  193. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js +51 -51
  194. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  195. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts +21 -21
  196. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js +122 -122
  197. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js.map +1 -1
  198. package/lib/esm/imodel-components-react/color/ColorPickerPanel.scss +93 -93
  199. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +44 -44
  200. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  201. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +114 -112
  202. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  203. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +62 -63
  204. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +22 -22
  205. package/lib/esm/imodel-components-react/color/HueSlider.js +173 -173
  206. package/lib/esm/imodel-components-react/color/HueSlider.js.map +1 -1
  207. package/lib/esm/imodel-components-react/color/HueSlider.scss +61 -61
  208. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +20 -20
  209. package/lib/esm/imodel-components-react/color/SaturationPicker.js +187 -187
  210. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +1 -1
  211. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +35 -35
  212. package/lib/esm/imodel-components-react/color/Swatch.d.ts +22 -22
  213. package/lib/esm/imodel-components-react/color/Swatch.js +34 -34
  214. package/lib/esm/imodel-components-react/color/Swatch.js.map +1 -1
  215. package/lib/esm/imodel-components-react/color/Swatch.scss +22 -23
  216. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +6 -6
  217. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js +19 -19
  218. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +1 -1
  219. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +44 -44
  220. package/lib/esm/imodel-components-react/editors/ColorEditor.js +124 -124
  221. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +1 -1
  222. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +18 -18
  223. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +47 -47
  224. package/lib/esm/imodel-components-react/editors/WeightEditor.js +133 -133
  225. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +1 -1
  226. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +16 -16
  227. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +25 -25
  228. package/lib/esm/imodel-components-react/inputs/QuantityInput.js +70 -70
  229. package/lib/esm/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  230. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +44 -44
  231. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  232. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +243 -240
  233. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  234. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +106 -107
  235. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +33 -33
  236. package/lib/esm/imodel-components-react/lineweight/Swatch.js +59 -59
  237. package/lib/esm/imodel-components-react/lineweight/Swatch.js.map +1 -1
  238. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +48 -48
  239. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +60 -60
  240. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js +133 -133
  241. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  242. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +52 -52
  243. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +45 -45
  244. package/lib/esm/imodel-components-react/navigationaids/Cube.js +100 -100
  245. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +1 -1
  246. package/lib/esm/imodel-components-react/navigationaids/Cube.scss +19 -19
  247. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +174 -174
  248. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  249. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +610 -606
  250. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  251. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +178 -182
  252. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +145 -145
  253. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  254. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +626 -620
  255. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  256. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +135 -134
  257. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +26 -26
  258. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js +76 -76
  259. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  260. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +63 -63
  261. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +17 -17
  262. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js +30 -30
  263. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  264. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +18 -18
  265. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  266. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +61 -60
  267. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  268. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +17 -17
  269. package/lib/esm/imodel-components-react/quantityformat/FormatType.js +63 -63
  270. package/lib/esm/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  271. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +17 -17
  272. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js +83 -83
  273. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  274. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +19 -19
  275. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js +110 -110
  276. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  277. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +21 -21
  278. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js +158 -158
  279. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  280. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +22 -22
  281. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js +122 -122
  282. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  283. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +17 -17
  284. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js +36 -36
  285. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  286. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +17 -17
  287. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js +24 -24
  288. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  289. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +16 -16
  290. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js +31 -31
  291. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  292. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +18 -18
  293. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js +25 -25
  294. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  295. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +17 -17
  296. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js +27 -27
  297. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  298. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +17 -17
  299. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +35 -35
  300. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  301. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +17 -17
  302. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js +24 -24
  303. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  304. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +17 -17
  305. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js +33 -33
  306. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  307. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +17 -17
  308. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +69 -69
  309. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  310. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +23 -23
  311. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js +96 -96
  312. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  313. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +52 -52
  314. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js +139 -139
  315. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  316. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +31 -31
  317. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js +65 -65
  318. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -1
  319. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +27 -27
  320. package/lib/esm/imodel-components-react/timeline/InlineEdit.js +55 -55
  321. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  322. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +26 -26
  323. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts +33 -33
  324. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  325. package/lib/esm/imodel-components-react/timeline/PlayerButton.js +68 -64
  326. package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  327. package/lib/esm/imodel-components-react/timeline/PlayerButton.scss +28 -31
  328. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +54 -54
  329. package/lib/esm/imodel-components-react/timeline/Scrubber.js +164 -164
  330. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +1 -1
  331. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +105 -112
  332. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts +77 -77
  333. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  334. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +402 -398
  335. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  336. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +359 -356
  337. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +15 -15
  338. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js +28 -28
  339. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  340. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +39 -39
  341. package/lib/esm/imodel-components-react/timeline/Timeline.scss +164 -164
  342. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts +133 -133
  343. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  344. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +339 -332
  345. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  346. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +161 -164
  347. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +174 -174
  348. package/lib/esm/imodel-components-react/timeline/interfaces.js +42 -42
  349. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -1
  350. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +42 -42
  351. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js +251 -251
  352. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  353. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +106 -106
  354. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js +95 -95
  355. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  356. package/lib/esm/imodel-components-react.d.ts +82 -82
  357. package/lib/esm/imodel-components-react.js +87 -87
  358. package/lib/esm/imodel-components-react.js.map +1 -1
  359. package/lib/public/locales/en/UiIModelComponents.json +139 -139
  360. package/package.json +13 -13
@@ -1,94 +1,94 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/index";
6
-
7
- $hovered-icon-color: $buic-foreground-primary-tone;
8
- $saturation-hue-height: 150px;
9
-
10
- .components-colorpicker-panel {
11
- display: flex;
12
- flex-direction: column;
13
-
14
- .components-colorpicker-panel-color {
15
- display: flex;
16
- flex-direction: row;
17
- height: 100%;
18
- column-gap: 20px;
19
-
20
- .components-colorpicker-saturation {
21
- margin: 1em;
22
- display: block;
23
- width: calc(100% - 40px);
24
- height: $saturation-hue-height;
25
- }
26
-
27
- .components-hue-container-vertical {
28
- height: $saturation-hue-height;
29
- margin-top: 1em;
30
- margin-right: .5em;
31
- }
32
- }
33
-
34
- .components-color-swatch {
35
- width: 2.0em;
36
- height: 2.0em;
37
- }
38
- }
39
-
40
- .components-colorpicker-panel-presets {
41
- width: 100%;
42
- height: 100%;
43
- padding-top: 10px;
44
- margin-top: 10px;
45
- margin-bottom: 10px;
46
- display: grid;
47
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
48
- column-gap: 2px;
49
- row-gap: 10px;
50
- border-top: 1px solid $buic-inputs-border;
51
- justify-items: center;
52
-
53
- .components-colorpicker-panel-swatch {
54
- width: 2em;
55
- height: 2em;
56
- padding: 0;
57
- border-color: $buic-inputs-border;
58
- }
59
- }
60
-
61
- .components-colorpicker-popup-panel-padding {
62
- display: flex;
63
- flex-direction: column;
64
-
65
- button.core-dialog-close {
66
- margin-left: auto;
67
- background: transparent;
68
- border: none;
69
- color: var(--buic-foreground-body);
70
- }
71
- }
72
-
73
- .components-colorpicker-input-panel {
74
- display: flex;
75
- flex-direction: row;
76
- align-items: center;
77
- justify-content: space-evenly;
78
-
79
- .components-colorpicker-input-value-wrapper {
80
- align-items: center;
81
- display: flex;
82
- flex-direction: row;
83
- gap: 4px;
84
-
85
- .uicore-inputs-labeled-input {
86
- text-align: right;
87
- margin: 0;
88
- }
89
-
90
- .core-number-input-container {
91
- width: 54px;
92
- }
93
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/core-react/lib/cjs/core-react/index";
6
+
7
+ $hovered-icon-color: $buic-foreground-primary-tone;
8
+ $saturation-hue-height: 150px;
9
+
10
+ .components-colorpicker-panel {
11
+ display: flex;
12
+ flex-direction: column;
13
+
14
+ .components-colorpicker-panel-color {
15
+ display: flex;
16
+ flex-direction: row;
17
+ height: 100%;
18
+ column-gap: 20px;
19
+
20
+ .components-colorpicker-saturation {
21
+ margin: 1em;
22
+ display: block;
23
+ width: calc(100% - 40px);
24
+ height: $saturation-hue-height;
25
+ }
26
+
27
+ .components-hue-container-vertical {
28
+ height: $saturation-hue-height;
29
+ margin-top: 1em;
30
+ margin-right: .5em;
31
+ }
32
+ }
33
+
34
+ .components-color-swatch {
35
+ width: 2.0em;
36
+ height: 2.0em;
37
+ }
38
+ }
39
+
40
+ .components-colorpicker-panel-presets {
41
+ width: 100%;
42
+ height: 100%;
43
+ padding-top: 10px;
44
+ margin-top: 10px;
45
+ margin-bottom: 10px;
46
+ display: grid;
47
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
48
+ column-gap: 2px;
49
+ row-gap: 10px;
50
+ border-top: 1px solid var(--iui-color-border-foreground);
51
+ justify-items: center;
52
+
53
+ .components-colorpicker-panel-swatch {
54
+ width: 2em;
55
+ height: 2em;
56
+ padding: 0;
57
+ border-color: var(--iui-color-border-foreground);
58
+ }
59
+ }
60
+
61
+ .components-colorpicker-popup-panel-padding {
62
+ display: flex;
63
+ flex-direction: column;
64
+
65
+ button.core-dialog-close {
66
+ margin-left: auto;
67
+ background: transparent;
68
+ border: none;
69
+ color: var(--buic-foreground-body);
70
+ }
71
+ }
72
+
73
+ .components-colorpicker-input-panel {
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+ justify-content: space-evenly;
78
+
79
+ .components-colorpicker-input-value-wrapper {
80
+ align-items: center;
81
+ display: flex;
82
+ flex-direction: row;
83
+ gap: 4px;
84
+
85
+ .uicore-inputs-labeled-input {
86
+ text-align: right;
87
+ margin: 0;
88
+ }
89
+
90
+ .core-number-input-container {
91
+ width: 54px;
92
+ }
93
+ }
94
94
  }
@@ -1,45 +1,45 @@
1
- /** @packageDocumentation
2
- * @module Color
3
- */
4
- import * as React from "react";
5
- import { ColorDef } from "@itwin/core-common";
6
- import { RelativePosition } from "@itwin/appui-abstract";
7
- import { CommonProps } from "@itwin/core-react";
8
- import "./ColorPickerPopup.scss";
9
- /** Properties for the [[ColorPickerPopup]] React component
10
- * @public
11
- */
12
- export interface ColorPickerPopupProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, CommonProps {
13
- /** Current color */
14
- initialColor: ColorDef;
15
- /** Preset colors. Pass undefined to show default preset colors. Pass empty array to show no presets.
16
- * Displayed in rows of 9 items */
17
- colorDefs?: ColorDef[];
18
- /** Function to call when the color value is changed */
19
- onColorChange?: ((newColor: ColorDef) => void) | undefined;
20
- /** Function to call when the popup is closed */
21
- onClose?: ((colorValue: ColorDef) => void) | undefined;
22
- /** Disabled or not */
23
- disabled?: boolean;
24
- /** Readonly or not, color displayed on button but button will not trigger pop-up */
25
- readonly?: boolean;
26
- /** popup position. If not set RelativePosition.BottomLeft is used */
27
- popupPosition?: RelativePosition;
28
- /** Provides ability to return reference to HTMLButtonElement */
29
- ref?: React.Ref<HTMLButtonElement>;
30
- /** If true show up/down caret next to color */
31
- showCaret?: boolean;
32
- /** If true, don't propagate clicks out of the ColorPicker */
33
- captureClicks?: boolean;
34
- /** If true, don't show close button at top */
35
- hideCloseButton?: boolean;
36
- /** If set show input values */
37
- colorInputType?: "hsl" | "rgb" | "hex";
38
- }
39
- /**
40
- * ColorPickerButton component that allows user to select a color from a set of color swatches or to define a new color.
41
- * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component.
42
- * @public
43
- */
44
- export declare const ColorPickerPopup: (props: ColorPickerPopupProps) => JSX.Element | null;
1
+ /** @packageDocumentation
2
+ * @module Color
3
+ */
4
+ import * as React from "react";
5
+ import { ColorDef } from "@itwin/core-common";
6
+ import { RelativePosition } from "@itwin/appui-abstract";
7
+ import { CommonProps } from "@itwin/core-react";
8
+ import "./ColorPickerPopup.scss";
9
+ /** Properties for the [[ColorPickerPopup]] React component
10
+ * @public
11
+ */
12
+ export interface ColorPickerPopupProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, CommonProps {
13
+ /** Current color */
14
+ initialColor: ColorDef;
15
+ /** Preset colors. Pass undefined to show default preset colors. Pass empty array to show no presets.
16
+ * Displayed in rows of 9 items */
17
+ colorDefs?: ColorDef[];
18
+ /** Function to call when the color value is changed */
19
+ onColorChange?: ((newColor: ColorDef) => void) | undefined;
20
+ /** Function to call when the popup is closed */
21
+ onClose?: ((colorValue: ColorDef) => void) | undefined;
22
+ /** Disabled or not */
23
+ disabled?: boolean;
24
+ /** Readonly or not, color displayed on button but button will not trigger pop-up */
25
+ readonly?: boolean;
26
+ /** popup position. If not set RelativePosition.BottomLeft is used */
27
+ popupPosition?: RelativePosition;
28
+ /** Provides ability to return reference to HTMLButtonElement */
29
+ ref?: React.Ref<HTMLButtonElement>;
30
+ /** If true show up/down caret next to color */
31
+ showCaret?: boolean;
32
+ /** If true, don't propagate clicks out of the ColorPicker */
33
+ captureClicks?: boolean;
34
+ /** If true, don't show close button at top */
35
+ hideCloseButton?: boolean;
36
+ /** If set show input values */
37
+ colorInputType?: "hsl" | "rgb" | "hex";
38
+ }
39
+ /**
40
+ * ColorPickerButton component that allows user to select a color from a set of color swatches or to define a new color.
41
+ * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component.
42
+ * @public
43
+ */
44
+ export declare const ColorPickerPopup: (props: ColorPickerPopupProps) => JSX.Element | null;
45
45
  //# sourceMappingURL=ColorPickerPopup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerPopup.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/color/ColorPickerPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAA+B,MAAM,mBAAmB,CAAC;AAG7E,OAAO,yBAAyB,CAAC;AAIjC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW;IACvG,oBAAoB;IACpB,YAAY,EAAE,QAAQ,CAAC;IACvB;uCACmC;IACnC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC3D,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACvD,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,gEAAgE;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+BAA+B;IAC/B,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;CACxC;AAiID;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,GAAG,CAAC,OAAO,GAAG,IAAiC,CAAC"}
1
+ {"version":3,"file":"ColorPickerPopup.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/color/ColorPickerPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AAGtE,OAAO,yBAAyB,CAAC;AAKjC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW;IACvG,oBAAoB;IACpB,YAAY,EAAE,QAAQ,CAAC;IACvB;uCACmC;IACnC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC3D,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACvD,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,gEAAgE;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+BAA+B;IAC/B,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;CACxC;AAiID;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,GAAG,CAAC,OAAO,GAAG,IAAiC,CAAC"}
@@ -1,138 +1,140 @@
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 Color
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.ColorPickerPopup = void 0;
33
- // cSpell:ignore colorpicker
34
- const React = __importStar(require("react"));
35
- const classnames_1 = __importDefault(require("classnames"));
36
- const core_common_1 = require("@itwin/core-common");
37
- const appui_abstract_1 = require("@itwin/appui-abstract");
38
- const core_react_1 = require("@itwin/core-react");
39
- // import { ColorPickerPanel } from "./ColorPickerPanel";
40
- const itwinui_react_1 = require("@itwin/itwinui-react");
41
- require("./ColorPickerPopup.scss");
42
- const getCSSColorFromDef_1 = require("./getCSSColorFromDef");
43
- const UiIModelComponents_1 = require("../UiIModelComponents");
44
- // Defined using following pattern (const ColorPickerPopup at bottom) to ensure useful API documentation is extracted
45
- const ForwardRefColorPickerPopup = React.forwardRef(function ForwardRefColorPickerPopup(props, ref) {
46
- const target = React.useRef(null);
47
- const refs = (0, core_react_1.useRefs)(target, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.
48
- const [showPopup, setShowPopup] = React.useState(false);
49
- const [colorDef, setColorDef] = React.useState(props.initialColor);
50
- const initialColorRef = React.useRef(props.initialColor);
51
- React.useEffect(() => {
52
- if (props.initialColor !== initialColorRef.current) {
53
- initialColorRef.current = props.initialColor;
54
- setColorDef(props.initialColor);
55
- }
56
- }, [props.initialColor]);
57
- const defaultColors = React.useRef([
58
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.red),
59
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.orange),
60
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.yellow),
61
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.green),
62
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.blue),
63
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.mediumBlue),
64
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.indigo),
65
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.violet),
66
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.black),
67
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.white),
68
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.cyan),
69
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.fuchsia),
70
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.tan),
71
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.gray),
72
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.brown),
73
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.purple),
74
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.olive),
75
- itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.darkGreen),
76
- ]);
77
- // istanbul ignore next
78
- const closePopup = React.useCallback(() => {
79
- props.onClose && props.onClose(colorDef);
80
- setShowPopup(false);
81
- }, [colorDef, props]);
82
- const togglePopup = React.useCallback(() => {
83
- setShowPopup(!showPopup);
84
- }, [showPopup]);
85
- const handleColorChanged = React.useCallback((newColorValue) => {
86
- const newColor = core_common_1.ColorDef.fromTbgr(newColorValue.toTbgr());
87
- // istanbul ignore else
88
- if (!newColor.equals(colorDef)) {
89
- setColorDef(newColor);
90
- // istanbul ignore else
91
- props.onColorChange && props.onColorChange(newColor);
92
- }
93
- }, [colorDef, props]);
94
- const rgbaString = (0, getCSSColorFromDef_1.getCSSColorFromDef)(colorDef);
95
- const buttonStyle = { ...props.style };
96
- const swatchStyle = { backgroundColor: rgbaString };
97
- const buttonClassNames = (0, classnames_1.default)("components-colorpicker-popup-button", props.readonly && "readonly", props.className);
98
- const clickHandler = (event) => {
99
- // istanbul ignore else
100
- if (props.captureClicks)
101
- event.stopPropagation();
102
- };
103
- const colorOptions = React.useMemo(() => {
104
- if (props.colorDefs && props.colorDefs.length) {
105
- return props.colorDefs.map((def) => itwinui_react_1.ColorValue.fromTbgr(def.tbgr));
106
- }
107
- if (props.colorDefs && 0 === props.colorDefs.length)
108
- return undefined;
109
- return defaultColors.current;
110
- }, [props.colorDefs]);
111
- const popupPosition = undefined !== props.popupPosition ? props.popupPosition : appui_abstract_1.RelativePosition.BottomLeft;
112
- const [closeLabel] = React.useState(() => UiIModelComponents_1.UiIModelComponents.translate("color.close"));
113
- const [togglePopupLabel] = React.useState(() => UiIModelComponents_1.UiIModelComponents.translate("color.toggleColorPopup"));
114
- return (
115
- /* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
116
- React.createElement("div", { onClick: clickHandler },
117
- React.createElement("button", { "data-testid": "components-colorpicker-popup-button", onClick: togglePopup, className: buttonClassNames, style: buttonStyle, disabled: props.disabled, ref: refs, title: togglePopupLabel },
118
- React.createElement("div", { className: "components-colorpicker-button-container" },
119
- React.createElement("div", { className: "components-colorpicker-button-color-swatch", style: swatchStyle }),
120
- props.showCaret && React.createElement(core_react_1.WebFontIcon, { className: "components-caret", iconName: showPopup ? "icon-caret-up" : "icon-caret-down", iconSize: "x-small" }))),
121
- React.createElement(core_react_1.Popup, { className: "components-colorpicker-popup", isOpen: showPopup, position: popupPosition, onClose: closePopup, target: target.current, closeOnNestedPopupOutsideClick: true },
122
- React.createElement("div", { className: "components-colorpicker-popup-panel-padding" },
123
- !props.hideCloseButton &&
124
- React.createElement("button", { title: closeLabel, className: "core-focus-trap-ignore-initial core-dialog-close icon icon-close", "data-testid": "core-dialog-close", onClick: togglePopup }),
125
- React.createElement(itwinui_react_1.ColorPicker, { selectedColor: itwinui_react_1.ColorValue.fromTbgr(colorDef.tbgr), onChangeComplete: handleColorChanged },
126
- React.createElement(itwinui_react_1.ColorBuilder, null),
127
- props.colorInputType &&
128
- React.createElement(itwinui_react_1.ColorInputPanel, { defaultColorFormat: props.colorInputType }),
129
- colorOptions &&
130
- React.createElement(itwinui_react_1.ColorPalette, { colors: colorOptions }))))));
131
- });
132
- /**
133
- * ColorPickerButton component that allows user to select a color from a set of color swatches or to define a new color.
134
- * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component.
135
- * @public
136
- */
137
- exports.ColorPickerPopup = ForwardRefColorPickerPopup;
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 Color
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.ColorPickerPopup = void 0;
33
+ // cSpell:ignore colorpicker
34
+ const React = __importStar(require("react"));
35
+ const classnames_1 = __importDefault(require("classnames"));
36
+ const core_common_1 = require("@itwin/core-common");
37
+ const appui_abstract_1 = require("@itwin/appui-abstract");
38
+ const core_react_1 = require("@itwin/core-react");
39
+ // import { ColorPickerPanel } from "./ColorPickerPanel";
40
+ const itwinui_react_1 = require("@itwin/itwinui-react");
41
+ require("./ColorPickerPopup.scss");
42
+ const getCSSColorFromDef_1 = require("./getCSSColorFromDef");
43
+ const UiIModelComponents_1 = require("../UiIModelComponents");
44
+ const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
45
+ // Defined using following pattern (const ColorPickerPopup at bottom) to ensure useful API documentation is extracted
46
+ const ForwardRefColorPickerPopup = React.forwardRef(function ForwardRefColorPickerPopup(props, ref) {
47
+ const target = React.useRef(null);
48
+ const refs = (0, core_react_1.useRefs)(target, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.
49
+ const [showPopup, setShowPopup] = React.useState(false);
50
+ const [colorDef, setColorDef] = React.useState(props.initialColor);
51
+ const initialColorRef = React.useRef(props.initialColor);
52
+ React.useEffect(() => {
53
+ if (props.initialColor !== initialColorRef.current) {
54
+ initialColorRef.current = props.initialColor;
55
+ setColorDef(props.initialColor);
56
+ }
57
+ }, [props.initialColor]);
58
+ const defaultColors = React.useRef([
59
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.red),
60
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.orange),
61
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.yellow),
62
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.green),
63
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.blue),
64
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.mediumBlue),
65
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.indigo),
66
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.violet),
67
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.black),
68
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.white),
69
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.cyan),
70
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.fuchsia),
71
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.tan),
72
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.gray),
73
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.brown),
74
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.purple),
75
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.olive),
76
+ itwinui_react_1.ColorValue.fromTbgr(core_common_1.ColorByName.darkGreen),
77
+ ]);
78
+ // istanbul ignore next
79
+ const closePopup = React.useCallback(() => {
80
+ props.onClose && props.onClose(colorDef);
81
+ setShowPopup(false);
82
+ }, [colorDef, props]);
83
+ const togglePopup = React.useCallback(() => {
84
+ setShowPopup(!showPopup);
85
+ }, [showPopup]);
86
+ const handleColorChanged = React.useCallback((newColorValue) => {
87
+ const newColor = core_common_1.ColorDef.fromTbgr(newColorValue.toTbgr());
88
+ // istanbul ignore else
89
+ if (!newColor.equals(colorDef)) {
90
+ setColorDef(newColor);
91
+ // istanbul ignore else
92
+ props.onColorChange && props.onColorChange(newColor);
93
+ }
94
+ }, [colorDef, props]);
95
+ const rgbaString = (0, getCSSColorFromDef_1.getCSSColorFromDef)(colorDef);
96
+ const buttonStyle = { ...props.style };
97
+ const swatchStyle = { backgroundColor: rgbaString };
98
+ const buttonClassNames = (0, classnames_1.default)("components-colorpicker-popup-button", props.readonly && "readonly", props.className);
99
+ const clickHandler = (event) => {
100
+ // istanbul ignore else
101
+ if (props.captureClicks)
102
+ event.stopPropagation();
103
+ };
104
+ const colorOptions = React.useMemo(() => {
105
+ if (props.colorDefs && props.colorDefs.length) {
106
+ return props.colorDefs.map((def) => itwinui_react_1.ColorValue.fromTbgr(def.tbgr));
107
+ }
108
+ if (props.colorDefs && 0 === props.colorDefs.length)
109
+ return undefined;
110
+ return defaultColors.current;
111
+ }, [props.colorDefs]);
112
+ const popupPosition = undefined !== props.popupPosition ? props.popupPosition : appui_abstract_1.RelativePosition.BottomLeft;
113
+ const [closeLabel] = React.useState(() => UiIModelComponents_1.UiIModelComponents.translate("color.close"));
114
+ const [togglePopupLabel] = React.useState(() => UiIModelComponents_1.UiIModelComponents.translate("color.toggleColorPopup"));
115
+ return (
116
+ /* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
117
+ React.createElement("div", { onClick: clickHandler },
118
+ React.createElement("button", { "data-testid": "components-colorpicker-popup-button", onClick: togglePopup, className: buttonClassNames, style: buttonStyle, disabled: props.disabled, ref: refs, title: togglePopupLabel },
119
+ React.createElement("div", { className: "components-colorpicker-button-container" },
120
+ React.createElement("div", { className: "components-colorpicker-button-color-swatch", style: swatchStyle, "data-testid": showPopup ? "caret-up" : "caret-down" }),
121
+ props.showCaret && React.createElement(core_react_1.Icon, { className: "components-caret", iconSpec: showPopup ? React.createElement(itwinui_icons_react_1.SvgCaretUpSmall, null) : React.createElement(itwinui_icons_react_1.SvgCaretDownSmall, null) }))),
122
+ React.createElement(core_react_1.Popup, { className: "components-colorpicker-popup", isOpen: showPopup, position: popupPosition, onClose: closePopup, target: target.current, closeOnNestedPopupOutsideClick: true },
123
+ React.createElement("div", { className: "components-colorpicker-popup-panel-padding" },
124
+ !props.hideCloseButton &&
125
+ React.createElement("button", { title: closeLabel, className: "core-focus-trap-ignore-initial core-dialog-close icon", "data-testid": "core-dialog-close", onClick: togglePopup },
126
+ React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgClose, null) })),
127
+ React.createElement(itwinui_react_1.ColorPicker, { selectedColor: itwinui_react_1.ColorValue.fromTbgr(colorDef.tbgr), onChangeComplete: handleColorChanged },
128
+ React.createElement(itwinui_react_1.ColorBuilder, null),
129
+ props.colorInputType &&
130
+ React.createElement(itwinui_react_1.ColorInputPanel, { defaultColorFormat: props.colorInputType }),
131
+ colorOptions &&
132
+ React.createElement(itwinui_react_1.ColorPalette, { colors: colorOptions }))))));
133
+ });
134
+ /**
135
+ * ColorPickerButton component that allows user to select a color from a set of color swatches or to define a new color.
136
+ * @note Using forwardRef so the ColorEditor (Type Editor) can access the ref of the button element inside this component.
137
+ * @public
138
+ */
139
+ exports.ColorPickerPopup = ForwardRefColorPickerPopup;
138
140
  //# sourceMappingURL=ColorPickerPopup.js.map