@itwin/appui-react 4.15.5 → 4.16.0

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 (1348) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +5 -4
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +10 -5
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +5 -3
  10. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +5 -4
  12. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +5 -4
  14. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +75 -92
  16. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +7 -3
  18. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +7 -5
  20. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +1 -1
  23. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts +2 -1
  25. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  26. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +5 -3
  27. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.d.ts +26 -6
  29. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.d.ts.map +1 -1
  30. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  31. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts +3 -2
  32. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  33. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js +8 -4
  34. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  35. package/lib/cjs/appui-react/accudraw/Calculator.d.ts +4 -7
  36. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  37. package/lib/cjs/appui-react/accudraw/Calculator.js +1 -2
  38. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  39. package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts +6 -5
  40. package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  41. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js +5 -4
  42. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  43. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +16 -26
  44. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +12 -22
  46. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  47. package/lib/cjs/appui-react/accudraw/MenuButton.d.ts +6 -6
  48. package/lib/cjs/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  49. package/lib/cjs/appui-react/accudraw/MenuButton.js +2 -1
  50. package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
  51. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts +2 -5
  52. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  53. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js +1 -3
  54. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  55. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +2 -5
  56. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/accudraw/SquareButton.js +1 -1
  58. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  59. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/backstage/BackstageComposer.js +1 -2
  61. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  62. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  63. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +20 -2
  64. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  65. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +13 -3
  66. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  67. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -1
  68. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +48 -4
  69. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  70. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +47 -8
  71. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  72. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +1 -2
  73. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/backstage/BackstageManager.js +3 -2
  75. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  76. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  77. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +1 -0
  78. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  79. package/lib/cjs/appui-react/childwindow/CopyStyles.d.ts +1 -4
  80. package/lib/cjs/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
  81. package/lib/cjs/appui-react/childwindow/CopyStyles.js +23 -27
  82. package/lib/cjs/appui-react/childwindow/CopyStyles.js.map +1 -1
  83. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +4 -1
  84. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +1 -0
  86. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  87. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.d.ts +7 -2
  88. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js +5 -2
  90. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  91. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts +6 -14
  92. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -2
  94. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  95. package/lib/cjs/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/configurableui/TimeTracker.js +1 -1
  97. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  98. package/lib/cjs/appui-react/content/ContentControl.d.ts +4 -0
  99. package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
  100. package/lib/cjs/appui-react/content/ContentControl.js +3 -0
  101. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  102. package/lib/cjs/appui-react/content/ContentGroup.d.ts +35 -17
  103. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  104. package/lib/cjs/appui-react/content/ContentGroup.js +87 -67
  105. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  106. package/lib/cjs/appui-react/content/ContentLayout.d.ts +8 -25
  107. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  108. package/lib/cjs/appui-react/content/ContentLayout.js +60 -71
  109. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  110. package/lib/cjs/appui-react/content/ContentLayout.scss +0 -21
  111. package/lib/cjs/appui-react/content/ContentOverlay.d.ts +15 -0
  112. package/lib/cjs/appui-react/content/ContentOverlay.d.ts.map +1 -0
  113. package/lib/cjs/appui-react/content/ContentOverlay.js +23 -0
  114. package/lib/cjs/appui-react/content/ContentOverlay.js.map +1 -0
  115. package/lib/cjs/appui-react/content/ContentOverlay.scss +19 -0
  116. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts +17 -1
  117. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +12 -6
  119. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  120. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +17 -4
  121. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  122. package/lib/cjs/appui-react/content/FloatingViewportContent.js +18 -6
  123. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  124. package/lib/cjs/appui-react/content/IModelViewport.d.ts +2 -0
  125. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/content/IModelViewport.js +8 -17
  127. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  128. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts +6 -10
  129. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  130. package/lib/cjs/appui-react/content/InternalContentViewManager.js +114 -41
  131. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  132. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts +3 -2
  133. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  134. package/lib/cjs/appui-react/content/ViewportContentControl.js +4 -2
  135. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  136. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +0 -1
  137. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  138. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +3 -3
  139. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  140. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +5 -4
  141. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  142. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +0 -2
  143. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  144. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +6 -14
  145. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  146. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js +1 -1
  147. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  148. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  149. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +0 -1
  150. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  151. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +0 -1
  152. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  153. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +1 -3
  154. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  155. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  156. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +3 -3
  157. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  158. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  159. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +4 -12
  160. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  161. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  162. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  163. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts +0 -1
  164. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  165. package/lib/cjs/appui-react/feedback/ValidationTextbox.js +0 -1
  166. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  167. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +34 -9
  168. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  169. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  170. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts +2 -2
  171. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  172. package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -1
  173. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +4 -10
  174. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  175. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  176. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +7 -3
  177. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  179. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +6 -1
  180. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  182. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +3 -3
  183. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  185. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +22 -21
  186. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +92 -69
  188. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  189. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +13 -6
  190. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  191. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +20 -16
  192. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  193. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +1 -2
  195. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  196. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  197. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +15 -7
  198. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  199. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +16 -22
  200. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  201. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  202. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  203. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +2 -7
  204. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  205. package/lib/cjs/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  206. package/lib/cjs/appui-react/hooks/useActiveStageId.js +2 -7
  207. package/lib/cjs/appui-react/hooks/useActiveStageId.js.map +1 -1
  208. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/hooks/useActiveViewport.js +3 -28
  210. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  211. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  212. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +4 -6
  213. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  214. package/lib/cjs/appui-react/hooks/useConditionalProp.d.ts +15 -0
  215. package/lib/cjs/appui-react/hooks/useConditionalProp.d.ts.map +1 -0
  216. package/lib/cjs/appui-react/hooks/useConditionalProp.js +44 -0
  217. package/lib/cjs/appui-react/hooks/useConditionalProp.js.map +1 -0
  218. package/lib/cjs/appui-react/hooks/useConditionalValue.d.ts +5 -11
  219. package/lib/cjs/appui-react/hooks/useConditionalValue.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/hooks/useConditionalValue.js +22 -28
  221. package/lib/cjs/appui-react/hooks/useConditionalValue.js.map +1 -1
  222. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  223. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +4 -6
  224. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  225. package/lib/cjs/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +4 -6
  227. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  228. package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  229. package/lib/cjs/appui-react/hooks/useUiVisibility.js +3 -6
  230. package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -1
  231. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  232. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  233. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  234. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +3 -0
  235. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  236. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +0 -1
  237. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  238. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +2 -3
  239. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  240. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +15 -4
  241. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -1
  242. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/backstage/Item.scss +6 -2
  244. package/lib/cjs/appui-react/layout/base/DragManager.d.ts +1 -1
  245. package/lib/cjs/appui-react/layout/base/DragManager.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/base/DragManager.js.map +1 -1
  247. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js +1 -1
  248. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  249. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts +3 -1
  250. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  252. package/lib/cjs/appui-react/layout/state/DropTargetState.d.ts +1 -1
  253. package/lib/cjs/appui-react/layout/state/DropTargetState.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/layout/state/DropTargetState.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts +2 -1
  256. package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts.map +1 -1
  257. package/lib/cjs/appui-react/layout/state/NineZoneAction.js.map +1 -1
  258. package/lib/cjs/appui-react/layout/state/NineZoneState.d.ts +1 -1
  259. package/lib/cjs/appui-react/layout/state/NineZoneState.d.ts.map +1 -1
  260. package/lib/cjs/appui-react/layout/state/NineZoneState.js.map +1 -1
  261. package/lib/cjs/appui-react/layout/state/SavedTabState.d.ts +1 -1
  262. package/lib/cjs/appui-react/layout/state/SavedTabState.d.ts.map +1 -1
  263. package/lib/cjs/appui-react/layout/state/SavedTabState.js.map +1 -1
  264. package/lib/cjs/appui-react/layout/state/TabState.d.ts +1 -2
  265. package/lib/cjs/appui-react/layout/state/TabState.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/state/TabState.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/state/WidgetState.d.ts +1 -1
  268. package/lib/cjs/appui-react/layout/state/WidgetState.d.ts.map +1 -1
  269. package/lib/cjs/appui-react/layout/state/WidgetState.js.map +1 -1
  270. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts +2 -1
  271. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  273. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts +1 -1
  274. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -1
  275. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  276. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.d.ts +1 -1
  277. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  279. package/lib/cjs/appui-react/layout/target/_variables.scss +2 -3
  280. package/lib/cjs/appui-react/layout/widget/Content.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/layout/widget/Content.js +10 -8
  282. package/lib/cjs/appui-react/layout/widget/Content.js.map +1 -1
  283. package/lib/cjs/appui-react/layout/widget/ContentRenderer.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/layout/widget/ContentRenderer.js +13 -6
  285. package/lib/cjs/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  286. package/lib/cjs/appui-react/layout/widget/FloatingTab.d.ts +7 -1
  287. package/lib/cjs/appui-react/layout/widget/FloatingTab.d.ts.map +1 -1
  288. package/lib/cjs/appui-react/layout/widget/FloatingTab.js +19 -10
  289. package/lib/cjs/appui-react/layout/widget/FloatingTab.js.map +1 -1
  290. package/lib/cjs/appui-react/layout/widget/FloatingWidget.scss +3 -3
  291. package/lib/cjs/appui-react/layout/widget/FloatingWidgets.js +1 -1
  292. package/lib/cjs/appui-react/layout/widget/FloatingWidgets.js.map +1 -1
  293. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts +1 -0
  294. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  295. package/lib/cjs/appui-react/layout/widget/MenuTab.js +4 -8
  296. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  297. package/lib/cjs/appui-react/layout/widget/NavigationArea.scss +9 -9
  298. package/lib/cjs/appui-react/layout/widget/Tab.d.ts +1 -0
  299. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  300. package/lib/cjs/appui-react/layout/widget/Tab.js +8 -4
  301. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  302. package/lib/cjs/appui-react/layout/widget/Tab.scss +10 -1
  303. package/lib/cjs/appui-react/layout/widget/ToolsArea.scss +5 -6
  304. package/lib/cjs/appui-react/layout/widget/Widget.d.ts +2 -1
  305. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  306. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  307. package/lib/cjs/appui-react/layout/widget/tools/button/Button.scss +5 -8
  308. package/lib/cjs/appui-react/layout/widget/tools/button/Icon.scss +5 -0
  309. package/lib/cjs/appui-react/layout/widget-panels/Panel.d.ts +1 -1
  310. package/lib/cjs/appui-react/layout/widget-panels/Panel.d.ts.map +1 -1
  311. package/lib/cjs/appui-react/layout/widget-panels/Panel.js.map +1 -1
  312. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.d.ts +1 -1
  313. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  314. package/lib/cjs/appui-react/messages/InputField.d.ts +1 -0
  315. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  316. package/lib/cjs/appui-react/messages/InputField.js +21 -20
  317. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  318. package/lib/cjs/appui-react/messages/InputField.scss +2 -6
  319. package/lib/cjs/appui-react/messages/MessageManager.d.ts +2 -0
  320. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  321. package/lib/cjs/appui-react/messages/MessageManager.js +6 -1
  322. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  323. package/lib/cjs/appui-react/messages/MessageRenderer.js +2 -4
  324. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  325. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  326. package/lib/cjs/appui-react/messages/Pointer.js +1 -2
  327. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  328. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts +1 -0
  329. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  330. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js +3 -0
  331. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  332. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts +2 -1
  333. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  334. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js +4 -1
  335. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  336. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +1 -0
  337. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  339. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  340. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts +4 -6
  341. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +7 -8
  343. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  344. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +4 -1
  345. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  346. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +9 -6
  347. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  348. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +4 -6
  349. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  350. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +8 -3
  351. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  352. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +4 -1
  353. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  354. package/lib/cjs/appui-react/pickers/ListPicker.js +22 -4
  355. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  356. package/lib/cjs/appui-react/pickers/ListPicker.scss +2 -1
  357. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +9 -1
  358. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  359. package/lib/cjs/appui-react/pickers/ViewSelector.js +30 -13
  360. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  361. package/lib/cjs/appui-react/popup/CardPopup.d.ts +5 -4
  362. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  363. package/lib/cjs/appui-react/popup/CardPopup.js +5 -6
  364. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  365. package/lib/cjs/appui-react/popup/ComponentPopup.d.ts +1 -1
  366. package/lib/cjs/appui-react/popup/ComponentPopup.d.ts.map +1 -1
  367. package/lib/cjs/appui-react/popup/ComponentPopup.js.map +1 -1
  368. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +1 -2
  369. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +0 -1
  371. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  372. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +0 -3
  373. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/popup/InputEditorPopup.js +0 -2
  375. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  376. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  377. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +3 -2
  378. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  379. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  380. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  381. package/lib/cjs/appui-react/popup/PopupManager.d.ts +10 -7
  382. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  383. package/lib/cjs/appui-react/popup/PopupManager.js +15 -15
  384. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  385. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +2 -1
  386. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  387. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  388. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +1 -3
  389. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  390. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +1 -2
  391. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  392. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +4 -4
  393. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/popup/ToolbarPopup.js +3 -2
  395. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  396. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts +8 -1
  397. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  398. package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -1
  399. package/lib/cjs/appui-react/preview/new-toolbars/Badge.d.ts +2 -1
  400. package/lib/cjs/appui-react/preview/new-toolbars/Badge.d.ts.map +1 -1
  401. package/lib/cjs/appui-react/preview/new-toolbars/Badge.js +3 -2
  402. package/lib/cjs/appui-react/preview/new-toolbars/Badge.js.map +1 -1
  403. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts.map +1 -1
  404. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.js +12 -8
  405. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.js.map +1 -1
  406. package/lib/cjs/appui-react/preview/new-toolbars/Item.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/preview/new-toolbars/Item.js +8 -7
  408. package/lib/cjs/appui-react/preview/new-toolbars/Item.js.map +1 -1
  409. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.scss +3 -3
  410. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.d.ts +1 -1
  411. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.js.map +1 -1
  413. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +1 -1
  414. package/lib/cjs/appui-react/redux/ReducerRegistry.js +1 -1
  415. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  416. package/lib/cjs/appui-react/redux/SessionState.js +1 -1
  417. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  418. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts +1 -0
  419. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +11 -2
  421. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  422. package/lib/cjs/appui-react/settings/SettingsManager.d.ts +21 -0
  423. package/lib/cjs/appui-react/settings/SettingsManager.d.ts.map +1 -0
  424. package/lib/cjs/appui-react/{messages/HollowIcon.js → settings/SettingsManager.js} +6 -12
  425. package/lib/cjs/appui-react/settings/SettingsManager.js.map +1 -0
  426. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts +1 -1
  427. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  428. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +6 -12
  429. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  430. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  431. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +2 -4
  432. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  433. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +3 -3
  434. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  435. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +3 -3
  436. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  437. package/lib/cjs/appui-react/shared/ConditionalValue.d.ts +11 -4
  438. package/lib/cjs/appui-react/shared/ConditionalValue.d.ts.map +1 -1
  439. package/lib/cjs/appui-react/shared/ConditionalValue.js +5 -2
  440. package/lib/cjs/appui-react/shared/ConditionalValue.js.map +1 -1
  441. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -1
  442. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  443. package/lib/cjs/appui-react/shared/CustomItemDef.js +1 -1
  444. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  445. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  446. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  447. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  448. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  449. package/lib/cjs/appui-react/shared/ItemProps.d.ts +6 -2
  450. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  451. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  452. package/lib/cjs/appui-react/shared/MenuItem.d.ts +16 -4
  453. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  454. package/lib/cjs/appui-react/shared/MenuItem.js +5 -2
  455. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  456. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +0 -1
  457. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  458. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +0 -1
  459. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/Overflow.js +1 -1
  463. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +1 -0
  465. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/StatusBar.js +4 -18
  467. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  468. package/lib/cjs/appui-react/statusbar/StatusBar.scss +9 -9
  469. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  470. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +24 -15
  471. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  472. package/lib/cjs/appui-react/statusbar/StatusBarCornerComponentContext.d.ts +7 -0
  473. package/lib/cjs/appui-react/statusbar/StatusBarCornerComponentContext.d.ts.map +1 -0
  474. package/lib/cjs/appui-react/statusbar/StatusBarCornerComponentContext.js +14 -0
  475. package/lib/cjs/appui-react/statusbar/StatusBarCornerComponentContext.js.map +1 -0
  476. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +16 -4
  477. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  478. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  479. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +50 -9
  480. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  481. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +48 -12
  482. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  483. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts +2 -0
  484. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  485. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js +1 -0
  486. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  487. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  488. package/lib/cjs/appui-react/statusbar/dialog/Button.js +2 -1
  489. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  490. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/SectionsField.js +6 -11
  492. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  493. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts +1 -1
  494. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  495. package/lib/cjs/appui-react/statusfields/SelectionCount.js +4 -2
  496. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  497. package/lib/cjs/appui-react/statusfields/SelectionCount.scss +10 -1
  498. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  499. package/lib/cjs/appui-react/statusfields/SnapMode.js +7 -2
  500. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  501. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -1
  502. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  503. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  504. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +39 -25
  505. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  506. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js +1 -1
  507. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  508. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
  509. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  510. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +2 -2
  511. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  512. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +4 -12
  513. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  514. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +10 -12
  515. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  516. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +4 -0
  517. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +3 -2
  518. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  519. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +14 -9
  520. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  521. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  522. package/lib/cjs/appui-react/theme/ThemeManager.js +0 -2
  523. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  524. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +4 -5
  525. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +9 -5
  527. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  528. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +3 -2
  529. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  530. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +17 -5
  531. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +51 -5
  534. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  535. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +50 -7
  536. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  537. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  538. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js +6 -6
  539. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  540. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.d.ts +2 -2
  541. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  542. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js +10 -7
  543. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  544. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts +1 -2
  545. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  546. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js +11 -11
  547. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  548. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  549. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -0
  550. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  551. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts +1 -0
  552. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  553. package/lib/cjs/appui-react/toolsettings/ToolInformation.js +2 -1
  554. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +1 -1
  555. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts +2 -2
  556. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  557. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js +4 -4
  558. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  560. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +18 -7
  561. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +6 -1
  563. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +1 -1
  565. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  567. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +1 -2
  568. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  569. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -2
  570. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  571. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +4 -5
  572. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  573. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +57 -13
  574. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  575. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  576. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +3 -0
  577. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  578. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.d.ts +2 -1
  579. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  580. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +7 -10
  581. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  582. package/lib/cjs/appui-react/uistate/LocalStateStorage.d.ts +12 -0
  583. package/lib/cjs/appui-react/uistate/LocalStateStorage.d.ts.map +1 -0
  584. package/lib/cjs/appui-react/uistate/LocalStateStorage.js +15 -0
  585. package/lib/cjs/appui-react/uistate/LocalStateStorage.js.map +1 -0
  586. package/lib/cjs/appui-react/uistate/UiStateStorage.d.ts +22 -0
  587. package/lib/cjs/appui-react/uistate/UiStateStorage.d.ts.map +1 -0
  588. package/lib/cjs/appui-react/uistate/UiStateStorage.js +15 -0
  589. package/lib/cjs/appui-react/uistate/UiStateStorage.js.map +1 -0
  590. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +2 -2
  591. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  592. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +4 -6
  593. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
  594. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts +1 -1
  595. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  596. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +4 -4
  597. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  598. package/lib/cjs/appui-react/utils/PropsHelper.d.ts +2 -1
  599. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  600. package/lib/cjs/appui-react/utils/PropsHelper.js +7 -2
  601. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  602. package/lib/cjs/appui-react/utils/RectangleProps.d.ts +9 -0
  603. package/lib/cjs/appui-react/utils/RectangleProps.d.ts.map +1 -0
  604. package/lib/cjs/appui-react/utils/RectangleProps.js +10 -0
  605. package/lib/cjs/appui-react/utils/RectangleProps.js.map +1 -0
  606. package/lib/cjs/appui-react/utils/SizeProps.d.ts +9 -0
  607. package/lib/cjs/appui-react/utils/SizeProps.d.ts.map +1 -0
  608. package/lib/cjs/appui-react/{widget-panels/Tab.scss → utils/SizeProps.js} +6 -10
  609. package/lib/cjs/appui-react/utils/SizeProps.js.map +1 -0
  610. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +4 -4
  611. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  612. package/lib/cjs/appui-react/widget-panels/Frontstage.js +3 -4
  613. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  614. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  615. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js +2 -7
  616. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  617. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  618. package/lib/cjs/appui-react/widget-panels/StatusBar.js +6 -1
  619. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  620. package/lib/cjs/appui-react/widget-panels/Tab.d.ts +0 -4
  621. package/lib/cjs/appui-react/widget-panels/Tab.d.ts.map +1 -1
  622. package/lib/cjs/appui-react/widget-panels/Tab.js +12 -14
  623. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  624. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  625. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +2 -0
  626. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  627. package/lib/cjs/appui-react/widget-panels/useTransientState.d.ts +1 -1
  628. package/lib/cjs/appui-react/widget-panels/useTransientState.js +1 -1
  629. package/lib/cjs/appui-react/widget-panels/useTransientState.js.map +1 -1
  630. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +5 -2
  631. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  632. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +7 -5
  633. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  634. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts +8 -7
  635. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  636. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +67 -25
  637. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  638. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.d.ts +2 -13
  639. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  640. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js +3 -13
  641. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  642. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +4 -2
  643. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  644. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +2 -2
  645. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  646. package/lib/cjs/appui-react/widgets/Widget.d.ts +10 -1
  647. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  648. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  649. package/lib/cjs/appui-react/widgets/WidgetControl.d.ts +1 -0
  650. package/lib/cjs/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  651. package/lib/cjs/appui-react/widgets/WidgetControl.js +2 -0
  652. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  653. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +13 -14
  654. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  655. package/lib/cjs/appui-react/widgets/WidgetDef.js +71 -47
  656. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  657. package/lib/cjs/appui-react/widgets/WidgetManager.d.ts +3 -7
  658. package/lib/cjs/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  659. package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
  660. package/lib/cjs/appui-react.d.ts +12 -3
  661. package/lib/cjs/appui-react.d.ts.map +1 -1
  662. package/lib/cjs/appui-react.js +12 -3
  663. package/lib/cjs/appui-react.js.map +1 -1
  664. package/lib/esm/appui-react/UiFramework.d.ts +5 -4
  665. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  666. package/lib/esm/appui-react/UiFramework.js +7 -2
  667. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  668. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -1
  669. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +1 -1
  670. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  671. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +5 -3
  672. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  673. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +3 -2
  674. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  675. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +5 -4
  676. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  677. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +74 -91
  678. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  679. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +7 -3
  680. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  681. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +7 -5
  682. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  683. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  684. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +1 -1
  685. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  686. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts +2 -1
  687. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  688. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +5 -3
  689. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  690. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.d.ts +26 -6
  691. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.d.ts.map +1 -1
  692. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  693. package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts +3 -2
  694. package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  695. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js +7 -3
  696. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  697. package/lib/esm/appui-react/accudraw/Calculator.d.ts +4 -7
  698. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  699. package/lib/esm/appui-react/accudraw/Calculator.js +1 -2
  700. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  701. package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts +6 -5
  702. package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  703. package/lib/esm/appui-react/accudraw/CalculatorPopup.js +5 -4
  704. package/lib/esm/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  705. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +16 -26
  706. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  707. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +11 -21
  708. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  709. package/lib/esm/appui-react/accudraw/MenuButton.d.ts +6 -6
  710. package/lib/esm/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  711. package/lib/esm/appui-react/accudraw/MenuButton.js +2 -1
  712. package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
  713. package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts +2 -5
  714. package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  715. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js +1 -3
  716. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  717. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +2 -5
  718. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  719. package/lib/esm/appui-react/accudraw/SquareButton.js +1 -1
  720. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  721. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  722. package/lib/esm/appui-react/backstage/BackstageComposer.js +1 -2
  723. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  724. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  725. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +21 -3
  726. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  727. package/lib/esm/appui-react/backstage/BackstageItem.d.ts +13 -3
  728. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  729. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -1
  730. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +48 -4
  731. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  732. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +45 -7
  733. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  734. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +1 -2
  735. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  736. package/lib/esm/appui-react/backstage/BackstageManager.js +3 -2
  737. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  738. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  739. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  740. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  741. package/lib/esm/appui-react/childwindow/CopyStyles.d.ts +1 -4
  742. package/lib/esm/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
  743. package/lib/esm/appui-react/childwindow/CopyStyles.js +21 -25
  744. package/lib/esm/appui-react/childwindow/CopyStyles.js.map +1 -1
  745. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +4 -1
  746. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  747. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +1 -0
  748. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  749. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.d.ts +7 -2
  750. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.d.ts.map +1 -1
  751. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.js +5 -2
  752. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  753. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts +6 -14
  754. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  755. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -2
  756. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  757. package/lib/esm/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  758. package/lib/esm/appui-react/configurableui/TimeTracker.js +1 -1
  759. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  760. package/lib/esm/appui-react/content/ContentControl.d.ts +4 -0
  761. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  762. package/lib/esm/appui-react/content/ContentControl.js +3 -0
  763. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  764. package/lib/esm/appui-react/content/ContentGroup.d.ts +35 -17
  765. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  766. package/lib/esm/appui-react/content/ContentGroup.js +87 -67
  767. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  768. package/lib/esm/appui-react/content/ContentLayout.d.ts +8 -25
  769. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  770. package/lib/esm/appui-react/content/ContentLayout.js +56 -67
  771. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  772. package/lib/esm/appui-react/content/ContentLayout.scss +0 -21
  773. package/lib/esm/appui-react/content/ContentOverlay.d.ts +15 -0
  774. package/lib/esm/appui-react/content/ContentOverlay.d.ts.map +1 -0
  775. package/lib/esm/appui-react/content/ContentOverlay.js +19 -0
  776. package/lib/esm/appui-react/content/ContentOverlay.js.map +1 -0
  777. package/lib/esm/appui-react/content/ContentOverlay.scss +19 -0
  778. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts +17 -1
  779. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  780. package/lib/esm/appui-react/content/DefaultViewOverlay.js +12 -6
  781. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  782. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +17 -4
  783. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  784. package/lib/esm/appui-react/content/FloatingViewportContent.js +18 -6
  785. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  786. package/lib/esm/appui-react/content/IModelViewport.d.ts +2 -0
  787. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  788. package/lib/esm/appui-react/content/IModelViewport.js +8 -17
  789. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  790. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts +6 -10
  791. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  792. package/lib/esm/appui-react/content/InternalContentViewManager.js +114 -41
  793. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  794. package/lib/esm/appui-react/content/ViewportContentControl.d.ts +3 -2
  795. package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  796. package/lib/esm/appui-react/content/ViewportContentControl.js +4 -2
  797. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  798. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +0 -1
  799. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  800. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +3 -3
  801. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  802. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +5 -4
  803. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  804. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +0 -2
  805. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  806. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +6 -14
  807. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  808. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +1 -1
  809. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  810. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  811. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +0 -1
  812. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  813. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +0 -1
  814. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  815. package/lib/esm/appui-react/dialog/DialogManagerBase.js +1 -3
  816. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  817. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  818. package/lib/esm/appui-react/dialog/StandardMessageBox.js +3 -3
  819. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  820. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  821. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +4 -12
  822. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  823. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  824. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  825. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts +0 -1
  826. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  827. package/lib/esm/appui-react/feedback/ValidationTextbox.js +0 -1
  828. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  829. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +34 -9
  830. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  831. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  832. package/lib/esm/appui-react/framework/FrameworkControls.d.ts +2 -2
  833. package/lib/esm/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  834. package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -1
  835. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +4 -10
  836. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  837. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  838. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +7 -3
  839. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  840. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  841. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +6 -1
  842. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  843. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  844. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +3 -3
  845. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  846. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  847. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +22 -21
  848. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  849. package/lib/esm/appui-react/frontstage/FrontstageDef.js +92 -69
  850. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  851. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +13 -6
  852. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  853. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +20 -16
  854. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  855. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  856. package/lib/esm/appui-react/frontstage/ModalFrontstage.js +1 -2
  857. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  858. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  859. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +15 -7
  860. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  861. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +16 -22
  862. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  863. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  864. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  865. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +2 -7
  866. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  867. package/lib/esm/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  868. package/lib/esm/appui-react/hooks/useActiveStageId.js +2 -7
  869. package/lib/esm/appui-react/hooks/useActiveStageId.js.map +1 -1
  870. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  871. package/lib/esm/appui-react/hooks/useActiveViewport.js +3 -28
  872. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  873. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  874. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +4 -6
  875. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  876. package/lib/esm/appui-react/hooks/useConditionalProp.d.ts +15 -0
  877. package/lib/esm/appui-react/hooks/useConditionalProp.d.ts.map +1 -0
  878. package/lib/esm/appui-react/hooks/useConditionalProp.js +40 -0
  879. package/lib/esm/appui-react/hooks/useConditionalProp.js.map +1 -0
  880. package/lib/esm/appui-react/hooks/useConditionalValue.d.ts +5 -11
  881. package/lib/esm/appui-react/hooks/useConditionalValue.d.ts.map +1 -1
  882. package/lib/esm/appui-react/hooks/useConditionalValue.js +22 -28
  883. package/lib/esm/appui-react/hooks/useConditionalValue.js.map +1 -1
  884. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  885. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +4 -6
  886. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  887. package/lib/esm/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  888. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +4 -6
  889. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  890. package/lib/esm/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  891. package/lib/esm/appui-react/hooks/useUiVisibility.js +3 -6
  892. package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -1
  893. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  894. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  895. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  896. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +3 -0
  897. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  898. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +0 -1
  899. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  900. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +2 -3
  901. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  902. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +15 -4
  903. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -1
  904. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -1
  905. package/lib/esm/appui-react/layout/backstage/Item.scss +6 -2
  906. package/lib/esm/appui-react/layout/base/DragManager.d.ts +1 -1
  907. package/lib/esm/appui-react/layout/base/DragManager.d.ts.map +1 -1
  908. package/lib/esm/appui-react/layout/base/DragManager.js.map +1 -1
  909. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js +1 -1
  910. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  911. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts +3 -1
  912. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  913. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  914. package/lib/esm/appui-react/layout/state/DropTargetState.d.ts +1 -1
  915. package/lib/esm/appui-react/layout/state/DropTargetState.d.ts.map +1 -1
  916. package/lib/esm/appui-react/layout/state/DropTargetState.js.map +1 -1
  917. package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts +2 -1
  918. package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts.map +1 -1
  919. package/lib/esm/appui-react/layout/state/NineZoneAction.js.map +1 -1
  920. package/lib/esm/appui-react/layout/state/NineZoneState.d.ts +1 -1
  921. package/lib/esm/appui-react/layout/state/NineZoneState.d.ts.map +1 -1
  922. package/lib/esm/appui-react/layout/state/NineZoneState.js.map +1 -1
  923. package/lib/esm/appui-react/layout/state/SavedTabState.d.ts +1 -1
  924. package/lib/esm/appui-react/layout/state/SavedTabState.d.ts.map +1 -1
  925. package/lib/esm/appui-react/layout/state/SavedTabState.js.map +1 -1
  926. package/lib/esm/appui-react/layout/state/TabState.d.ts +1 -2
  927. package/lib/esm/appui-react/layout/state/TabState.d.ts.map +1 -1
  928. package/lib/esm/appui-react/layout/state/TabState.js.map +1 -1
  929. package/lib/esm/appui-react/layout/state/WidgetState.d.ts +1 -1
  930. package/lib/esm/appui-react/layout/state/WidgetState.d.ts.map +1 -1
  931. package/lib/esm/appui-react/layout/state/WidgetState.js.map +1 -1
  932. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts +2 -1
  933. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts.map +1 -1
  934. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  935. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts +1 -1
  936. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -1
  937. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  938. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.d.ts +1 -1
  939. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.d.ts.map +1 -1
  940. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  941. package/lib/esm/appui-react/layout/target/_variables.scss +2 -3
  942. package/lib/esm/appui-react/layout/widget/Content.d.ts.map +1 -1
  943. package/lib/esm/appui-react/layout/widget/Content.js +10 -8
  944. package/lib/esm/appui-react/layout/widget/Content.js.map +1 -1
  945. package/lib/esm/appui-react/layout/widget/ContentRenderer.d.ts.map +1 -1
  946. package/lib/esm/appui-react/layout/widget/ContentRenderer.js +13 -6
  947. package/lib/esm/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  948. package/lib/esm/appui-react/layout/widget/FloatingTab.d.ts +7 -1
  949. package/lib/esm/appui-react/layout/widget/FloatingTab.d.ts.map +1 -1
  950. package/lib/esm/appui-react/layout/widget/FloatingTab.js +18 -10
  951. package/lib/esm/appui-react/layout/widget/FloatingTab.js.map +1 -1
  952. package/lib/esm/appui-react/layout/widget/FloatingWidget.scss +3 -3
  953. package/lib/esm/appui-react/layout/widget/FloatingWidgets.js +2 -2
  954. package/lib/esm/appui-react/layout/widget/FloatingWidgets.js.map +1 -1
  955. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts +1 -0
  956. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  957. package/lib/esm/appui-react/layout/widget/MenuTab.js +4 -8
  958. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  959. package/lib/esm/appui-react/layout/widget/NavigationArea.scss +9 -9
  960. package/lib/esm/appui-react/layout/widget/Tab.d.ts +1 -0
  961. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  962. package/lib/esm/appui-react/layout/widget/Tab.js +9 -5
  963. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  964. package/lib/esm/appui-react/layout/widget/Tab.scss +10 -1
  965. package/lib/esm/appui-react/layout/widget/ToolsArea.scss +5 -6
  966. package/lib/esm/appui-react/layout/widget/Widget.d.ts +2 -1
  967. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  968. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  969. package/lib/esm/appui-react/layout/widget/tools/button/Button.scss +5 -8
  970. package/lib/esm/appui-react/layout/widget/tools/button/Icon.scss +5 -0
  971. package/lib/esm/appui-react/layout/widget-panels/Panel.d.ts +1 -1
  972. package/lib/esm/appui-react/layout/widget-panels/Panel.d.ts.map +1 -1
  973. package/lib/esm/appui-react/layout/widget-panels/Panel.js.map +1 -1
  974. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.d.ts +1 -1
  975. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  976. package/lib/esm/appui-react/messages/InputField.d.ts +1 -0
  977. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  978. package/lib/esm/appui-react/messages/InputField.js +23 -22
  979. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  980. package/lib/esm/appui-react/messages/InputField.scss +2 -6
  981. package/lib/esm/appui-react/messages/MessageManager.d.ts +2 -0
  982. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  983. package/lib/esm/appui-react/messages/MessageManager.js +6 -1
  984. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  985. package/lib/esm/appui-react/messages/MessageRenderer.js +2 -4
  986. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  987. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  988. package/lib/esm/appui-react/messages/Pointer.js +1 -2
  989. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  990. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts +1 -0
  991. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  992. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js +3 -0
  993. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  994. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts +2 -1
  995. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  996. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js +4 -1
  997. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  998. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +1 -0
  999. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  1000. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  1001. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  1002. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts +4 -6
  1003. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  1004. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +7 -8
  1005. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  1006. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +4 -1
  1007. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  1008. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +9 -6
  1009. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  1010. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +4 -6
  1011. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +8 -3
  1013. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  1014. package/lib/esm/appui-react/pickers/ListPicker.d.ts +4 -1
  1015. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  1016. package/lib/esm/appui-react/pickers/ListPicker.js +22 -4
  1017. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  1018. package/lib/esm/appui-react/pickers/ListPicker.scss +2 -1
  1019. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +9 -1
  1020. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/pickers/ViewSelector.js +31 -14
  1022. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  1023. package/lib/esm/appui-react/popup/CardPopup.d.ts +5 -4
  1024. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/popup/CardPopup.js +5 -6
  1026. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  1027. package/lib/esm/appui-react/popup/ComponentPopup.d.ts +1 -1
  1028. package/lib/esm/appui-react/popup/ComponentPopup.d.ts.map +1 -1
  1029. package/lib/esm/appui-react/popup/ComponentPopup.js.map +1 -1
  1030. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +1 -2
  1031. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  1032. package/lib/esm/appui-react/popup/HTMLElementPopup.js +0 -1
  1033. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  1034. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +0 -3
  1035. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  1036. package/lib/esm/appui-react/popup/InputEditorPopup.js +0 -2
  1037. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  1038. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  1039. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +2 -1
  1040. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  1041. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  1042. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  1043. package/lib/esm/appui-react/popup/PopupManager.d.ts +10 -7
  1044. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  1045. package/lib/esm/appui-react/popup/PopupManager.js +8 -8
  1046. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  1047. package/lib/esm/appui-react/popup/PositionPopup.d.ts +2 -1
  1048. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  1049. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  1050. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +1 -3
  1051. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  1052. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +1 -2
  1053. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  1054. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +4 -4
  1055. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  1056. package/lib/esm/appui-react/popup/ToolbarPopup.js +3 -2
  1057. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  1058. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts +8 -1
  1059. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  1060. package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -1
  1061. package/lib/esm/appui-react/preview/new-toolbars/Badge.d.ts +2 -1
  1062. package/lib/esm/appui-react/preview/new-toolbars/Badge.d.ts.map +1 -1
  1063. package/lib/esm/appui-react/preview/new-toolbars/Badge.js +3 -2
  1064. package/lib/esm/appui-react/preview/new-toolbars/Badge.js.map +1 -1
  1065. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts.map +1 -1
  1066. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.js +12 -8
  1067. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.js.map +1 -1
  1068. package/lib/esm/appui-react/preview/new-toolbars/Item.d.ts.map +1 -1
  1069. package/lib/esm/appui-react/preview/new-toolbars/Item.js +8 -7
  1070. package/lib/esm/appui-react/preview/new-toolbars/Item.js.map +1 -1
  1071. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.scss +3 -3
  1072. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.d.ts +1 -1
  1073. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.d.ts.map +1 -1
  1074. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.js.map +1 -1
  1075. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +1 -1
  1076. package/lib/esm/appui-react/redux/ReducerRegistry.js +1 -1
  1077. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  1078. package/lib/esm/appui-react/redux/SessionState.js +1 -1
  1079. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  1080. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts +1 -0
  1081. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  1082. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +12 -3
  1083. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  1084. package/lib/esm/appui-react/settings/SettingsManager.d.ts +21 -0
  1085. package/lib/esm/appui-react/settings/SettingsManager.d.ts.map +1 -0
  1086. package/lib/esm/appui-react/settings/SettingsManager.js +12 -0
  1087. package/lib/esm/appui-react/settings/SettingsManager.js.map +1 -0
  1088. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts +1 -1
  1089. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +6 -12
  1091. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  1092. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1093. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +2 -4
  1094. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1095. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +3 -3
  1096. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -2
  1098. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1099. package/lib/esm/appui-react/shared/ConditionalValue.d.ts +11 -4
  1100. package/lib/esm/appui-react/shared/ConditionalValue.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/shared/ConditionalValue.js +4 -1
  1102. package/lib/esm/appui-react/shared/ConditionalValue.js.map +1 -1
  1103. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -1
  1104. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/shared/CustomItemDef.js +1 -1
  1106. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1107. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1108. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1109. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1110. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1111. package/lib/esm/appui-react/shared/ItemProps.d.ts +6 -2
  1112. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1113. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1114. package/lib/esm/appui-react/shared/MenuItem.d.ts +16 -4
  1115. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1116. package/lib/esm/appui-react/shared/MenuItem.js +5 -2
  1117. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1118. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +0 -1
  1119. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  1120. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +0 -1
  1121. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1122. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  1123. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1124. package/lib/esm/appui-react/statusbar/Overflow.js +1 -1
  1125. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1126. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +1 -0
  1127. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1128. package/lib/esm/appui-react/statusbar/StatusBar.js +4 -18
  1129. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1130. package/lib/esm/appui-react/statusbar/StatusBar.scss +9 -9
  1131. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +24 -15
  1133. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1134. package/lib/esm/appui-react/statusbar/StatusBarCornerComponentContext.d.ts +7 -0
  1135. package/lib/esm/appui-react/statusbar/StatusBarCornerComponentContext.d.ts.map +1 -0
  1136. package/lib/esm/appui-react/{messages/HollowIcon.js → statusbar/StatusBarCornerComponentContext.js} +4 -10
  1137. package/lib/esm/appui-react/statusbar/StatusBarCornerComponentContext.js.map +1 -0
  1138. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +16 -4
  1139. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  1140. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  1141. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +50 -9
  1142. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  1143. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js +49 -13
  1144. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  1145. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts +2 -0
  1146. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  1147. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js +1 -0
  1148. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  1149. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1150. package/lib/esm/appui-react/statusbar/dialog/Button.js +2 -1
  1151. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1152. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1153. package/lib/esm/appui-react/statusfields/SectionsField.js +6 -11
  1154. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1155. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts +1 -1
  1156. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1157. package/lib/esm/appui-react/statusfields/SelectionCount.js +4 -2
  1158. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1159. package/lib/esm/appui-react/statusfields/SelectionCount.scss +10 -1
  1160. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1161. package/lib/esm/appui-react/statusfields/SnapMode.js +7 -2
  1162. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1163. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -1
  1164. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1165. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1166. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +41 -27
  1167. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1168. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js +2 -2
  1169. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1170. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
  1171. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1172. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +2 -2
  1173. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1174. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +4 -12
  1175. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1176. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +8 -10
  1177. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1178. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +4 -0
  1179. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +3 -2
  1180. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1181. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +14 -9
  1182. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1183. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1184. package/lib/esm/appui-react/theme/ThemeManager.js +0 -2
  1185. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1186. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +1 -2
  1187. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  1188. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +9 -5
  1189. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1190. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +3 -2
  1191. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1192. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +17 -5
  1193. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1194. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1195. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +51 -5
  1196. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1197. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +50 -7
  1198. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1199. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  1200. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js +6 -6
  1201. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  1202. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.d.ts +2 -2
  1203. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  1204. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js +10 -7
  1205. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  1206. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts +1 -2
  1207. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  1208. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js +11 -11
  1209. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  1210. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -0
  1212. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  1213. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts +1 -0
  1214. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  1215. package/lib/esm/appui-react/toolsettings/ToolInformation.js +2 -1
  1216. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +1 -1
  1217. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts +2 -2
  1218. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  1219. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js +4 -4
  1220. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  1221. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  1222. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +19 -8
  1223. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  1224. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +6 -1
  1225. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1226. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +1 -1
  1227. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +1 -1
  1228. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1229. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +1 -2
  1230. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1231. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -2
  1232. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1233. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +4 -5
  1234. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1235. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +57 -13
  1236. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1237. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  1238. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +3 -0
  1239. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1240. package/lib/esm/appui-react/uiprovider/ComponentGenerator.d.ts +2 -1
  1241. package/lib/esm/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  1242. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +7 -10
  1243. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  1244. package/lib/esm/appui-react/uistate/LocalStateStorage.d.ts +12 -0
  1245. package/lib/esm/appui-react/uistate/LocalStateStorage.d.ts.map +1 -0
  1246. package/lib/esm/appui-react/uistate/LocalStateStorage.js +12 -0
  1247. package/lib/esm/appui-react/uistate/LocalStateStorage.js.map +1 -0
  1248. package/lib/esm/appui-react/uistate/UiStateStorage.d.ts +22 -0
  1249. package/lib/esm/appui-react/uistate/UiStateStorage.d.ts.map +1 -0
  1250. package/lib/esm/appui-react/uistate/UiStateStorage.js +12 -0
  1251. package/lib/esm/appui-react/uistate/UiStateStorage.js.map +1 -0
  1252. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +2 -2
  1253. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  1254. package/lib/esm/appui-react/uistate/useUiStateStorage.js +3 -5
  1255. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
  1256. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts +1 -1
  1257. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  1258. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +1 -1
  1259. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  1260. package/lib/esm/appui-react/utils/PropsHelper.d.ts +2 -1
  1261. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1262. package/lib/esm/appui-react/utils/PropsHelper.js +7 -2
  1263. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1264. package/lib/esm/appui-react/utils/RectangleProps.d.ts +9 -0
  1265. package/lib/esm/appui-react/utils/RectangleProps.d.ts.map +1 -0
  1266. package/lib/esm/appui-react/{widget-panels/Tab.scss → utils/RectangleProps.js} +5 -10
  1267. package/lib/esm/appui-react/utils/RectangleProps.js.map +1 -0
  1268. package/lib/esm/appui-react/utils/SizeProps.d.ts +9 -0
  1269. package/lib/esm/appui-react/utils/SizeProps.d.ts.map +1 -0
  1270. package/lib/esm/appui-react/utils/SizeProps.js +9 -0
  1271. package/lib/esm/appui-react/utils/SizeProps.js.map +1 -0
  1272. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +4 -4
  1273. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1274. package/lib/esm/appui-react/widget-panels/Frontstage.js +3 -4
  1275. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1276. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  1277. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js +2 -7
  1278. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  1279. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1280. package/lib/esm/appui-react/widget-panels/StatusBar.js +6 -1
  1281. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1282. package/lib/esm/appui-react/widget-panels/Tab.d.ts +0 -4
  1283. package/lib/esm/appui-react/widget-panels/Tab.d.ts.map +1 -1
  1284. package/lib/esm/appui-react/widget-panels/Tab.js +12 -13
  1285. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  1286. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  1287. package/lib/esm/appui-react/widget-panels/ToolSettings.js +2 -0
  1288. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  1289. package/lib/esm/appui-react/widget-panels/useTransientState.d.ts +1 -1
  1290. package/lib/esm/appui-react/widget-panels/useTransientState.js +1 -1
  1291. package/lib/esm/appui-react/widget-panels/useTransientState.js.map +1 -1
  1292. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +5 -2
  1293. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1294. package/lib/esm/appui-react/widgets/BackstageAppButton.js +7 -5
  1295. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1296. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts +8 -7
  1297. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1298. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +66 -24
  1299. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1300. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.d.ts +2 -13
  1301. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  1302. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js +3 -13
  1303. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  1304. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +4 -2
  1305. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  1306. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +2 -2
  1307. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  1308. package/lib/esm/appui-react/widgets/Widget.d.ts +10 -1
  1309. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1310. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1311. package/lib/esm/appui-react/widgets/WidgetControl.d.ts +1 -0
  1312. package/lib/esm/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  1313. package/lib/esm/appui-react/widgets/WidgetControl.js +2 -0
  1314. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  1315. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +13 -14
  1316. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1317. package/lib/esm/appui-react/widgets/WidgetDef.js +71 -47
  1318. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1319. package/lib/esm/appui-react/widgets/WidgetManager.d.ts +3 -7
  1320. package/lib/esm/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  1321. package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
  1322. package/lib/esm/appui-react.d.ts +12 -3
  1323. package/lib/esm/appui-react.d.ts.map +1 -1
  1324. package/lib/esm/appui-react.js +12 -3
  1325. package/lib/esm/appui-react.js.map +1 -1
  1326. package/package.json +7 -7
  1327. package/lib/cjs/appui-react/messages/HollowIcon.d.ts +0 -10
  1328. package/lib/cjs/appui-react/messages/HollowIcon.d.ts.map +0 -1
  1329. package/lib/cjs/appui-react/messages/HollowIcon.js.map +0 -1
  1330. package/lib/cjs/appui-react/messages/MessageLabel.d.ts +0 -13
  1331. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +0 -1
  1332. package/lib/cjs/appui-react/messages/MessageLabel.js +0 -23
  1333. package/lib/cjs/appui-react/messages/MessageLabel.js.map +0 -1
  1334. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +0 -7
  1335. package/lib/cjs/appui-react/messages/getToastCategory.d.ts.map +0 -1
  1336. package/lib/cjs/appui-react/messages/getToastCategory.js +0 -28
  1337. package/lib/cjs/appui-react/messages/getToastCategory.js.map +0 -1
  1338. package/lib/esm/appui-react/messages/HollowIcon.d.ts +0 -10
  1339. package/lib/esm/appui-react/messages/HollowIcon.d.ts.map +0 -1
  1340. package/lib/esm/appui-react/messages/HollowIcon.js.map +0 -1
  1341. package/lib/esm/appui-react/messages/MessageLabel.d.ts +0 -13
  1342. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +0 -1
  1343. package/lib/esm/appui-react/messages/MessageLabel.js +0 -19
  1344. package/lib/esm/appui-react/messages/MessageLabel.js.map +0 -1
  1345. package/lib/esm/appui-react/messages/getToastCategory.d.ts +0 -7
  1346. package/lib/esm/appui-react/messages/getToastCategory.d.ts.map +0 -1
  1347. package/lib/esm/appui-react/messages/getToastCategory.js +0 -24
  1348. package/lib/esm/appui-react/messages/getToastCategory.js.map +0 -1
