@itwin/appui-react 4.1.0 → 4.2.0-dev.1

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 (1679) hide show
  1. package/CHANGELOG.md +2072 -2072
  2. package/LICENSE.md +9 -9
  3. package/README.md +21 -21
  4. package/lib/cjs/appui-react/UiFramework.d.ts +3 -3
  5. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.js +82 -35
  7. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  8. package/lib/cjs/appui-react/_variables.scss +11 -11
  9. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +3 -3
  11. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +5 -5
  14. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +15 -15
  16. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +64 -31
  18. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.scss +27 -27
  20. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +3 -3
  23. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +55 -55
  25. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +3 -3
  26. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +11 -5
  29. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  30. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.js +3 -3
  31. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  32. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  33. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js +3 -3
  34. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  35. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  36. package/lib/cjs/appui-react/accudraw/Calculator.js +7 -9
  37. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  38. package/lib/cjs/appui-react/accudraw/Calculator.scss +84 -85
  39. package/lib/cjs/appui-react/accudraw/CalculatorEngine.d.ts.map +1 -1
  40. package/lib/cjs/appui-react/accudraw/CalculatorEngine.js +19 -12
  41. package/lib/cjs/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  42. package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  43. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js +3 -3
  44. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  45. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  46. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +29 -11
  47. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  48. package/lib/cjs/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  49. package/lib/cjs/appui-react/accudraw/MenuButton.js +7 -5
  50. package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
  51. package/lib/cjs/appui-react/accudraw/MenuButton.scss +18 -19
  52. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  53. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js +3 -3
  54. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  55. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +2 -1
  56. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/accudraw/SquareButton.js +3 -3
  58. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  59. package/lib/cjs/appui-react/accudraw/SquareButton.scss +30 -30
  60. package/lib/cjs/appui-react/accudraw/backspace.svg +9 -9
  61. package/lib/cjs/appui-react/accudraw/constraint-2d.svg +11 -11
  62. package/lib/cjs/appui-react/accudraw/height-2.svg +10 -10
  63. package/lib/cjs/appui-react/accudraw/height.svg +11 -11
  64. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  65. package/lib/cjs/appui-react/backstage/BackstageComposer.js +9 -20
  66. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  67. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  68. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  69. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +7 -7
  70. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  71. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  72. package/lib/cjs/appui-react/backstage/BackstageItem.js +3 -3
  73. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -1
  74. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +3 -3
  76. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  77. package/lib/cjs/appui-react/backstage/BackstageItemsManager.d.ts.map +1 -1
  78. package/lib/cjs/appui-react/backstage/BackstageItemsManager.js +11 -12
  79. package/lib/cjs/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  80. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +1 -1
  81. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  82. package/lib/cjs/appui-react/backstage/BackstageManager.js +7 -5
  83. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  84. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +3 -3
  86. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  87. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.d.ts.map +1 -1
  88. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js +3 -3
  89. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  90. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  91. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -3
  92. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  93. package/lib/cjs/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
  94. package/lib/cjs/appui-react/childwindow/CopyStyles.js +3 -3
  95. package/lib/cjs/appui-react/childwindow/CopyStyles.js.map +1 -1
  96. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  97. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +32 -43
  98. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  99. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +14 -14
  100. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts +1 -1
  101. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/childwindow/PopoutWidget.js +4 -4
  103. package/lib/cjs/appui-react/childwindow/PopoutWidget.js.map +1 -1
  104. package/lib/cjs/appui-react/childwindow/PopoutWidget.scss +10 -10
  105. package/lib/cjs/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
  106. package/lib/cjs/appui-react/configurableui/ActivityTracker.js +6 -4
  107. package/lib/cjs/appui-react/configurableui/ActivityTracker.js.map +1 -1
  108. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +7 -4
  110. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  111. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.d.ts.map +1 -1
  112. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js +26 -11
  113. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  114. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
  115. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  116. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +4 -4
  117. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  118. package/lib/cjs/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  119. package/lib/cjs/appui-react/configurableui/TimeTracker.js +6 -4
  120. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  121. package/lib/cjs/appui-react/configurableui/configurableui.scss +74 -74
  122. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/configurableui/state.js +3 -3
  124. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  125. package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/content/ContentControl.js +17 -11
  127. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  128. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  129. package/lib/cjs/appui-react/content/ContentGroup.js +7 -5
  130. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  131. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  132. package/lib/cjs/appui-react/content/ContentLayout.js +32 -27
  133. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  134. package/lib/cjs/appui-react/content/ContentLayout.scss +128 -128
  135. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts +1 -1
  136. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +10 -7
  138. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  139. package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +46 -46
  140. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +1 -1
  141. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  142. package/lib/cjs/appui-react/content/FloatingViewportContent.js +8 -6
  143. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  144. package/lib/cjs/appui-react/content/IModelViewport.d.ts +1 -1
  145. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  146. package/lib/cjs/appui-react/content/IModelViewport.js +23 -16
  147. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  148. package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
  149. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +16 -7
  150. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  151. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/content/InternalContentViewManager.js +21 -15
  153. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  154. package/lib/cjs/appui-react/content/StageContentLayout.d.ts.map +1 -1
  155. package/lib/cjs/appui-react/content/StageContentLayout.js +7 -4
  156. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -1
  157. package/lib/cjs/appui-react/content/ViewStateHelper.d.ts.map +1 -1
  158. package/lib/cjs/appui-react/content/ViewStateHelper.js +4 -4
  159. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -1
  160. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  161. package/lib/cjs/appui-react/content/ViewportContentControl.js +23 -10
  162. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  163. package/lib/cjs/appui-react/content/split-pane/Pane.d.ts.map +1 -1
  164. package/lib/cjs/appui-react/content/split-pane/Pane.js +4 -4
  165. package/lib/cjs/appui-react/content/split-pane/Pane.js.map +1 -1
  166. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
  167. package/lib/cjs/appui-react/content/split-pane/Resizer.js +3 -3
  168. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -1
  169. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  170. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +28 -22
  171. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  172. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  173. package/lib/cjs/appui-react/cursor/CursorInformation.js +18 -8
  174. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  175. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  176. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +13 -7
  177. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  178. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  179. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +10 -10
  180. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  181. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.scss +33 -34
  182. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  183. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js +21 -9
  184. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  185. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  186. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +5 -5
  187. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  188. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.scss +31 -31
  189. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  190. package/lib/cjs/appui-react/dialog/ContentDialog.js +12 -6
  191. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  192. package/lib/cjs/appui-react/dialog/ContentDialog.scss +25 -25
  193. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +3 -3
  195. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  196. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  197. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +21 -9
  198. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  199. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts +1 -1
  200. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  201. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +22 -9
  202. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  203. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -1
  204. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js +6 -4
  205. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  206. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts +1 -1
  207. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
  208. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js +18 -8
  209. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  210. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +3 -3
  212. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  213. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +1 -1
  214. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  215. package/lib/cjs/appui-react/dialog/ModelessDialog.js +8 -5
  216. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  217. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +3 -3
  219. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  220. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +1 -1
  221. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +39 -9
  223. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  224. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  225. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +3 -3
  226. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  227. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/feedback/ElementTooltip.js +32 -11
  229. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  230. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  231. package/lib/cjs/appui-react/feedback/ValidationTextbox.js +6 -4
  232. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  233. package/lib/cjs/appui-react/feedback/ValidationTextbox.scss +50 -50
  234. package/lib/cjs/appui-react/framework/FrameworkBackstage.js +3 -3
  235. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  236. package/lib/cjs/appui-react/framework/FrameworkChildWindows.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/framework/FrameworkChildWindows.js +3 -3
  238. package/lib/cjs/appui-react/framework/FrameworkChildWindows.js.map +1 -1
  239. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  240. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  241. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  242. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  243. package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -1
  244. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  245. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  246. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  247. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +3 -3
  248. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  249. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  250. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  251. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -1
  252. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  253. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  255. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js +3 -3
  257. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  258. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  259. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +117 -41
  260. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  261. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +3 -3
  262. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  263. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +1 -1
  264. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  265. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +52 -20
  266. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  267. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  268. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +4 -5
  269. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  270. package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +81 -81
  271. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +14 -11
  273. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  274. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.scss +12 -12
  275. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +3 -3
  277. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  278. package/lib/cjs/appui-react/frontstage/StageUsage.js +3 -3
  279. package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -1
  280. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +19 -13
  282. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  283. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +3 -3
  285. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  286. package/lib/cjs/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  287. package/lib/cjs/appui-react/hooks/useActiveStageId.js +3 -3
  288. package/lib/cjs/appui-react/hooks/useActiveStageId.js.map +1 -1
  289. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  290. package/lib/cjs/appui-react/hooks/useActiveViewport.js +8 -4
  291. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  292. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  293. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  294. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  295. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js +3 -3
  297. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  298. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js +3 -3
  299. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  300. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  301. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  302. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  303. package/lib/cjs/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  304. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +19 -10
  305. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  306. package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  307. package/lib/cjs/appui-react/hooks/useUiVisibility.js +4 -4
  308. package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -1
  309. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  310. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  311. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +10 -6
  312. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  313. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +24 -10
  315. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  316. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  317. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +7 -4
  318. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  319. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  320. package/lib/cjs/appui-react/messages/ActivityMessage.js +24 -12
  321. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  322. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  323. package/lib/cjs/appui-react/messages/AppNotificationManager.js +12 -6
  324. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  325. package/lib/cjs/appui-react/messages/HollowIcon.js +3 -3
  326. package/lib/cjs/appui-react/messages/HollowIcon.js.map +1 -1
  327. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  328. package/lib/cjs/appui-react/messages/InputField.js +13 -15
  329. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  330. package/lib/cjs/appui-react/messages/InputField.scss +82 -83
  331. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  332. package/lib/cjs/appui-react/messages/MessageLabel.js +3 -3
  333. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  334. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  335. package/lib/cjs/appui-react/messages/MessageManager.js +33 -16
  336. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  337. package/lib/cjs/appui-react/messages/MessageSpan.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/messages/MessageSpan.js +3 -3
  339. package/lib/cjs/appui-react/messages/MessageSpan.js.map +1 -1
  340. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  341. package/lib/cjs/appui-react/messages/Pointer.js +9 -9
  342. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  343. package/lib/cjs/appui-react/messages/Pointer.scss +43 -43
  344. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  345. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js +24 -10
  346. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  347. package/lib/cjs/appui-react/messages/StatusMessageManager.d.ts.map +1 -1
  348. package/lib/cjs/appui-react/messages/StatusMessageManager.js +6 -4
  349. package/lib/cjs/appui-react/messages/StatusMessageManager.js.map +1 -1
  350. package/lib/cjs/appui-react/messages/getToastCategory.js +3 -3
  351. package/lib/cjs/appui-react/messages/getToastCategory.js.map +1 -1
  352. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  353. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js +7 -5
  354. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  355. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  356. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js +7 -5
  357. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  358. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  359. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +15 -7
  360. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  361. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  362. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +39 -17
  363. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  364. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +67 -67
  365. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +20 -9
  367. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  368. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.scss +73 -73
  369. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +17 -10
  371. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  372. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.scss +13 -13
  373. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/pickers/ListPicker.js +76 -30
  375. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  376. package/lib/cjs/appui-react/pickers/ListPicker.scss +306 -306
  377. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  378. package/lib/cjs/appui-react/pickers/ViewSelector.js +34 -15
  379. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  380. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  381. package/lib/cjs/appui-react/popup/CardPopup.js +11 -13
  382. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  383. package/lib/cjs/appui-react/popup/CardPopup.scss +25 -25
  384. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  385. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +3 -3
  386. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  387. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  388. package/lib/cjs/appui-react/popup/InputEditorPopup.js +5 -4
  389. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  390. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts +1 -1
  391. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  392. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +21 -20
  393. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  394. package/lib/cjs/appui-react/popup/KeyinPalettePanel.scss +31 -31
  395. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  396. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  397. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js +5 -5
  398. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  399. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  400. package/lib/cjs/appui-react/popup/PopupManager.js +45 -19
  401. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  402. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  403. package/lib/cjs/appui-react/popup/PositionPopup.js +4 -4
  404. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  405. package/lib/cjs/appui-react/popup/PositionPopup.scss +27 -28
  406. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js +4 -5
  408. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  409. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  410. package/lib/cjs/appui-react/popup/ToolbarPopup.js +3 -3
  411. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  412. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  413. package/lib/cjs/appui-react/redux/FrameworkState.js +3 -3
  414. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  415. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  416. package/lib/cjs/appui-react/redux/ReducerRegistry.js +3 -4
  417. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  418. package/lib/cjs/appui-react/redux/SessionState.d.ts +9 -9
  419. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/redux/SessionState.js +7 -4
  421. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  422. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/redux/StateManager.js +10 -6
  424. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  425. package/lib/cjs/appui-react/redux/connectIModel.d.ts +1 -1
  426. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  427. package/lib/cjs/appui-react/redux/connectIModel.js +4 -4
  428. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  429. package/lib/cjs/appui-react/redux/redux-ts.d.ts +3 -3
  430. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  431. package/lib/cjs/appui-react/redux/redux-ts.js +6 -4
  432. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  433. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  434. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +3 -3
  435. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  436. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts.map +1 -1
  437. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js +3 -3
  438. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  439. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +3 -3
  441. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  442. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts +2 -2
  443. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  444. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +103 -40
  445. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  446. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  447. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +41 -13
  448. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  449. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts +1 -1
  450. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  451. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +32 -26
  452. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  453. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +119 -119
  454. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  455. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js +9 -5
  456. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  457. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  458. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +36 -13
  459. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  460. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.scss +65 -65
  461. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  462. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +7 -4
  463. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  464. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  465. package/lib/cjs/appui-react/shared/AnyItemDef.js +3 -3
  466. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  467. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js +3 -3
  468. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  469. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  470. package/lib/cjs/appui-react/shared/CommandItemDef.js +8 -4
  471. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  472. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  473. package/lib/cjs/appui-react/shared/CustomItemDef.js +3 -3
  474. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  475. package/lib/cjs/appui-react/shared/CustomItemProps.js +3 -3
  476. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  477. package/lib/cjs/appui-react/shared/GroupItemProps.js +3 -3
  478. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  479. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  480. package/lib/cjs/appui-react/shared/ItemDefBase.js +15 -8
  481. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  482. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  483. package/lib/cjs/appui-react/shared/ItemMap.js +3 -3
  484. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  485. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  486. package/lib/cjs/appui-react/shared/ItemProps.js +3 -3
  487. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  488. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  489. package/lib/cjs/appui-react/shared/MenuItem.js +6 -4
  490. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  491. package/lib/cjs/appui-react/shared/SelectionScope.js +3 -3
  492. package/lib/cjs/appui-react/shared/SelectionScope.js.map +1 -1
  493. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  494. package/lib/cjs/appui-react/shared/ToolItemDef.js +13 -5
  495. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  496. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js +3 -3
  497. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  498. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  499. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +30 -11
  500. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  501. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js +3 -3
  502. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -1
  503. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js +3 -3
  504. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -1
  505. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  506. package/lib/cjs/appui-react/statusbar/Field.js +3 -3
  507. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  508. package/lib/cjs/appui-react/statusbar/Field.scss +109 -109
  509. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  510. package/lib/cjs/appui-react/statusbar/Indicator.js +4 -4
  511. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  512. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  513. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +5 -5
  514. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  515. package/lib/cjs/appui-react/statusbar/LabelIndicator.scss +43 -43
  516. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  517. package/lib/cjs/appui-react/statusbar/Overflow.js +3 -3
  518. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  519. package/lib/cjs/appui-react/statusbar/Overflow.scss +28 -28
  520. package/lib/cjs/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
  521. package/lib/cjs/appui-react/statusbar/OverflowPanel.js +3 -3
  522. package/lib/cjs/appui-react/statusbar/OverflowPanel.js.map +1 -1
  523. package/lib/cjs/appui-react/statusbar/OverflowPanel.scss +23 -23
  524. package/lib/cjs/appui-react/statusbar/Popup.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/statusbar/Popup.js +4 -4
  526. package/lib/cjs/appui-react/statusbar/Popup.js.map +1 -1
  527. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  528. package/lib/cjs/appui-react/statusbar/Separator.js +4 -4
  529. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  530. package/lib/cjs/appui-react/statusbar/Separator.scss +12 -12
  531. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/statusbar/StatusBar.js +7 -7
  533. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  534. package/lib/cjs/appui-react/statusbar/StatusBar.scss +42 -42
  535. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  536. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +22 -17
  537. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  538. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  539. package/lib/cjs/appui-react/statusbar/StatusBarItem.js +3 -3
  540. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  541. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  542. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +3 -3
  543. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  544. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  545. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +11 -12
  546. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  547. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  548. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js +6 -4
  549. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  550. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts +2 -2
  551. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  552. package/lib/cjs/appui-react/statusbar/dialog/Button.js +6 -6
  553. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  554. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +3 -3
  555. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  556. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts +2 -2
  557. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  558. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +5 -5
  559. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  560. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
  561. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js +3 -3
  562. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  563. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  564. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +5 -4
  565. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  566. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +3 -3
  567. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  568. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  569. package/lib/cjs/appui-react/statusfields/MessageCenter.js +14 -11
  570. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  571. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  572. package/lib/cjs/appui-react/statusfields/SectionsField.js +20 -18
  573. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  574. package/lib/cjs/appui-react/statusfields/SectionsField.scss +35 -35
  575. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  576. package/lib/cjs/appui-react/statusfields/SelectionCount.js +3 -3
  577. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  578. package/lib/cjs/appui-react/statusfields/SelectionCount.scss +12 -12
  579. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +3 -3
  580. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  581. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +2 -1
  582. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  583. package/lib/cjs/appui-react/statusfields/SelectionScope.js +8 -5
  584. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  585. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +46 -46
  586. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -1
  587. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/statusfields/SnapMode.js +42 -13
  589. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  590. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  591. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +17 -8
  592. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  593. package/lib/cjs/appui-react/statusfields/ViewAttributes.scss +10 -10
  594. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  595. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +12 -6
  596. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  597. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +45 -45
  598. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  599. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +69 -52
  600. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  601. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +194 -194
  602. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  603. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +27 -14
  604. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  605. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +1 -7
  606. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  607. package/lib/cjs/appui-react/theme/ThemeManager.js +23 -23
  608. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  609. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.d.ts.map +1 -1
  610. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js +3 -3
  611. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  612. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.d.ts.map +1 -1
  613. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js +7 -5
  614. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  615. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  616. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js +19 -8
  617. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  618. package/lib/cjs/appui-react/toolbar/DragInteraction.js +4 -4
  619. package/lib/cjs/appui-react/toolbar/DragInteraction.js.map +1 -1
  620. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  621. package/lib/cjs/appui-react/toolbar/GroupItem.js +10 -7
  622. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  623. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  624. package/lib/cjs/appui-react/toolbar/Toolbar.js +3 -3
  625. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  626. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  627. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +46 -19
  628. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  629. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  630. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +2 -1
  631. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  632. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  633. package/lib/cjs/appui-react/toolbar/ToolbarItem.js +3 -3
  634. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  635. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  636. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +3 -3
  637. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  638. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  639. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js +31 -16
  640. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  641. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  642. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js +3 -3
  643. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  644. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  645. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js +16 -4
  646. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  647. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.d.ts.map +1 -1
  648. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.js +3 -3
  649. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  650. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  651. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +5 -4
  652. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  653. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  654. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +63 -17
  655. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  656. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts +2 -2
  657. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  658. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js +7 -6
  659. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  660. package/lib/cjs/appui-react/tools/KeyinPaletteTools.d.ts.map +1 -1
  661. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js +9 -5
  662. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  663. package/lib/cjs/appui-react/tools/OpenSettingsTool.d.ts.map +1 -1
  664. package/lib/cjs/appui-react/tools/OpenSettingsTool.js +9 -5
  665. package/lib/cjs/appui-react/tools/OpenSettingsTool.js.map +1 -1
  666. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  667. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +9 -5
  668. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  669. package/lib/cjs/appui-react/tools/ToolSettingsTools.d.ts.map +1 -1
  670. package/lib/cjs/appui-react/tools/ToolSettingsTools.js +6 -4
  671. package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
  672. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  673. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +8 -5
  674. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  675. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.d.ts.map +1 -1
  676. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js +33 -13
  677. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  678. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  679. package/lib/cjs/appui-react/toolsettings/ToolInformation.js +5 -4
  680. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +1 -1
  681. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  682. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js +27 -11
  683. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  684. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  685. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +39 -15
  686. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  687. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
  688. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js +18 -10
  689. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  690. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js +3 -3
  691. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  692. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  693. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +3 -3
  694. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  695. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  696. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +35 -15
  697. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  698. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  699. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +3 -3
  700. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  701. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  702. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +35 -15
  703. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  704. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +8 -8
  705. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  706. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +11 -11
  707. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  708. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  709. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +7 -5
  710. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  711. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  712. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +38 -18
  713. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  714. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  715. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js +3 -3
  716. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  717. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.d.ts.map +1 -1
  718. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.js +3 -3
  719. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  720. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +8 -8
  721. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  722. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +36 -18
  723. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  724. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  725. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +46 -28
  726. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  727. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +3 -3
  728. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  729. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js +12 -11
  730. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  731. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +223 -212
  732. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  733. package/lib/cjs/appui-react/uistate/AppUiSettings.js +3 -3
  734. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  735. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  736. package/lib/cjs/appui-react/uistate/useUiStateStorage.js +6 -4
  737. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
  738. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  739. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +15 -7
  740. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  741. package/lib/cjs/appui-react/utils/PropsHelper.d.ts +1 -1
  742. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  743. package/lib/cjs/appui-react/utils/PropsHelper.js +8 -7
  744. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  745. package/lib/cjs/appui-react/utils/ToolbarButtonHelper.d.ts.map +1 -1
  746. package/lib/cjs/appui-react/utils/ToolbarButtonHelper.js +3 -3
  747. package/lib/cjs/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  748. package/lib/cjs/appui-react/utils/ViewUtilities.d.ts.map +1 -1
  749. package/lib/cjs/appui-react/utils/ViewUtilities.js +7 -5
  750. package/lib/cjs/appui-react/utils/ViewUtilities.js.map +1 -1
  751. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  752. package/lib/cjs/appui-react/widget-panels/Content.js +10 -5
  753. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  754. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js +3 -3
  755. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  756. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +1 -1
  757. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  758. package/lib/cjs/appui-react/widget-panels/Frontstage.js +74 -33
  759. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  760. package/lib/cjs/appui-react/widget-panels/Frontstage.scss +19 -19
  761. package/lib/cjs/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
  762. package/lib/cjs/appui-react/widget-panels/FrontstageContent.js +6 -4
  763. package/lib/cjs/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  764. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  765. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  766. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js +10 -7
  767. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  768. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  769. package/lib/cjs/appui-react/widget-panels/StatusBar.js +6 -4
  770. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  771. package/lib/cjs/appui-react/widget-panels/StatusBar.scss +11 -11
  772. package/lib/cjs/appui-react/widget-panels/Tab.d.ts.map +1 -1
  773. package/lib/cjs/appui-react/widget-panels/Tab.js +4 -4
  774. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  775. package/lib/cjs/appui-react/widget-panels/Tab.scss +14 -14
  776. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  777. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +19 -15
  778. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  779. package/lib/cjs/appui-react/widget-panels/ToolSettings.scss +41 -41
  780. package/lib/cjs/appui-react/widget-panels/Toolbars.js +3 -3
  781. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  782. package/lib/cjs/appui-react/widget-panels/Toolbars.scss +20 -20
  783. package/lib/cjs/appui-react/widget-panels/useTransientState.d.ts.map +1 -1
  784. package/lib/cjs/appui-react/widget-panels/useTransientState.js +3 -3
  785. package/lib/cjs/appui-react/widget-panels/useTransientState.js.map +1 -1
  786. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
  787. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +6 -4
  788. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  789. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  790. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +9 -5
  791. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  792. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  793. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +9 -4
  794. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  795. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  796. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +10 -4
  797. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  798. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  799. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +3 -3
  800. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  801. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  802. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +22 -10
  803. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  804. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts.map +1 -1
  805. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +3 -3
  806. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  807. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  808. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js +3 -3
  809. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  810. package/lib/cjs/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
  811. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +3 -3
  812. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  813. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  814. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +3 -3
  815. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  816. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  817. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +3 -3
  818. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  819. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  820. package/lib/cjs/appui-react/widgets/Widget.js +3 -3
  821. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  822. package/lib/cjs/appui-react/widgets/WidgetConfig.js +3 -3
  823. package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -1
  824. package/lib/cjs/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  825. package/lib/cjs/appui-react/widgets/WidgetControl.js +20 -12
  826. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  827. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  828. package/lib/cjs/appui-react/widgets/WidgetDef.js +99 -36
  829. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  830. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  831. package/lib/cjs/appui-react/widgets/WidgetHost.js +6 -5
  832. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  833. package/lib/cjs/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  834. package/lib/cjs/appui-react/widgets/WidgetManager.js +23 -15
  835. package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
  836. package/lib/cjs/appui-react/widgets/WidgetState.js +3 -3
  837. package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -1
  838. package/lib/cjs/appui-react.js +3 -3
  839. package/lib/cjs/appui-react.js.map +1 -1
  840. package/lib/esm/appui-react/UiFramework.d.ts +3 -3
  841. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  842. package/lib/esm/appui-react/UiFramework.js +85 -38
  843. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  844. package/lib/esm/appui-react/_variables.scss +11 -11
  845. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  846. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +3 -3
  847. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  848. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  849. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +5 -5
  850. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  851. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +15 -15
  852. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  853. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +64 -31
  854. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  855. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.scss +27 -27
  856. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  857. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  858. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +3 -3
  859. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  860. package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +55 -55
  861. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +3 -3
  862. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  863. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  864. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +11 -5
  865. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  866. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.js +3 -3
  867. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  868. package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  869. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js +3 -3
  870. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  871. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  872. package/lib/esm/appui-react/accudraw/Calculator.js +7 -9
  873. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  874. package/lib/esm/appui-react/accudraw/Calculator.scss +84 -85
  875. package/lib/esm/appui-react/accudraw/CalculatorEngine.d.ts.map +1 -1
  876. package/lib/esm/appui-react/accudraw/CalculatorEngine.js +19 -12
  877. package/lib/esm/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  878. package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  879. package/lib/esm/appui-react/accudraw/CalculatorPopup.js +3 -3
  880. package/lib/esm/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  881. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  882. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +30 -12
  883. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  884. package/lib/esm/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  885. package/lib/esm/appui-react/accudraw/MenuButton.js +7 -5
  886. package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
  887. package/lib/esm/appui-react/accudraw/MenuButton.scss +18 -19
  888. package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  889. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js +3 -3
  890. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  891. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +2 -1
  892. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  893. package/lib/esm/appui-react/accudraw/SquareButton.js +3 -3
  894. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  895. package/lib/esm/appui-react/accudraw/SquareButton.scss +30 -30
  896. package/lib/esm/appui-react/accudraw/backspace.svg +9 -9
  897. package/lib/esm/appui-react/accudraw/constraint-2d.svg +11 -11
  898. package/lib/esm/appui-react/accudraw/height-2.svg +10 -10
  899. package/lib/esm/appui-react/accudraw/height.svg +11 -11
  900. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  901. package/lib/esm/appui-react/backstage/BackstageComposer.js +10 -21
  902. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  903. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +2 -2
  904. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  905. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +8 -8
  906. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  907. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  908. package/lib/esm/appui-react/backstage/BackstageItem.js +3 -3
  909. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -1
  910. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  911. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +3 -3
  912. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  913. package/lib/esm/appui-react/backstage/BackstageItemsManager.d.ts.map +1 -1
  914. package/lib/esm/appui-react/backstage/BackstageItemsManager.js +12 -13
  915. package/lib/esm/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  916. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +1 -1
  917. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  918. package/lib/esm/appui-react/backstage/BackstageManager.js +7 -5
  919. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  920. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  921. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +3 -3
  922. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  923. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.d.ts.map +1 -1
  924. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js +3 -3
  925. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  926. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  927. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -3
  928. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  929. package/lib/esm/appui-react/childwindow/CopyStyles.d.ts.map +1 -1
  930. package/lib/esm/appui-react/childwindow/CopyStyles.js +3 -3
  931. package/lib/esm/appui-react/childwindow/CopyStyles.js.map +1 -1
  932. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  933. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +32 -43
  934. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  935. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +14 -14
  936. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts +1 -1
  937. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  938. package/lib/esm/appui-react/childwindow/PopoutWidget.js +4 -4
  939. package/lib/esm/appui-react/childwindow/PopoutWidget.js.map +1 -1
  940. package/lib/esm/appui-react/childwindow/PopoutWidget.scss +10 -10
  941. package/lib/esm/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
  942. package/lib/esm/appui-react/configurableui/ActivityTracker.js +6 -4
  943. package/lib/esm/appui-react/configurableui/ActivityTracker.js.map +1 -1
  944. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  945. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +7 -4
  946. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  947. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.d.ts.map +1 -1
  948. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.js +26 -11
  949. package/lib/esm/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  950. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
  951. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  952. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +4 -4
  953. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  954. package/lib/esm/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  955. package/lib/esm/appui-react/configurableui/TimeTracker.js +6 -4
  956. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  957. package/lib/esm/appui-react/configurableui/configurableui.scss +74 -74
  958. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  959. package/lib/esm/appui-react/configurableui/state.js +4 -4
  960. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  961. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  962. package/lib/esm/appui-react/content/ContentControl.js +18 -12
  963. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  964. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  965. package/lib/esm/appui-react/content/ContentGroup.js +8 -6
  966. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  967. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  968. package/lib/esm/appui-react/content/ContentLayout.js +32 -27
  969. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  970. package/lib/esm/appui-react/content/ContentLayout.scss +128 -128
  971. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts +1 -1
  972. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  973. package/lib/esm/appui-react/content/DefaultViewOverlay.js +11 -8
  974. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  975. package/lib/esm/appui-react/content/DefaultViewOverlay.scss +46 -46
  976. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +1 -1
  977. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  978. package/lib/esm/appui-react/content/FloatingViewportContent.js +8 -6
  979. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  980. package/lib/esm/appui-react/content/IModelViewport.d.ts +1 -1
  981. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  982. package/lib/esm/appui-react/content/IModelViewport.js +23 -16
  983. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  984. package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
  985. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +16 -7
  986. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  987. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  988. package/lib/esm/appui-react/content/InternalContentViewManager.js +22 -16
  989. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  990. package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -1
  991. package/lib/esm/appui-react/content/StageContentLayout.js +7 -4
  992. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -1
  993. package/lib/esm/appui-react/content/ViewStateHelper.d.ts.map +1 -1
  994. package/lib/esm/appui-react/content/ViewStateHelper.js +5 -5
  995. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -1
  996. package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  997. package/lib/esm/appui-react/content/ViewportContentControl.js +24 -11
  998. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  999. package/lib/esm/appui-react/content/split-pane/Pane.d.ts.map +1 -1
  1000. package/lib/esm/appui-react/content/split-pane/Pane.js +4 -4
  1001. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -1
  1002. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
  1003. package/lib/esm/appui-react/content/split-pane/Resizer.js +3 -3
  1004. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -1
  1005. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  1006. package/lib/esm/appui-react/content/split-pane/SplitPane.js +28 -22
  1007. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  1008. package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  1009. package/lib/esm/appui-react/cursor/CursorInformation.js +18 -8
  1010. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  1011. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +13 -7
  1013. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  1014. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  1015. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +10 -10
  1016. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  1017. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.scss +33 -34
  1018. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  1019. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +21 -9
  1020. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  1021. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  1022. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +5 -5
  1023. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  1024. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.scss +31 -31
  1025. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  1026. package/lib/esm/appui-react/dialog/ContentDialog.js +13 -7
  1027. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  1028. package/lib/esm/appui-react/dialog/ContentDialog.scss +25 -25
  1029. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  1030. package/lib/esm/appui-react/dialog/ContentDialogManager.js +3 -3
  1031. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  1032. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  1033. package/lib/esm/appui-react/dialog/DialogManagerBase.js +21 -9
  1034. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  1035. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts +1 -1
  1036. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  1037. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +23 -10
  1038. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  1039. package/lib/esm/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -1
  1040. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js +6 -4
  1041. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  1042. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts +1 -1
  1043. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
  1044. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js +19 -9
  1045. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  1046. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  1047. package/lib/esm/appui-react/dialog/ModalDialogManager.js +3 -3
  1048. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  1049. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +1 -1
  1050. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  1051. package/lib/esm/appui-react/dialog/ModelessDialog.js +8 -5
  1052. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  1053. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  1054. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +3 -3
  1055. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  1056. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +1 -1
  1057. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  1058. package/lib/esm/appui-react/dialog/StandardMessageBox.js +40 -10
  1059. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  1060. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  1061. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +3 -3
  1062. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  1063. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/feedback/ElementTooltip.js +33 -12
  1065. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  1066. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  1067. package/lib/esm/appui-react/feedback/ValidationTextbox.js +6 -4
  1068. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  1069. package/lib/esm/appui-react/feedback/ValidationTextbox.scss +50 -50
  1070. package/lib/esm/appui-react/framework/FrameworkBackstage.js +3 -3
  1071. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  1072. package/lib/esm/appui-react/framework/FrameworkChildWindows.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/framework/FrameworkChildWindows.js +3 -3
  1074. package/lib/esm/appui-react/framework/FrameworkChildWindows.js.map +1 -1
  1075. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  1076. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  1077. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  1078. package/lib/esm/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  1079. package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -1
  1080. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  1081. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  1082. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  1083. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +3 -3
  1084. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  1085. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  1086. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  1087. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -1
  1088. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  1089. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  1091. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/frontstage/FrontstageConfig.js +3 -3
  1093. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  1094. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  1095. package/lib/esm/appui-react/frontstage/FrontstageDef.js +118 -42
  1096. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  1097. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +3 -3
  1098. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  1099. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +1 -1
  1100. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +54 -22
  1102. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  1103. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  1104. package/lib/esm/appui-react/frontstage/ModalFrontstage.js +4 -5
  1105. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  1106. package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +81 -81
  1107. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  1108. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +16 -13
  1109. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  1110. package/lib/esm/appui-react/frontstage/ModalSettingsStage.scss +12 -12
  1111. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  1112. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +3 -3
  1113. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  1114. package/lib/esm/appui-react/frontstage/StageUsage.js +3 -3
  1115. package/lib/esm/appui-react/frontstage/StageUsage.js.map +1 -1
  1116. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  1117. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +19 -13
  1118. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  1119. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  1120. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +3 -3
  1121. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  1122. package/lib/esm/appui-react/hooks/useActiveStageId.d.ts.map +1 -1
  1123. package/lib/esm/appui-react/hooks/useActiveStageId.js +3 -3
  1124. package/lib/esm/appui-react/hooks/useActiveStageId.js.map +1 -1
  1125. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  1126. package/lib/esm/appui-react/hooks/useActiveViewport.js +9 -5
  1127. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  1128. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  1129. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  1130. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  1131. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js +3 -3
  1133. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  1134. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js +3 -3
  1135. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  1136. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  1137. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  1138. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  1139. package/lib/esm/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  1140. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +19 -10
  1141. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  1142. package/lib/esm/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  1143. package/lib/esm/appui-react/hooks/useUiVisibility.js +4 -4
  1144. package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -1
  1145. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  1146. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  1147. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +11 -7
  1148. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  1149. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  1150. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +24 -10
  1151. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  1152. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  1153. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +8 -5
  1154. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  1155. package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  1156. package/lib/esm/appui-react/messages/ActivityMessage.js +24 -12
  1157. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  1158. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  1159. package/lib/esm/appui-react/messages/AppNotificationManager.js +12 -6
  1160. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  1161. package/lib/esm/appui-react/messages/HollowIcon.js +3 -3
  1162. package/lib/esm/appui-react/messages/HollowIcon.js.map +1 -1
  1163. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  1164. package/lib/esm/appui-react/messages/InputField.js +14 -16
  1165. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  1166. package/lib/esm/appui-react/messages/InputField.scss +82 -83
  1167. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  1168. package/lib/esm/appui-react/messages/MessageLabel.js +3 -3
  1169. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  1170. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  1171. package/lib/esm/appui-react/messages/MessageManager.js +34 -17
  1172. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  1173. package/lib/esm/appui-react/messages/MessageSpan.d.ts.map +1 -1
  1174. package/lib/esm/appui-react/messages/MessageSpan.js +3 -3
  1175. package/lib/esm/appui-react/messages/MessageSpan.js.map +1 -1
  1176. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  1177. package/lib/esm/appui-react/messages/Pointer.js +11 -11
  1178. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  1179. package/lib/esm/appui-react/messages/Pointer.scss +43 -43
  1180. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  1181. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js +25 -11
  1182. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  1183. package/lib/esm/appui-react/messages/StatusMessageManager.d.ts.map +1 -1
  1184. package/lib/esm/appui-react/messages/StatusMessageManager.js +6 -4
  1185. package/lib/esm/appui-react/messages/StatusMessageManager.js.map +1 -1
  1186. package/lib/esm/appui-react/messages/getToastCategory.js +3 -3
  1187. package/lib/esm/appui-react/messages/getToastCategory.js.map +1 -1
  1188. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  1189. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js +7 -5
  1190. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  1191. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js +7 -5
  1193. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  1194. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  1195. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +16 -8
  1196. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  1197. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  1198. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +39 -17
  1199. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  1200. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +67 -67
  1201. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  1202. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +21 -10
  1203. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  1204. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.scss +73 -73
  1205. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  1206. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +20 -13
  1207. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  1208. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.scss +13 -13
  1209. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  1210. package/lib/esm/appui-react/pickers/ListPicker.js +78 -32
  1211. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  1212. package/lib/esm/appui-react/pickers/ListPicker.scss +306 -306
  1213. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  1214. package/lib/esm/appui-react/pickers/ViewSelector.js +34 -15
  1215. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  1216. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  1217. package/lib/esm/appui-react/popup/CardPopup.js +12 -14
  1218. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  1219. package/lib/esm/appui-react/popup/CardPopup.scss +25 -25
  1220. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  1221. package/lib/esm/appui-react/popup/HTMLElementPopup.js +3 -3
  1222. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  1223. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  1224. package/lib/esm/appui-react/popup/InputEditorPopup.js +5 -4
  1225. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  1226. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts +1 -1
  1227. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  1228. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +23 -22
  1229. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  1230. package/lib/esm/appui-react/popup/KeyinPalettePanel.scss +31 -31
  1231. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  1232. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  1233. package/lib/esm/appui-react/popup/KeyinPalettePopup.js +5 -5
  1234. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  1235. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  1236. package/lib/esm/appui-react/popup/PopupManager.js +45 -19
  1237. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  1238. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  1239. package/lib/esm/appui-react/popup/PositionPopup.js +4 -4
  1240. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  1241. package/lib/esm/appui-react/popup/PositionPopup.scss +27 -28
  1242. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  1243. package/lib/esm/appui-react/popup/ToolSettingsPopup.js +4 -5
  1244. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  1245. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  1246. package/lib/esm/appui-react/popup/ToolbarPopup.js +4 -4
  1247. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  1248. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  1249. package/lib/esm/appui-react/redux/FrameworkState.js +3 -3
  1250. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  1251. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  1252. package/lib/esm/appui-react/redux/ReducerRegistry.js +3 -4
  1253. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  1254. package/lib/esm/appui-react/redux/SessionState.d.ts +9 -9
  1255. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  1256. package/lib/esm/appui-react/redux/SessionState.js +7 -4
  1257. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  1258. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  1259. package/lib/esm/appui-react/redux/StateManager.js +10 -6
  1260. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  1261. package/lib/esm/appui-react/redux/connectIModel.d.ts +1 -1
  1262. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  1263. package/lib/esm/appui-react/redux/connectIModel.js +4 -4
  1264. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  1265. package/lib/esm/appui-react/redux/redux-ts.d.ts +3 -3
  1266. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  1267. package/lib/esm/appui-react/redux/redux-ts.js +6 -4
  1268. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  1269. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  1270. package/lib/esm/appui-react/safearea/SafeAreaContext.js +3 -3
  1271. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  1272. package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts.map +1 -1
  1273. package/lib/esm/appui-react/safearea/SafeAreaHelpers.js +3 -3
  1274. package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  1275. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
  1276. package/lib/esm/appui-react/safearea/SafeAreaInsets.js +3 -3
  1277. package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  1278. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts +2 -2
  1279. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  1280. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +103 -40
  1281. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  1282. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  1283. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +42 -14
  1284. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  1285. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts +1 -1
  1286. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  1287. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +33 -27
  1288. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  1289. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +119 -119
  1290. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  1291. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js +9 -5
  1292. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  1293. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1294. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +38 -15
  1295. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1296. package/lib/esm/appui-react/settings/ui/UiSettingsPage.scss +65 -65
  1297. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1298. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +7 -4
  1299. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1300. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1301. package/lib/esm/appui-react/shared/AnyItemDef.js +3 -3
  1302. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1303. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js +3 -3
  1304. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1305. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1306. package/lib/esm/appui-react/shared/CommandItemDef.js +8 -4
  1307. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1308. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1309. package/lib/esm/appui-react/shared/CustomItemDef.js +3 -3
  1310. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1311. package/lib/esm/appui-react/shared/CustomItemProps.js +3 -3
  1312. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1313. package/lib/esm/appui-react/shared/GroupItemProps.js +3 -3
  1314. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1315. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1316. package/lib/esm/appui-react/shared/ItemDefBase.js +15 -8
  1317. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1318. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1319. package/lib/esm/appui-react/shared/ItemMap.js +3 -3
  1320. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1321. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1322. package/lib/esm/appui-react/shared/ItemProps.js +3 -3
  1323. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1324. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1325. package/lib/esm/appui-react/shared/MenuItem.js +6 -4
  1326. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1327. package/lib/esm/appui-react/shared/SelectionScope.js +3 -3
  1328. package/lib/esm/appui-react/shared/SelectionScope.js.map +1 -1
  1329. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1330. package/lib/esm/appui-react/shared/ToolItemDef.js +13 -5
  1331. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1332. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js +3 -3
  1333. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1334. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  1335. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +30 -11
  1336. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1337. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js +3 -3
  1338. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js.map +1 -1
  1339. package/lib/esm/appui-react/stagepanels/StagePanelSection.js +3 -3
  1340. package/lib/esm/appui-react/stagepanels/StagePanelSection.js.map +1 -1
  1341. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1342. package/lib/esm/appui-react/statusbar/Field.js +3 -3
  1343. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1344. package/lib/esm/appui-react/statusbar/Field.scss +109 -109
  1345. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1346. package/lib/esm/appui-react/statusbar/Indicator.js +4 -4
  1347. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1348. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  1349. package/lib/esm/appui-react/statusbar/LabelIndicator.js +5 -5
  1350. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1351. package/lib/esm/appui-react/statusbar/LabelIndicator.scss +43 -43
  1352. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1353. package/lib/esm/appui-react/statusbar/Overflow.js +3 -3
  1354. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1355. package/lib/esm/appui-react/statusbar/Overflow.scss +28 -28
  1356. package/lib/esm/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
  1357. package/lib/esm/appui-react/statusbar/OverflowPanel.js +3 -3
  1358. package/lib/esm/appui-react/statusbar/OverflowPanel.js.map +1 -1
  1359. package/lib/esm/appui-react/statusbar/OverflowPanel.scss +23 -23
  1360. package/lib/esm/appui-react/statusbar/Popup.d.ts.map +1 -1
  1361. package/lib/esm/appui-react/statusbar/Popup.js +4 -4
  1362. package/lib/esm/appui-react/statusbar/Popup.js.map +1 -1
  1363. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1364. package/lib/esm/appui-react/statusbar/Separator.js +4 -4
  1365. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1366. package/lib/esm/appui-react/statusbar/Separator.scss +12 -12
  1367. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1368. package/lib/esm/appui-react/statusbar/StatusBar.js +7 -7
  1369. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1370. package/lib/esm/appui-react/statusbar/StatusBar.scss +42 -42
  1371. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1372. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +25 -20
  1373. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1374. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  1375. package/lib/esm/appui-react/statusbar/StatusBarItem.js +3 -3
  1376. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  1377. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  1378. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js +3 -3
  1379. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  1380. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  1381. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +12 -13
  1382. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  1383. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  1384. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js +6 -4
  1385. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  1386. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts +2 -2
  1387. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1388. package/lib/esm/appui-react/statusbar/dialog/Button.js +6 -6
  1389. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1390. package/lib/esm/appui-react/statusbar/dialog/Dialog.js +3 -3
  1391. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1392. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts +2 -2
  1393. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1394. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +5 -5
  1395. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1396. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
  1397. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js +3 -3
  1398. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  1399. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  1400. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +5 -4
  1401. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  1402. package/lib/esm/appui-react/statusfields/ActivityCenter.js +3 -3
  1403. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1404. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  1405. package/lib/esm/appui-react/statusfields/MessageCenter.js +15 -12
  1406. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  1407. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1408. package/lib/esm/appui-react/statusfields/SectionsField.js +21 -19
  1409. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1410. package/lib/esm/appui-react/statusfields/SectionsField.scss +35 -35
  1411. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1412. package/lib/esm/appui-react/statusfields/SelectionCount.js +3 -3
  1413. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1414. package/lib/esm/appui-react/statusfields/SelectionCount.scss +12 -12
  1415. package/lib/esm/appui-react/statusfields/SelectionInfo.js +3 -3
  1416. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1417. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +2 -1
  1418. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1419. package/lib/esm/appui-react/statusfields/SelectionScope.js +8 -5
  1420. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1421. package/lib/esm/appui-react/statusfields/SelectionScope.scss +46 -46
  1422. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -1
  1423. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1424. package/lib/esm/appui-react/statusfields/SnapMode.js +42 -13
  1425. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1426. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1427. package/lib/esm/appui-react/statusfields/ViewAttributes.js +17 -8
  1428. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1429. package/lib/esm/appui-react/statusfields/ViewAttributes.scss +10 -10
  1430. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1431. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +12 -6
  1432. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1433. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +45 -45
  1434. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1435. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +69 -52
  1436. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1437. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +194 -194
  1438. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1439. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +27 -14
  1440. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1441. package/lib/esm/appui-react/theme/ThemeManager.d.ts +1 -7
  1442. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1443. package/lib/esm/appui-react/theme/ThemeManager.js +23 -23
  1444. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1445. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.d.ts.map +1 -1
  1446. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js +3 -3
  1447. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  1448. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.d.ts.map +1 -1
  1449. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js +7 -5
  1450. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  1451. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  1452. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js +20 -9
  1453. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  1454. package/lib/esm/appui-react/toolbar/DragInteraction.js +4 -4
  1455. package/lib/esm/appui-react/toolbar/DragInteraction.js.map +1 -1
  1456. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1457. package/lib/esm/appui-react/toolbar/GroupItem.js +10 -7
  1458. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1459. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1460. package/lib/esm/appui-react/toolbar/Toolbar.js +3 -3
  1461. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1462. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  1463. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +48 -21
  1464. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  1465. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1466. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +3 -2
  1467. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1468. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1469. package/lib/esm/appui-react/toolbar/ToolbarItem.js +3 -3
  1470. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1471. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1472. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +3 -3
  1473. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1474. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  1475. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js +32 -17
  1476. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  1477. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1478. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js +3 -3
  1479. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1480. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  1481. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js +17 -5
  1482. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  1483. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.d.ts.map +1 -1
  1484. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.js +3 -3
  1485. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  1486. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  1487. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +5 -4
  1488. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  1489. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1490. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +64 -18
  1491. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1492. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts +2 -2
  1493. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts.map +1 -1
  1494. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js +7 -6
  1495. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  1496. package/lib/esm/appui-react/tools/KeyinPaletteTools.d.ts.map +1 -1
  1497. package/lib/esm/appui-react/tools/KeyinPaletteTools.js +9 -5
  1498. package/lib/esm/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  1499. package/lib/esm/appui-react/tools/OpenSettingsTool.d.ts.map +1 -1
  1500. package/lib/esm/appui-react/tools/OpenSettingsTool.js +9 -5
  1501. package/lib/esm/appui-react/tools/OpenSettingsTool.js.map +1 -1
  1502. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  1503. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +10 -6
  1504. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  1505. package/lib/esm/appui-react/tools/ToolSettingsTools.d.ts.map +1 -1
  1506. package/lib/esm/appui-react/tools/ToolSettingsTools.js +6 -4
  1507. package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
  1508. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  1509. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +8 -5
  1510. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  1511. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.d.ts.map +1 -1
  1512. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js +33 -13
  1513. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  1514. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  1515. package/lib/esm/appui-react/toolsettings/ToolInformation.js +5 -4
  1516. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +1 -1
  1517. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  1518. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js +28 -12
  1519. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  1520. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  1521. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +40 -16
  1522. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  1523. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
  1524. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js +18 -10
  1525. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  1526. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js +3 -3
  1527. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  1528. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1529. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +3 -3
  1530. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1531. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1532. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +35 -15
  1533. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1534. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1535. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +3 -3
  1536. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1537. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1538. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +35 -15
  1539. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1540. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +8 -8
  1541. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1542. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +11 -11
  1543. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1544. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1545. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +7 -5
  1546. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1547. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  1548. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +38 -18
  1549. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1550. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1551. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js +3 -3
  1552. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1553. package/lib/esm/appui-react/ui-items-provider/isProviderItem.d.ts.map +1 -1
  1554. package/lib/esm/appui-react/ui-items-provider/isProviderItem.js +3 -3
  1555. package/lib/esm/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  1556. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +8 -8
  1557. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  1558. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +37 -19
  1559. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1560. package/lib/esm/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  1561. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +46 -28
  1562. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  1563. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +3 -3
  1564. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  1565. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js +12 -11
  1566. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  1567. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +223 -212
  1568. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1569. package/lib/esm/appui-react/uistate/AppUiSettings.js +3 -3
  1570. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1571. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  1572. package/lib/esm/appui-react/uistate/useUiStateStorage.js +7 -5
  1573. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
  1574. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  1575. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +16 -8
  1576. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  1577. package/lib/esm/appui-react/utils/PropsHelper.d.ts +1 -1
  1578. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1579. package/lib/esm/appui-react/utils/PropsHelper.js +8 -7
  1580. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1581. package/lib/esm/appui-react/utils/ToolbarButtonHelper.d.ts.map +1 -1
  1582. package/lib/esm/appui-react/utils/ToolbarButtonHelper.js +3 -3
  1583. package/lib/esm/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  1584. package/lib/esm/appui-react/utils/ViewUtilities.d.ts.map +1 -1
  1585. package/lib/esm/appui-react/utils/ViewUtilities.js +8 -6
  1586. package/lib/esm/appui-react/utils/ViewUtilities.js.map +1 -1
  1587. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  1588. package/lib/esm/appui-react/widget-panels/Content.js +11 -6
  1589. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  1590. package/lib/esm/appui-react/widget-panels/FloatingWidget.js +3 -3
  1591. package/lib/esm/appui-react/widget-panels/FloatingWidget.js.map +1 -1
  1592. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +1 -1
  1593. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1594. package/lib/esm/appui-react/widget-panels/Frontstage.js +75 -34
  1595. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1596. package/lib/esm/appui-react/widget-panels/Frontstage.scss +19 -19
  1597. package/lib/esm/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
  1598. package/lib/esm/appui-react/widget-panels/FrontstageContent.js +6 -4
  1599. package/lib/esm/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  1600. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  1601. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  1602. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js +10 -7
  1603. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  1604. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1605. package/lib/esm/appui-react/widget-panels/StatusBar.js +6 -4
  1606. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1607. package/lib/esm/appui-react/widget-panels/StatusBar.scss +11 -11
  1608. package/lib/esm/appui-react/widget-panels/Tab.d.ts.map +1 -1
  1609. package/lib/esm/appui-react/widget-panels/Tab.js +4 -4
  1610. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  1611. package/lib/esm/appui-react/widget-panels/Tab.scss +14 -14
  1612. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  1613. package/lib/esm/appui-react/widget-panels/ToolSettings.js +20 -16
  1614. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  1615. package/lib/esm/appui-react/widget-panels/ToolSettings.scss +41 -41
  1616. package/lib/esm/appui-react/widget-panels/Toolbars.js +3 -3
  1617. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  1618. package/lib/esm/appui-react/widget-panels/Toolbars.scss +20 -20
  1619. package/lib/esm/appui-react/widget-panels/useTransientState.d.ts.map +1 -1
  1620. package/lib/esm/appui-react/widget-panels/useTransientState.js +3 -3
  1621. package/lib/esm/appui-react/widget-panels/useTransientState.js.map +1 -1
  1622. package/lib/esm/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
  1623. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +7 -5
  1624. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  1625. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1626. package/lib/esm/appui-react/widgets/BackstageAppButton.js +9 -5
  1627. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1628. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1629. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +9 -4
  1630. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1631. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1632. package/lib/esm/appui-react/widgets/BasicToolWidget.js +10 -4
  1633. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1634. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
  1635. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +3 -3
  1636. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  1637. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1638. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +23 -11
  1639. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1640. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts.map +1 -1
  1641. package/lib/esm/appui-react/widgets/StableWidgetDef.js +3 -3
  1642. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  1643. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.d.ts.map +1 -1
  1644. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js +3 -3
  1645. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  1646. package/lib/esm/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
  1647. package/lib/esm/appui-react/widgets/ToolSettingsContent.js +3 -3
  1648. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  1649. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1650. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +4 -4
  1651. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1652. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
  1653. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +3 -3
  1654. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  1655. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1656. package/lib/esm/appui-react/widgets/Widget.js +3 -3
  1657. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1658. package/lib/esm/appui-react/widgets/WidgetConfig.js +3 -3
  1659. package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -1
  1660. package/lib/esm/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  1661. package/lib/esm/appui-react/widgets/WidgetControl.js +21 -13
  1662. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  1663. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1664. package/lib/esm/appui-react/widgets/WidgetDef.js +100 -37
  1665. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1666. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  1667. package/lib/esm/appui-react/widgets/WidgetHost.js +6 -5
  1668. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  1669. package/lib/esm/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  1670. package/lib/esm/appui-react/widgets/WidgetManager.js +23 -15
  1671. package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
  1672. package/lib/esm/appui-react/widgets/WidgetState.js +3 -3
  1673. package/lib/esm/appui-react/widgets/WidgetState.js.map +1 -1
  1674. package/lib/esm/appui-react.js +3 -3
  1675. package/lib/esm/appui-react.js.map +1 -1
  1676. package/lib/public/locales/en/UiFramework.json +334 -334
  1677. package/package.json +16 -29
  1678. package/rulesets/Categories.json +72 -76
  1679. package/rulesets/Models.json +42 -44
@@ -1,15 +1,15 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Popup
7
7
  */
8
8
  // cSpell:ignore focusvalue uiadmin
9
9
  import * as React from "react";
10
10
  import "./KeyinPalettePanel.scss";
11
- import { FilteredText, Listbox, ListboxItem, UiStateStorageStatus } from "@itwin/core-react";
12
- import { IModelApp, NotifyMessageDetails, OutputMessagePriority, OutputMessageType, ParseAndRunResult } from "@itwin/core-frontend";
11
+ import { FilteredText, Listbox, ListboxItem, UiStateStorageStatus, } from "@itwin/core-react";
12
+ import { IModelApp, NotifyMessageDetails, OutputMessagePriority, OutputMessageType, ParseAndRunResult, } from "@itwin/core-frontend";
13
13
  import { UiFramework } from "../UiFramework";
14
14
  import { matchesWords, SpecialKey } from "@itwin/appui-abstract";
15
15
  import { ClearKeyinPaletteHistoryTool } from "../tools/KeyinPaletteTools";
@@ -22,14 +22,13 @@ export function clearKeyinPaletteHistory() {
22
22
  const uiSettingsStorage = UiFramework.getUiStateStorage();
23
23
  // istanbul ignore else
24
24
  if (uiSettingsStorage) {
25
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
26
- uiSettingsStorage.deleteSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY);
25
+ void uiSettingsStorage.deleteSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY);
27
26
  }