@@ -57,21 +57,17 @@ function QuantityFormatSettingsPage({ initialQuantityType, availableUnitSystems,
57
57
  const [clearEnabled, setClearEnabled] = React.useState(core_frontend_1.IModelApp.quantityFormatter.hasActiveOverride(initialQuantityType, true));
58
58
  const newQuantityTypeRef = React.useRef();
59
59
  React.useEffect(() => {
60
- const handleUnitSystemChanged = () => {
60
+ return core_frontend_1.IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(() => {
61
61
  if (activeUnitSystemKey !== core_frontend_1.IModelApp.quantityFormatter.activeUnitSystem) {
62
62
  setActiveUnitSystemKey(core_frontend_1.IModelApp.quantityFormatter.activeUnitSystem);
63
63
  setActiveFormatterSpec(core_frontend_1.IModelApp.quantityFormatter.findFormatterSpecByQuantityType(activeQuantityType));
64
64
  setSaveEnabled(false);
65
65
  setClearEnabled(core_frontend_1.IModelApp.quantityFormatter.hasActiveOverride(activeQuantityType, true));
66
66
  }
67
- };
68
- core_frontend_1.IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(handleUnitSystemChanged);
69
- return () => {
70
- core_frontend_1.IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.removeListener(handleUnitSystemChanged);
71
- };
67
+ });
72
68
  }, [activeQuantityType, activeUnitSystemKey]);
73
69
  React.useEffect(() => {
74
- const handleFormatChanged = (args) => {
70
+ return core_frontend_1.IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener((args) => {
75
71
  if (!newQuantityTypeRef.current) {
76
72
  const quantityKey = core_frontend_1.IModelApp.quantityFormatter.getQuantityTypeKey(activeQuantityType);
77
73
  if (args.quantityType === quantityKey) {
@@ -81,11 +77,7 @@ function QuantityFormatSettingsPage({ initialQuantityType, availableUnitSystems,
81
77
  }
82
78
  }
83
79
  newQuantityTypeRef.current = undefined;
84
- };
85
- core_frontend_1.IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener(handleFormatChanged);
86
- return () => {
87
- core_frontend_1.IModelApp.quantityFormatter.onQuantityFormatsChanged.removeListener(handleFormatChanged);
88
- };
80
+ });
89
81
  }, [activeQuantityType]);
90
82
  const saveChanges = React.useCallback((afterSaveFunction, args) => {
91
83
  if (activeFormatterSpec) {
@@ -101,7 +93,9 @@ function QuantityFormatSettingsPage({ initialQuantityType, availableUnitSystems,
101
93
  }
102
94
  afterSaveFunction(args);
103
95
  }, [activeFormatterSpec, activeQuantityType]);
96
+ // eslint-disable-next-line deprecation/deprecation
104
97
  (0, core_react_1.useSaveBeforeActivatingNewSettingsTab)(UiFramework_1.UiFramework.settingsManager, saveChanges);
98
+ // eslint-disable-next-line deprecation/deprecation
105
99
  (0, core_react_1.useSaveBeforeClosingSettingsContainer)(UiFramework_1.UiFramework.settingsManager, saveChanges);
106
100
  const processListboxValueChange = React.useCallback((newQuantityType) => {
107
101
  const volumeFormatterSpec = core_frontend_1.IModelApp.quantityFormatter.findFormatterSpecByQuantityType(newQuantityType);
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityFormat.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quantityformatting/QuantityFormat.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA+B;AAC/B,+BAA+B;AAC/B,wDAAmD;AAMnD,wDAI8B;AAM9B,4EAGwC;AAExC,kDAK2B;AAC3B,mDAAgD;AAChD,6DAA0D;AAC1D,wDAAsD;AACtD,oEAAwD;AACxD,+DAA4D;AAE5D,SAAS,cAAc,CAAC,IAAiB,EAAE,IAAiB;IAC1D,MAAM,OAAO,GAAG,IAAI,2BAAW,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC;AAUD;;;;;GAKG;AACH,SAAgB,sCAAsC,CACpD,YAAoB,EACpB,IAAgD;IAEhD,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;IAClE,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,oCAAoC,CAAC;QAClE,QAAQ,EAAE,yBAAW,CAAC,SAAS,CAAC,uCAAuC,CAAC;QACxE,IAAI,EAAE,CACJ,oBAAC,0BAA0B,IACzB,mBAAmB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CAAC,CAAC;IACpD,CAAC,EAAE,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEvC,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACtC,KAAK,yBAAS,CAAC,iBAAiB,CAAC,iBAAiB,CAChD,YAAY,EACZ,WAAW,CACZ,CAAC;QACF,WAAW,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;IAE7C,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1C,WAAW,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,CACL,oBAAC,sBAAM,IACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,wDAAwD,EAClE,UAAU,QACV,oBAAoB,QACpB,qBAAqB;QAErB,oBAAC,sBAAM,CAAC,QAAQ,OAAG;QACnB,oBAAC,sBAAM,CAAC,IAAI,IACV,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;YAEvE,oBAAC,sBAAM,CAAC,QAAQ,IAAC,SAAS,EAAE,qBAAqB,GAAI;YACrD,oBAAC,sBAAM,CAAC,OAAO,iFAEE;YACjB,oBAAC,sBAAM,CAAC,SAAS;gBACf,oBAAC,sBAAM,IAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,QAAQ,IAClD,SAAS,CAAC,YAAY,CAAC,CACjB;gBACT,oBAAC,sBAAM,IAAC,OAAO,EAAE,YAAY,IAAG,SAAS,CAAC,WAAW,CAAC,CAAU,CAC/C,CACP,CACP,CACV,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport \"./QuantityFormat.scss\";\nimport * as React from \"react\";\nimport { DeepCompare } from \"@itwin/core-geometry\";\nimport type {\n QuantityFormatsChangedArgs,\n QuantityTypeArg,\n QuantityTypeKey,\n} from \"@itwin/core-frontend\";\nimport {\n getQuantityTypeKey,\n IModelApp,\n QuantityType,\n} from \"@itwin/core-frontend\";\nimport type {\n FormatProps,\n FormatterSpec,\n UnitSystemKey,\n} from \"@itwin/core-quantity\";\nimport {\n FormatSample,\n QuantityFormatPanel,\n} from \"@itwin/imodel-components-react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport {\n Listbox,\n ListboxItem,\n useSaveBeforeActivatingNewSettingsTab,\n useSaveBeforeClosingSettingsContainer,\n} from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport { UnitSystemSelector } from \"./UnitSystemSelector\";\nimport { Button, Dialog } from \"@itwin/itwinui-react\";\nimport { SvgMeasure } from \"@itwin/itwinui-icons-react\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\n\nfunction formatAreEqual(obj1: FormatProps, obj2: FormatProps) {\n const compare = new DeepCompare();\n return compare.compare(obj1, obj2);\n}\n\n/** Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport interface QuantityFormatterSettingsOptions {\n initialQuantityType: QuantityTypeArg;\n availableUnitSystems: Set<UnitSystemKey>;\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @param opts - Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport function getQuantityFormatsSettingsManagerEntry(\n itemPriority: number,\n opts?: Partial<QuantityFormatterSettingsOptions>\n): SettingsTabEntry {\n const { availableUnitSystems, initialQuantityType } = { ...opts };\n return {\n itemPriority,\n tabId: \"uifw:Quantity\",\n label: UiFramework.translate(\"settings.quantity-formatting.label\"),\n subLabel: UiFramework.translate(\"settings.quantity-formatting.subLabel\"),\n page: (\n <QuantityFormatSettingsPage\n initialQuantityType={initialQuantityType ?? QuantityType.Length}\n availableUnitSystems={\n availableUnitSystems ??\n new Set([\"metric\", \"imperial\", \"usCustomary\", \"usSurvey\"])\n }\n />\n ),\n isDisabled: false,\n icon: <SvgMeasure />,\n tooltip: UiFramework.translate(\"settings.quantity-formatting.tooltip\"),\n pageWillHandleCloseRequest: true,\n };\n}\n\n/** UI Component shown in settings page to set the active Presentation Unit System and to set format overrides.\n * @beta\n */\nexport function QuantityFormatSettingsPage({\n initialQuantityType,\n availableUnitSystems,\n}: QuantityFormatterSettingsOptions) {\n const { translate } = useTranslation();\n const [activeUnitSystemKey, setActiveUnitSystemKey] = React.useState(\n IModelApp.quantityFormatter.activeUnitSystem\n );\n const [activeQuantityType, setActiveQuantityType] = React.useState(\n getQuantityTypeKey(initialQuantityType)\n );\n const [activeFormatterSpec, setActiveFormatterSpec] = React.useState<\n FormatterSpec | undefined\n >(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n getQuantityTypeKey(activeQuantityType)\n )\n );\n const [saveEnabled, setSaveEnabled] = React.useState(false);\n const [clearEnabled, setClearEnabled] = React.useState(\n IModelApp.quantityFormatter.hasActiveOverride(initialQuantityType, true)\n );\n const newQuantityTypeRef = React.useRef<QuantityTypeKey>();\n\n React.useEffect(() => {\n const handleUnitSystemChanged = (): void => {\n if (\n activeUnitSystemKey !== IModelApp.quantityFormatter.activeUnitSystem\n ) {\n setActiveUnitSystemKey(IModelApp.quantityFormatter.activeUnitSystem);\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n };\n\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(\n handleUnitSystemChanged\n );\n return () => {\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.removeListener(\n handleUnitSystemChanged\n );\n };\n }, [activeQuantityType, activeUnitSystemKey]);\n\n React.useEffect(() => {\n const handleFormatChanged = (args: QuantityFormatsChangedArgs): void => {\n if (!newQuantityTypeRef.current) {\n const quantityKey =\n IModelApp.quantityFormatter.getQuantityTypeKey(activeQuantityType);\n if (args.quantityType === quantityKey) {\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n }\n newQuantityTypeRef.current = undefined;\n };\n IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener(\n handleFormatChanged\n );\n return () => {\n IModelApp.quantityFormatter.onQuantityFormatsChanged.removeListener(\n handleFormatChanged\n );\n };\n }, [activeQuantityType]);\n\n const saveChanges = React.useCallback(\n (afterSaveFunction: (args: any) => void, args?: any) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={args}\n onDialogClose={afterSaveFunction}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n afterSaveFunction(args);\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n useSaveBeforeActivatingNewSettingsTab(\n UiFramework.settingsManager,\n saveChanges\n );\n useSaveBeforeClosingSettingsContainer(\n UiFramework.settingsManager,\n saveChanges\n );\n\n const processListboxValueChange = React.useCallback(\n (newQuantityType: QuantityTypeKey) => {\n const volumeFormatterSpec =\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n newQuantityType\n );\n setActiveFormatterSpec(volumeFormatterSpec);\n setActiveQuantityType(newQuantityType);\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(newQuantityType, true)\n );\n },\n []\n );\n\n const onListboxValueChange = React.useCallback(\n (newQuantityType: string) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n newQuantityTypeRef.current = newQuantityType;\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={newQuantityType}\n onDialogClose={processListboxValueChange}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n processListboxValueChange(newQuantityType);\n },\n [activeFormatterSpec, activeQuantityType, processListboxValueChange]\n );\n\n const handleOnFormatChanged = React.useCallback(\n async (formatProps: FormatProps) => {\n if (activeFormatterSpec) {\n const newSpec =\n await IModelApp.quantityFormatter.generateFormatterSpecByType(\n activeQuantityType,\n formatProps\n );\n const formatPropsInUse =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(\n activeQuantityType\n );\n if (formatPropsInUse)\n setSaveEnabled(!formatAreEqual(formatProps, formatPropsInUse));\n setActiveFormatterSpec(newSpec);\n }\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n const handleOnFormatSave = React.useCallback(async () => {\n if (activeFormatterSpec) {\n const format = activeFormatterSpec.format.toJSON();\n await IModelApp.quantityFormatter.setOverrideFormat(\n activeQuantityType,\n format\n );\n setClearEnabled(true);\n }\n }, [activeFormatterSpec, activeQuantityType]);\n\n const handleOnFormatReset = React.useCallback(async () => {\n await IModelApp.quantityFormatter.clearOverrideFormats(activeQuantityType);\n setClearEnabled(false);\n }, [activeQuantityType]);\n\n const processNewUnitSystem = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n await IModelApp.quantityFormatter.setActiveUnitSystem(unitSystem);\n },\n []\n );\n\n const handleUnitSystemSelected = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n if (unitSystem === activeUnitSystemKey) return;\n saveChanges(processNewUnitSystem, unitSystem);\n },\n [activeUnitSystemKey, processNewUnitSystem, saveChanges]\n );\n\n return (\n <div className=\"quantity-formatting-container\">\n <UnitSystemSelector\n selectedUnitSystemKey={activeUnitSystemKey}\n availableUnitSystems={availableUnitSystems}\n onUnitSystemSelected={handleUnitSystemSelected}\n />\n <span className=\"uifw-quantity-format-section-label\">\n {translate(\"settings.quantity-formatting.formatSectionLabel\")}\n </span>\n <div className=\"uifw-quantity-types-container\">\n <div className=\"left-panel\">\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Listbox\n id=\"uifw-quantity-types-list\"\n className=\"uifw-quantity-types\"\n onListboxValueChange={onListboxValueChange}\n selectedValue={activeQuantityType}\n >\n {[...IModelApp.quantityFormatter.quantityTypesRegistry.keys()].map(\n (key) => {\n const entry =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(key)!;\n const description = entry.description;\n const label = entry.label;\n return (\n // eslint-disable-next-line deprecation/deprecation\n <ListboxItem\n key={entry.key}\n className=\"quantity-type-list-entry\"\n value={entry.key}\n >\n <span\n className=\"map-source-list-entry-name\"\n title={description}\n >\n {label}\n </span>\n </ListboxItem>\n );\n }\n )}\n </Listbox>\n </div>\n <div className=\"right-panel\">\n {activeFormatterSpec && (\n <>\n <div className=\"uifw-quantity-types-right-top\">\n <div className=\"uifw-quantity-types-right-top-sample\">\n <FormatSample\n formatSpec={activeFormatterSpec}\n initialMagnitude={1234.56}\n hideLabels\n />\n </div>\n </div>\n <div className=\"uifw-quantity-types-formats\">\n <QuantityFormatPanel\n onFormatChange={handleOnFormatChanged}\n quantityType={activeQuantityType}\n />\n </div>\n <div className=\"components-button-panel\">\n <Button\n styleType=\"cta\"\n onClick={handleOnFormatSave}\n disabled={!saveEnabled}\n >\n {translate(\"settings.quantity-formatting.setButtonLabel\")}\n </Button>\n <Button\n styleType=\"default\"\n onClick={handleOnFormatReset}\n disabled={!clearEnabled}\n >\n {translate(\"settings.quantity-formatting.clearButtonLabel\")}\n </Button>\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction SaveFormatModalDialog({\n formatProps,\n quantityType,\n onDialogCloseArgs,\n onDialogClose,\n}: {\n formatProps: FormatProps;\n quantityType: QuantityTypeKey;\n onDialogCloseArgs?: any;\n onDialogClose: (args?: any) => void;\n}) {\n const { translate } = useTranslation();\n const [isOpen, setIsOpen] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setIsOpen(false);\n UiFramework.dialogs.modal.close();\n onDialogClose && onDialogClose(onDialogCloseArgs);\n }, [onDialogClose, onDialogCloseArgs]);\n\n const handleOK = React.useCallback(() => {\n void IModelApp.quantityFormatter.setOverrideFormat(\n quantityType,\n formatProps\n );\n handleClose();\n }, [formatProps, handleClose, quantityType]);\n\n const handleCancel = React.useCallback(() => {\n handleClose();\n }, [handleClose]);\n\n return (\n <Dialog\n isOpen={isOpen}\n onClose={handleCancel}\n className=\"uifw-settings-quantityFormatting-saveFormatModalDialog\"\n closeOnEsc\n closeOnExternalClick\n preventDocumentScroll\n >\n <Dialog.Backdrop />\n <Dialog.Main\n style={{ minWidth: 200, maxWidth: 400, minHeight: 150, maxHeight: 400 }}\n >\n <Dialog.TitleBar titleText={\"Save Format Changes\"} />\n <Dialog.Content>\n Do you want to save changes to format before changing to another type?\n </Dialog.Content>\n <Dialog.ButtonBar>\n <Button styleType=\"high-visibility\" onClick={handleOK}>\n {translate(\"dialog.yes\")}\n </Button>\n <Button onClick={handleCancel}>{translate(\"dialog.no\")}</Button>\n </Dialog.ButtonBar>\n </Dialog.Main>\n </Dialog>\n );\n}\n"]}
1
+ {"version":3,"file":"QuantityFormat.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quant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,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;YAEvE,oBAAC,sBAAM,CAAC,QAAQ,IAAC,SAAS,EAAE,qBAAqB,GAAI;YACrD,oBAAC,sBAAM,CAAC,OAAO,iFAEE;YACjB,oBAAC,sBAAM,CAAC,SAAS;gBACf,oBAAC,sBAAM,IAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,QAAQ,IAClD,SAAS,CAAC,YAAY,CAAC,CACjB;gBACT,oBAAC,sBAAM,IAAC,OAAO,EAAE,YAAY,IAAG,SAAS,CAAC,WAAW,CAAC,CAAU,CAC/C,CACP,CACP,CACV,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport \"./QuantityFormat.scss\";\nimport * as React from \"react\";\nimport { DeepCompare } from \"@itwin/core-geometry\";\nimport type { QuantityTypeArg, QuantityTypeKey } from \"@itwin/core-frontend\";\nimport {\n getQuantityTypeKey,\n IModelApp,\n QuantityType,\n} from \"@itwin/core-frontend\";\nimport type {\n FormatProps,\n FormatterSpec,\n UnitSystemKey,\n} from \"@itwin/core-quantity\";\nimport {\n FormatSample,\n QuantityFormatPanel,\n} from \"@itwin/imodel-components-react\";\nimport {\n Listbox,\n ListboxItem,\n useSaveBeforeActivatingNewSettingsTab,\n useSaveBeforeClosingSettingsContainer,\n} from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport { UnitSystemSelector } from \"./UnitSystemSelector\";\nimport { Button, Dialog } from \"@itwin/itwinui-react\";\nimport { SvgMeasure } from \"@itwin/itwinui-icons-react\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\nimport type { SettingsTabEntry } from \"../SettingsManager\";\n\nfunction formatAreEqual(obj1: FormatProps, obj2: FormatProps) {\n const compare = new DeepCompare();\n return compare.compare(obj1, obj2);\n}\n\n/** Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport interface QuantityFormatterSettingsOptions {\n initialQuantityType: QuantityTypeArg;\n availableUnitSystems: Set<UnitSystemKey>;\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @param opts - Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport function getQuantityFormatsSettingsManagerEntry(\n itemPriority: number,\n opts?: Partial<QuantityFormatterSettingsOptions>\n): SettingsTabEntry {\n const { availableUnitSystems, initialQuantityType } = { ...opts };\n return {\n itemPriority,\n tabId: \"uifw:Quantity\",\n label: UiFramework.translate(\"settings.quantity-formatting.label\"),\n subLabel: UiFramework.translate(\"settings.quantity-formatting.subLabel\"),\n page: (\n <QuantityFormatSettingsPage\n initialQuantityType={initialQuantityType ?? QuantityType.Length}\n availableUnitSystems={\n availableUnitSystems ??\n new Set([\"metric\", \"imperial\", \"usCustomary\", \"usSurvey\"])\n }\n />\n ),\n isDisabled: false,\n icon: <SvgMeasure />,\n tooltip: UiFramework.translate(\"settings.quantity-formatting.tooltip\"),\n pageWillHandleCloseRequest: true,\n };\n}\n\n/** UI Component shown in settings page to set the active Presentation Unit System and to set format overrides.\n * @beta\n */\nexport function QuantityFormatSettingsPage({\n initialQuantityType,\n availableUnitSystems,\n}: QuantityFormatterSettingsOptions) {\n const { translate } = useTranslation();\n const [activeUnitSystemKey, setActiveUnitSystemKey] = React.useState(\n IModelApp.quantityFormatter.activeUnitSystem\n );\n const [activeQuantityType, setActiveQuantityType] = React.useState(\n getQuantityTypeKey(initialQuantityType)\n );\n const [activeFormatterSpec, setActiveFormatterSpec] = React.useState<\n FormatterSpec | undefined\n >(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n getQuantityTypeKey(activeQuantityType)\n )\n );\n const [saveEnabled, setSaveEnabled] = React.useState(false);\n const [clearEnabled, setClearEnabled] = React.useState(\n IModelApp.quantityFormatter.hasActiveOverride(initialQuantityType, true)\n );\n const newQuantityTypeRef = React.useRef<QuantityTypeKey>();\n\n React.useEffect(() => {\n return IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(\n () => {\n if (\n activeUnitSystemKey !== IModelApp.quantityFormatter.activeUnitSystem\n ) {\n setActiveUnitSystemKey(IModelApp.quantityFormatter.activeUnitSystem);\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n }\n );\n }, [activeQuantityType, activeUnitSystemKey]);\n\n React.useEffect(() => {\n return IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener(\n (args) => {\n if (!newQuantityTypeRef.current) {\n const quantityKey =\n IModelApp.quantityFormatter.getQuantityTypeKey(activeQuantityType);\n if (args.quantityType === quantityKey) {\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n }\n newQuantityTypeRef.current = undefined;\n }\n );\n }, [activeQuantityType]);\n\n const saveChanges = React.useCallback(\n (afterSaveFunction: (args: any) => void, args?: any) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={args}\n onDialogClose={afterSaveFunction}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n afterSaveFunction(args);\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n // eslint-disable-next-line deprecation/deprecation\n useSaveBeforeActivatingNewSettingsTab(\n UiFramework.settingsManager,\n saveChanges\n );\n // eslint-disable-next-line deprecation/deprecation\n useSaveBeforeClosingSettingsContainer(\n UiFramework.settingsManager,\n saveChanges\n );\n\n const processListboxValueChange = React.useCallback(\n (newQuantityType: QuantityTypeKey) => {\n const volumeFormatterSpec =\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n newQuantityType\n );\n setActiveFormatterSpec(volumeFormatterSpec);\n setActiveQuantityType(newQuantityType);\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(newQuantityType, true)\n );\n },\n []\n );\n\n const onListboxValueChange = React.useCallback(\n (newQuantityType: string) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n newQuantityTypeRef.current = newQuantityType;\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={newQuantityType}\n onDialogClose={processListboxValueChange}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n processListboxValueChange(newQuantityType);\n },\n [activeFormatterSpec, activeQuantityType, processListboxValueChange]\n );\n\n const handleOnFormatChanged = React.useCallback(\n async (formatProps: FormatProps) => {\n if (activeFormatterSpec) {\n const newSpec =\n await IModelApp.quantityFormatter.generateFormatterSpecByType(\n activeQuantityType,\n formatProps\n );\n const formatPropsInUse =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(\n activeQuantityType\n );\n if (formatPropsInUse)\n setSaveEnabled(!formatAreEqual(formatProps, formatPropsInUse));\n setActiveFormatterSpec(newSpec);\n }\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n const handleOnFormatSave = React.useCallback(async () => {\n if (activeFormatterSpec) {\n const format = activeFormatterSpec.format.toJSON();\n await IModelApp.quantityFormatter.setOverrideFormat(\n activeQuantityType,\n format\n );\n setClearEnabled(true);\n }\n }, [activeFormatterSpec, activeQuantityType]);\n\n const handleOnFormatReset = React.useCallback(async () => {\n await IModelApp.quantityFormatter.clearOverrideFormats(activeQuantityType);\n setClearEnabled(false);\n }, [activeQuantityType]);\n\n const processNewUnitSystem = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n await IModelApp.quantityFormatter.setActiveUnitSystem(unitSystem);\n },\n []\n );\n\n const handleUnitSystemSelected = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n if (unitSystem === activeUnitSystemKey) return;\n saveChanges(processNewUnitSystem, unitSystem);\n },\n [activeUnitSystemKey, processNewUnitSystem, saveChanges]\n );\n\n return (\n <div className=\"quantity-formatting-container\">\n <UnitSystemSelector\n selectedUnitSystemKey={activeUnitSystemKey}\n availableUnitSystems={availableUnitSystems}\n onUnitSystemSelected={handleUnitSystemSelected}\n />\n <span className=\"uifw-quantity-format-section-label\">\n {translate(\"settings.quantity-formatting.formatSectionLabel\")}\n </span>\n <div className=\"uifw-quantity-types-container\">\n <div className=\"left-panel\">\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Listbox\n id=\"uifw-quantity-types-list\"\n className=\"uifw-quantity-types\"\n onListboxValueChange={onListboxValueChange}\n selectedValue={activeQuantityType}\n >\n {[...IModelApp.quantityFormatter.quantityTypesRegistry.keys()].map(\n (key) => {\n const entry =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(key)!;\n const description = entry.description;\n const label = entry.label;\n return (\n // eslint-disable-next-line deprecation/deprecation\n <ListboxItem\n key={entry.key}\n className=\"quantity-type-list-entry\"\n value={entry.key}\n >\n <span\n className=\"map-source-list-entry-name\"\n title={description}\n >\n {label}\n </span>\n </ListboxItem>\n );\n }\n )}\n </Listbox>\n </div>\n <div className=\"right-panel\">\n {activeFormatterSpec && (\n <>\n <div className=\"uifw-quantity-types-right-top\">\n <div className=\"uifw-quantity-types-right-top-sample\">\n <FormatSample\n formatSpec={activeFormatterSpec}\n initialMagnitude={1234.56}\n hideLabels\n />\n </div>\n </div>\n <div className=\"uifw-quantity-types-formats\">\n <QuantityFormatPanel\n onFormatChange={handleOnFormatChanged}\n quantityType={activeQuantityType}\n />\n </div>\n <div className=\"components-button-panel\">\n <Button\n styleType=\"cta\"\n onClick={handleOnFormatSave}\n disabled={!saveEnabled}\n >\n {translate(\"settings.quantity-formatting.setButtonLabel\")}\n </Button>\n <Button\n styleType=\"default\"\n onClick={handleOnFormatReset}\n disabled={!clearEnabled}\n >\n {translate(\"settings.quantity-formatting.clearButtonLabel\")}\n </Button>\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction SaveFormatModalDialog({\n formatProps,\n quantityType,\n onDialogCloseArgs,\n onDialogClose,\n}: {\n formatProps: FormatProps;\n quantityType: QuantityTypeKey;\n onDialogCloseArgs?: any;\n onDialogClose: (args?: any) => void;\n}) {\n const { translate } = useTranslation();\n const [isOpen, setIsOpen] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setIsOpen(false);\n UiFramework.dialogs.modal.close();\n onDialogClose && onDialogClose(onDialogCloseArgs);\n }, [onDialogClose, onDialogCloseArgs]);\n\n const handleOK = React.useCallback(() => {\n void IModelApp.quantityFormatter.setOverrideFormat(\n quantityType,\n formatProps\n );\n handleClose();\n }, [formatProps, handleClose, quantityType]);\n\n const handleCancel = React.useCallback(() => {\n handleClose();\n }, [handleClose]);\n\n return (\n <Dialog\n isOpen={isOpen}\n onClose={handleCancel}\n className=\"uifw-settings-quantityFormatting-saveFormatModalDialog\"\n closeOnEsc\n closeOnExternalClick\n preventDocumentScroll\n >\n <Dialog.Backdrop />\n <Dialog.Main\n style={{ minWidth: 200, maxWidth: 400, minHeight: 150, maxHeight: 400 }}\n >\n <Dialog.TitleBar titleText={\"Save Format Changes\"} />\n <Dialog.Content>\n Do you want to save changes to format before changing to another type?\n </Dialog.Content>\n <Dialog.ButtonBar>\n <Button styleType=\"high-visibility\" onClick={handleOK}>\n {translate(\"dialog.yes\")}\n </Button>\n <Button onClick={handleCancel}>{translate(\"dialog.no\")}</Button>\n </Dialog.ButtonBar>\n </Dialog.Main>\n </Dialog>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"UiSettingsPage.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAe1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,sBA+U7B;AAsBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,GACnB,gBAAgB,CAUlB"}
1
+ {"version":3,"file":"UiSettingsPage.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAc1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,sBA6U7B;AAsBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,GACnB,gBAAgB,CAUlB"}
@@ -58,8 +58,7 @@ function UiSettingsPage() {
58
58
  ConfigurableUiState_1.ConfigurableUiActionId.SetToolbarOpacity,
59
59
  SyncUiEventDispatcher_1.SyncUiEventId.ShowHideManagerSettingChange,
60
60
  ];
61
- // eslint-disable-next-line deprecation/deprecation
62
- const handleSyncUiEvent = (args) => {
61
+ return SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.addListener((args) => {
63
62
  if (syncIdsOfInterest.some((value) => args.eventIds.has(value))) {
64
63
  if (UiFramework_1.UiFramework.getColorTheme() !== theme)
65
64
  setTheme(UiFramework_1.UiFramework.getColorTheme());
@@ -88,8 +87,7 @@ function UiSettingsPage() {
88
87
  if (UiFramework_1.UiFramework.getToolbarOpacity() !== toolbarOpacity)
89
88
  setToolbarOpacity(UiFramework_1.UiFramework.getToolbarOpacity());
90
89
  }
91
- };
92
- return SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);
90
+ });
93
91
  }, [
94
92
  autoCollapseUnpinnedPanels,
95
93
  autoHideUi,
@@ -1 +1 @@
1
- {"version":3,"file":"UiSettingsPage.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0FAAoF;AACpF,iCAA+B;AAC/B,+BAA+B;AAE/B,mDAAgD;AAChD,8EAG4C;AAE5C,wDAAoE;AAEpE,+DAA4D;AAC5D,iDAA+E;AAC/E,yEAAyE;AAEzE,4CAA4C;AAE5C;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc;IAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5E,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAChE,GAAG,EAAE,CAAC,yBAAW,CAAC,kBAAkB,CACrC,CAAC;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CACxD,GAAG,EAAE,CAAC,yBAAW,CAAC,cAAc,CACjC,CAAC;IACF,MAA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,EACD,SAAS,EACP,oBAAC,sBAAM,IACL,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EACpB,MAAM,EAAE,CAAC,aAAa,CAAC,EACvB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,qBAAqB,EAC/B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,QAAQ,EAAC,KAAK,EACd,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAChC,GAEJ,CACE,CACP,CAAC;AACJ,CAAC;AA/UD,wCA+UC;AAQD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,kBAAkB;YAC/B,8BAAM,SAAS,EAAC,OAAO,IAAE,KAAK,CAAQ;YACtC,8BAAM,SAAS,EAAC,aAAa,IAAE,WAAW,CAAQ,CAC9C;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,SAAS,CAAO,CAChD,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CACvC,YAAoB;IAEpB,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,+BAA+B,CAAC;QAC7D,IAAI,EAAE,6BAAoB;QAC1B,IAAI,EAAE,oBAAC,cAAc,OAAG;QACxB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,yBAAW,CAAC,SAAS,CAAC,iCAAiC,CAAC;KAClE,CAAC;AACJ,CAAC;AAZD,8DAYC","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 Settings\n */\n\nimport widowSettingsIconSvg from \"@bentley/icons-generic/icons/window-settings.svg\";\nimport \"./UiSettingsPage.scss\";\nimport * as React from \"react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"../../syncui/SyncUiEventDispatcher\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select, Slider, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport type { UiSyncEventArgs } from \"../../syncui/UiSyncEvent\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\nimport { ColorTheme, SYSTEM_PREFERRED_COLOR_THEME } from \"../../theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"../../redux/ConfigurableUiState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** UiSettingsPage displaying the active UI settings. This page lets users set the following settings.\n *\n * - theme - Dark, Light, with or without High contrast, or based on OS preference.\n * - auto hide - Starts a timer and blanks out ui components that overlay content if there is no mouse movement for a period of time.\n * - drag interaction - If set, toolbar group buttons require a press and drag or a long press to open. In this mode a child action\n * item is shown as the group button and is activated when button is clicked. If a different child item is selected, it becomes the\n * active group button item.\n * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.\n * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.\n * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.\n * @beta\n * @deprecated in 4.15.0. Use iTwinUI components to build a settings page.\n */\nexport function UiSettingsPage() {\n const { translate } = useTranslation();\n const [theme, setTheme] = React.useState(() => UiFramework.getColorTheme());\n const [useDragInteraction, setUseDragInteraction] = React.useState(\n () => UiFramework.useDragInteraction\n );\n const [showWidgetIcon, setShowWidgetIcon] = React.useState(\n () => UiFramework.showWidgetIcon\n );\n const [autoCollapseUnpinnedPanels, setAutoCollapseUnpinnedPanels] =\n React.useState(() => UiFramework.autoCollapseUnpinnedPanels);\n const [animateToolSettings, setAnimateToolSettings] = React.useState(\n () => UiFramework.animateToolSettings\n );\n const [useToolAsToolSettingsLabel, setUseToolAsToolSettingsLabel] =\n React.useState(() => UiFramework.useToolAsToolSettingsLabel);\n const [widgetOpacity, setWidgetOpacity] = React.useState(() =>\n UiFramework.getWidgetOpacity()\n );\n const [autoHideUi, setAutoHideUi] = React.useState(\n () => UiFramework.visibility.autoHideUi\n );\n const [useProximityOpacity, setUseProximityOpacity] = React.useState(\n // eslint-disable-next-line deprecation/deprecation\n () => UiFramework.visibility.useProximityOpacity\n );\n const [snapWidgetOpacity, setSnapWidgetOpacity] = React.useState(\n () => UiFramework.visibility.snapWidgetOpacity\n );\n const [toolbarOpacity, setToolbarOpacity] = React.useState(() =>\n UiFramework.getToolbarOpacity()\n );\n\n React.useEffect(() => {\n const syncIdsOfInterest = [\n ConfigurableUiActionId.SetTheme,\n ConfigurableUiActionId.SetWidgetOpacity,\n ConfigurableUiActionId.SetShowWidgetIcon,\n ConfigurableUiActionId.SetDragInteraction,\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n ConfigurableUiActionId.AnimateToolSettings,\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n ConfigurableUiActionId.SetToolbarOpacity,\n SyncUiEventId.ShowHideManagerSettingChange,\n ];\n\n // eslint-disable-next-line deprecation/deprecation\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\n if (\n syncIdsOfInterest.some((value: string): boolean =>\n args.eventIds.has(value)\n )\n ) {\n if (UiFramework.getColorTheme() !== theme)\n setTheme(UiFramework.getColorTheme());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n if (UiFramework.useDragInteraction !== useDragInteraction)\n setUseDragInteraction(UiFramework.useDragInteraction);\n if (UiFramework.showWidgetIcon !== showWidgetIcon)\n setShowWidgetIcon(UiFramework.showWidgetIcon);\n if (\n UiFramework.autoCollapseUnpinnedPanels !== autoCollapseUnpinnedPanels\n )\n setAutoCollapseUnpinnedPanels(UiFramework.autoCollapseUnpinnedPanels);\n if (UiFramework.getWidgetOpacity() !== widgetOpacity)\n setWidgetOpacity(UiFramework.getWidgetOpacity());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.visibility.useProximityOpacity !== useProximityOpacity)\n // eslint-disable-next-line deprecation/deprecation\n setUseProximityOpacity(UiFramework.visibility.useProximityOpacity);\n if (UiFramework.visibility.snapWidgetOpacity !== snapWidgetOpacity)\n setSnapWidgetOpacity(UiFramework.visibility.snapWidgetOpacity);\n if (UiFramework.animateToolSettings !== animateToolSettings)\n setAnimateToolSettings(UiFramework.animateToolSettings);\n if (\n UiFramework.useToolAsToolSettingsLabel !== useToolAsToolSettingsLabel\n )\n setUseToolAsToolSettingsLabel(UiFramework.useToolAsToolSettingsLabel);\n if (UiFramework.getToolbarOpacity() !== toolbarOpacity)\n setToolbarOpacity(UiFramework.getToolbarOpacity());\n }\n };\n return SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\n }, [\n autoCollapseUnpinnedPanels,\n autoHideUi,\n showWidgetIcon,\n snapWidgetOpacity,\n theme,\n useDragInteraction,\n useProximityOpacity,\n widgetOpacity,\n animateToolSettings,\n useToolAsToolSettingsLabel,\n toolbarOpacity,\n ]);\n\n const defaultThemeOption = {\n label: translate(\"settings.uiSettingsPage.systemPreferred\"),\n value: SYSTEM_PREFERRED_COLOR_THEME,\n };\n const themeOptions: SelectOption<string>[] = [\n defaultThemeOption,\n {\n label: translate(\"settings.uiSettingsPage.light\"),\n value: ColorTheme.Light,\n },\n {\n label: translate(\"settings.uiSettingsPage.dark\"),\n value: ColorTheme.Dark,\n },\n {\n label: translate(\"settings.uiSettingsPage.lightHighContrast\"),\n value: ColorTheme.HighContrastLight,\n },\n {\n label: translate(\"settings.uiSettingsPage.darkHighContrast\"),\n value: ColorTheme.HighContrastDark,\n },\n {\n label: translate(\"settings.uiSettingsPage.inherit\"),\n value: ColorTheme.Inherit,\n },\n ];\n\n const onThemeChange = React.useCallback((newValue: string) => {\n UiFramework.setColorTheme(newValue);\n }, []);\n\n const onAutoHideChange = React.useCallback(async () => {\n UiFramework.visibility.autoHideUi = !autoHideUi;\n }, [autoHideUi]);\n\n const onUseProximityOpacityChange = React.useCallback(async () => {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.visibility.useProximityOpacity = !useProximityOpacity;\n }, [useProximityOpacity]);\n\n const onSnapWidgetOpacityChange = React.useCallback(async () => {\n UiFramework.visibility.snapWidgetOpacity = !snapWidgetOpacity;\n }, [snapWidgetOpacity]);\n\n const onWidgetIconChange = React.useCallback(async () => {\n UiFramework.setShowWidgetIcon(!showWidgetIcon);\n }, [showWidgetIcon]);\n\n const onAutoCollapseUnpinnedPanelsChange = React.useCallback(async () => {\n UiFramework.setAutoCollapseUnpinnedPanels(!autoCollapseUnpinnedPanels);\n }, [autoCollapseUnpinnedPanels]);\n\n const onWidgetOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setWidgetOpacity(values[0]);\n }\n },\n []\n );\n\n const onToggleDragInteraction = React.useCallback(async () => {\n UiFramework.setUseDragInteraction(!useDragInteraction);\n }, [useDragInteraction]);\n\n const OnToggleAnimateToolSettings = React.useCallback(async () => {\n UiFramework.setAnimateToolSettings(!animateToolSettings);\n }, [animateToolSettings]);\n const currentTheme = UiFramework.getColorTheme();\n\n const OnToggleUseToolAsToolSettingsLabel = React.useCallback(async () => {\n UiFramework.setUseToolAsToolSettingsLabel(!useToolAsToolSettingsLabel);\n }, [useToolAsToolSettingsLabel]);\n\n const onToolbarOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setToolbarOpacity(values[0]);\n }\n },\n []\n );\n\n return (\n <div className=\"uifw-settings\">\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.themeTitle\")}\n description={translate(\"settings.uiSettingsPage.themeDescription\")}\n settingUi={\n <div\n data-testid=\"select-theme-container\"\n className=\"select-theme-container\"\n >\n <Select\n value={currentTheme}\n onChange={onThemeChange}\n options={themeOptions}\n data-testid=\"select-theme\"\n size=\"small\"\n />\n </div>\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.autoHideTitle\")}\n description={translate(\"settings.uiSettingsPage.autoHideDescription\")}\n settingUi={\n <ToggleSwitch checked={autoHideUi} onChange={onAutoHideChange} />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.dragInteractionTitle\")}\n description={translate(\n \"settings.uiSettingsPage.dragInteractionDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useDragInteraction}\n onChange={onToggleDragInteraction}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.useProximityOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.useProximityOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useProximityOpacity}\n onChange={onUseProximityOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.snapWidgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.snapWidgetOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={snapWidgetOpacity}\n onChange={onSnapWidgetOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetIconTitle\")}\n description={translate(\"settings.uiSettingsPage.widgetIconDescription\")}\n settingUi={\n <ToggleSwitch\n checked={showWidgetIcon}\n onChange={onWidgetIconChange}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={autoCollapseUnpinnedPanels}\n onChange={onAutoCollapseUnpinnedPanelsChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.animateToolSettingsTitle\")}\n description={translate(\n \"settings.uiSettingsPage.animateToolSettingsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={animateToolSettings}\n onChange={OnToggleAnimateToolSettings}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useToolAsToolSettingsLabel}\n onChange={OnToggleUseToolAsToolSettingsLabel}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.toolbarOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.toolbarOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[toolbarOpacity]}\n step={0.05}\n onChange={onToolbarOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.widgetOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[widgetOpacity]}\n step={0.05}\n onChange={onWidgetOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n </div>\n );\n}\n\ninterface SettingsItemProps {\n title: string;\n description: string;\n settingUi: React.ReactNode;\n}\n\nfunction SettingsItem(props: SettingsItemProps) {\n const { title, description, settingUi } = props;\n\n return (\n <div className=\"uifw-settings-item\">\n <div className=\"panel left-panel\">\n <span className=\"title\">{title}</span>\n <span className=\"description\">{description}</span>\n </div>\n <div className=\"panel right-panel\">{settingUi}</div>\n </div>\n );\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @beta\n */\nexport function getUiSettingsManagerEntry(\n itemPriority: number\n): SettingsTabEntry {\n return {\n itemPriority,\n tabId: \"uifw:UiStateStorage\",\n label: UiFramework.translate(\"settings.uiSettingsPage.label\"),\n icon: widowSettingsIconSvg,\n page: <UiSettingsPage />,\n isDisabled: false,\n tooltip: UiFramework.translate(\"settings.uiSettingsPage.tooltip\"),\n };\n}\n"]}
1
+ {"version":3,"file":"UiSettingsPage.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0FAAoF;AACpF,iCAA+B;AAC/B,+BAA+B;AAE/B,mDAAgD;AAChD,8EAG4C;AAE5C,wDAAoE;AACpE,+DAA4D;AAC5D,iDAA+E;AAC/E,yEAAyE;AAEzE,4CAA4C;AAE5C;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc;IAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5E,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAChE,GAAG,EAAE,CAAC,yBAAW,CAAC,kBAAkB,CACrC,CAAC;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CACxD,GAAG,EAAE,CAAC,yBAAW,CAAC,cAAc,CACjC,CAAC;IACF,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAC/D,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,0BAA0B,CAAC,CAAC;IAC/D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,KAAK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EACd,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAChC,GAEJ,CACE,CACP,CAAC;AACJ,CAAC;AA7UD,wCA6UC;AAQD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,kBAAkB;YAC/B,8BAAM,SAAS,EAAC,OAAO,IAAE,KAAK,CAAQ;YACtC,8BAAM,SAAS,EAAC,aAAa,IAAE,WAAW,CAAQ,CAC9C;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,SAAS,CAAO,CAChD,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CACvC,YAAoB;IAEpB,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,+BAA+B,CAAC;QAC7D,IAAI,EAAE,6BAAoB;QAC1B,IAAI,EAAE,oBAAC,cAAc,OAAG;QACxB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,yBAAW,CAAC,SAAS,CAAC,iCAAiC,CAAC;KAClE,CAAC;AACJ,CAAC;AAZD,8DAYC","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 Settings\n */\n\nimport widowSettingsIconSvg from \"@bentley/icons-generic/icons/window-settings.svg\";\nimport \"./UiSettingsPage.scss\";\nimport * as React from \"react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"../../syncui/SyncUiEventDispatcher\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select, Slider, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\nimport { ColorTheme, SYSTEM_PREFERRED_COLOR_THEME } from \"../../theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"../../redux/ConfigurableUiState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** UiSettingsPage displaying the active UI settings. This page lets users set the following settings.\n *\n * - theme - Dark, Light, with or without High contrast, or based on OS preference.\n * - auto hide - Starts a timer and blanks out ui components that overlay content if there is no mouse movement for a period of time.\n * - drag interaction - If set, toolbar group buttons require a press and drag or a long press to open. In this mode a child action\n * item is shown as the group button and is activated when button is clicked. If a different child item is selected, it becomes the\n * active group button item.\n * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.\n * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.\n * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.\n * @beta\n * @deprecated in 4.15.0. Use iTwinUI components to build a settings page.\n */\nexport function UiSettingsPage() {\n const { translate } = useTranslation();\n const [theme, setTheme] = React.useState(() => UiFramework.getColorTheme());\n const [useDragInteraction, setUseDragInteraction] = React.useState(\n () => UiFramework.useDragInteraction\n );\n const [showWidgetIcon, setShowWidgetIcon] = React.useState(\n () => UiFramework.showWidgetIcon\n );\n const [autoCollapseUnpinnedPanels, setAutoCollapseUnpinnedPanels] =\n React.useState(() => UiFramework.autoCollapseUnpinnedPanels);\n const [animateToolSettings, setAnimateToolSettings] = React.useState(\n () => UiFramework.animateToolSettings\n );\n const [useToolAsToolSettingsLabel, setUseToolAsToolSettingsLabel] =\n React.useState(() => UiFramework.useToolAsToolSettingsLabel);\n const [widgetOpacity, setWidgetOpacity] = React.useState(() =>\n UiFramework.getWidgetOpacity()\n );\n const [autoHideUi, setAutoHideUi] = React.useState(\n () => UiFramework.visibility.autoHideUi\n );\n const [useProximityOpacity, setUseProximityOpacity] = React.useState(\n // eslint-disable-next-line deprecation/deprecation\n () => UiFramework.visibility.useProximityOpacity\n );\n const [snapWidgetOpacity, setSnapWidgetOpacity] = React.useState(\n () => UiFramework.visibility.snapWidgetOpacity\n );\n const [toolbarOpacity, setToolbarOpacity] = React.useState(() =>\n UiFramework.getToolbarOpacity()\n );\n\n React.useEffect(() => {\n const syncIdsOfInterest = [\n ConfigurableUiActionId.SetTheme,\n ConfigurableUiActionId.SetWidgetOpacity,\n ConfigurableUiActionId.SetShowWidgetIcon,\n ConfigurableUiActionId.SetDragInteraction,\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n ConfigurableUiActionId.AnimateToolSettings,\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n ConfigurableUiActionId.SetToolbarOpacity,\n SyncUiEventId.ShowHideManagerSettingChange,\n ];\n\n return SyncUiEventDispatcher.onSyncUiEvent.addListener((args) => {\n if (\n syncIdsOfInterest.some((value: string): boolean =>\n args.eventIds.has(value)\n )\n ) {\n if (UiFramework.getColorTheme() !== theme)\n setTheme(UiFramework.getColorTheme());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n if (UiFramework.useDragInteraction !== useDragInteraction)\n setUseDragInteraction(UiFramework.useDragInteraction);\n if (UiFramework.showWidgetIcon !== showWidgetIcon)\n setShowWidgetIcon(UiFramework.showWidgetIcon);\n if (\n UiFramework.autoCollapseUnpinnedPanels !== autoCollapseUnpinnedPanels\n )\n setAutoCollapseUnpinnedPanels(UiFramework.autoCollapseUnpinnedPanels);\n if (UiFramework.getWidgetOpacity() !== widgetOpacity)\n setWidgetOpacity(UiFramework.getWidgetOpacity());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.visibility.useProximityOpacity !== useProximityOpacity)\n // eslint-disable-next-line deprecation/deprecation\n setUseProximityOpacity(UiFramework.visibility.useProximityOpacity);\n if (UiFramework.visibility.snapWidgetOpacity !== snapWidgetOpacity)\n setSnapWidgetOpacity(UiFramework.visibility.snapWidgetOpacity);\n if (UiFramework.animateToolSettings !== animateToolSettings)\n setAnimateToolSettings(UiFramework.animateToolSettings);\n if (\n UiFramework.useToolAsToolSettingsLabel !== useToolAsToolSettingsLabel\n )\n setUseToolAsToolSettingsLabel(UiFramework.useToolAsToolSettingsLabel);\n if (UiFramework.getToolbarOpacity() !== toolbarOpacity)\n setToolbarOpacity(UiFramework.getToolbarOpacity());\n }\n });\n }, [\n autoCollapseUnpinnedPanels,\n autoHideUi,\n showWidgetIcon,\n snapWidgetOpacity,\n theme,\n useDragInteraction,\n useProximityOpacity,\n widgetOpacity,\n animateToolSettings,\n useToolAsToolSettingsLabel,\n toolbarOpacity,\n ]);\n\n const defaultThemeOption = {\n label: translate(\"settings.uiSettingsPage.systemPreferred\"),\n value: SYSTEM_PREFERRED_COLOR_THEME,\n };\n const themeOptions: SelectOption<string>[] = [\n defaultThemeOption,\n {\n label: translate(\"settings.uiSettingsPage.light\"),\n value: ColorTheme.Light,\n },\n {\n label: translate(\"settings.uiSettingsPage.dark\"),\n value: ColorTheme.Dark,\n },\n {\n label: translate(\"settings.uiSettingsPage.lightHighContrast\"),\n value: ColorTheme.HighContrastLight,\n },\n {\n label: translate(\"settings.uiSettingsPage.darkHighContrast\"),\n value: ColorTheme.HighContrastDark,\n },\n {\n label: translate(\"settings.uiSettingsPage.inherit\"),\n value: ColorTheme.Inherit,\n },\n ];\n\n const onThemeChange = React.useCallback((newValue: string) => {\n UiFramework.setColorTheme(newValue);\n }, []);\n\n const onAutoHideChange = React.useCallback(async () => {\n UiFramework.visibility.autoHideUi = !autoHideUi;\n }, [autoHideUi]);\n\n const onUseProximityOpacityChange = React.useCallback(async () => {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.visibility.useProximityOpacity = !useProximityOpacity;\n }, [useProximityOpacity]);\n\n const onSnapWidgetOpacityChange = React.useCallback(async () => {\n UiFramework.visibility.snapWidgetOpacity = !snapWidgetOpacity;\n }, [snapWidgetOpacity]);\n\n const onWidgetIconChange = React.useCallback(async () => {\n UiFramework.setShowWidgetIcon(!showWidgetIcon);\n }, [showWidgetIcon]);\n\n const onAutoCollapseUnpinnedPanelsChange = React.useCallback(async () => {\n UiFramework.setAutoCollapseUnpinnedPanels(!autoCollapseUnpinnedPanels);\n }, [autoCollapseUnpinnedPanels]);\n\n const onWidgetOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setWidgetOpacity(values[0]);\n }\n },\n []\n );\n\n const onToggleDragInteraction = React.useCallback(async () => {\n UiFramework.setUseDragInteraction(!useDragInteraction);\n }, [useDragInteraction]);\n\n const OnToggleAnimateToolSettings = React.useCallback(async () => {\n UiFramework.setAnimateToolSettings(!animateToolSettings);\n }, [animateToolSettings]);\n const currentTheme = UiFramework.getColorTheme();\n\n const OnToggleUseToolAsToolSettingsLabel = React.useCallback(async () => {\n UiFramework.setUseToolAsToolSettingsLabel(!useToolAsToolSettingsLabel);\n }, [useToolAsToolSettingsLabel]);\n\n const onToolbarOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setToolbarOpacity(values[0]);\n }\n },\n []\n );\n\n return (\n <div className=\"uifw-settings\">\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.themeTitle\")}\n description={translate(\"settings.uiSettingsPage.themeDescription\")}\n settingUi={\n <div\n data-testid=\"select-theme-container\"\n className=\"select-theme-container\"\n >\n <Select\n value={currentTheme}\n onChange={onThemeChange}\n options={themeOptions}\n data-testid=\"select-theme\"\n size=\"small\"\n />\n </div>\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.autoHideTitle\")}\n description={translate(\"settings.uiSettingsPage.autoHideDescription\")}\n settingUi={\n <ToggleSwitch checked={autoHideUi} onChange={onAutoHideChange} />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.dragInteractionTitle\")}\n description={translate(\n \"settings.uiSettingsPage.dragInteractionDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useDragInteraction}\n onChange={onToggleDragInteraction}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.useProximityOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.useProximityOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useProximityOpacity}\n onChange={onUseProximityOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.snapWidgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.snapWidgetOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={snapWidgetOpacity}\n onChange={onSnapWidgetOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetIconTitle\")}\n description={translate(\"settings.uiSettingsPage.widgetIconDescription\")}\n settingUi={\n <ToggleSwitch\n checked={showWidgetIcon}\n onChange={onWidgetIconChange}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={autoCollapseUnpinnedPanels}\n onChange={onAutoCollapseUnpinnedPanelsChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.animateToolSettingsTitle\")}\n description={translate(\n \"settings.uiSettingsPage.animateToolSettingsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={animateToolSettings}\n onChange={OnToggleAnimateToolSettings}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useToolAsToolSettingsLabel}\n onChange={OnToggleUseToolAsToolSettingsLabel}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.toolbarOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.toolbarOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[toolbarOpacity]}\n step={0.05}\n onChange={onToolbarOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.widgetOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[widgetOpacity]}\n step={0.05}\n onChange={onWidgetOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n </div>\n );\n}\n\ninterface SettingsItemProps {\n title: string;\n description: string;\n settingUi: React.ReactNode;\n}\n\nfunction SettingsItem(props: SettingsItemProps) {\n const { title, description, settingUi } = props;\n\n return (\n <div className=\"uifw-settings-item\">\n <div className=\"panel left-panel\">\n <span className=\"title\">{title}</span>\n <span className=\"description\">{description}</span>\n </div>\n <div className=\"panel right-panel\">{settingUi}</div>\n </div>\n );\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @beta\n */\nexport function getUiSettingsManagerEntry(\n itemPriority: number\n): SettingsTabEntry {\n return {\n itemPriority,\n tabId: \"uifw:UiStateStorage\",\n label: UiFramework.translate(\"settings.uiSettingsPage.label\"),\n icon: widowSettingsIconSvg,\n page: <UiSettingsPage />,\n isDisabled: false,\n tooltip: UiFramework.translate(\"settings.uiSettingsPage.tooltip\"),\n };\n}\n"]}
@@ -2,13 +2,13 @@
2
2
  * @module Item
3
3
  */
4
4
  import type { CommandHandler, OnItemExecutedFunc } from "@itwin/appui-abstract";
5
- import type { SizeProps } from "@itwin/core-react";
6
- import { Orientation } from "@itwin/core-react";
5
+ import { Orientation } from "@itwin/components-react";
7
6
  import { ItemDefBase } from "./ItemDefBase";
8
7
  import type { ItemProps } from "./ItemProps";
8
+ import type { SizeProps } from "../utils/SizeProps";
9
9
  /** Abstract base class that is used by classes to execute an action when pressed.
10
10
  * @public
11
- * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.
11
+ * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. `ToolbarItemUtilities.createActionItem`.
12
12
  */
13
13
  export declare abstract class ActionButtonItemDef extends ItemDefBase {
14
14
  private _onItemExecuted?;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C;;;GAGG;AACH,8BAAsB,mBAAoB,SAAQ,WAAW;IAC3D,OAAO,CAAC,eAAe,CAAC,CAAqB;IAE7C,4CAA4C;IAC5C,SAAS,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;IAC3C,+CAA+C;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC;IACxB,2DAA2D;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACxB,qDAAqD;IACrD,OAAc,iBAAiB,SAAM;gBAEzB,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,kBAAkB;IAOrE,mEAAmE;IAC5D,OAAO,IAAI,IAAI;IAUtB,qFAAqF;IAC9E,eAAe,SAAU,SAAS,UAEvC;IAEF,sDAAsD;IAC/C,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;CAUtD"}
1
+ {"version":3,"file":"ActionButtonItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;;GAGG;AACH,8BAAsB,mBAAoB,SAAQ,WAAW;IAC3D,OAAO,CAAC,eAAe,CAAC,CAAqB;IAE7C,4CAA4C;IAC5C,SAAS,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;IAC3C,+CAA+C;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC;IACxB,2DAA2D;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACxB,qDAAqD;IACrD,OAAc,iBAAiB,SAAM;gBAEzB,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,kBAAkB;IAOrE,mEAAmE;IAC5D,OAAO,IAAI,IAAI;IAUtB,qFAAqF;IAC9E,eAAe,SAAU,SAAS,UAEvC;IAEF,sDAAsD;IAC/C,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;CAUtD"}
@@ -8,12 +8,12 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ActionButtonItemDef = void 0;
11
- const core_react_1 = require("@itwin/core-react");
11
+ const components_react_1 = require("@itwin/components-react");
12
12
  const ItemDefBase_1 = require("./ItemDefBase");
13
13
  /* eslint-disable deprecation/deprecation */
14
14
  /** Abstract base class that is used by classes to execute an action when pressed.
15
15
  * @public
16
- * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.
16
+ * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. `ToolbarItemUtilities.createActionItem`.
17
17
  */
18
18
  class ActionButtonItemDef extends ItemDefBase_1.ItemDefBase {
19
19
  constructor(itemProps, onItemExecuted) {
@@ -41,7 +41,7 @@ class ActionButtonItemDef extends ItemDefBase_1.ItemDefBase {
41
41
  let dimension = ActionButtonItemDef.defaultButtonSize;
42
42
  if (this.size)
43
43
  dimension =
44
- orientation === core_react_1.Orientation.Horizontal
44
+ orientation === components_react_1.Orientation.Horizontal
45
45
  ? this.size.width
46
46
  : this.size.height;
47
47
  return dimension;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAIH,kDAAgD;AAChD,+CAA4C;AAI5C,4CAA4C;AAE5C;;;GAGG;AACH,MAAsB,mBAAoB,SAAQ,yBAAW;IAY3D,YAAY,SAAoB,EAAE,cAAmC;QACnE,KAAK,CAAC,SAAS,CAAC,CAAC;QAiBnB,qFAAqF;QAC9E,oBAAe,GAAG,CAAC,IAAe,EAAE,EAAE;YAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;QAlBA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,mEAAmE;IAC5D,OAAO;QACZ,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;YACzD,IAAI,IAAI,CAAC,eAAe,CAAC,cAAc;gBACrC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC,CAAC;;gBACjE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QACrE,CAAC;QAED,IAAI,IAAI,CAAC,eAAe;YAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAOD,sDAAsD;IAC/C,YAAY,CAAC,WAAwB;QAC1C,IAAI,SAAS,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;QACtD,IAAI,IAAI,CAAC,IAAI;YACX,SAAS;gBACP,WAAW,KAAK,wBAAW,CAAC,UAAU;oBACpC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;oBACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAEzB,OAAO,SAAS,CAAC;IACnB,CAAC;;AA7CH,kDA8CC;AArCC,qDAAqD;AACvC,qCAAiB,GAAG,EAAE,AAAL,CAAM","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 Item\n */\n\nimport type { CommandHandler, OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { Orientation } from \"@itwin/core-react\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { ItemProps } from \"./ItemProps\";\nimport { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Abstract base class that is used by classes to execute an action when pressed.\n * @public\n * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.\n */\nexport abstract class ActionButtonItemDef extends ItemDefBase {\n private _onItemExecuted?: OnItemExecutedFunc;\n\n /** Command Handler for the action button */\n protected _commandHandler?: CommandHandler;\n /** Parameters passed to the Command Handler */\n public parameters?: any;\n /** Size of the action button, as set by handleSizeKnown */\n public size?: SizeProps;\n /** The default button size for all action buttons */\n public static defaultButtonSize = 42;\n\n constructor(itemProps: ItemProps, onItemExecuted?: OnItemExecutedFunc) {\n super(itemProps);\n\n this.execute = this.execute.bind(this);\n this._onItemExecuted = onItemExecuted;\n }\n\n /** Called when the action button is invoked by a click or touch */\n public execute(): void {\n if (this._commandHandler && this._commandHandler.execute) {\n if (this._commandHandler.getCommandArgs)\n this._commandHandler.execute(this._commandHandler.getCommandArgs());\n else this._commandHandler.execute(this._commandHandler.parameters);\n }\n\n if (this._onItemExecuted) this._onItemExecuted(this);\n }\n\n /** Called when the size of the action button is initialized and the size is known */\n public handleSizeKnown = (size: SizeProps) => {\n this.size = size;\n };\n\n /** Determines the dimension in a given orientation */\n public getDimension(orientation: Orientation): number {\n let dimension = ActionButtonItemDef.defaultButtonSize;\n if (this.size)\n dimension =\n orientation === Orientation.Horizontal\n ? this.size.width\n : this.size.height;\n\n return dimension;\n }\n}\n"]}
1
+ {"version":3,"file":"ActionButtonItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,8DAAsD;AACtD,+CAA4C;AAI5C,4CAA4C;AAE5C;;;GAGG;AACH,MAAsB,mBAAoB,SAAQ,yBAAW;IAY3D,YAAY,SAAoB,EAAE,cAAmC;QACnE,KAAK,CAAC,SAAS,CAAC,CAAC;QAiBnB,qFAAqF;QAC9E,oBAAe,GAAG,CAAC,IAAe,EAAE,EAAE;YAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;QAlBA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,mEAAmE;IAC5D,OAAO;QACZ,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;YACzD,IAAI,IAAI,CAAC,eAAe,CAAC,cAAc;gBACrC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC,CAAC;;gBACjE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QACrE,CAAC;QAED,IAAI,IAAI,CAAC,eAAe;YAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAOD,sDAAsD;IAC/C,YAAY,CAAC,WAAwB;QAC1C,IAAI,SAAS,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;QACtD,IAAI,IAAI,CAAC,IAAI;YACX,SAAS;gBACP,WAAW,KAAK,8BAAW,CAAC,UAAU;oBACpC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;oBACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAEzB,OAAO,SAAS,CAAC;IACnB,CAAC;;AA7CH,kDA8CC;AArCC,qDAAqD;AACvC,qCAAiB,GAAG,EAAE,AAAL,CAAM","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 Item\n */\n\nimport type { CommandHandler, OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { Orientation } from \"@itwin/components-react\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { ItemProps } from \"./ItemProps\";\nimport type { SizeProps } from \"../utils/SizeProps\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Abstract base class that is used by classes to execute an action when pressed.\n * @public\n * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. `ToolbarItemUtilities.createActionItem`.\n */\nexport abstract class ActionButtonItemDef extends ItemDefBase {\n private _onItemExecuted?: OnItemExecutedFunc;\n\n /** Command Handler for the action button */\n protected _commandHandler?: CommandHandler;\n /** Parameters passed to the Command Handler */\n public parameters?: any;\n /** Size of the action button, as set by handleSizeKnown */\n public size?: SizeProps;\n /** The default button size for all action buttons */\n public static defaultButtonSize = 42;\n\n constructor(itemProps: ItemProps, onItemExecuted?: OnItemExecutedFunc) {\n super(itemProps);\n\n this.execute = this.execute.bind(this);\n this._onItemExecuted = onItemExecuted;\n }\n\n /** Called when the action button is invoked by a click or touch */\n public execute(): void {\n if (this._commandHandler && this._commandHandler.execute) {\n if (this._commandHandler.getCommandArgs)\n this._commandHandler.execute(this._commandHandler.getCommandArgs());\n else this._commandHandler.execute(this._commandHandler.parameters);\n }\n\n if (this._onItemExecuted) this._onItemExecuted(this);\n }\n\n /** Called when the size of the action button is initialized and the size is known */\n public handleSizeKnown = (size: SizeProps) => {\n this.size = size;\n };\n\n /** Determines the dimension in a given orientation */\n public getDimension(orientation: Orientation): number {\n let dimension = ActionButtonItemDef.defaultButtonSize;\n if (this.size)\n dimension =\n orientation === Orientation.Horizontal\n ? this.size.width\n : this.size.height;\n\n return dimension;\n }\n}\n"]}
@@ -2,16 +2,23 @@
2
2
  * @module Item
3
3
  */
4
4
  import { ConditionalBooleanValue as _ConditionalBooleanValue, ConditionalStringValue as _ConditionalStringValue } from "@itwin/appui-abstract";
5
- /** Class used to return a boolean value. The boolean value is refreshed by using the specified function. The syncEventIds define one or more
6
- * eventIds that would require the testFunc to be rerun.
5
+ import { ConditionalIconItem as _ConditionalIconItem } from "@itwin/core-react";
6
+ /** Class used to return a boolean value. The boolean value is refreshed by using the specified function. The `syncEventIds` define
7
+ * events that would require the `testFunc` function to be rerun.
7
8
  * @public
8
9
  */
9
10
  export type ConditionalBooleanValue = _ConditionalBooleanValue;
10
11
  export declare const ConditionalBooleanValue: typeof _ConditionalBooleanValue;
11
- /** Class used to return a string value. The string value is refreshed by using the specified function. The syncEventIds define one or more
12
- * eventIds that would require the stringGetter function to be rerun.
12
+ /** Class used to return a string value. The string value is refreshed by using the specified function. The `syncEventIds` define
13
+ * events that would require the `stringGetter` function to be rerun.
13
14
  * @public
14
15
  */
15
16
  export type ConditionalStringValue = _ConditionalStringValue;
16
17
  export declare const ConditionalStringValue: typeof _ConditionalStringValue;
18
+ /** Class used to return an icon value. The value is refreshed by using the specified function. The `syncEventIds` define
19
+ * events that would require the `iconGetter` function to be rerun.
20
+ * @public
21
+ */
22
+ export type ConditionalIconValue = _ConditionalIconItem;
23
+ export declare const ConditionalIconValue: typeof _ConditionalIconItem;
17
24
  //# sourceMappingURL=ConditionalValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionalValue.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ConditionalValue.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EACL,uBAAuB,IAAI,wBAAwB,EACnD,sBAAsB,IAAI,uBAAuB,EAClD,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,eAAO,MAAM,uBAAuB,iCAA2B,CAAC;AAGhE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAE7D,eAAO,MAAM,sBAAsB,gCAA0B,CAAC"}
1
+ {"version":3,"file":"ConditionalValue.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ConditionalValue.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EACL,uBAAuB,IAAI,wBAAwB,EACnD,sBAAsB,IAAI,uBAAuB,EAClD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,eAAO,MAAM,uBAAuB,iCAA2B,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAE7D,eAAO,MAAM,sBAAsB,gCAA0B,CAAC;AAE9D;;;GAGG;AAEH,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD,eAAO,MAAM,oBAAoB,6BAAuB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConditionalStringValue = exports.ConditionalBooleanValue = void 0;
3
+ exports.ConditionalIconValue = exports.ConditionalStringValue = exports.ConditionalBooleanValue = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -9,8 +9,11 @@ exports.ConditionalStringValue = exports.ConditionalBooleanValue = void 0;
9
9
  * @module Item
10
10
  */
11
11
  const appui_abstract_1 = require("@itwin/appui-abstract");
12
- // eslint-disable-next-line @typescript-eslint/no-redeclare, deprecation/deprecation
12
+ const core_react_1 = require("@itwin/core-react");
13
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
13
14
  exports.ConditionalBooleanValue = appui_abstract_1.ConditionalBooleanValue;
14
15
  // eslint-disable-next-line @typescript-eslint/no-redeclare
15
16
  exports.ConditionalStringValue = appui_abstract_1.ConditionalStringValue;
17
+ // eslint-disable-next-line @typescript-eslint/no-redeclare, deprecation/deprecation
18
+ exports.ConditionalIconValue = core_react_1.ConditionalIconItem;
16
19
  //# sourceMappingURL=ConditionalValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionalValue.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ConditionalValue.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;GAEG;AACH,0DAG+B;AAO/B,oFAAoF;AACvE,QAAA,uBAAuB,GAAG,wCAAwB,CAAC;AAQhE,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG,uCAAuB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Item\n */\nimport {\n ConditionalBooleanValue as _ConditionalBooleanValue,\n ConditionalStringValue as _ConditionalStringValue,\n} from \"@itwin/appui-abstract\";\n\n/** Class used to return a boolean value. The boolean value is refreshed by using the specified function. The syncEventIds define one or more\n * eventIds that would require the testFunc to be rerun.\n * @public\n */\nexport type ConditionalBooleanValue = _ConditionalBooleanValue;\n// eslint-disable-next-line @typescript-eslint/no-redeclare, deprecation/deprecation\nexport const ConditionalBooleanValue = _ConditionalBooleanValue;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare, deprecation/deprecation\n/** Class used to return a string value. The string value is refreshed by using the specified function. The syncEventIds define one or more\n * eventIds that would require the stringGetter function to be rerun.\n * @public\n */\nexport type ConditionalStringValue = _ConditionalStringValue;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ConditionalStringValue = _ConditionalStringValue;\n"]}
1
+ {"version":3,"file":"ConditionalValue.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ConditionalValue.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;GAEG;AACH,0DAG+B;AAC/B,kDAAgF;AAOhF,2DAA2D;AAC9C,QAAA,uBAAuB,GAAG,wCAAwB,CAAC;AAOhE,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG,uCAAuB,CAAC;AAQ9D,oFAAoF;AACvE,QAAA,oBAAoB,GAAG,gCAAoB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Item\n */\nimport {\n ConditionalBooleanValue as _ConditionalBooleanValue,\n ConditionalStringValue as _ConditionalStringValue,\n} from \"@itwin/appui-abstract\";\nimport { ConditionalIconItem as _ConditionalIconItem } from \"@itwin/core-react\";\n\n/** Class used to return a boolean value. The boolean value is refreshed by using the specified function. The `syncEventIds` define\n * events that would require the `testFunc` function to be rerun.\n * @public\n */\nexport type ConditionalBooleanValue = _ConditionalBooleanValue;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ConditionalBooleanValue = _ConditionalBooleanValue;\n\n/** Class used to return a string value. The string value is refreshed by using the specified function. The `syncEventIds` define\n * events that would require the `stringGetter` function to be rerun.\n * @public\n */\nexport type ConditionalStringValue = _ConditionalStringValue;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ConditionalStringValue = _ConditionalStringValue;\n\n/** Class used to return an icon value. The value is refreshed by using the specified function. The `syncEventIds` define\n * events that would require the `iconGetter` function to be rerun.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport type ConditionalIconValue = _ConditionalIconItem;\n// eslint-disable-next-line @typescript-eslint/no-redeclare, deprecation/deprecation\nexport const ConditionalIconValue = _ConditionalIconItem;\n"]}
@@ -6,7 +6,7 @@ import { ActionButtonItemDef } from "./ActionButtonItemDef";
6
6
  import type { CustomItemProps } from "./CustomItemProps";
7
7
  /** An Item that renders a React component.
8
8
  * @public
9
- * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.
9
+ * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. `ToolbarItemUtilities.createCustomItem`.
10
10
  */
11
11
  export declare class CustomItemDef extends ActionButtonItemDef {
12
12
  private static _sId;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD;;;GAGG;AACH,qBAAa,aAAc,SAAQ,mBAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,cAAc,SAAa;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;gBAE5B,KAAK,EAAE,eAAe;IAYlC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
1
+ {"version":3,"file":"CustomItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD;;;GAGG;AACH,qBAAa,aAAc,SAAQ,mBAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,cAAc,SAAa;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;gBAE5B,KAAK,EAAE,eAAe;IAYlC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
@@ -12,7 +12,7 @@ const ActionButtonItemDef_1 = require("./ActionButtonItemDef");
12
12
  /* eslint-disable deprecation/deprecation */
13
13
  /** An Item that renders a React component.
14
14
  * @public
15
- * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.
15
+ * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. `ToolbarItemUtilities.createCustomItem`.
16
16
  */
17
17
  class CustomItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
18
18
  constructor(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAI5D,4CAA4C;AAE5C;;;GAGG;AACH,MAAa,aAAc,SAAQ,yCAAmB;IAMpD,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;aAC9C,CAAC;YACJ,aAAa,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC;QACpE,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC7C,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;;AApBH,sCAqBC;AApBgB,kBAAI,GAAG,CAAC,CAAC;AACV,4BAAc,GAAG,SAAS,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Item\n */\n\nimport type * as React from \"react\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CustomItemProps } from \"./CustomItemProps\";\nimport type { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** An Item that renders a React component.\n * @public\n * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.\n */\nexport class CustomItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static customIdPrefix = \"Custom-\";\n public customId: string;\n public popupPanelNode?: React.ReactNode;\n\n constructor(props: CustomItemProps) {\n super(props);\n\n if (props.customId) this.customId = props.customId;\n else {\n CustomItemDef._sId++;\n this.customId = CustomItemDef.customIdPrefix + CustomItemDef._sId;\n }\n\n this.popupPanelNode = props.popupPanelNode;\n }\n\n public get id(): string {\n return this.customId;\n }\n}\n"]}
1
+ {"version":3,"file":"CustomItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAG5D,4CAA4C;AAE5C;;;GAGG;AACH,MAAa,aAAc,SAAQ,yCAAmB;IAMpD,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;aAC9C,CAAC;YACJ,aAAa,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC;QACpE,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC7C,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;;AApBH,sCAqBC;AApBgB,kBAAI,GAAG,CAAC,CAAC;AACV,4BAAc,GAAG,SAAS,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Item\n */\n\nimport type * as React from \"react\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CustomItemProps } from \"./CustomItemProps\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** An Item that renders a React component.\n * @public\n * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. `ToolbarItemUtilities.createCustomItem`.\n */\nexport class CustomItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static customIdPrefix = \"Custom-\";\n public customId: string;\n public popupPanelNode?: React.ReactNode;\n\n constructor(props: CustomItemProps) {\n super(props);\n\n if (props.customId) this.customId = props.customId;\n else {\n CustomItemDef._sId++;\n this.customId = CustomItemDef.customIdPrefix + CustomItemDef._sId;\n }\n\n this.popupPanelNode = props.popupPanelNode;\n }\n\n public get id(): string {\n return this.customId;\n }\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  import type * as React from "react";
5
5
  import type { ConditionalBooleanValue, ConditionalStringValue, StringGetter } from "@itwin/appui-abstract";
6
6
  import type { ItemProps } from "./ItemProps";
7
- import type { BadgeType, IconSpec } from "@itwin/core-react";
7
+ import type { BadgeKind, BadgeType, IconSpec } from "@itwin/core-react";
8
8
  /** Base state for any 'stateful' React component.
9
9
  * @public
10
10
  * @deprecated in 4.15.0. Define a custom state for your React components.
@@ -30,7 +30,9 @@ export declare abstract class ItemDefBase {
30
30
  applicationData?: any;
31
31
  isHidden?: boolean | ConditionalBooleanValue;
32
32
  isDisabled?: boolean | ConditionalBooleanValue;
33
+ /** @deprecated in 4.16.0. Use `badgeKind` property instead. */
33
34
  badgeType?: BadgeType;
35
+ badgeKind?: BadgeKind;
34
36
  iconSpec?: IconSpec;
35
37
  iconElement?: React.ReactNode;
36
38
  static initializeDef(me: ItemDefBase, itemProps: ItemProps): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ItemDefBase.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACb,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAA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;IAEtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;WAEvB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;gBA2B5D,SAAS,EAAE,SAAS;IAIhC,IAAW,MAAM,cAEhB;IACD,aAAoB,EAAE,IAAI,MAAM,CAAC;IAEjC,2BAA2B;IAC3B,IAAW,QAAQ,IAAI,MAAM,GAAG,YAAY,GAAG,sBAAsB,CAEpE;IAED,2BAA2B;IAC3B,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED;;OAEG;IACI,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB;IAIjE,6BAA6B;IAC7B,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED;;OAEG;IACI,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB;IAInE,iCAAiC;IACjC,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;OAEG;IACI,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB;CAGxE"}
@@ -27,6 +27,7 @@ class ItemDefBase {
27
27
  itemProps.isPressed !== undefined ? itemProps.isPressed : false;
28
28
  me.isActive = itemProps.isActive !== undefined ? itemProps.isActive : false;
29
29
  me.badgeType = itemProps.badgeType;
30
+ me.badgeKind = itemProps.badgeKind;
30
31
  if (itemProps.applicationData !== undefined)
31
32
  me.applicationData = itemProps.applicationData;
32
33
  if (itemProps.iconSpec)
@@ -1 +1 @@
1
- {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH,sDAAmD;AAkBnD;;;GAGG;AACH,MAAsB,WAAW;IAO/B,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACD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,GAAmD,EAAE,CAAC;QAC9D,iBAAY,GAAmD,EAAE,CAAC;QAEnE,cAAS,GAAY,KAAK,CAAC;QAC1B,cAAS,GAAY,KAAK,CAAC;QA4CjC,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,MAAM;QACf,OAAO,SAAS,CAAC;IACnB,CAAC;IAGD,2BAA2B;IAC3B,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,2BAA2B;IAC3B,IAAW,KAAK;QACd,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,CAAiD;QAC/D,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,6BAA6B;IAC7B,IAAW,OAAO;QAChB,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,CAAiD;QACjE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,iCAAiC;IACjC,IAAW,WAAW;QACpB,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,CAAiD;QACrE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IACxB,CAAC;CACF;AAlGD,kCAkGC","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 Item\n */\n\nimport type * as React from \"react\";\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { ItemProps } from \"./ItemProps\";\nimport type { BadgeType, IconSpec } from \"@itwin/core-react\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Base state for any 'stateful' React component.\n * @public\n * @deprecated in 4.15.0. Define a custom state for your React components.\n */\nexport interface BaseItemState {\n isVisible?: boolean; // Default - true\n isEnabled?: boolean; // Default - true\n isActive?: boolean; // Default - false\n isPressed?: boolean; // Default - false\n}\n\n/** The base class for Items.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarItem}.\n */\nexport abstract class ItemDefBase {\n private _label: string | StringGetter | ConditionalStringValue = \"\";\n private _tooltip: string | StringGetter | ConditionalStringValue = \"\";\n private _description: string | StringGetter | ConditionalStringValue = \"\";\n\n public isPressed: boolean = false;\n private _isActive: boolean = false;\n public get isActive(): boolean {\n return this._isActive;\n }\n public set isActive(v: boolean) {\n this._isActive = v;\n }\n public applicationData?: any;\n\n public isHidden?: boolean | ConditionalBooleanValue;\n public isDisabled?: boolean | ConditionalBooleanValue;\n\n public badgeType?: BadgeType;\n\n public iconSpec?: IconSpec;\n public iconElement?: React.ReactNode;\n\n public static initializeDef(me: ItemDefBase, itemProps: ItemProps): void {\n me.isHidden = itemProps.isHidden;\n me.isDisabled = itemProps.isDisabled;\n\n me.isPressed =\n itemProps.isPressed !== undefined ? itemProps.isPressed : false;\n me.isActive = itemProps.isActive !== undefined ? itemProps.isActive : false;\n\n me.badgeType = itemProps.badgeType;\n\n if (itemProps.applicationData !== undefined)\n me.applicationData = itemProps.applicationData;\n if (itemProps.iconSpec) me.iconSpec = itemProps.iconSpec;\n if (itemProps.icon) me.iconSpec = itemProps.icon;\n\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\n me._tooltip = PropsHelper.getStringSpec(\n itemProps.tooltip,\n itemProps.tooltipKey\n );\n me._description = PropsHelper.getStringSpec(\n itemProps.description,\n itemProps.descriptionKey\n );\n }\n\n constructor(itemProps: ItemProps) {\n ItemDefBase.initializeDef(this, itemProps);\n }\n\n public get trayId() {\n return undefined;\n }\n public abstract get id(): string;\n\n /** Get the label string */\n public get rawLabel(): string | StringGetter | ConditionalStringValue {\n return this._label;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param v A string or a function to get the string.\n */\n public setLabel(v: string | StringGetter | ConditionalStringValue) {\n this._label = v;\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | StringGetter | ConditionalStringValue) {\n this._tooltip = v;\n }\n\n /** Get the description string */\n public get description(): string {\n return PropsHelper.getStringFromSpec(this._description);\n }\n\n /** Set the description.\n * @param v A string or a function to get the string.\n */\n public setDescription(v: string | StringGetter | ConditionalStringValue) {\n this._description = v;\n }\n}\n"]}
1
+ {"version":3,"file":"ItemDefBase.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemDefBase.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH,sDAAmD;AAkBnD;;;GAGG;AACH,MAAsB,WAAW;IAO/B,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACD,IAAW,QAAQ,CAAC,CAAU;QAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;IAaM,MAAM,CAAC,aAAa,CAAC,EAAe,EAAE,SAAoB;QAC/D,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACjC,EAAE,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;QAErC,EAAE,CAAC,SAAS;YACV,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;QAClE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rB,CAAC;IAED,2BAA2B;IAC3B,IAAW,KAAK;QACd,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACI,QAAQ,CAAC,CAAiD;QAC/D,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,6BAA6B;IAC7B,IAAW,OAAO;QAChB,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,CAAiD;QACjE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,iCAAiC;IACjC,IAAW,WAAW;QACpB,OAAO,yBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,CAAiD;QACrE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;IACxB,CAAC;CACF;AArGD,kCAqGC","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 Item\n */\n\nimport type * as React from \"react\";\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { ItemProps } from \"./ItemProps\";\nimport type { BadgeKind, BadgeType, IconSpec } from \"@itwin/core-react\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Base state for any 'stateful' React component.\n * @public\n * @deprecated in 4.15.0. Define a custom state for your React components.\n */\nexport interface BaseItemState {\n isVisible?: boolean; // Default - true\n isEnabled?: boolean; // Default - true\n isActive?: boolean; // Default - false\n isPressed?: boolean; // Default - false\n}\n\n/** The base class for Items.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarItem}.\n */\nexport abstract class ItemDefBase {\n private _label: string | StringGetter | ConditionalStringValue = \"\";\n private _tooltip: string | StringGetter | ConditionalStringValue = \"\";\n private _description: string | StringGetter | ConditionalStringValue = \"\";\n\n public isPressed: boolean = false;\n private _isActive: boolean = false;\n public get isActive(): boolean {\n return this._isActive;\n }\n public set isActive(v: boolean) {\n this._isActive = v;\n }\n public applicationData?: any;\n\n public isHidden?: boolean | ConditionalBooleanValue;\n public isDisabled?: boolean | ConditionalBooleanValue;\n\n /** @deprecated in 4.16.0. Use `badgeKind` property instead. */\n public badgeType?: BadgeType;\n public badgeKind?: BadgeKind;\n\n public iconSpec?: IconSpec;\n public iconElement?: React.ReactNode;\n\n public static initializeDef(me: ItemDefBase, itemProps: ItemProps): void {\n me.isHidden = itemProps.isHidden;\n me.isDisabled = itemProps.isDisabled;\n\n me.isPressed =\n itemProps.isPressed !== undefined ? itemProps.isPressed : false;\n me.isActive = itemProps.isActive !== undefined ? itemProps.isActive : false;\n\n me.badgeType = itemProps.badgeType;\n me.badgeKind = itemProps.badgeKind;\n\n if (itemProps.applicationData !== undefined)\n me.applicationData = itemProps.applicationData;\n if (itemProps.iconSpec) me.iconSpec = itemProps.iconSpec;\n if (itemProps.icon) me.iconSpec = itemProps.icon;\n\n me._label = PropsHelper.getStringSpec(itemProps.label, itemProps.labelKey);\n me._tooltip = PropsHelper.getStringSpec(\n itemProps.tooltip,\n itemProps.tooltipKey\n );\n me._description = PropsHelper.getStringSpec(\n itemProps.description,\n itemProps.descriptionKey\n );\n }\n\n constructor(itemProps: ItemProps) {\n ItemDefBase.initializeDef(this, itemProps);\n }\n\n public get trayId() {\n return undefined;\n }\n public abstract get id(): string;\n\n /** Get the label string */\n public get rawLabel(): string | StringGetter | ConditionalStringValue {\n return this._label;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param v A string or a function to get the string.\n */\n public setLabel(v: string | StringGetter | ConditionalStringValue) {\n this._label = v;\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | StringGetter | ConditionalStringValue) {\n this._tooltip = v;\n }\n\n /** Get the description string */\n public get description(): string {\n return PropsHelper.getStringFromSpec(this._description);\n }\n\n /** Set the description.\n * @param v A string or a function to get the string.\n */\n public setDescription(v: string | StringGetter | ConditionalStringValue) {\n this._description = v;\n }\n}\n"]}