28
27
  }
29
28
  /**
30
29
  * @internal
31
30
  */
32
- export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allowedHistoryLength = 6 }) {
31
+ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allowedHistoryLength = 6, }) {
33
32
  const [currentKeyin, setCurrentKeyin] = React.useState("");
34
33
  const placeholderLabel = React.useRef(UiFramework.translate("keyinbrowser.placeholder"));
35
34
  const inputRef = React.useRef(null);
@@ -51,11 +50,10 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
51
50
  setHistoryKeyins([]);
52
51
  }
53
52
  }
54
- fetchState(); // eslint-disable-line @typescript-eslint/no-floating-promises
53
+ void fetchState();
55
54
  }, [uiSettingsStorage]);
56
55
  // istanbul ignore next
57
56
  const storeHistoryKeyins = React.useCallback(async (value) => {
58
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
59
57
  const result = await uiSettingsStorage.saveSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY, value);
60
58
  if (result.status !== UiStateStorageStatus.Success) {
61
59
  const briefMessage = UiFramework.translate("keyinbrowser.couldNotSaveHistory");
@@ -103,7 +101,9 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
103
101
  }
104
102
  else {
105
103
  // istanbul ignore next
106
- if (value.length < 400 && value !== ClearKeyinPaletteHistoryTool.keyin && value !== ClearKeyinPaletteHistoryTool.englishKeyin) {
104
+ if (value.length < 400 &&
105
+ value !== ClearKeyinPaletteHistoryTool.keyin &&
106
+ value !== ClearKeyinPaletteHistoryTool.englishKeyin) {
107
107
  const newHistoryEntries = [value];
108
108
  for (const entry of historyKeyins) {
109
109
  if (entry !== value) {
@@ -193,7 +193,8 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
193
193
  else {
194
194
  // only add entry if no match in filtered history
195
195
  // istanbul ignore else
196
- if (-1 === filteredHistory.findIndex((historyEntry) => historyEntry.value === value.value))
196
+ if (-1 ===
197
+ filteredHistory.findIndex((historyEntry) => historyEntry.value === value.value))
197
198
  newKeyinSet.push({ ...value, matches });
198
199
  }
199
200
  }
@@ -229,21 +230,21 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
229
230
  event.stopPropagation();
230
231
  // istanbul ignore else
231
232
  if (inputRef.current) {
232
- const nextElement = inputRef.current.nextElementSibling;
233
+ const nextElement = inputRef.current
234
+ .nextElementSibling;
233
235
  nextElement && nextElement.focus();
234
236
  }
235
237
  }
236
238
  }
237
239
  }, [filteredKeyins, submitKeyin, currentKeyin, updateKeyin]);
238
- const lastHistoryIndex = filteredKeyins.findIndex((entry) => (true !== entry.isHistory)) - 1;
239
- return React.createElement("div", { className: "uifw-command-palette-panel" },
240
+ const lastHistoryIndex = filteredKeyins.findIndex((entry) => true !== entry.isHistory) - 1;
241
+ return (React.createElement("div", { className: "uifw-command-palette-panel" },
240
242
  React.createElement(Input, { ref: inputRef, type: "text", onKeyDown: onInputValueKeyDown, className: "uifw-command-palette-input", "data-testid": "command-palette-input", onChange: onInputValueChange, placeholder: placeholderLabel.current, value: currentKeyin, size: "small" }),
241
- (filteredKeyins.length > 0) &&
242
- React.createElement(Listbox, { id: "uifw-command-sources", className: "map-manager-source-list", onKeyDown: handleKeypressOnKeyinsList, onListboxValueChange: onListboxValueChange }, filteredKeyins.map((entry, index) => {
243
- const value = `${entry.value}${keyinSeparator}${entry.isHistory ? "history" : "registry"}`;
244
- const itemClass = `uifw-command-palette-value-entry${index === lastHistoryIndex ? " uifw-history-bottom-border" : ""}`;
245
- return React.createElement(ListboxItem, { key: `${entry.value}-${index}`, className: itemClass, value: value },
246
- React.createElement(FilteredText, { value: entry.value, matches: entry.matches }));
247
- })));
243
+ filteredKeyins.length > 0 && (React.createElement(Listbox, { id: "uifw-command-sources", className: "map-manager-source-list", onKeyDown: handleKeypressOnKeyinsList, onListboxValueChange: onListboxValueChange }, filteredKeyins.map((entry, index) => {
244
+ const value = `${entry.value}${keyinSeparator}${entry.isHistory ? "history" : "registry"}`;
245
+ const itemClass = `uifw-command-palette-value-entry${index === lastHistoryIndex ? " uifw-history-bottom-border" : ""}`;
246
+ return (React.createElement(ListboxItem, { key: `${entry.value}-${index}`, className: itemClass, value: value },
247
+ React.createElement(FilteredText, { value: entry.value, matches: entry.matches })));
248
+ })))));
248
249
  }
249
250
  //# sourceMappingURL=KeyinPalettePanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPalettePanel.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePanel.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,mCAAmC;AAEnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACpI,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,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E,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK;oBACpF,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,GAAI,CAChD,CAAC;YACjB,CAAC,CAAC,CAEK,CAER,CAAC;AACV,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\n// cSpell:ignore focusvalue uiadmin\r\n\r\nimport * as React from \"react\";\r\nimport \"./KeyinPalettePanel.scss\";\r\nimport { FilteredText, Listbox, ListboxItem, UiStateStorageStatus } from \"@itwin/core-react\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, OutputMessageType, ParseAndRunResult } from \"@itwin/core-frontend\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport type { OnItemExecutedFunc} from \"@itwin/appui-abstract\";\r\nimport { matchesWords, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { ClearKeyinPaletteHistoryTool } from \"../tools/KeyinPaletteTools\";\r\nimport { useUiStateStorageHandler } from \"../uistate/useUiStateStorage\";\r\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\r\nimport { Input } from \"@itwin/itwinui-react\";\r\n\r\nconst KEYIN_PALETTE_NAMESPACE = \"KeyinPalettePanel\";\r\nconst KEYIN_HISTORY_KEY = \"historyArray\";\r\n\r\n/** @internal */\r\nexport function clearKeyinPaletteHistory() {\r\n const uiSettingsStorage = UiFramework.getUiStateStorage();\r\n // istanbul ignore else\r\n if (uiSettingsStorage) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n uiSettingsStorage.deleteSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY);\r\n }\r\n}\r\n\r\ninterface KeyinPalettePanelProps {\r\n keyins: KeyinEntry[];\r\n onKeyinExecuted?: OnItemExecutedFunc;\r\n historyLength?: number;\r\n}\r\n\r\n/**\r\n * @internal\r\n */\r\nexport function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allowedHistoryLength = 6 }: KeyinPalettePanelProps) {\r\n const [currentKeyin, setCurrentKeyin] = React.useState<string>(\"\");\r\n const placeholderLabel = React.useRef(UiFramework.translate(\"keyinbrowser.placeholder\"));\r\n const inputRef = React.useRef<HTMLInputElement>(null);\r\n const keyinSeparator = \"--#--\";\r\n const [historyKeyins, setHistoryKeyins] = React.useState<string[]>([]);\r\n const uiSettingsStorage = useUiStateStorageHandler();\r\n\r\n React.useEffect(() => {\r\n async function fetchState() {\r\n const settingsResult = await uiSettingsStorage.getSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY);\r\n // istanbul ignore else\r\n if (UiStateStorageStatus.Success === settingsResult.status) {\r\n const filteredHistory = (settingsResult.setting as string[]).filter((keyin) => {\r\n const result = IModelApp.tools.parseKeyin(keyin);\r\n return result.ok;\r\n });\r\n setHistoryKeyins(filteredHistory);\r\n } else {\r\n setHistoryKeyins([]);\r\n }\r\n }\r\n\r\n fetchState(); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }, [uiSettingsStorage]);\r\n\r\n // istanbul ignore next\r\n const storeHistoryKeyins = React.useCallback(async (value: string[]) => {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n const result = await uiSettingsStorage.saveSetting(KEYIN_PALETTE_NAMESPACE, KEYIN_HISTORY_KEY, value);\r\n if (result.status !== UiStateStorageStatus.Success) {\r\n const briefMessage = UiFramework.translate(\"keyinbrowser.couldNotSaveHistory\");\r\n const errorDetails = new NotifyMessageDetails(OutputMessagePriority.Error, briefMessage);\r\n IModelApp.notifications.outputMessage(errorDetails);\r\n }\r\n }, [uiSettingsStorage]);\r\n\r\n const allKeyins = React.useMemo(() => {\r\n const availableKeyins = [];\r\n historyKeyins.forEach((value: string) => {\r\n availableKeyins.push({ value, isHistory: true });\r\n });\r\n availableKeyins.push(...keyins.sort((a, b) => a.value.toLowerCase().localeCompare(b.value.toLowerCase())));\r\n return availableKeyins;\r\n }, [historyKeyins, keyins]);\r\n\r\n const submitKeyin = React.useCallback(async (value: string) => {\r\n let detailedMessage: string | undefined;\r\n let message: string | undefined;\r\n try {\r\n switch (await IModelApp.tools.parseAndRun(value)) {\r\n case ParseAndRunResult.ToolNotFound:\r\n message = `UiFramework.translate(\"keyinbrowser.couldNotFindTool\")} ${value}`;\r\n break;\r\n // istanbul ignore next\r\n case ParseAndRunResult.BadArgumentCount:\r\n message = UiFramework.translate(\"keyinbrowser.incorrectArgs\");\r\n break;\r\n // istanbul ignore next\r\n case ParseAndRunResult.FailedToRun:\r\n message = UiFramework.translate(\"keyinbrowser.failedToRun\");\r\n break;\r\n }\r\n } catch (ex) {\r\n // istanbul ignore next\r\n {\r\n message = UiFramework.translate(\"keyinbrowser.exceptionOccurred\");\r\n detailedMessage = `${UiFramework.translate(\"keyinbrowser.exceptionOccurred\")}: ${ex}`;\r\n }\r\n }\r\n\r\n // istanbul ignore else\r\n if (undefined !== message) {\r\n const errorDetails = new NotifyMessageDetails(OutputMessagePriority.Error, message, detailedMessage, OutputMessageType.Sticky);\r\n IModelApp.notifications.outputMessage(errorDetails);\r\n } else {\r\n // istanbul ignore next\r\n if (value.length < 400 && value !== ClearKeyinPaletteHistoryTool.keyin && value !== ClearKeyinPaletteHistoryTool.englishKeyin) {\r\n const newHistoryEntries: string[] = [value];\r\n for (const entry of historyKeyins) {\r\n if (entry !== value) {\r\n newHistoryEntries.push(entry);\r\n if (newHistoryEntries.length >= allowedHistoryLength)\r\n break;\r\n }\r\n }\r\n await storeHistoryKeyins(newHistoryEntries);\r\n }\r\n\r\n // close the popup by processing the supplied onKeyinExecuted function\r\n if (onKeyinExecuted)\r\n onKeyinExecuted(value);\r\n }\r\n }, [storeHistoryKeyins, onKeyinExecuted, historyKeyins, allowedHistoryLength]);\r\n\r\n const selectKeyin = React.useCallback(() => {\r\n // istanbul ignore else\r\n if (inputRef.current) {\r\n inputRef.current.focus();\r\n inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length);\r\n }\r\n }, [inputRef]);\r\n\r\n const updateKeyin = React.useCallback((value: string) => {\r\n setCurrentKeyin(value);\r\n selectKeyin();\r\n }, [selectKeyin]);\r\n\r\n const getKeyinFromListboxValue = (value: string | undefined) => {\r\n // istanbul ignore else\r\n if (value) {\r\n const indexSeparator = value.search(keyinSeparator);\r\n // istanbul ignore else\r\n if (indexSeparator)\r\n return value.substring(0, indexSeparator);\r\n }\r\n // istanbul ignore next\r\n return undefined;\r\n };\r\n\r\n const handleKeypressOnKeyinsList = React.useCallback(async (event: React.KeyboardEvent<HTMLUListElement>) => {\r\n const key = event.key;\r\n // built into listbox a \"Space\" key will trigger the selection of a entry so if an Enter key is pressed\r\n // assume user wants to execute the entry.\r\n // istanbul ignore else\r\n if (key === SpecialKey.Enter) {\r\n event.preventDefault();\r\n // istanbul ignore next\r\n const keyinToSend = getKeyinFromListboxValue(event.currentTarget?.dataset?.focusvalue);\r\n // istanbul ignore else\r\n if (keyinToSend) {\r\n if (event.ctrlKey)\r\n updateKeyin(keyinToSend);\r\n else\r\n await submitKeyin(keyinToSend);\r\n }\r\n }\r\n }, [submitKeyin, updateKeyin]);\r\n\r\n const onListboxValueChange = React.useCallback(async (value: string, isControlOrCommandPressed?: boolean) => {\r\n const keyin = getKeyinFromListboxValue(value);\r\n // istanbul ignore else\r\n if (keyin) {\r\n if (isControlOrCommandPressed)\r\n updateKeyin(keyin);\r\n else\r\n await submitKeyin(keyin);\r\n }\r\n }, [submitKeyin, updateKeyin]);\r\n\r\n const onInputValueChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\r\n setCurrentKeyin(event.target.value);\r\n }, []);\r\n\r\n const filteredKeyins = React.useMemo(() => {\r\n const filteredHistory: KeyinEntry[] = [];\r\n if (undefined === currentKeyin || 0 === currentKeyin.length) {\r\n return allKeyins;\r\n } else {\r\n const newKeyinSet: KeyinEntry[] = [];\r\n allKeyins.forEach((value) => {\r\n if (value.value.length >= currentKeyin.length) {\r\n // Force contiguous searches if key-in is over 60 characters long for performance.\r\n const matches = matchesWords(currentKeyin, value.value, currentKeyin.length > 60);\r\n if (matches && matches.length) {\r\n // istanbul ignore else\r\n if (value.isHistory) {\r\n filteredHistory.push(value);\r\n newKeyinSet.push({ ...value, matches });\r\n } else {\r\n // only add entry if no match in filtered history\r\n // istanbul ignore else\r\n if (-1 === filteredHistory.findIndex((historyEntry: KeyinEntry) => historyEntry.value === value.value))\r\n newKeyinSet.push({ ...value, matches });\r\n }\r\n }\r\n }\r\n });\r\n return newKeyinSet;\r\n }\r\n }, [allKeyins, currentKeyin]);\r\n\r\n const onInputValueKeyDown = React.useCallback(async (event: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (SpecialKey.Enter === event.key) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // istanbul ignore else\r\n if (1 === filteredKeyins.length) {\r\n if (event.ctrlKey)\r\n updateKeyin(filteredKeyins[0].value);\r\n else\r\n await submitKeyin(filteredKeyins[0].value);\r\n } else {\r\n if (currentKeyin)\r\n await submitKeyin(currentKeyin);\r\n }\r\n } else if (SpecialKey.Tab === event.key && 1 === filteredKeyins.length) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n updateKeyin(filteredKeyins[0].value);\r\n } else {\r\n if (event.key === SpecialKey.ArrowDown && filteredKeyins.length > 0) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // istanbul ignore else\r\n if (inputRef.current) {\r\n const nextElement = inputRef.current.nextElementSibling as HTMLElement;\r\n nextElement && nextElement.focus();\r\n }\r\n }\r\n }\r\n\r\n }, [filteredKeyins, submitKeyin, currentKeyin, updateKeyin]);\r\n\r\n const lastHistoryIndex = filteredKeyins.findIndex((entry) => (true !== entry.isHistory)) - 1;\r\n\r\n return <div className=\"uifw-command-palette-panel\">\r\n <Input ref={inputRef} type=\"text\" onKeyDown={onInputValueKeyDown}\r\n className={\"uifw-command-palette-input\"} data-testid=\"command-palette-input\" onChange={onInputValueChange}\r\n placeholder={placeholderLabel.current} value={currentKeyin} size=\"small\"\r\n />\r\n {(filteredKeyins.length > 0) &&\r\n <Listbox id=\"uifw-command-sources\" className=\"map-manager-source-list\" onKeyDown={handleKeypressOnKeyinsList}\r\n onListboxValueChange={onListboxValueChange} >\r\n {\r\n filteredKeyins.map((entry, index) => {\r\n const value = `${entry.value}${keyinSeparator}${entry.isHistory ? \"history\" : \"registry\"}`;\r\n const itemClass = `uifw-command-palette-value-entry${index === lastHistoryIndex ? \" uifw-history-bottom-border\" : \"\"}`;\r\n return <ListboxItem key={`${entry.value}-${index}`} className={itemClass} value={value} >\r\n <FilteredText value={entry.value} matches={entry.matches} />\r\n </ListboxItem>;\r\n })\r\n }\r\n </Listbox >\r\n }\r\n </div >;\r\n}\r\n"]}
1
+ {"version":3,"file":"KeyinPalettePanel.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePanel.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,mCAAmC;AAEnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,OAAO,EACP,WAAW,EACX,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAEx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ACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Popup\n */\n\n// cSpell:ignore focusvalue uiadmin\n\nimport * as React from \"react\";\nimport \"./KeyinPalettePanel.scss\";\nimport {\n FilteredText,\n Listbox,\n ListboxItem,\n UiStateStorageStatus,\n} from \"@itwin/core-react\";\nimport {\n IModelApp,\n NotifyMessageDetails,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n} from \"@itwin/core-frontend\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { matchesWords, SpecialKey } from \"@itwin/appui-abstract\";\nimport { ClearKeyinPaletteHistoryTool } from \"../tools/KeyinPaletteTools\";\nimport { useUiStateStorageHandler } from \"../uistate/useUiStateStorage\";\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\nimport { Input } from \"@itwin/itwinui-react\";\n\nconst KEYIN_PALETTE_NAMESPACE = \"KeyinPalettePanel\";\nconst KEYIN_HISTORY_KEY = \"historyArray\";\n\n/** @internal */\nexport function clearKeyinPaletteHistory() {\n const uiSettingsStorage = UiFramework.getUiStateStorage();\n // istanbul ignore else\n if (uiSettingsStorage) {\n void uiSettingsStorage.deleteSetting(\n KEYIN_PALETTE_NAMESPACE,\n KEYIN_HISTORY_KEY\n );\n }\n}\n\ninterface KeyinPalettePanelProps {\n keyins: KeyinEntry[];\n onKeyinExecuted?: OnItemExecutedFunc;\n historyLength?: number;\n}\n\n/**\n * @internal\n */\nexport function KeyinPalettePanel({\n keyins,\n onKeyinExecuted,\n historyLength: allowedHistoryLength = 6,\n}: KeyinPalettePanelProps) {\n const [currentKeyin, setCurrentKeyin] = React.useState<string>(\"\");\n const placeholderLabel = React.useRef(\n UiFramework.translate(\"keyinbrowser.placeholder\")\n );\n const inputRef = React.useRef<HTMLInputElement>(null);\n const keyinSeparator = \"--#--\";\n const [historyKeyins, setHistoryKeyins] = React.useState<string[]>([]);\n const uiSettingsStorage = useUiStateStorageHandler();\n\n React.useEffect(() => {\n async function fetchState() {\n const settingsResult = await uiSettingsStorage.getSetting(\n KEYIN_PALETTE_NAMESPACE,\n KEYIN_HISTORY_KEY\n );\n // istanbul ignore else\n if (UiStateStorageStatus.Success === settingsResult.status) {\n const filteredHistory = (settingsResult.setting as string[]).filter(\n (keyin) => {\n const result = IModelApp.tools.parseKeyin(keyin);\n return result.ok;\n }\n );\n setHistoryKeyins(filteredHistory);\n } else {\n setHistoryKeyins([]);\n }\n }\n\n void fetchState();\n }, [uiSettingsStorage]);\n\n // istanbul ignore next\n const storeHistoryKeyins = React.useCallback(\n async (value: string[]) => {\n const result = await uiSettingsStorage.saveSetting(\n KEYIN_PALETTE_NAMESPACE,\n KEYIN_HISTORY_KEY,\n value\n );\n if (result.status !== UiStateStorageStatus.Success) {\n const briefMessage = UiFramework.translate(\n \"keyinbrowser.couldNotSaveHistory\"\n );\n const errorDetails = new NotifyMessageDetails(\n OutputMessagePriority.Error,\n briefMessage\n );\n IModelApp.notifications.outputMessage(errorDetails);\n }\n },\n [uiSettingsStorage]\n );\n\n const allKeyins = React.useMemo(() => {\n const availableKeyins = [];\n historyKeyins.forEach((value: string) => {\n availableKeyins.push({ value, isHistory: true });\n });\n availableKeyins.push(\n ...keyins.sort((a, b) =>\n a.value.toLowerCase().localeCompare(b.value.toLowerCase())\n )\n );\n return availableKeyins;\n }, [historyKeyins, keyins]);\n\n const submitKeyin = React.useCallback(\n async (value: string) => {\n let detailedMessage: string | undefined;\n let message: string | undefined;\n try {\n switch (await IModelApp.tools.parseAndRun(value)) {\n case ParseAndRunResult.ToolNotFound:\n message = `UiFramework.translate(\"keyinbrowser.couldNotFindTool\")} ${value}`;\n break;\n // istanbul ignore next\n case ParseAndRunResult.BadArgumentCount:\n message = UiFramework.translate(\"keyinbrowser.incorrectArgs\");\n break;\n // istanbul ignore next\n case ParseAndRunResult.FailedToRun:\n message = UiFramework.translate(\"keyinbrowser.failedToRun\");\n break;\n }\n } catch (ex) {\n // istanbul ignore next\n {\n message = UiFramework.translate(\"keyinbrowser.exceptionOccurred\");\n detailedMessage = `${UiFramework.translate(\n \"keyinbrowser.exceptionOccurred\"\n )}: ${ex}`;\n }\n }\n\n // istanbul ignore else\n if (undefined !== message) {\n const errorDetails = new NotifyMessageDetails(\n OutputMessagePriority.Error,\n message,\n detailedMessage,\n OutputMessageType.Sticky\n );\n IModelApp.notifications.outputMessage(errorDetails);\n } else {\n // istanbul ignore next\n if (\n value.length < 400 &&\n value !== ClearKeyinPaletteHistoryTool.keyin &&\n value !== ClearKeyinPaletteHistoryTool.englishKeyin\n ) {\n const newHistoryEntries: string[] = [value];\n for (const entry of historyKeyins) {\n if (entry !== value) {\n newHistoryEntries.push(entry);\n if (newHistoryEntries.length >= allowedHistoryLength) break;\n }\n }\n await storeHistoryKeyins(newHistoryEntries);\n }\n\n // close the popup by processing the supplied onKeyinExecuted function\n if (onKeyinExecuted) onKeyinExecuted(value);\n }\n },\n [storeHistoryKeyins, onKeyinExecuted, historyKeyins, allowedHistoryLength]\n );\n\n const selectKeyin = React.useCallback(() => {\n // istanbul ignore else\n if (inputRef.current) {\n inputRef.current.focus();\n inputRef.current.setSelectionRange(\n inputRef.current.value.length,\n inputRef.current.value.length\n );\n }\n }, [inputRef]);\n\n const updateKeyin = React.useCallback(\n (value: string) => {\n setCurrentKeyin(value);\n selectKeyin();\n },\n [selectKeyin]\n );\n\n const getKeyinFromListboxValue = (value: string | undefined) => {\n // istanbul ignore else\n if (value) {\n const indexSeparator = value.search(keyinSeparator);\n // istanbul ignore else\n if (indexSeparator) return value.substring(0, indexSeparator);\n }\n // istanbul ignore next\n return undefined;\n };\n\n const handleKeypressOnKeyinsList = React.useCallback(\n async (event: React.KeyboardEvent<HTMLUListElement>) => {\n const key = event.key;\n // built into listbox a \"Space\" key will trigger the selection of a entry so if an Enter key is pressed\n // assume user wants to execute the entry.\n // istanbul ignore else\n if (key === SpecialKey.Enter) {\n event.preventDefault();\n // istanbul ignore next\n const keyinToSend = getKeyinFromListboxValue(\n event.currentTarget?.dataset?.focusvalue\n );\n // istanbul ignore else\n if (keyinToSend) {\n if (event.ctrlKey) updateKeyin(keyinToSend);\n else await submitKeyin(keyinToSend);\n }\n }\n },\n [submitKeyin, updateKeyin]\n );\n\n const onListboxValueChange = React.useCallback(\n async (value: string, isControlOrCommandPressed?: boolean) => {\n const keyin = getKeyinFromListboxValue(value);\n // istanbul ignore else\n if (keyin) {\n if (isControlOrCommandPressed) updateKeyin(keyin);\n else await submitKeyin(keyin);\n }\n },\n [submitKeyin, updateKeyin]\n );\n\n const onInputValueChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n setCurrentKeyin(event.target.value);\n },\n []\n );\n\n const filteredKeyins = React.useMemo(() => {\n const filteredHistory: KeyinEntry[] = [];\n if (undefined === currentKeyin || 0 === currentKeyin.length) {\n return allKeyins;\n } else {\n const newKeyinSet: KeyinEntry[] = [];\n allKeyins.forEach((value) => {\n if (value.value.length >= currentKeyin.length) {\n // Force contiguous searches if key-in is over 60 characters long for performance.\n const matches = matchesWords(\n currentKeyin,\n value.value,\n currentKeyin.length > 60\n );\n if (matches && matches.length) {\n // istanbul ignore else\n if (value.isHistory) {\n filteredHistory.push(value);\n newKeyinSet.push({ ...value, matches });\n } else {\n // only add entry if no match in filtered history\n // istanbul ignore else\n if (\n -1 ===\n filteredHistory.findIndex(\n (historyEntry: KeyinEntry) =>\n historyEntry.value === value.value\n )\n )\n newKeyinSet.push({ ...value, matches });\n }\n }\n }\n });\n return newKeyinSet;\n }\n }, [allKeyins, currentKeyin]);\n\n const onInputValueKeyDown = React.useCallback(\n async (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (SpecialKey.Enter === event.key) {\n event.preventDefault();\n event.stopPropagation();\n // istanbul ignore else\n if (1 === filteredKeyins.length) {\n if (event.ctrlKey) updateKeyin(filteredKeyins[0].value);\n else await submitKeyin(filteredKeyins[0].value);\n } else {\n if (currentKeyin) await submitKeyin(currentKeyin);\n }\n } else if (SpecialKey.Tab === event.key && 1 === filteredKeyins.length) {\n event.preventDefault();\n event.stopPropagation();\n updateKeyin(filteredKeyins[0].value);\n } else {\n if (event.key === SpecialKey.ArrowDown && filteredKeyins.length > 0) {\n event.preventDefault();\n event.stopPropagation();\n // istanbul ignore else\n if (inputRef.current) {\n const nextElement = inputRef.current\n .nextElementSibling as HTMLElement;\n nextElement && nextElement.focus();\n }\n }\n }\n },\n [filteredKeyins, submitKeyin, currentKeyin, updateKeyin]\n );\n\n const lastHistoryIndex =\n filteredKeyins.findIndex((entry) => true !== entry.isHistory) - 1;\n\n return (\n <div className=\"uifw-command-palette-panel\">\n <Input\n ref={inputRef}\n type=\"text\"\n onKeyDown={onInputValueKeyDown}\n className={\"uifw-command-palette-input\"}\n data-testid=\"command-palette-input\"\n onChange={onInputValueChange}\n placeholder={placeholderLabel.current}\n value={currentKeyin}\n size=\"small\"\n />\n {filteredKeyins.length > 0 && (\n <Listbox\n id=\"uifw-command-sources\"\n className=\"map-manager-source-list\"\n onKeyDown={handleKeypressOnKeyinsList}\n onListboxValueChange={onListboxValueChange}\n >\n {filteredKeyins.map((entry, index) => {\n const value = `${entry.value}${keyinSeparator}${\n entry.isHistory ? \"history\" : \"registry\"\n }`;\n const itemClass = `uifw-command-palette-value-entry${\n index === lastHistoryIndex ? \" uifw-history-bottom-border\" : \"\"\n }`;\n return (\n <ListboxItem\n key={`${entry.value}-${index}`}\n className={itemClass}\n value={value}\n >\n <FilteredText value={entry.value} matches={entry.matches} />\n </ListboxItem>\n );\n })}\n </Listbox>\n )}\n </div>\n );\n}\n"]}
@@ -1,31 +1,31 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
- @import "~@itwin/core-react/lib/cjs/core-react/z-index";
7
-
8
- .uifw-command-palette-popup-container {
9
- @include uicore-z-index(keyin-palette-overlay);
10
-
11
- box-sizing: border-box;
12
- background: $buic-background-control;
13
- color: var(--iui-color-text);
14
- -webkit-box-shadow: 0 3px 6px $buic-popup-boxshadow;
15
- box-shadow: 0px 3px 6px $buic-popup-boxshadow;
16
-
17
- .uifw-command-palette-panel {
18
- margin: 4px;
19
- width: 30vw;
20
- min-width: 20em;
21
- max-height: 50vh;
22
- display: flex;
23
- flex-direction: column;
24
- }
25
-
26
- .uifw-history-bottom-border {
27
- border-bottom-width: 1px;
28
- border-bottom-style: solid;
29
- border-bottom-color: $buic-foreground-disabled;
30
- }
31
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
6
+ @import "~@itwin/core-react/lib/cjs/core-react/z-index";
7
+
8
+ .uifw-command-palette-popup-container {
9
+ @include uicore-z-index(keyin-palette-overlay);
10
+
11
+ box-sizing: border-box;
12
+ background: $buic-background-control;
13
+ color: var(--iui-color-text);
14
+ -webkit-box-shadow: 0 3px 6px $buic-popup-boxshadow;
15
+ box-shadow: 0px 3px 6px $buic-popup-boxshadow;
16
+
17
+ .uifw-command-palette-panel {
18
+ margin: 4px;
19
+ width: 30vw;
20
+ min-width: 20em;
21
+ max-height: 50vh;
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+
26
+ .uifw-history-bottom-border {
27
+ border-bottom-width: 1px;
28
+ border-bottom-style: solid;
29
+ border-bottom-color: $buic-foreground-disabled;
30
+ }
31
+ }
@@ -16,5 +16,5 @@ export interface KeyinPalettePopupProps {
16
16
  /** Keyin Palette Popup Component
17
17
  * @public
18
18
  */
19
- export declare function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted }: KeyinPalettePopupProps): JSX.Element;
19
+ export declare function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted, }: KeyinPalettePopupProps): JSX.Element;
20
20
  //# sourceMappingURL=KeyinPalettePopup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPalettePopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAM7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D;aACa;AACb,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,WAAW,CAAC;IAChB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,sBAAsB,eAyCrG"}
1
+ {"version":3,"file":"KeyinPalettePopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D;aACa;AACb,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,WAAW,CAAC;IAChB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,EAAE,EACF,EAAE,EACF,MAAM,EACN,QAAQ,EACR,cAAc,GACf,EAAE,sBAAsB,eA+CxB"}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Popup
7
7
  */
@@ -13,7 +13,7 @@ import { KeyinPalettePanel } from "./KeyinPalettePanel";
13
13
  /** Keyin Palette Popup Component
14
14
  * @public
15
15
  */
16
- export function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted }) {
16
+ export function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted, }) {
17
17
  const [popupSize, setPopupSize] = React.useState(new Size(-1, -1));
18
18
  const onSizeKnown = React.useCallback((newSize) => {
19
19
  // istanbul ignore else
@@ -35,7 +35,7 @@ export function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted })
35
35
  let point = new Point(xMid, el.getBoundingClientRect().top);
36
36
  // istanbul ignore next
37
37
  if (popupSize.width > 0)
38
- point = point.offsetX(popupSize.width / (-2));
38
+ point = point.offsetX(popupSize.width / -2);
39
39
  return (React.createElement(PositionPopup, { key: id, className: "uifw-command-palette-popup-container", point: point, onSizeKnown: onSizeKnown },
40
40
  React.createElement(DivWithOutsideClick, { onOutsideClick: onCancel, onKeyDown: handleKeyDown },
41
41
  React.createElement(FocusTrap, { active: true, returnFocusOnDeactivate: true },
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPalettePopup.js","sourceRoot":"","sources":["../../../../src/app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B,MAAM;SACT;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,IAAI,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC;IACpF,IAAI,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;IAC5D,uBAAuB;IACvB,IAAI,SAAS,CAAC,KAAK,GAAG,CAAC;QACrB,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhD,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,EAAE,EACpB,SAAS,EAAC,sCAAsC,EAChD,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW;QAExB,oBAAC,mBAAmB,IAAC,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa;YACrE,oBAAC,SAAS,IAAC,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI;gBACpD,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,GAAI,CAC5D,CACQ,CACR,CACjB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport type { OnCancelFunc, OnItemExecutedFunc} from \"@itwin/appui-abstract\";\r\nimport { SpecialKey } from \"@itwin/appui-abstract\";\r\nimport type { SizeProps } from \"@itwin/core-react\";\r\nimport { DivWithOutsideClick, FocusTrap, Point, Size } from \"@itwin/core-react\";\r\nimport { PositionPopup } from \"./PositionPopup\";\r\nimport { KeyinPalettePanel } from \"./KeyinPalettePanel\";\r\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\r\n\r\n/** Props defining KeyinPalettePopup component\r\n * @public */\r\nexport interface KeyinPalettePopupProps {\r\n id: string;\r\n el: HTMLElement;\r\n keyins: KeyinEntry[];\r\n onCancel?: OnCancelFunc;\r\n onItemExecuted?: OnItemExecutedFunc;\r\n}\r\n\r\n/** Keyin Palette Popup Component\r\n * @public\r\n */\r\nexport function KeyinPalettePopup({ el, id, keyins, onCancel, onItemExecuted }: KeyinPalettePopupProps) {\r\n const [popupSize, setPopupSize] = React.useState(new Size(-1, -1));\r\n\r\n const onSizeKnown = React.useCallback((newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!popupSize.equals(newSize))\r\n setPopupSize(Size.create(newSize));\r\n }, [popupSize]);\r\n\r\n const cancel = React.useCallback(() => {\r\n onCancel && onCancel();\r\n }, [onCancel]);\r\n\r\n const handleKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLDivElement>): void => {\r\n switch (event.key) {\r\n case SpecialKey.Escape:\r\n cancel();\r\n event.preventDefault();\r\n break;\r\n }\r\n }, [cancel]);\r\n\r\n const xMid = el.getBoundingClientRect().left + el.getBoundingClientRect().width / 2;\r\n let point = new Point(xMid, el.getBoundingClientRect().top);\r\n // istanbul ignore next\r\n if (popupSize.width > 0)\r\n point = point.offsetX(popupSize.width / (-2));\r\n\r\n return (\r\n <PositionPopup key={id}\r\n className=\"uifw-command-palette-popup-container\"\r\n point={point}\r\n onSizeKnown={onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={onCancel} onKeyDown={handleKeyDown}>\r\n <FocusTrap active={true} returnFocusOnDeactivate={true}>\r\n <KeyinPalettePanel keyins={keyins} onKeyinExecuted={onItemExecuted} />\r\n </FocusTrap>\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"KeyinPalettePopup.js","s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AC;gBACvB,MAAM;SACT;IACH,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,IAAI,GACR,EAAE,CAAC,qBAAqB,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC;IACzE,IAAI,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;IAC5D,uBAAuB;IACvB,IAAI,SAAS,CAAC,KAAK,GAAG,CAAC;QAAE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,CACL,oBAAC,aAAa,IACZ,GAAG,EAAE,EAAE,EACP,SAAS,EAAC,sCAAsC,EAChD,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW;QAExB,oBAAC,mBAAmB,IAAC,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa;YACrE,oBAAC,SAAS,IAAC,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI;gBACpD,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,GAAI,CAC5D,CACQ,CACR,CACjB,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 Popup\n */\n\nimport * as React from \"react\";\nimport type { OnCancelFunc, OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { DivWithOutsideClick, FocusTrap, Point, Size } from \"@itwin/core-react\";\nimport { PositionPopup } from \"./PositionPopup\";\nimport { KeyinPalettePanel } from \"./KeyinPalettePanel\";\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\n\n/** Props defining KeyinPalettePopup component\n * @public */\nexport interface KeyinPalettePopupProps {\n id: string;\n el: HTMLElement;\n keyins: KeyinEntry[];\n onCancel?: OnCancelFunc;\n onItemExecuted?: OnItemExecutedFunc;\n}\n\n/** Keyin Palette Popup Component\n * @public\n */\nexport function KeyinPalettePopup({\n el,\n id,\n keyins,\n onCancel,\n onItemExecuted,\n}: KeyinPalettePopupProps) {\n const [popupSize, setPopupSize] = React.useState(new Size(-1, -1));\n\n const onSizeKnown = React.useCallback(\n (newSize: SizeProps) => {\n // istanbul ignore else\n if (!popupSize.equals(newSize)) setPopupSize(Size.create(newSize));\n },\n [popupSize]\n );\n\n const cancel = React.useCallback(() => {\n onCancel && onCancel();\n }, [onCancel]);\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>): void => {\n switch (event.key) {\n case SpecialKey.Escape:\n cancel();\n event.preventDefault();\n break;\n }\n },\n [cancel]\n );\n\n const xMid =\n el.getBoundingClientRect().left + el.getBoundingClientRect().width / 2;\n let point = new Point(xMid, el.getBoundingClientRect().top);\n // istanbul ignore next\n if (popupSize.width > 0) point = point.offsetX(popupSize.width / -2);\n\n return (\n <PositionPopup\n key={id}\n className=\"uifw-command-palette-popup-container\"\n point={point}\n onSizeKnown={onSizeKnown}\n >\n <DivWithOutsideClick onOutsideClick={onCancel} onKeyDown={handleKeyDown}>\n <FocusTrap active={true} returnFocusOnDeactivate={true}>\n <KeyinPalettePanel keyins={keyins} onKeyinExecuted={onItemExecuted} />\n </FocusTrap>\n </DivWithOutsideClick>\n </PositionPopup>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PopupManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/PopupManager.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK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AE,KAAK,EACT,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,SAAS,GACd,KAAK;CAYT;AAED,gBAAgB;AAChB,UAAU,kBAAkB;IAC1B,cAAc,EAAE,QAAQ,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,kBAAkB,CAAC;IACxE,gBAAgB;IAChB,SAAyB,KAAK,EAAE,kBAAkB,CAGhD;IAEc,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAM5C,OAAO,CAAC,aAAa,CAEnB;IAEc,MAAM,IAAI,KAAK,CAAC,SAAS;IAsBzC,OAAO,CAAC,yBAAyB,CAE/B;CACH"}
@@ -1,7 +1,7 @@
1
1
  /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
5
  /** @packageDocumentation
6
6
  * @module Popup
7
7
  */
@@ -32,8 +32,12 @@ export const isReactContent = (content) => {
32
32
  * @public
33
33
  */
34
34
  class PopupManager {
35
- static get popupCount() { return this._popups.length; }
36
- static get popups() { return this._popups; }
35
+ static get popupCount() {
36
+ return this._popups.length;
37
+ }
38
+ static get popups() {
39
+ return this._popups;
40
+ }
37
41
  static set popups(popups) {
38
42
  // istanbul ignore if
39
43
  if (this._popups === popups)
@@ -46,10 +50,7 @@ class PopupManager {
46
50
  this.popups = [];
47
51
  }
48
52
  static addPopup(popupInfo) {
49
- const popups = [
50
- ...PopupManager._popups,
51
- popupInfo,
52
- ];
53
+ const popups = [...PopupManager._popups, popupInfo];
53
54
  this.popups = popups;
54
55
  }
55
56
  static updatePopup(popupInfo, itemIndex) {
@@ -85,8 +86,12 @@ class PopupManager {
85
86
  }
86
87
  return result;
87
88
  }
88
- static get defaultOffset() { return PopupManager._defaultOffset; }
89
- static set defaultOffset(offset) { PopupManager._defaultOffset = offset; }
89
+ static get defaultOffset() {
90
+ return PopupManager._defaultOffset;
91
+ }
92
+ static set defaultOffset(offset) {
93
+ PopupManager._defaultOffset = offset;
94
+ }
90
95
  static showInputEditor(el, pt, value, propertyDescription, onCommit, onCancel) {
91
96
  const primitiveValue = {
92
97
  value,
@@ -97,7 +102,10 @@ class PopupManager {
97
102
  const id = PopupManager._editorId;
98
103
  const component = (React.createElement(InputEditorPopup, { id: id, el: el, pt: pt, offset: PopupManager.defaultOffset, record: record, onCancel: onCancel, commitHandler: commitHandler }));
99
104
  const popupInfo = {
100
- id, pt, component, parentDocument: el.ownerDocument,
105
+ id,
106
+ pt,
107
+ component,
108
+ parentDocument: el.ownerDocument,
101
109
  };
102
110
  PopupManager.addOrUpdatePopup(popupInfo);
103
111
  return true;
@@ -112,7 +120,10 @@ class PopupManager {
112
120
  // cursor popups just set pt to 0,0.
113
121
  const pt = { x: 0, y: 0 };
114
122
  const popupInfo = {
115
- id, pt, component, parentDocument: el.ownerDocument,
123
+ id,
124
+ pt,
125
+ component,
126
+ parentDocument: el.ownerDocument,
116
127
  };
117
128
  PopupManager.addOrUpdatePopup(popupInfo);
118
129
  return true;
@@ -124,7 +135,10 @@ class PopupManager {
124
135
  const id = PopupManager._toolbarId;
125
136
  const component = (React.createElement(ToolbarPopup, { id: id, el: el, pt: pt, offset: offset, items: toolbarProps.items, relativePosition: relativePosition, orientation: Orientation.Horizontal, onCancel: onCancel, onItemExecuted: onItemExecuted }));
126
137
  const popupInfo = {
127
- id, pt, component, parentDocument: el.ownerDocument,
138
+ id,
139
+ pt,
140
+ component,
141
+ parentDocument: el.ownerDocument,
128
142
  };
129
143
  PopupManager.addOrUpdatePopup(popupInfo);
130
144
  return true;
@@ -136,7 +150,10 @@ class PopupManager {
136
150
  const id = PopupManager._htmlElementId;
137
151
  const component = (React.createElement(HTMLElementPopup, { id: id, el: el, pt: pt, offset: offset, element: displayElement, relativePosition: relativePosition, orientation: Orientation.Horizontal, onCancel: onCancel }));
138
152
  const popupInfo = {
139
- id, pt, component, parentDocument: el.ownerDocument,
153
+ id,
154
+ pt,
155
+ component,
156
+ parentDocument: el.ownerDocument,
140
157
  };
141
158
  PopupManager.addOrUpdatePopup(popupInfo);
142
159
  return true;
@@ -146,9 +163,14 @@ class PopupManager {
146
163
  }
147
164
  static showCard(content, title, toolbarProps, el, pt, offset, onItemExecuted, onCancel, relativePosition) {
148
165
  const id = PopupManager._cardId;
149
- const component = (React.createElement(CardPopup, { id: id, el: el, pt: pt, offset: offset, content: content, title: title, items: toolbarProps ? toolbarProps.items : /* istanbul ignore next */ undefined, relativePosition: relativePosition, orientation: Orientation.Horizontal, onCancel: onCancel, onItemExecuted: onItemExecuted }));
166
+ const component = (React.createElement(CardPopup, { id: id, el: el, pt: pt, offset: offset, content: content, title: title, items: toolbarProps
167
+ ? toolbarProps.items
168
+ : /* istanbul ignore next */ undefined, relativePosition: relativePosition, orientation: Orientation.Horizontal, onCancel: onCancel, onItemExecuted: onItemExecuted }));
150
169
  const popupInfo = {
151
- id, pt, component, parentDocument: el.ownerDocument,
170
+ id,
171
+ pt,
172
+ component,
173
+ parentDocument: el.ownerDocument,
152
174
  };
153
175
  PopupManager.addOrUpdatePopup(popupInfo);
154
176
  return true;
@@ -163,7 +185,10 @@ class PopupManager {
163
185
  const id = PopupManager._toolSettingsId;
164
186
  const component = (React.createElement(ToolSettingsPopup, { id: id, el: el, pt: pt, offset: offset, dataProvider: dataProvider, relativePosition: relativePosition, orientation: Orientation.Horizontal, onCancel: onCancel }));
165
187
  const popupInfo = {
166
- id, pt, component, parentDocument: el.ownerDocument,
188
+ id,
189
+ pt,
190
+ component,
191
+ parentDocument: el.ownerDocument,
167
192
  };
168
193
  PopupManager.addOrUpdatePopup(popupInfo);
169
194
  return true;
@@ -218,7 +243,8 @@ export class PopupRenderer extends React.Component {
218
243
  if (PopupManager.popupCount <= 0)
219
244
  return null;
220
245
  return (React.createElement("div", { className: "appui-react-popup-render-container", ref: this._handleRefSet }, this.state.parentDocument &&
221
- this.state.popups.filter((info) => info.parentDocument === this.state.parentDocument)
246
+ this.state.popups
247
+ .filter((info) => info.parentDocument === this.state.parentDocument)
222
248
  .map((popupInfo) => {
223
249
  return (React.createElement(React.Fragment, { key: popupInfo.id }, popupInfo.component));
224
250
  })));
@@ -1 +1 @@
1
- {"version":3,"file":"PopupManager.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/PopupManager.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,OAAO,GACpD,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAmBxD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,OAA+B;CAAI;AAwB3E;;GAEG;AACH,MAAM,CAAC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EAAE,CAAC,CAAC;QACzC,CAAC,CAAC;IAEJ,CAAC;IApCiB,iBAAiB;QAC/B,YAAY,CAAC,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAChF,CAAC;IAEe,oBAAoB;QAClC,YAAY,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACnF,CAAC;IAMe,MAAM;QACpB,IAAI,YAAY,CAAC,UAAU,IAAI,CAAC;YAC9B,OAAO,IAAI,CAAC;QAEd,OAAO,CACL,6BAAK,SAAS,EAAC,oCAAoC,EAAC,GAAG,EAAE,IAAI,CAAC,aAAa,IACxE,IAAI,CAAC,KAAK,CAAC,cAAc;YACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;iBAClF,GAAG,CAAC,CAAC,SAAoB,EAAE,EAAE;gBAC5B,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,SAAS,CAAC,EAAE,IAC9B,SAAS,CAAC,SAAS,CACL,CAClB,CAAC;YACJ,CAAC,CAAC,CAEF,CACP,CAAC;IACJ,CAAC;CAMF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { XAndY } from \"@itwin/core-geometry\";\r\nimport type {\r\n AbstractToolbarProps, DialogLayoutDataProvider, OnCancelFunc, OnItemExecutedFunc, OnValueCommitFunc, Primitives, PrimitiveValue,\r\n PropertyDescription, RelativePosition} from \"@itwin/appui-abstract\";\r\nimport { PropertyRecord, PropertyValueFormat, UiEvent,\r\n} from \"@itwin/appui-abstract\";\r\nimport type { Point, SizeProps } from \"@itwin/core-react\";\r\nimport { Orientation, Rectangle } from \"@itwin/core-react\";\r\nimport { offsetAndContainInContainer } from \"@itwin/appui-layout-react\";\r\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { CardPopup } from \"./CardPopup\";\r\nimport { HTMLElementPopup } from \"./HTMLElementPopup\";\r\nimport { InputEditorCommitHandler, InputEditorPopup } from \"./InputEditorPopup\";\r\nimport { KeyinPalettePopup } from \"./KeyinPalettePopup\";\r\nimport { ToolbarPopup } from \"./ToolbarPopup\";\r\nimport { ToolSettingsPopup } from \"./ToolSettingsPopup\";\r\n\r\n// cSpell:ignore uiadmin\r\n\r\n/** Information maintained by PopupManager about a Popup\r\n * @public\r\n */\r\nexport interface PopupInfo {\r\n id: string;\r\n pt: XAndY;\r\n component: React.ReactNode;\r\n parentDocument: Document;\r\n}\r\n\r\n/** @public */\r\nexport interface PopupsChangedEventArgs {\r\n popups: ReadonlyArray<PopupInfo>;\r\n}\r\n\r\n/** Popups Changed Event class.\r\n * @public\r\n */\r\nexport class PopupsChangedEvent extends UiEvent<PopupsChangedEventArgs> { }\r\n\r\n/** Props for each popup managed by the PopupManager\r\n * @public\r\n */\r\nexport interface PopupPropsBase {\r\n id: string;\r\n el: HTMLElement;\r\n pt: XAndY;\r\n offset: XAndY;\r\n}\r\n\r\n/** Describes React based content\r\n * @public\r\n */\r\nexport interface ReactContent {\r\n reactNode: React.ReactNode;\r\n}\r\n\r\n/** Type for Popup Content\r\n * @public\r\n */\r\nexport type PopupContentType = HTMLElement | ReactContent;\r\n\r\n/** ReactContent type guard.\r\n * @internal\r\n */\r\nexport const isReactContent = (content: PopupContentType): content is ReactContent => {\r\n return (content as ReactContent).reactNode !== undefined;\r\n};\r\n\r\n/** Popup Manager class\r\n * @public\r\n */\r\nexport class PopupManager {\r\n private static _popups: ReadonlyArray<PopupInfo> = [];\r\n private static _editorId = \"InputEditor\";\r\n private static _toolbarId = \"Toolbar\";\r\n private static _htmlElementId = \"HTMLElement\";\r\n private static _cardId = \"Card\";\r\n private static _toolSettingsId = \"ToolSettings\";\r\n private static _keyPalettePopupId = \"KeyinPalette\";\r\n\r\n private static _defaultOffset = { x: 8, y: 8 };\r\n\r\n public static readonly onPopupsChangedEvent = new PopupsChangedEvent();\r\n\r\n public static get popupCount() { return this._popups.length; }\r\n public static get popups() { return this._popups; }\r\n\r\n public static set popups(popups: ReadonlyArray<PopupInfo>) {\r\n // istanbul ignore if\r\n if (this._popups === popups)\r\n return;\r\n this._popups = popups;\r\n this.onPopupsChangedEvent.emit({ popups });\r\n }\r\n\r\n /** @internal */\r\n public static clearPopups() {\r\n this.popups = [];\r\n }\r\n\r\n private static addPopup(popupInfo: PopupInfo): void {\r\n const popups = [\r\n ...PopupManager._popups,\r\n popupInfo,\r\n ];\r\n this.popups = popups;\r\n }\r\n\r\n private static updatePopup(popupInfo: PopupInfo, itemIndex: number): void {\r\n // istanbul ignore if\r\n if (itemIndex < 0)\r\n return;\r\n\r\n const popups = [\r\n ...PopupManager._popups.slice(0, itemIndex),\r\n popupInfo,\r\n ...PopupManager._popups.slice(itemIndex + 1),\r\n ];\r\n this.popups = popups;\r\n }\r\n\r\n public static addOrUpdatePopup(popupInfo: PopupInfo): void {\r\n const itemIndex = PopupManager._popups.findIndex((info: PopupInfo) => info.id === popupInfo.id);\r\n if (itemIndex >= 0)\r\n PopupManager.updatePopup(popupInfo, itemIndex);\r\n else\r\n PopupManager.addPopup(popupInfo);\r\n }\r\n\r\n public static removePopup(id: string): boolean {\r\n const index = PopupManager._popups.findIndex((info: PopupInfo) => id === info.id);\r\n let result = true;\r\n\r\n if (index >= 0) {\r\n const popups = PopupManager._popups.filter((info: PopupInfo) => {\r\n return info.id !== id;\r\n });\r\n this.popups = popups;\r\n } else {\r\n Logger.logError(UiFramework.loggerCategory(this), `removePopup: Could not find popup with id of '${id}'`);\r\n result = false;\r\n }\r\n\r\n return result;\r\n }\r\n\r\n public static get defaultOffset(): XAndY { return PopupManager._defaultOffset; }\r\n public static set defaultOffset(offset: XAndY) { PopupManager._defaultOffset = offset; }\r\n\r\n public static showInputEditor(el: HTMLElement, pt: XAndY, value: Primitives.Value, propertyDescription: PropertyDescription, onCommit: OnValueCommitFunc, onCancel: OnCancelFunc): boolean {\r\n const primitiveValue: PrimitiveValue = {\r\n value,\r\n valueFormat: PropertyValueFormat.Primitive,\r\n };\r\n const record = new PropertyRecord(primitiveValue, propertyDescription);\r\n const commitHandler = new InputEditorCommitHandler(onCommit);\r\n const id = PopupManager._editorId;\r\n const component = (\r\n <InputEditorPopup id={id} el={el} pt={pt} offset={PopupManager.defaultOffset}\r\n record={record} onCancel={onCancel} commitHandler={commitHandler} />\r\n );\r\n\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static hideInputEditor(): boolean {\r\n return PopupManager.removePopup(PopupManager._editorId);\r\n }\r\n\r\n public static showKeyinPalette(\r\n keyins: KeyinEntry[], el: HTMLElement, onItemExecuted?: OnItemExecutedFunc, onCancel?: OnCancelFunc,\r\n ): boolean {\r\n\r\n const id = PopupManager._keyPalettePopupId;\r\n const component = (\r\n <KeyinPalettePopup keyins={keyins}\r\n id={id} el={el} onCancel={onCancel} onItemExecuted={onItemExecuted} />\r\n );\r\n\r\n // since the command palette popup is always at top center of specified HTML element and it does not need to move like\r\n // cursor popups just set pt to 0,0.\r\n const pt = { x: 0, y: 0 };\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static hideKeyinPalette(): boolean {\r\n return PopupManager.removePopup(PopupManager._keyPalettePopupId);\r\n }\r\n\r\n public static showToolbar(\r\n toolbarProps: AbstractToolbarProps, el: HTMLElement, pt: XAndY, offset: XAndY,\r\n onItemExecuted: OnItemExecutedFunc, onCancel: OnCancelFunc, relativePosition: RelativePosition,\r\n ): boolean {\r\n\r\n const id = PopupManager._toolbarId;\r\n const component = (\r\n <ToolbarPopup id={id} el={el} pt={pt} offset={offset}\r\n items={toolbarProps.items} relativePosition={relativePosition} orientation={Orientation.Horizontal} onCancel={onCancel} onItemExecuted={onItemExecuted} />\r\n );\r\n\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static hideToolbar(): boolean {\r\n return PopupManager.removePopup(PopupManager._toolbarId);\r\n }\r\n\r\n public static showHTMLElement(\r\n displayElement: HTMLElement, el: HTMLElement, pt: XAndY, offset: XAndY,\r\n onCancel: OnCancelFunc, relativePosition: RelativePosition,\r\n ): boolean {\r\n\r\n const id = PopupManager._htmlElementId;\r\n const component = (\r\n <HTMLElementPopup id={id} el={el} pt={pt} offset={offset}\r\n element={displayElement} relativePosition={relativePosition} orientation={Orientation.Horizontal} onCancel={onCancel} />\r\n );\r\n\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static hideHTMLElement(): boolean {\r\n return PopupManager.removePopup(PopupManager._htmlElementId);\r\n }\r\n\r\n public static showCard(\r\n content: PopupContentType, title: string | PropertyRecord | undefined, toolbarProps: AbstractToolbarProps | undefined,\r\n el: HTMLElement, pt: XAndY, offset: XAndY,\r\n onItemExecuted: OnItemExecutedFunc, onCancel: OnCancelFunc, relativePosition: RelativePosition,\r\n ): boolean {\r\n\r\n const id = PopupManager._cardId;\r\n const component = (\r\n <CardPopup id={id} el={el} pt={pt} offset={offset}\r\n content={content} title={title} items={toolbarProps ? toolbarProps.items : /* istanbul ignore next */ undefined}\r\n relativePosition={relativePosition} orientation={Orientation.Horizontal} onCancel={onCancel} onItemExecuted={onItemExecuted} />\r\n );\r\n\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static hideCard(): boolean {\r\n const index = PopupManager._popups.findIndex((info: PopupInfo) => PopupManager._cardId === info.id);\r\n if (index >= 0)\r\n return PopupManager.removePopup(PopupManager._cardId);\r\n return false;\r\n }\r\n\r\n public static openToolSettings(\r\n dataProvider: DialogLayoutDataProvider, el: HTMLElement, pt: XAndY, offset: XAndY, onCancel: OnCancelFunc, relativePosition: RelativePosition,\r\n ): boolean {\r\n\r\n const id = PopupManager._toolSettingsId;\r\n const component = (\r\n <ToolSettingsPopup id={id} el={el} pt={pt} offset={offset}\r\n dataProvider={dataProvider} relativePosition={relativePosition} orientation={Orientation.Horizontal} onCancel={onCancel} />\r\n );\r\n\r\n const popupInfo: PopupInfo = {\r\n id, pt, component, parentDocument: el.ownerDocument,\r\n };\r\n PopupManager.addOrUpdatePopup(popupInfo);\r\n\r\n return true;\r\n }\r\n\r\n public static closeToolSettings(): boolean {\r\n return PopupManager.removePopup(PopupManager._toolSettingsId);\r\n }\r\n\r\n public static getPopupPosition(el: HTMLElement, pt: XAndY, offset: XAndY, size: SizeProps): Point {\r\n const containerBounds = Rectangle.create(el.getBoundingClientRect());\r\n const relativeBounds = Rectangle.createFromSize(size).offset(pt);\r\n const adjustedPosition: Point = offsetAndContainInContainer(relativeBounds, containerBounds.getSize(), offset);\r\n const position = adjustedPosition.offset(containerBounds.topLeft());\r\n\r\n return position;\r\n }\r\n\r\n}\r\n\r\n/** @internal */\r\ninterface PopupRendererState {\r\n parentDocument: Document | null;\r\n popups: ReadonlyArray<PopupInfo>;\r\n}\r\n\r\n/** Popup Renderer\r\n * @public\r\n */\r\nexport class PopupRenderer extends React.Component<{}, PopupRendererState> {\r\n /** @internal */\r\n public override readonly state: PopupRendererState = {\r\n parentDocument: null,\r\n popups: PopupManager.popups,\r\n };\r\n\r\n public override componentDidMount(): void {\r\n PopupManager.onPopupsChangedEvent.addListener(this._handlePopupsChangedEvent);\r\n }\r\n\r\n public override componentWillUnmount(): void {\r\n PopupManager.onPopupsChangedEvent.removeListener(this._handlePopupsChangedEvent);\r\n }\r\n\r\n private _handleRefSet = (popupDiv: HTMLElement | null) => {\r\n this.setState({ parentDocument: popupDiv?.ownerDocument ?? null });\r\n };\r\n\r\n public override render(): React.ReactNode {\r\n if (PopupManager.popupCount <= 0)\r\n return null;\r\n\r\n return (\r\n <div className=\"appui-react-popup-render-container\" ref={this._handleRefSet}>\r\n {this.state.parentDocument &&\r\n this.state.popups.filter((info) => info.parentDocument === this.state.parentDocument)\r\n .map((popupInfo: PopupInfo) => {\r\n return (\r\n <React.Fragment key={popupInfo.id}>\r\n {popupInfo.component}\r\n </React.Fragment>\r\n );\r\n })\r\n }\r\n </div>\r\n );\r\n }\r\n\r\n private _handlePopupsChangedEvent = (args: PopupsChangedEventArgs) => {\r\n this.setState({ popups: args.popups });\r\n };\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"PopupManager.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/PopupManager.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,OAAO,GACR,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,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G,CAAC,QAA4B,EAAE,EAAE;;YACvD,IAAI,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,mCAAI,IAAI,EAAE,CAAC,CAAC;QACrE,CAAC,CAAC;QAwBM,8BAAyB,GAAG,CAAC,IAA4B,EAAE,EAAE;YACnE,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACzC,CAAC,CAAC;IACJ,CAAC;IAzCiB,iBAAiB;QAC/B,YAAY,CAAC,oBAAoB,CAAC,WAAW,CAC3C,IAAI,CAAC,yBAAyB,CAC/B,CAAC;IACJ,CAAC;IAEe,oBAAoB;QAClC,YAAY,CAAC,oBAAoB,CAAC,cAAc,CAC9C,IAAI,CAAC,yBAAyB,CAC/B,CAAC;IACJ,CAAC;IAMe,MAAM;QACpB,IAAI,YAAY,CAAC,UAAU,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9C,OAAO,CACL,6BACE,SAAS,EAAC,oCAAoC,EAC9C,GAAG,EAAE,IAAI,CAAC,aAAa,IAEtB,IAAI,CAAC,KAAK,CAAC,cAAc;YACxB,IAAI,CAAC,KAAK,CAAC,MAAM;iBACd,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;iBACnE,GAAG,CAAC,CAAC,SAAoB,EAAE,EAAE;gBAC5B,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,SAAS,CAAC,EAAE,IAC9B,SAAS,CAAC,SAAS,CACL,CAClB,CAAC;YACJ,CAAC,CAAC,CACF,CACP,CAAC;IACJ,CAAC;CAKF","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 Popup\n */\n\nimport * as React from \"react\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport type {\n AbstractToolbarProps,\n DialogLayoutDataProvider,\n OnCancelFunc,\n OnItemExecutedFunc,\n OnValueCommitFunc,\n Primitives,\n PrimitiveValue,\n PropertyDescription,\n RelativePosition,\n} from \"@itwin/appui-abstract\";\nimport {\n PropertyRecord,\n PropertyValueFormat,\n UiEvent,\n} from \"@itwin/appui-abstract\";\nimport type { Point, SizeProps } from \"@itwin/core-react\";\nimport { Orientation, Rectangle } from \"@itwin/core-react\";\nimport { offsetAndContainInContainer } from \"@itwin/appui-layout-react\";\nimport type { KeyinEntry } from \"../uiadmin/FrameworkUiAdmin\";\nimport { UiFramework } from \"../UiFramework\";\nimport { CardPopup } from \"./CardPopup\";\nimport { HTMLElementPopup } from \"./HTMLElementPopup\";\nimport { InputEditorCommitHandler, InputEditorPopup } from \"./InputEditorPopup\";\nimport { KeyinPalettePopup } from \"./KeyinPalettePopup\";\nimport { ToolbarPopup } from \"./ToolbarPopup\";\nimport { ToolSettingsPopup } from \"./ToolSettingsPopup\";\n\n// cSpell:ignore uiadmin\n\n/** Information maintained by PopupManager about a Popup\n * @public\n */\nexport interface PopupInfo {\n id: string;\n pt: XAndY;\n component: React.ReactNode;\n parentDocument: Document;\n}\n\n/** @public */\nexport interface PopupsChangedEventArgs {\n popups: ReadonlyArray<PopupInfo>;\n}\n\n/** Popups Changed Event class.\n * @public\n */\nexport class PopupsChangedEvent extends UiEvent<PopupsChangedEventArgs> {}\n\n/** Props for each popup managed by the PopupManager\n * @public\n */\nexport interface PopupPropsBase {\n id: string;\n el: HTMLElement;\n pt: XAndY;\n offset: XAndY;\n}\n\n/** Describes React based content\n * @public\n */\nexport interface ReactContent {\n reactNode: React.ReactNode;\n}\n\n/** Type for Popup Content\n * @public\n */\nexport type PopupContentType = HTMLElement | ReactContent;\n\n/** ReactContent type guard.\n * @internal\n */\nexport const isReactContent = (\n content: PopupContentType\n): content is ReactContent => {\n return (content as ReactContent).reactNode !== undefined;\n};\n\n/** Popup Manager class\n * @public\n */\nexport class PopupManager {\n private static _popups: ReadonlyArray<PopupInfo> = [];\n private static _editorId = \"InputEditor\";\n private static _toolbarId = \"Toolbar\";\n private static _htmlElementId = \"HTMLElement\";\n private static _cardId = \"Card\";\n private static _toolSettingsId = \"ToolSettings\";\n private static _keyPalettePopupId = \"KeyinPalette\";\n\n private static _defaultOffset = { x: 8, y: 8 };\n\n public static readonly onPopupsChangedEvent = new PopupsChangedEvent();\n\n public static get popupCount() {\n return this._popups.length;\n }\n public static get popups() {\n return this._popups;\n }\n\n public static set popups(popups: ReadonlyArray<PopupInfo>) {\n // istanbul ignore if\n if (this._popups === popups) return;\n this._popups = popups;\n this.onPopupsChangedEvent.emit({ popups });\n }\n\n /** @internal */\n public static clearPopups() {\n this.popups = [];\n }\n\n private static addPopup(popupInfo: PopupInfo): void {\n const popups = [...PopupManager._popups, popupInfo];\n this.popups = popups;\n }\n\n private static updatePopup(popupInfo: PopupInfo, itemIndex: number): void {\n // istanbul ignore if\n if (itemIndex < 0) return;\n\n const popups = [\n ...PopupManager._popups.slice(0, itemIndex),\n popupInfo,\n ...PopupManager._popups.slice(itemIndex + 1),\n ];\n this.popups = popups;\n }\n\n public static addOrUpdatePopup(popupInfo: PopupInfo): void {\n const itemIndex = PopupManager._popups.findIndex(\n (info: PopupInfo) => info.id === popupInfo.id\n );\n if (itemIndex >= 0) PopupManager.updatePopup(popupInfo, itemIndex);\n else PopupManager.addPopup(popupInfo);\n }\n\n public static removePopup(id: string): boolean {\n const index = PopupManager._popups.findIndex(\n (info: PopupInfo) => id === info.id\n );\n let result = true;\n\n if (index >= 0) {\n const popups = PopupManager._popups.filter((info: PopupInfo) => {\n return info.id !== id;\n });\n this.popups = popups;\n } else {\n Logger.logError(\n UiFramework.loggerCategory(this),\n `removePopup: Could not find popup with id of '${id}'`\n );\n result = false;\n }\n\n return result;\n }\n\n public static get defaultOffset(): XAndY {\n return PopupManager._defaultOffset;\n }\n public static set defaultOffset(offset: XAndY) {\n PopupManager._defaultOffset = offset;\n }\n\n public static showInputEditor(\n el: HTMLElement,\n pt: XAndY,\n value: Primitives.Value,\n propertyDescription: PropertyDescription,\n onCommit: OnValueCommitFunc,\n onCancel: OnCancelFunc\n ): boolean {\n const primitiveValue: PrimitiveValue = {\n value,\n valueFormat: PropertyValueFormat.Primitive,\n };\n const record = new PropertyRecord(primitiveValue, propertyDescription);\n const commitHandler = new InputEditorCommitHandler(onCommit);\n const id = PopupManager._editorId;\n const component = (\n <InputEditorPopup\n id={id}\n el={el}\n pt={pt}\n offset={PopupManager.defaultOffset}\n record={record}\n onCancel={onCancel}\n commitHandler={commitHandler}\n />\n );\n\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static hideInputEditor(): boolean {\n return PopupManager.removePopup(PopupManager._editorId);\n }\n\n public static showKeyinPalette(\n keyins: KeyinEntry[],\n el: HTMLElement,\n onItemExecuted?: OnItemExecutedFunc,\n onCancel?: OnCancelFunc\n ): boolean {\n const id = PopupManager._keyPalettePopupId;\n const component = (\n <KeyinPalettePopup\n keyins={keyins}\n id={id}\n el={el}\n onCancel={onCancel}\n onItemExecuted={onItemExecuted}\n />\n );\n\n // since the command palette popup is always at top center of specified HTML element and it does not need to move like\n // cursor popups just set pt to 0,0.\n const pt = { x: 0, y: 0 };\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static hideKeyinPalette(): boolean {\n return PopupManager.removePopup(PopupManager._keyPalettePopupId);\n }\n\n public static showToolbar(\n toolbarProps: AbstractToolbarProps,\n el: HTMLElement,\n pt: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition: RelativePosition\n ): boolean {\n const id = PopupManager._toolbarId;\n const component = (\n <ToolbarPopup\n id={id}\n el={el}\n pt={pt}\n offset={offset}\n items={toolbarProps.items}\n relativePosition={relativePosition}\n orientation={Orientation.Horizontal}\n onCancel={onCancel}\n onItemExecuted={onItemExecuted}\n />\n );\n\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static hideToolbar(): boolean {\n return PopupManager.removePopup(PopupManager._toolbarId);\n }\n\n public static showHTMLElement(\n displayElement: HTMLElement,\n el: HTMLElement,\n pt: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition: RelativePosition\n ): boolean {\n const id = PopupManager._htmlElementId;\n const component = (\n <HTMLElementPopup\n id={id}\n el={el}\n pt={pt}\n offset={offset}\n element={displayElement}\n relativePosition={relativePosition}\n orientation={Orientation.Horizontal}\n onCancel={onCancel}\n />\n );\n\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static hideHTMLElement(): boolean {\n return PopupManager.removePopup(PopupManager._htmlElementId);\n }\n\n public static showCard(\n content: PopupContentType,\n title: string | PropertyRecord | undefined,\n toolbarProps: AbstractToolbarProps | undefined,\n el: HTMLElement,\n pt: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition: RelativePosition\n ): boolean {\n const id = PopupManager._cardId;\n const component = (\n <CardPopup\n id={id}\n el={el}\n pt={pt}\n offset={offset}\n content={content}\n title={title}\n items={\n toolbarProps\n ? toolbarProps.items\n : /* istanbul ignore next */ undefined\n }\n relativePosition={relativePosition}\n orientation={Orientation.Horizontal}\n onCancel={onCancel}\n onItemExecuted={onItemExecuted}\n />\n );\n\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static hideCard(): boolean {\n const index = PopupManager._popups.findIndex(\n (info: PopupInfo) => PopupManager._cardId === info.id\n );\n if (index >= 0) return PopupManager.removePopup(PopupManager._cardId);\n return false;\n }\n\n public static openToolSettings(\n dataProvider: DialogLayoutDataProvider,\n el: HTMLElement,\n pt: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition: RelativePosition\n ): boolean {\n const id = PopupManager._toolSettingsId;\n const component = (\n <ToolSettingsPopup\n id={id}\n el={el}\n pt={pt}\n offset={offset}\n dataProvider={dataProvider}\n relativePosition={relativePosition}\n orientation={Orientation.Horizontal}\n onCancel={onCancel}\n />\n );\n\n const popupInfo: PopupInfo = {\n id,\n pt,\n component,\n parentDocument: el.ownerDocument,\n };\n PopupManager.addOrUpdatePopup(popupInfo);\n\n return true;\n }\n\n public static closeToolSettings(): boolean {\n return PopupManager.removePopup(PopupManager._toolSettingsId);\n }\n\n public static getPopupPosition(\n el: HTMLElement,\n pt: XAndY,\n offset: XAndY,\n size: SizeProps\n ): Point {\n const containerBounds = Rectangle.create(el.getBoundingClientRect());\n const relativeBounds = Rectangle.createFromSize(size).offset(pt);\n const adjustedPosition: Point = offsetAndContainInContainer(\n relativeBounds,\n containerBounds.getSize(),\n offset\n );\n const position = adjustedPosition.offset(containerBounds.topLeft());\n\n return position;\n }\n}\n\n/** @internal */\ninterface PopupRendererState {\n parentDocument: Document | null;\n popups: ReadonlyArray<PopupInfo>;\n}\n\n/** Popup Renderer\n * @public\n */\nexport class PopupRenderer extends React.Component<{}, PopupRendererState> {\n /** @internal */\n public override readonly state: PopupRendererState = {\n parentDocument: null,\n popups: PopupManager.popups,\n };\n\n public override componentDidMount(): void {\n PopupManager.onPopupsChangedEvent.addListener(\n this._handlePopupsChangedEvent\n );\n }\n\n public override componentWillUnmount(): void {\n PopupManager.onPopupsChangedEvent.removeListener(\n this._handlePopupsChangedEvent\n );\n }\n\n private _handleRefSet = (popupDiv: HTMLElement | null) => {\n this.setState({ parentDocument: popupDiv?.ownerDocument ?? null });\n };\n\n public override render(): React.ReactNode {\n if (PopupManager.popupCount <= 0) return null;\n\n return (\n <div\n className=\"appui-react-popup-render-container\"\n ref={this._handleRefSet}\n >\n {this.state.parentDocument &&\n this.state.popups\n .filter((info) => info.parentDocument === this.state.parentDocument)\n .map((popupInfo: PopupInfo) => {\n return (\n <React.Fragment key={popupInfo.id}>\n {popupInfo.component}\n </React.Fragment>\n );\n })}\n </div>\n );\n }\n\n private _handlePopupsChangedEvent = (args: PopupsChangedEventArgs) => {\n this.setState({ popups: args.popups });\n };\n}\n"]}