@itwin/appui-react 4.14.0 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1247) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +202 -140
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +432 -301
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.json +8 -4
  7. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  8. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  10. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  12. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +6 -7
  14. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  16. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  20. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  23. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  25. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  26. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  29. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  30. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  31. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  32. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +0 -1
  33. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  34. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  35. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  36. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  37. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +3 -2
  38. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/backstage/BackstageManager.js +5 -7
  40. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  41. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +1 -0
  43. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  44. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  46. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  47. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  48. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  49. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +64 -18
  51. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  52. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.scss +0 -25
  53. package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
  54. package/lib/cjs/appui-react/content/ContentControl.js +1 -1
  55. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  56. package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
  57. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  59. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  60. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
  62. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  63. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
  64. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  65. package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
  66. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  67. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  68. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  69. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  70. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
  71. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  72. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  73. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  74. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  76. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  78. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  79. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  80. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  82. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  83. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  84. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
  85. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  86. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
  87. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  88. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
  90. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  91. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
  94. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
  97. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  99. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
  100. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  101. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
  102. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  103. package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
  104. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  105. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  106. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
  107. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
  111. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  112. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  113. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  114. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  115. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +8 -20
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/feedback/ElementTooltip.js +51 -87
  119. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  120. package/lib/cjs/appui-react/feedback/ElementTooltip.scss +29 -0
  121. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  122. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  123. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  124. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  125. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  126. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  127. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  128. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  129. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  130. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  131. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
  132. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  133. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  134. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  135. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
  136. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  137. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  138. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  139. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  140. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  141. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
  142. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  143. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  144. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  145. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
  146. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  147. package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
  148. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  149. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  150. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  151. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
  155. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  157. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  158. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
  159. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  160. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  161. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  162. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
  163. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  164. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  165. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  166. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  167. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  168. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  169. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  170. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  171. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  172. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  173. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
  174. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  175. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  176. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  177. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
  178. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  179. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  180. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  182. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  183. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
  185. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  189. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  190. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  191. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  192. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  193. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  194. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  195. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  196. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  197. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  198. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  199. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  200. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
  201. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  202. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  203. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  204. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
  205. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  206. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  208. package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  210. package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
  212. package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  213. package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
  214. package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
  215. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  217. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  219. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  221. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  223. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  225. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  227. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  229. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  230. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  231. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  232. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  234. package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
  236. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  238. package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
  240. package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  241. package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
  242. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  244. package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
  245. package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  247. package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  248. package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
  249. package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
  250. package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
  252. package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
  253. package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
  254. package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  257. package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
  259. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  260. package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
  261. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  262. package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  263. package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
  264. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  265. package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  268. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  269. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  270. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  271. package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
  272. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  273. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  275. package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  277. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  279. package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  280. package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
  281. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  282. package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  283. package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
  284. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  285. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  286. package/lib/cjs/appui-react/messages/InputField.js +6 -2
  287. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  288. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
  290. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
  292. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  293. package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
  294. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  295. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  296. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  297. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  298. package/lib/cjs/appui-react/messages/Pointer.js +11 -3
  299. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  300. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  301. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  302. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  303. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  304. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  305. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  307. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  308. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  309. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  311. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  313. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  315. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  316. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  317. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
  318. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  319. package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
  320. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  321. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  322. package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
  323. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  324. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  325. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  326. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
  327. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  328. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  329. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  331. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  332. package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
  333. package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
  334. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  335. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  336. package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
  337. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  338. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  339. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  340. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  341. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  342. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  343. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  344. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  345. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  346. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  347. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  348. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  349. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  350. package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
  351. package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
  352. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
  353. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  354. package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
  355. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  356. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
  357. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  358. package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
  359. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  360. package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
  361. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  362. package/lib/cjs/appui-react/redux/SessionState.js +11 -10
  363. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
  365. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/redux/StateManager.js +3 -3
  367. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  368. package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
  369. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
  371. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  372. package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
  373. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
  375. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  378. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
  379. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
  382. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  383. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  384. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  386. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
  387. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  390. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
  391. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  392. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
  393. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  395. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  396. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
  398. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  399. package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
  400. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  401. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
  402. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
  404. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
  406. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
  408. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  409. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -0
  410. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  411. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  413. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  415. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  416. package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
  417. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  418. package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
  419. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  420. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -0
  421. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  422. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  423. package/lib/cjs/appui-react/shared/MenuItem.d.ts +45 -12
  424. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  425. package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
  426. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  427. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
  428. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  429. package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
  430. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  431. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  432. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  433. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  434. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
  435. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
  437. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/Field.js +1 -1
  439. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
  441. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  442. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
  443. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  444. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  445. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
  446. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  448. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  449. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
  451. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
  453. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  454. package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
  455. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  456. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  458. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  463. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
  465. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
  467. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
  468. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  470. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  471. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
  472. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  473. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  475. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  476. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  477. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  478. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  479. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
  480. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  481. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
  482. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  483. package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
  484. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  485. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
  486. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
  488. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  490. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
  492. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  493. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  494. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  495. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  497. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  498. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  499. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  500. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  501. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  502. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  504. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  505. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  506. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  507. package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  508. package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
  509. package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
  510. package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
  511. package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
  512. package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
  513. package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
  514. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
  515. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  516. package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
  517. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  518. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
  519. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  520. package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
  521. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  522. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
  523. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  524. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  525. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  527. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
  528. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  529. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  530. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  531. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  534. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  535. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  536. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  537. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  538. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  539. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  540. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
  541. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  542. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
  543. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  544. package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
  545. package/lib/cjs/appui-react/tools/ToolbarItems.js.map +1 -0
  546. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  547. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  548. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  549. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  550. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  551. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  552. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  553. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  554. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  555. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  556. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  557. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  558. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  560. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  561. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  563. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  565. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  567. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  568. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  569. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  570. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  571. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  572. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  573. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  574. package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
  575. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  576. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
  577. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  578. package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
  579. package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
  580. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  581. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  582. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
  583. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  584. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  585. package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
  586. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  587. package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
  589. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  590. package/lib/cjs/appui-react/widget-panels/Frontstage.js +35 -20
  591. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  592. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  593. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -0
  594. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  595. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  596. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  597. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
  598. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  599. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  600. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
  601. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  602. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  603. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
  604. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  605. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  607. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  608. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  609. package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
  610. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  611. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  612. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
  613. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  614. package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
  615. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  616. package/lib/cjs/appui-react.d.ts +10 -3
  617. package/lib/cjs/appui-react.d.ts.map +1 -1
  618. package/lib/cjs/appui-react.js +10 -3
  619. package/lib/cjs/appui-react.js.map +1 -1
  620. package/lib/esm/appui-react/UiFramework.d.ts +202 -140
  621. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  622. package/lib/esm/appui-react/UiFramework.js +428 -297
  623. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  624. package/lib/esm/appui-react/UiFramework.json +8 -4
  625. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  626. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  627. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  628. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  630. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  631. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
  632. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  633. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  634. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  635. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  636. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  637. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  638. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  639. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  640. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  641. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  642. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  643. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  644. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  645. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  646. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  647. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  648. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  649. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  650. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
  651. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  652. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  653. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  654. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  655. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
  656. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  657. package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
  658. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  659. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  660. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  661. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  662. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  663. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  664. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  665. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  666. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  667. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  668. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
  669. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  670. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.scss +0 -25
  671. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  672. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  673. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  674. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  675. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  676. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  677. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  678. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  679. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  680. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  681. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  682. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  683. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  684. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  685. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  686. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  687. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  688. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  689. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  690. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  692. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  693. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  694. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  696. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  697. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  698. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  699. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  700. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  701. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  702. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  703. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  704. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  705. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  706. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  707. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  708. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  710. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  711. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  712. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  713. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  714. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  715. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  717. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  718. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  719. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  720. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  721. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  722. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  723. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  724. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  725. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  727. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  728. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  729. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  731. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  732. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  733. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  734. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +8 -20
  735. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  736. package/lib/esm/appui-react/feedback/ElementTooltip.js +50 -86
  737. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  738. package/lib/esm/appui-react/feedback/ElementTooltip.scss +29 -0
  739. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  740. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  741. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  742. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  743. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  745. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  746. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  747. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  748. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  749. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  750. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  752. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  754. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  755. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  756. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  757. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  759. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  760. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  761. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  762. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  763. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  764. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  765. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  766. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  767. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  768. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  769. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  771. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  773. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  775. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  776. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  778. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  779. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  780. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  781. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  782. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  783. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  784. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  785. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  786. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  787. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  788. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  790. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  791. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  792. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  793. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  794. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  795. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  796. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  797. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  798. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  799. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  800. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  801. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  802. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  803. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  805. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  807. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  820. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  821. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  822. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  823. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  824. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  828. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  829. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  830. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  831. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  832. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  848. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  849. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  850. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  852. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  854. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  856. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  857. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  858. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  860. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  866. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  867. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  868. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  869. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  870. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  872. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  875. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  877. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  878. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  879. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  880. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  882. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  884. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  886. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  895. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  896. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  897. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  898. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  899. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  900. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  901. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  902. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  903. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  904. package/lib/esm/appui-react/messages/InputField.js +6 -2
  905. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  906. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  908. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  910. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  911. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  912. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  913. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  914. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  915. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  916. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  917. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  918. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  919. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  920. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  921. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  922. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  923. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  925. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  927. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  929. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  930. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  931. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  932. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  933. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  934. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  935. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  936. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  937. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  938. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  939. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  940. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  941. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  942. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  943. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  944. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  945. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  946. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  947. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  948. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  949. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  950. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  951. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  952. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  953. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  954. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  955. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  956. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  957. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  958. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  959. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  960. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  961. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  962. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  963. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  964. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  965. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  966. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  967. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  968. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  969. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  970. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  971. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  972. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  973. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  974. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  975. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  976. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  977. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  978. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  979. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  980. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  981. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  982. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  983. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  984. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  985. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  986. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  987. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  988. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  989. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  990. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  991. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  992. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  993. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  994. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  995. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  996. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  997. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  998. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  999. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  1000. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  1001. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  1002. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  1003. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1004. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1005. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1006. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1007. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1008. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1009. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1011. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1013. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1014. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1015. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1016. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1017. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1018. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1020. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1022. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1023. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1024. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1026. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1027. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1028. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1029. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1031. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1033. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1035. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1037. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1038. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1039. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1040. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1041. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1042. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1043. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1044. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1045. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1046. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1047. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1048. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1049. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1050. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1051. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1052. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1053. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1055. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1057. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1059. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1060. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1061. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1062. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1063. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1064. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1065. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1067. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1069. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1071. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1073. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1079. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1081. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1083. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1084. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1085. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1086. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1087. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1088. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1090. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1094. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1096. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1098. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1100. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1102. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1104. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1106. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1108. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1109. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1110. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1113. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1115. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1117. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1118. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1119. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1120. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1121. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1122. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1123. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1124. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1125. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1126. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1127. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1128. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1129. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1130. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1131. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1132. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1133. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1134. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1135. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1137. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1139. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1140. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1141. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1142. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1144. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1146. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1148. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1152. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1153. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1154. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1155. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1156. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  1157. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1158. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
  1159. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1160. package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
  1161. package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  1162. package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
  1163. package/lib/esm/appui-react/tools/ToolbarItems.js.map +1 -0
  1164. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1165. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  1166. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1167. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1168. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  1169. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1170. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1171. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1172. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1173. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1174. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  1175. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1176. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1177. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1178. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1179. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1180. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  1181. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1182. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  1183. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1184. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  1185. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1186. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1187. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  1188. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  1189. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1190. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1191. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
  1193. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1194. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
  1195. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  1196. package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
  1197. package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
  1198. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  1199. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  1200. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
  1201. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  1202. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1203. package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
  1204. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1205. package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  1206. package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
  1207. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1208. package/lib/esm/appui-react/widget-panels/Frontstage.js +35 -20
  1209. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1210. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -0
  1212. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1213. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  1214. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1215. package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
  1216. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1217. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1218. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
  1219. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1220. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1221. package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
  1222. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1223. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1224. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1225. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1226. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1227. package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
  1228. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1229. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1230. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
  1231. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1232. package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
  1233. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1234. package/lib/esm/appui-react.d.ts +10 -3
  1235. package/lib/esm/appui-react.d.ts.map +1 -1
  1236. package/lib/esm/appui-react.js +10 -3
  1237. package/lib/esm/appui-react.js.map +1 -1
  1238. package/lib/public/locales/en/UiFramework.json +8 -4
  1239. package/package.json +8 -8
  1240. package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
  1241. package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
  1242. package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
  1243. package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
  1244. package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
  1245. package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
  1246. package/lib/esm/appui-react/configurableui/state.js.map +0 -1
  1247. package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
@@ -8,18 +8,14 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.StandardFrontstageProvider = void 0;
11
- const React = require("react");
12
- const ContentGroup_1 = require("../content/ContentGroup");
13
11
  const FrontstageProvider_1 = require("./FrontstageProvider");
14
- const ContentToolWidgetComposer_1 = require("../widgets/ContentToolWidgetComposer");
15
- const ViewToolWidgetComposer_1 = require("../widgets/ViewToolWidgetComposer");
16
- const StatusBarComposer_1 = require("../statusbar/StatusBarComposer");
17
- const StagePanelState_1 = require("../stagepanels/StagePanelState");
18
- /**
19
- * FrontstageProvider that provides an "empty" stage. All tool buttons, statusbar items, and widgets must
12
+ const FrontstageUtilities_1 = require("./FrontstageUtilities");
13
+ /** FrontstageProvider that provides an "empty" stage. All tool buttons, statusbar items, and widgets must
20
14
  * be provided by one or more item providers, see [[UiItemsProvider]].
21
15
  * @public
16
+ * @deprecated in 4.15.0. Use {@link FrontstageUtilities.createStandardFrontstage} instead.
22
17
  */
18
+ // eslint-disable-next-line deprecation/deprecation
23
19
  class StandardFrontstageProvider extends FrontstageProvider_1.FrontstageProvider {
24
20
  constructor(props) {
25
21
  super();
@@ -29,56 +25,8 @@ class StandardFrontstageProvider extends FrontstageProvider_1.FrontstageProvider
29
25
  return this.props.id;
30
26
  }
31
27
  frontstageConfig() {
32
- const contentGroup = this.props.contentGroupProps instanceof ContentGroup_1.ContentGroupProvider
33
- ? this.props.contentGroupProps
34
- : new ContentGroup_1.ContentGroup(this.props.contentGroupProps);
35
- return {
36
- id: this.props.id,
37
- version: this.props.version ?? 1.0,
38
- contentGroup,
39
- usage: this.props.usage,
40
- defaultTool: this.props.defaultTool,
41
- contentManipulation: {
42
- id: `${this.props.id}-contentManipulationTools`,
43
- content: (React.createElement(ContentToolWidgetComposer_1.ContentToolWidgetComposer, { cornerButton: this.props.cornerButton })),
44
- },
45
- viewNavigation: {
46
- id: `${this.props.id}-viewNavigationTools`,
47
- content: (React.createElement(ViewToolWidgetComposer_1.ViewToolWidgetComposer, { hideNavigationAid: this.props.hideNavigationAid })),
48
- },
49
- toolSettings: this.props.hideToolSettings
50
- ? undefined
51
- : {
52
- id: `${this.props.id}-toolSettings`,
53
- },
54
- statusBar: this.props.hideStatusBar
55
- ? undefined
56
- : {
57
- id: `${this.props.id}-statusBar`,
58
- content: React.createElement(StatusBarComposer_1.StatusBarComposer, { items: [] }),
59
- },
60
- leftPanel: {
61
- sizeSpec: 300,
62
- pinned: false,
63
- defaultState: StagePanelState_1.StagePanelState.Minimized,
64
- ...this.props.leftPanelProps,
65
- },
66
- topPanel: {
67
- sizeSpec: 90,
68
- pinned: false,
69
- defaultState: StagePanelState_1.StagePanelState.Minimized,
70
- ...this.props.topPanelProps,
71
- },
72
- rightPanel: {
73
- defaultState: StagePanelState_1.StagePanelState.Open,
74
- ...this.props.rightPanelProps,
75
- },
76
- bottomPanel: {
77
- sizeSpec: 180,
78
- defaultState: StagePanelState_1.StagePanelState.Open,
79
- ...this.props.bottomPanelProps,
80
- },
81
- };
28
+ const config = FrontstageUtilities_1.FrontstageUtilities.createStandardFrontstage(this.props);
29
+ return config;
82
30
  }
83
31
  }
84
32
  exports.StandardFrontstageProvider = StandardFrontstageProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"StandardFrontstageProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/frontstage/StandardFrontstageProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,0DAA6E;AAC7E,6DAA0D;AAC1D,oFAAiF;AACjF,8EAA2E;AAI3E,sEAAmE;AACnE,oEAAiE;AA4DjE;;;;GAIG;AACH,MAAa,0BAA2B,SAAQ,uCAAkB;IAChE,YAAoB,KAA8B;QAChD,KAAK,EAAE,CAAC;QADU,UAAK,GAAL,KAAK,CAAyB;IAElD,CAAC;IAED,IAAoB,EAAE;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvB,CAAC;IAEe,gBAAgB;QAC9B,MAAM,YAAY,GAChB,IAAI,CAAC,KAAK,CAAC,iBAAiB,YAAY,mCAAoB;YAC1D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB;YAC9B,CAAC,CAAC,IAAI,2BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACrD,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;YACjB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,GAAG;YAClC,YAAY;YACZ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G,IAAI,CAAC,KAAK,CAAC,eAAe;aAC9B;YACD,WAAW,EAAE;gBACX,QAAQ,EAAE,GAAG;gBACb,YAAY,EAAE,iCAAe,CAAC,IAAI;gBAClC,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB;aAC/B;SACF,CAAC;IACJ,CAAC;CACF;AApED,gEAoEC","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 Frontstage\n */\n\nimport * as React from \"react\";\nimport type { ContentGroupProps } from \"../content/ContentGroup\";\nimport { ContentGroup, ContentGroupProvider } from \"../content/ContentGroup\";\nimport { FrontstageProvider } from \"./FrontstageProvider\";\nimport { ContentToolWidgetComposer } from \"../widgets/ContentToolWidgetComposer\";\nimport { ViewToolWidgetComposer } from \"../widgets/ViewToolWidgetComposer\";\nimport type { FrontstageConfig } from \"./FrontstageConfig\";\nimport type { StagePanelConfig } from \"../stagepanels/StagePanelConfig\";\nimport type { StageUsage } from \"./StageUsage\";\nimport { StatusBarComposer } from \"../statusbar/StatusBarComposer\";\nimport { StagePanelState } from \"../stagepanels/StagePanelState\";\n\n/** Properties of a [[WidgetPanelProps]] component\n * @public\n */\nexport type WidgetPanelProps = Omit<\n StagePanelConfig,\n \"widgets\" | \"runtimeProps\" | \"header\" | \"allowedZones\" | \"panelZones\"\n>;\n\n/**\n * Props for [[StandardFrontstageProvider]]\n * @public\n */\nexport interface StandardFrontstageProps {\n /* unique stage id. To ensure uniqueness it is common practice to format id like `appName:stageId` */\n id: string;\n /* version id that is used to store state of stage */\n version?: number;\n // Usage of stage. To allow generic UiItemProvides to populate this stage set to `StageUsage.General`.\n usage: StageUsage | string;\n /** The defaultTool is is started when then frontstage loads and whenever any other tools exit.\n * Most of the time, this is the Element Selection Tool (SelectionTool.toolId).\n * Your app can specify its own tool or another core tool as default with this property.\n */\n defaultTool?: string;\n /** Definition of available content groups or a function that provides them */\n contentGroupProps: ContentGroupProps | ContentGroupProvider;\n /** Specify button to use to open backstage. Leave undefined for no backstage button.\n * ```\n * <BackstageAppButton icon={<SvgBentleySystems />} />\n * ```\n * Custom corner button definition\n * ```\n * const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />}\n * label=\"Toggle Backstage display\",\n * execute={() => UiFramework.backstage.getBackstageToggleCommand().execute()} />;\n * ```\n */\n cornerButton?: React.ReactNode;\n /** Set to true if default Navigation aid is not desired */\n hideNavigationAid?: boolean;\n /** Set to true if no tool setting dock is needed. Typically only used in modal stages. */\n hideToolSettings?: boolean;\n /** Set to true if no status bar is needed in stage */\n hideStatusBar?: boolean;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 300, pinned=false, defaultState:StagePanelState.Minimized} */\n leftPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 90, pinned=false, defaultState:StagePanelState.Minimized} */\n topPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 200, pinned=true, defaultState:StagePanelState.Open} */\n rightPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 180, pinned=true, defaultState:StagePanelState.Open} */\n bottomPanelProps?: WidgetPanelProps;\n}\n\n/**\n * FrontstageProvider that provides an \"empty\" stage. All tool buttons, statusbar items, and widgets must\n * be provided by one or more item providers, see [[UiItemsProvider]].\n * @public\n */\nexport class StandardFrontstageProvider extends FrontstageProvider {\n constructor(private props: StandardFrontstageProps) {\n super();\n }\n\n public override get id(): string {\n return this.props.id;\n }\n\n public override frontstageConfig(): FrontstageConfig {\n const contentGroup =\n this.props.contentGroupProps instanceof ContentGroupProvider\n ? this.props.contentGroupProps\n : new ContentGroup(this.props.contentGroupProps);\n return {\n id: this.props.id,\n version: this.props.version ?? 1.0,\n contentGroup,\n usage: this.props.usage,\n defaultTool: this.props.defaultTool,\n contentManipulation: {\n id: `${this.props.id}-contentManipulationTools`,\n content: (\n <ContentToolWidgetComposer cornerButton={this.props.cornerButton} />\n ),\n },\n viewNavigation: {\n id: `${this.props.id}-viewNavigationTools`,\n content: (\n <ViewToolWidgetComposer\n hideNavigationAid={this.props.hideNavigationAid}\n />\n ),\n },\n toolSettings: this.props.hideToolSettings\n ? undefined\n : {\n id: `${this.props.id}-toolSettings`,\n },\n statusBar: this.props.hideStatusBar\n ? undefined\n : {\n id: `${this.props.id}-statusBar`,\n content: <StatusBarComposer items={[]} />,\n },\n leftPanel: {\n sizeSpec: 300,\n pinned: false,\n defaultState: StagePanelState.Minimized,\n ...this.props.leftPanelProps,\n },\n topPanel: {\n sizeSpec: 90,\n pinned: false,\n defaultState: StagePanelState.Minimized,\n ...this.props.topPanelProps,\n },\n rightPanel: {\n defaultState: StagePanelState.Open,\n ...this.props.rightPanelProps,\n },\n bottomPanel: {\n sizeSpec: 180,\n defaultState: StagePanelState.Open,\n ...this.props.bottomPanelProps,\n },\n };\n }\n}\n"]}
1
+ {"version":3,"file":"StandardFrontstageProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/frontstage/StandardFrontstageProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAOH,6DAA0D;AAI1D,+DAA4D;AA2D5D;;;;GAIG;AACH,mDAAmD;AACnD,MAAa,0BAA2B,SAAQ,uCAAkB;IAChE,YAAoB,KAA8B;QAChD,KAAK,EAAE,CAAC;QADU,UAAK,GAAL,KAAK,CAAyB;IAElD,CAAC;IAED,IAAoB,EAAE;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvB,CAAC;IAEe,gBAAgB;QAC9B,MAAM,MAAM,GAAG,yCAAmB,CAAC,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAbD,gEAaC","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 Frontstage\n */\n\nimport type * as React from \"react\";\nimport type {\n ContentGroupProps,\n ContentGroupProvider,\n} from \"../content/ContentGroup\";\nimport { FrontstageProvider } from \"./FrontstageProvider\";\nimport type { StagePanelConfig } from \"../stagepanels/StagePanelConfig\";\nimport type { StageUsage } from \"./StageUsage\";\nimport type { Frontstage } from \"./Frontstage\";\nimport { FrontstageUtilities } from \"./FrontstageUtilities\";\n\n/** Widget panel properties used in a {@link StandardFrontstageProps}.\n * @public\n */\nexport type WidgetPanelProps = Omit<\n StagePanelConfig,\n \"widgets\" | \"runtimeProps\" | \"header\" | \"allowedZones\" | \"panelZones\"\n>;\n\n/** Props of a {@link StandardFrontstageProvider}.\n * @public\n */\nexport interface StandardFrontstageProps {\n /* unique stage id. To ensure uniqueness it is common practice to format id like `appName:stageId` */\n id: string;\n /* version id that is used to store state of stage */\n version?: number;\n // Usage of stage. To allow generic UiItemProvides to populate this stage set to `StageUsage.General`.\n usage: StageUsage | string;\n /** The defaultTool is is started when then frontstage loads and whenever any other tools exit.\n * Most of the time, this is the Element Selection Tool (SelectionTool.toolId).\n * Your app can specify its own tool or another core tool as default with this property.\n */\n defaultTool?: string;\n /** Definition of available content groups or a function that provides them */\n contentGroupProps: ContentGroupProps | ContentGroupProvider;\n /** Specify button to use to open backstage. Leave undefined for no backstage button.\n * ```\n * <BackstageAppButton icon={<SvgBentleySystems />} />\n * ```\n * Custom corner button definition\n * ```\n * const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />}\n * label=\"Toggle Backstage display\",\n * execute={() => UiFramework.backstage.getBackstageToggleCommand().execute()} />;\n * ```\n */\n cornerButton?: React.ReactNode;\n /** Set to true if default Navigation aid is not desired */\n hideNavigationAid?: boolean;\n /** Set to true if no tool setting dock is needed. Typically only used in modal stages. */\n hideToolSettings?: boolean;\n /** Set to true if no status bar is needed in stage */\n hideStatusBar?: boolean;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 300, pinned=false, defaultState:StagePanelState.Minimized} */\n leftPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 90, pinned=false, defaultState:StagePanelState.Minimized} */\n topPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 200, pinned=true, defaultState:StagePanelState.Open} */\n rightPanelProps?: WidgetPanelProps;\n /** Props used to set initial size and state of panel. Defaults to:\n * {sizeSpec: 180, pinned=true, defaultState:StagePanelState.Open} */\n bottomPanelProps?: WidgetPanelProps;\n}\n\n/** FrontstageProvider that provides an \"empty\" stage. All tool buttons, statusbar items, and widgets must\n * be provided by one or more item providers, see [[UiItemsProvider]].\n * @public\n * @deprecated in 4.15.0. Use {@link FrontstageUtilities.createStandardFrontstage} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardFrontstageProvider extends FrontstageProvider {\n constructor(private props: StandardFrontstageProps) {\n super();\n }\n\n public override get id(): string {\n return this.props.id;\n }\n\n public override frontstageConfig(): Frontstage {\n const config = FrontstageUtilities.createStandardFrontstage(this.props);\n return config;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useActiveIModelConnection.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/hooks/useActiveIModelConnection.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAM7D;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,gBAAgB,GAAG,SAAS,CAwBxE"}
1
+ {"version":3,"file":"useActiveIModelConnection.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/hooks/useActiveIModelConnection.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAM7D;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,gBAAgB,GAAG,SAAS,CAyBxE"}
@@ -22,6 +22,7 @@ function useActiveIModelConnection() {
22
22
  (0, react_1.useEffect)(() => {
23
23
  // eslint-disable-next-line deprecation/deprecation
24
24
  const handleSyncUiEvent = (args) => {
25
+ // eslint-disable-next-line deprecation/deprecation
25
26
  const eventIds = [SessionState_1.SessionStateActionId.SetIModelConnection];
26
27
  if (eventIds.some((value) => args.eventIds.has(value.toLowerCase()))) {
27
28
  setActiveConnection(UiFramework_1.UiFramework.getIModelConnection());
@@ -1 +1 @@
1
- {"version":3,"file":"useActiveIModelConnection.js","sourceRoot":"","sources":["../../../../src/appui-react/hooks/useActiveIModelConnection.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA4C;AAE5C,wDAA6D;AAC7D,2EAAwE;AACxE,gDAA6C;AAG7C;;;;GAIG;AACH,SAAgB,yBAAyB;IACvC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EACtD,yBAAW,CAAC,mBAAmB,EAAE,CAClC,CAAC;IACF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,mDAAmD;QACnD,MAAM,iBAAiB,GAAG,CAAC,IAAqB,EAAQ,EAAE;YACxD,MAAM,QAAQ,GAAG,CAAC,mCAAoB,CAAC,mBAAmB,CAAC,CAAC;YAC5D,IACE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CACvC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CACvC,EACD,CAAC;gBACD,mBAAmB,CAAC,yBAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC;YACzD,CAAC;QACH,CAAC,CAAC;QAEF,6CAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QACnE,OAAO,GAAG,EAAE;YACV,6CAAqB,CAAC,aAAa,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QACxE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAxBD,8DAwBC","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 Hooks\n */\n\nimport { useEffect, useState } from \"react\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport { SessionStateActionId } from \"../redux/SessionState\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\n\n/** React hook that maintains the active IModelConnection. For this hook to work properly the\n * IModelConnection must be set using UiFramework.setIModelConnection method. This also requires\n * that the host app includes the UiFramework reducer into its Redux store.\n * @public\n */\nexport function useActiveIModelConnection(): IModelConnection | undefined {\n const [activeConnection, setActiveConnection] = useState(\n UiFramework.getIModelConnection()\n );\n useEffect(() => {\n // eslint-disable-next-line deprecation/deprecation\n const handleSyncUiEvent = (args: UiSyncEventArgs): void => {\n const eventIds = [SessionStateActionId.SetIModelConnection];\n if (\n eventIds.some((value: string): boolean =>\n args.eventIds.has(value.toLowerCase())\n )\n ) {\n setActiveConnection(UiFramework.getIModelConnection());\n }\n };\n\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\n return () => {\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\n };\n }, [activeConnection]);\n\n return activeConnection;\n}\n"]}
1
+ {"version":3,"file":"useActiveIModelConnection.js","sourceRoot":"","sources":["../../../../src/appui-react/hooks/useActiveIModelConnection.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA4C;AAE5C,wDAA6D;AAC7D,2EAAwE;AACxE,gDAA6C;AAG7C;;;;GAIG;AACH,SAAgB,yBAAyB;IACvC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EACtD,yBAAW,CAAC,mBAAmB,EAAE,CAClC,CAAC;IACF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,mDAAmD;QACnD,MAAM,iBAAiB,GAAG,CAAC,IAAqB,EAAQ,EAAE;YACxD,mDAAmD;YACnD,MAAM,QAAQ,GAAG,CAAC,mCAAoB,CAAC,mBAAmB,CAAC,CAAC;YAC5D,IACE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CACvC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CACvC,EACD,CAAC;gBACD,mBAAmB,CAAC,yBAAW,CAAC,mBAAmB,EAAE,CAAC,CAAC;YACzD,CAAC;QACH,CAAC,CAAC;QAEF,6CAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QACnE,OAAO,GAAG,EAAE;YACV,6CAAqB,CAAC,aAAa,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QACxE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAzBD,8DAyBC","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 Hooks\n */\n\nimport { useEffect, useState } from \"react\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport { SessionStateActionId } from \"../redux/SessionState\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\n\n/** React hook that maintains the active IModelConnection. For this hook to work properly the\n * IModelConnection must be set using UiFramework.setIModelConnection method. This also requires\n * that the host app includes the UiFramework reducer into its Redux store.\n * @public\n */\nexport function useActiveIModelConnection(): IModelConnection | undefined {\n const [activeConnection, setActiveConnection] = useState(\n UiFramework.getIModelConnection()\n );\n useEffect(() => {\n // eslint-disable-next-line deprecation/deprecation\n const handleSyncUiEvent = (args: UiSyncEventArgs): void => {\n // eslint-disable-next-line deprecation/deprecation\n const eventIds = [SessionStateActionId.SetIModelConnection];\n if (\n eventIds.some((value: string): boolean =>\n args.eventIds.has(value.toLowerCase())\n )\n ) {\n setActiveConnection(UiFramework.getIModelConnection());\n }\n };\n\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\n return () => {\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\n };\n }, [activeConnection]);\n\n return activeConnection;\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  /** @packageDocumentation
2
2
  * @module KeyboardShortcut
3
3
  */
4
- import type { KeyboardShortcutProps } from "../framework/FrameworkKeyboardShortcuts";
5
4
  import { KeyboardShortcut, KeyboardShortcutContainer } from "./KeyboardShortcut";
5
+ import type { KeyboardShortcutProps } from "./KeyboardShortcutProps";
6
6
  /** Keyboard Shortcut Manager
7
7
  * @internal
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"InternalKeyboardShortcut.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/InternalKeyboardShortcut.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAM5B;;GAEG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,MAAM,CAAC,UAAU,CACS;IAElC;;OAEG;WACW,UAAU,IAAI,IAAI;IAMhC,qDAAqD;WACvC,aAAa,CAAC,YAAY,EAAE,qBAAqB,EAAE;IAMjE,sDAAsD;WACxC,YAAY,CAAC,aAAa,EAAE,qBAAqB;IAK/D,qEAAqE;WACvD,UAAU,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,GAAE,OAAe,EAChC,gBAAgB,GAAE,OAAe,EACjC,iBAAiB,GAAE,OAAe,GACjC,OAAO;IAiBV,qDAAqD;IACrD,WAAkB,iBAAiB,IAAI,yBAAyB,CAE/D;IAED,yDAAyD;WAC3C,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI1E,yCAAyC;IACzC,WAAkB,aAAa,IAAI,OAAO,CAGzC;IAED,yBAAyB;WACX,cAAc,IAAI,IAAI;IAQpC,yDAAyD;WAC3C,WAAW,IAAI,IAAI;IAMjC,yCAAyC;WAC3B,SAAS,IAAI,IAAI;IAS/B,gEAAgE;IAChE,WAAkB,OAAO,IAAI,MAAM,CAElC;IACD,gEAAgE;IAChE,WAAkB,OAAO,IAAI,MAAM,CAElC;IAGD,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAqB/B;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAgB/B;CACH"}
1
+ {"version":3,"file":"InternalKeyboardShortcut.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/InternalKeyboardShortcut.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMrE;;GAEG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,MAAM,CAAC,UAAU,CACS;IAElC;;OAEG;WACW,UAAU,IAAI,IAAI;IAMhC,qDAAqD;WACvC,aAAa,CAAC,YAAY,EAAE,qBAAqB,EAAE;IAMjE,sDAAsD;WACxC,YAAY,CAAC,aAAa,EAAE,qBAAqB;IAK/D,qEAAqE;WACvD,UAAU,CACtB,WAAW,EAAE,MAAM,EACnB,eAAe,GAAE,OAAe,EAChC,gBAAgB,GAAE,OAAe,EACjC,iBAAiB,GAAE,OAAe,GACjC,OAAO;IAiBV,qDAAqD;IACrD,WAAkB,iBAAiB,IAAI,yBAAyB,CAE/D;IAED,yDAAyD;WAC3C,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI1E,yCAAyC;IACzC,WAAkB,aAAa,IAAI,OAAO,CAGzC;IAED,yBAAyB;WACX,cAAc,IAAI,IAAI;IAQpC,yDAAyD;WAC3C,WAAW,IAAI,IAAI;IAMjC,yCAAyC;WAC3B,SAAS,IAAI,IAAI;IAS/B,gEAAgE;IAChE,WAAkB,OAAO,IAAI,MAAM,CAElC;IACD,gEAAgE;IAChE,WAAkB,OAAO,IAAI,MAAM,CAElC;IAED,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAqB/B;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAgB/B;CACH"}
@@ -91,7 +91,6 @@ class InternalKeyboardShortcutManager {
91
91
  }
92
92
  exports.InternalKeyboardShortcutManager = InternalKeyboardShortcutManager;
93
93
  InternalKeyboardShortcutManager._shortcuts = new KeyboardShortcut_1.KeyboardShortcutContainer();
94
- // eslint-disable-next-line deprecation/deprecation
95
94
  InternalKeyboardShortcutManager._handleSyncUiEvent = (args) => {
96
95
  const updateBooleanValue = (booleanValue) => {
97
96
  if (SyncUiEventDispatcher_1.SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, booleanValue.syncEventIds))
@@ -1 +1 @@
1
- {"version":3,"file":"InternalKeyboardShortcut.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/InternalKeyboardShortcut.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgE;AAChE,mEAAgE;AAEhE,iEAA8D;AAC9D,y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,EACb,YAAY,CAAC,YAAY,CAC1B;YAED,YAAY,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,QAA0B,EAAE,EAAE;QACtD,IAAI,QAAQ,CAAC,UAAU,YAAY,wCAAuB;YACxD,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,QAAQ,CAAC,QAAQ,YAAY,wCAAuB;YACtD,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,+BAA+B,CAAC,kBAAkB,CAChD,+BAA+B,CAAC,UAAU,CAAC,6BAA6B,EAAE,EAC1E,gBAAgB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEa,kDAAkB,GAAG,CAClC,SAA6B,EAC7B,QAAwB,EACxB,EAAE;IACF,SAAS,CAAC,OAAO,CAAC,CAAC,QAA0B,EAAE,EAAE;QAC/C,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEnB,IAAI,QAAQ,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,EAAE,CAAC;YAC/D,MAAM,cAAc,GAClB,QAAQ,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,CAAC;YAC7D,+BAA+B,CAAC,kBAAkB,CAChD,cAAc,EACd,QAAQ,CACT,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,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 KeyboardShortcut\n */\n\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport type { KeyboardShortcutProps } from \"../framework/FrameworkKeyboardShortcuts\";\nimport { KeyboardShortcutMenu } from \"./KeyboardShortcutMenu\";\nimport {\n KeyboardShortcut,\n KeyboardShortcutContainer,\n} from \"./KeyboardShortcut\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\n\ntype OnShortcutFunc = (shortcut: KeyboardShortcut) => void;\n\n/** Keyboard Shortcut Manager\n * @internal\n */\nexport class InternalKeyboardShortcutManager {\n private static _shortcuts: KeyboardShortcutContainer =\n new KeyboardShortcutContainer();\n\n /** Initialize the Keyboard Shortcut manager\n * @internal\n */\n public static initialize(): void {\n SyncUiEventDispatcher.onSyncUiEvent.addListener(\n InternalKeyboardShortcutManager._handleSyncUiEvent\n );\n }\n\n /** Loads Keyboard Shortcuts into the managed list */\n public static loadShortcuts(shortcutList: KeyboardShortcutProps[]) {\n shortcutList.forEach((shortcutProps: KeyboardShortcutProps) => {\n this.loadShortcut(shortcutProps);\n });\n }\n\n /** Loads a Keyboard Shortcut into the managed list */\n public static loadShortcut(shortcutProps: KeyboardShortcutProps) {\n const shortcut = new KeyboardShortcut(shortcutProps);\n this._shortcuts.registerKey(shortcut.keyMapKey, shortcut);\n }\n\n /** Processes a keystroke and invokes a matching Keyboard Shortcut */\n public static processKey(\n keyboardKey: string,\n isAltKeyPressed: boolean = false,\n isCtrlKeyPressed: boolean = false,\n isShiftKeyPressed: boolean = false\n ): boolean {\n const keyMapKey = KeyboardShortcutContainer.generateKeyMapKey(\n keyboardKey,\n isAltKeyPressed,\n isCtrlKeyPressed,\n isShiftKeyPressed\n );\n\n const shortcut = this.getShortcut(keyMapKey);\n if (shortcut) {\n shortcut.itemPicked();\n return true;\n }\n\n return false;\n }\n\n /** Returns the managed list of Keyboard Shortcuts */\n public static get shortcutContainer(): KeyboardShortcutContainer {\n return this._shortcuts;\n }\n\n /** Returns a Keyboard Shortcut from the managed lists */\n public static getShortcut(keyMapKey: string): KeyboardShortcut | undefined {\n return this._shortcuts.findKey(keyMapKey);\n }\n\n /** Determines if focus is set to Home */\n public static get isFocusOnHome(): boolean {\n const element = document.activeElement as HTMLElement;\n return element && element === document.body;\n }\n\n /** Sets focus to Home */\n public static setFocusToHome(): void {\n const element = document.activeElement as HTMLElement;\n if (element && element !== document.body) {\n element.blur();\n document.body.focus();\n }\n }\n\n /** Displays the Keyboard Shortcuts menu at the cursor */\n public static displayMenu(): void {\n if (this._shortcuts.areKeyboardShortcutsAvailable()) {\n this._shortcuts.showShortcutsMenu();\n }\n }\n\n /** Closes the Keyboard Shortcuts menu */\n public static closeMenu(): void {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.emit({\n menuVisible: false,\n menuX: 0,\n menuY: 0,\n shortcuts: undefined,\n });\n }\n\n /** Returns the cursor X position, which is mouseEvent.pageX. */\n public static get cursorX(): number {\n return CursorInformation.cursorX;\n }\n /** Returns the cursor Y position, which is mouseEvent.pageY. */\n public static get cursorY(): number {\n return CursorInformation.cursorY;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n private static _handleSyncUiEvent = (args: UiSyncEventArgs) => {\n const updateBooleanValue = (booleanValue: ConditionalBooleanValue) => {\n if (\n SyncUiEventDispatcher.hasEventOfInterest(\n args.eventIds,\n booleanValue.syncEventIds\n )\n )\n booleanValue.refresh();\n };\n const handleForSyncIds = (shortcut: KeyboardShortcut) => {\n if (shortcut.isDisabled instanceof ConditionalBooleanValue)\n updateBooleanValue(shortcut.isDisabled);\n if (shortcut.isHidden instanceof ConditionalBooleanValue)\n updateBooleanValue(shortcut.isHidden);\n };\n\n InternalKeyboardShortcutManager._traverseShortcuts(\n InternalKeyboardShortcutManager._shortcuts.getAvailableKeyboardShortcuts(),\n handleForSyncIds\n );\n };\n\n private static _traverseShortcuts = (\n shortcuts: KeyboardShortcut[],\n callback: OnShortcutFunc\n ) => {\n shortcuts.forEach((shortcut: KeyboardShortcut) => {\n callback(shortcut);\n\n if (shortcut.shortcutContainer.areKeyboardShortcutsAvailable()) {\n const childShortcuts =\n shortcut.shortcutContainer.getAvailableKeyboardShortcuts();\n InternalKeyboardShortcutManager._traverseShortcuts(\n childShortcuts,\n callback\n );\n }\n });\n };\n}\n"]}
1
+ {"version":3,"file":"InternalKeyboardShortcut.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/InternalKeyboardShortcut.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgE;AAChE,mEAAgE;AAChE,iEAA8D;AAC9D,yDAG4B;AAC5B,2EAAwE;AAQxE;;GAEG;AACH,MAAa,+BAA+B;IAI1C;;OAEG;IACI,MAAM,CAAC,UAAU;QACtB,6CAAqB,CAAC,aAAa,CAAC,WAAW,CAC7C,+BAA+B,CAAC,kBAAkB,CACnD,CAAC;IACJ,CAAC;IAED,qDAAqD;IAC9C,MAAM,CAAC,aAAa,CAAC,YAAqC;QAC/D,YAAY,CAAC,OAAO,CAAC,CAAC,aAAoC,EAAE,EAAE;YAC5D,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,YAAY,CAAC,aAAoC;QAC7D,MAAM,QAAQ,GAAG,IAAI,mCAAgB,CAAC,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,qEAAqE;IAC9D,MAAM,CAAC,UAAU,CACtB,WAAmB,EACnB,kBAA2B,KAAK,EAChC,mBAA4B,KAAK,EACjC,oBAA6B,KAAK;QAElC,MAAM,SAAS,GAAG,4CAAyB,CAAC,iBAAiB,CAC3D,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,CAClB,CAAC;QAEF,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,UAAU,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC;Q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;IACnC,CAAC;;AAlGH,0EA4IC;AA3IgB,0CAAU,GACvB,IAAI,4CAAyB,EAAE,CAAC;AAkGnB,kDAAkB,GAAG,CAAC,IAAqB,EAAE,EAAE;IAC5D,MAAM,kBAAkB,GAAG,CAAC,YAAqC,EAAE,EAAE;QACnE,IACE,6CAAqB,CAAC,kBAAkB,CACtC,IAAI,CAAC,QAAQ,EACb,YAAY,CAAC,YAAY,CAC1B;YAED,YAAY,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,QAA0B,EAAE,EAAE;QACtD,IAAI,QAAQ,CAAC,UAAU,YAAY,wCAAuB;YACxD,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,QAAQ,CAAC,QAAQ,YAAY,wCAAuB;YACtD,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,+BAA+B,CAAC,kBAAkB,CAChD,+BAA+B,CAAC,UAAU,CAAC,6BAA6B,EAAE,EAC1E,gBAAgB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEa,kDAAkB,GAAG,CAClC,SAA6B,EAC7B,QAAwB,EACxB,EAAE;IACF,SAAS,CAAC,OAAO,CAAC,CAAC,QAA0B,EAAE,EAAE;QAC/C,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEnB,IAAI,QAAQ,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,EAAE,CAAC;YAC/D,MAAM,cAAc,GAClB,QAAQ,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,CAAC;YAC7D,+BAA+B,CAAC,kBAAkB,CAChD,cAAc,EACd,QAAQ,CACT,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,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 KeyboardShortcut\n */\n\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport { KeyboardShortcutMenu } from \"./KeyboardShortcutMenu\";\nimport {\n KeyboardShortcut,\n KeyboardShortcutContainer,\n} from \"./KeyboardShortcut\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\nimport type { KeyboardShortcutProps } from \"./KeyboardShortcutProps\";\n\n/* eslint-disable deprecation/deprecation */\n\ntype OnShortcutFunc = (shortcut: KeyboardShortcut) => void;\n\n/** Keyboard Shortcut Manager\n * @internal\n */\nexport class InternalKeyboardShortcutManager {\n private static _shortcuts: KeyboardShortcutContainer =\n new KeyboardShortcutContainer();\n\n /** Initialize the Keyboard Shortcut manager\n * @internal\n */\n public static initialize(): void {\n SyncUiEventDispatcher.onSyncUiEvent.addListener(\n InternalKeyboardShortcutManager._handleSyncUiEvent\n );\n }\n\n /** Loads Keyboard Shortcuts into the managed list */\n public static loadShortcuts(shortcutList: KeyboardShortcutProps[]) {\n shortcutList.forEach((shortcutProps: KeyboardShortcutProps) => {\n this.loadShortcut(shortcutProps);\n });\n }\n\n /** Loads a Keyboard Shortcut into the managed list */\n public static loadShortcut(shortcutProps: KeyboardShortcutProps) {\n const shortcut = new KeyboardShortcut(shortcutProps);\n this._shortcuts.registerKey(shortcut.keyMapKey, shortcut);\n }\n\n /** Processes a keystroke and invokes a matching Keyboard Shortcut */\n public static processKey(\n keyboardKey: string,\n isAltKeyPressed: boolean = false,\n isCtrlKeyPressed: boolean = false,\n isShiftKeyPressed: boolean = false\n ): boolean {\n const keyMapKey = KeyboardShortcutContainer.generateKeyMapKey(\n keyboardKey,\n isAltKeyPressed,\n isCtrlKeyPressed,\n isShiftKeyPressed\n );\n\n const shortcut = this.getShortcut(keyMapKey);\n if (shortcut) {\n shortcut.itemPicked();\n return true;\n }\n\n return false;\n }\n\n /** Returns the managed list of Keyboard Shortcuts */\n public static get shortcutContainer(): KeyboardShortcutContainer {\n return this._shortcuts;\n }\n\n /** Returns a Keyboard Shortcut from the managed lists */\n public static getShortcut(keyMapKey: string): KeyboardShortcut | undefined {\n return this._shortcuts.findKey(keyMapKey);\n }\n\n /** Determines if focus is set to Home */\n public static get isFocusOnHome(): boolean {\n const element = document.activeElement as HTMLElement;\n return element && element === document.body;\n }\n\n /** Sets focus to Home */\n public static setFocusToHome(): void {\n const element = document.activeElement as HTMLElement;\n if (element && element !== document.body) {\n element.blur();\n document.body.focus();\n }\n }\n\n /** Displays the Keyboard Shortcuts menu at the cursor */\n public static displayMenu(): void {\n if (this._shortcuts.areKeyboardShortcutsAvailable()) {\n this._shortcuts.showShortcutsMenu();\n }\n }\n\n /** Closes the Keyboard Shortcuts menu */\n public static closeMenu(): void {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.emit({\n menuVisible: false,\n menuX: 0,\n menuY: 0,\n shortcuts: undefined,\n });\n }\n\n /** Returns the cursor X position, which is mouseEvent.pageX. */\n public static get cursorX(): number {\n return CursorInformation.cursorX;\n }\n /** Returns the cursor Y position, which is mouseEvent.pageY. */\n public static get cursorY(): number {\n return CursorInformation.cursorY;\n }\n\n private static _handleSyncUiEvent = (args: UiSyncEventArgs) => {\n const updateBooleanValue = (booleanValue: ConditionalBooleanValue) => {\n if (\n SyncUiEventDispatcher.hasEventOfInterest(\n args.eventIds,\n booleanValue.syncEventIds\n )\n )\n booleanValue.refresh();\n };\n const handleForSyncIds = (shortcut: KeyboardShortcut) => {\n if (shortcut.isDisabled instanceof ConditionalBooleanValue)\n updateBooleanValue(shortcut.isDisabled);\n if (shortcut.isHidden instanceof ConditionalBooleanValue)\n updateBooleanValue(shortcut.isHidden);\n };\n\n InternalKeyboardShortcutManager._traverseShortcuts(\n InternalKeyboardShortcutManager._shortcuts.getAvailableKeyboardShortcuts(),\n handleForSyncIds\n );\n };\n\n private static _traverseShortcuts = (\n shortcuts: KeyboardShortcut[],\n callback: OnShortcutFunc\n ) => {\n shortcuts.forEach((shortcut: KeyboardShortcut) => {\n callback(shortcut);\n\n if (shortcut.shortcutContainer.areKeyboardShortcutsAvailable()) {\n const childShortcuts =\n shortcut.shortcutContainer.getAvailableKeyboardShortcuts();\n InternalKeyboardShortcutManager._traverseShortcuts(\n childShortcuts,\n callback\n );\n }\n });\n };\n}\n"]}
@@ -3,14 +3,16 @@
3
3
  */
4
4
  import type { ActionButtonItemDef } from "../shared/ActionButtonItemDef";
5
5
  import { ItemDefBase } from "../shared/ItemDefBase";
6
- import type { KeyboardShortcutProps } from "../framework/FrameworkKeyboardShortcuts";
6
+ import type { KeyboardShortcutProps } from "./KeyboardShortcutProps";
7
7
  /** Keyboard Shortcut used to execute an action
8
8
  * @public
9
+ * @deprecated in 4.15.0. Use {@link KeyboardShortcutProps} or {@link FrameworkKeyboardShortcut} instead.
9
10
  */
10
11
  export declare class KeyboardShortcut extends ItemDefBase {
11
12
  private _key;
12
13
  private _item?;
13
14
  private _shortcuts;
15
+ private _execute?;
14
16
  private _isAltKeyRequired;
15
17
  private _isCtrlKeyRequired;
16
18
  private _isShiftKeyRequired;
@@ -44,6 +46,7 @@ export declare class KeyboardShortcut extends ItemDefBase {
44
46
  }
45
47
  /** Keyboard Shortcut Container
46
48
  * @public
49
+ * @deprecated in 4.15.0. Use {@link FrameworkKeyboardShortcutContainer} instead.
47
50
  */
48
51
  export declare class KeyboardShortcutContainer {
49
52
  private _keyMap;
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcut.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcut.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAq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gBAAgB,GAAG,SAAS;IAIhE,wDAAwD;IACxD,IAAW,SAAS,IAAI,MAAM,CAQ7B;IAED,wEAAwE;IACxE,IAAW,IAAI,IAAI,mBAAmB,GAAG,SAAS,CAEjD;IAED,uFAAuF;IAChF,UAAU,IAAI,IAAI;IAWzB,4BAA4B;IAC5B,IAAW,GAAG,IAAI,MAAM,CAEvB;IACD,yCAAyC;IACzC,IAAW,gBAAgB,IAAI,OAAO,CAErC;IACD,0CAA0C;IAC1C,IAAW,iBAAiB,IAAI,OAAO,CAEtC;IACD,2CAA2C;IAC3C,IAAW,kBAAkB,IAAI,OAAO,CAEvC;IACD,2CAA2C;IAC3C,IAAW,aAAa,IAAI,OAAO,CAElC;IACD,0CAA0C;IAC1C,IAAW,YAAY,IAAI,OAAO,CAEjC;CACF;AAED;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,OAAO,CAGX;IACJ,OAAO,CAAC,SAAS,CAAqD;IAEtE,oFAAoF;IAC7E,WAAW,CAChB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,gBAAgB,GAC3B,gBAAgB,GAAG,SAAS;IAqB/B,4DAA4D;IACrD,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI/D,2EAA2E;IACpE,6BAA6B,IAAI,OAAO;IAI/C,yDAAyD;IAClD,SAAS,IAAI,IAAI;IAKjB,6BAA6B,IAAI,gBAAgB,EAAE;IAI1D,4FAA4F;WAC9E,iBAAiB,CAC7B,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,OAAO,EACzB,iBAAiB,EAAE,OAAO,EAC1B,kBAAkB,EAAE,OAAO,GAC1B,MAAM;IAUT,mEAAmE;IAC5D,iBAAiB;CASzB"}
@@ -12,6 +12,7 @@ const appui_abstract_1 = require("@itwin/appui-abstract");
12
12
  const ItemDefBase_1 = require("../shared/ItemDefBase");
13
13
  const UiFramework_1 = require("../UiFramework");
14
14
  const KeyboardShortcutMenu_1 = require("./KeyboardShortcutMenu");
15
+ /* eslint-disable deprecation/deprecation */
15
16
  var FunctionKey;
16
17
  (function (FunctionKey) {
17
18
  FunctionKey["F1"] = "F1";
@@ -54,6 +55,7 @@ var SpecialKey;
54
55
  })(SpecialKey || (SpecialKey = {}));
55
56
  /** Keyboard Shortcut used to execute an action
56
57
  * @public
58
+ * @deprecated in 4.15.0. Use {@link KeyboardShortcutProps} or {@link FrameworkKeyboardShortcut} instead.
57
59
  */
58
60
  class KeyboardShortcut extends ItemDefBase_1.ItemDefBase {
59
61
  constructor(props) {
@@ -83,6 +85,9 @@ class KeyboardShortcut extends ItemDefBase_1.ItemDefBase {
83
85
  if (this.isHidden === undefined)
84
86
  this.isHidden = this._item.isHidden;
85
87
  }
88
+ else if (props.execute) {
89
+ this._execute = props.execute;
90
+ }
86
91
  else if (props.shortcuts) {
87
92
  props.shortcuts.forEach((childProps) => {
88
93
  const shortcut = new KeyboardShortcut(childProps);
@@ -90,8 +95,7 @@ class KeyboardShortcut extends ItemDefBase_1.ItemDefBase {
90
95
  });
91
96
  }
92
97
  else {
93
- // eslint-disable-next-line deprecation/deprecation
94
- throw new appui_abstract_1.UiError(UiFramework_1.UiFramework.loggerCategory(this), `Either 'item' or 'shortcuts' must be specified for '${props.key}' key.`);
98
+ throw new appui_abstract_1.UiError(UiFramework_1.UiFramework.loggerCategory(this), `Either 'item', 'execute' or 'shortcuts' must be specified for '${props.key}' key.`);
95
99
  }
96
100
  if (props.isAltKeyRequired !== undefined)
97
101
  this._isAltKeyRequired = props.isAltKeyRequired;
@@ -130,6 +134,8 @@ class KeyboardShortcut extends ItemDefBase_1.ItemDefBase {
130
134
  setTimeout(() => {
131
135
  if (this._item)
132
136
  this._item.execute();
137
+ else if (this._execute)
138
+ this._execute();
133
139
  });
134
140
  }
135
141
  }
@@ -161,6 +167,7 @@ class KeyboardShortcut extends ItemDefBase_1.ItemDefBase {
161
167
  exports.KeyboardShortcut = KeyboardShortcut;
162
168
  /** Keyboard Shortcut Container
163
169
  * @public
170
+ * @deprecated in 4.15.0. Use {@link FrameworkKeyboardShortcutContainer} instead.
164
171
  */
165
172
  class KeyboardShortcutContainer {
166
173
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcut.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcut.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgD;AAEhD,uDAAoD;AAEpD,gDAA6C;AAC7C,iEAA8D;AAE9D,IAAK,WAaJ;AAbD,WAAK,WAAW;IACd,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACb,CAAC,EAbI,WAAW,KAAX,WAAW,QAaf;AAED,IAAK,UAuBJ;AAvBD,WAAK,UAAU;IACb,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,8BAAgB,CAAA;IAChB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAvBI,UAAU,KAAV,UAAU,QAuBd;AAED;;GAEG;AACH,MAAa,gBAAiB,SAAQ,yBAAW;IAW/C,YAAY,KAA4B;QACtC,KAAK,CAAC,KAAK,CAAC,C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E,SAAS,GAAG,QAAQ,SAAS,EAAE,CAAC;QAEvD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,mEAAmE;IAC5D,iBAAiB;QACtB,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,2CAAoB,CAAC,2BAA2B,CAAC,IAAI,CAAC;YACpD,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,yBAAW,CAAC,iBAAiB,CAAC,OAAO,GAAG,MAAM;YACrD,KAAK,EAAE,yBAAW,CAAC,iBAAiB,CAAC,OAAO,GAAG,MAAM;YACrD,SAAS,EAAE,IAAI,CAAC,6BAA6B,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA9ED,8DA8EC","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 KeyboardShortcut\n */\n\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { ActionButtonItemDef } from \"../shared/ActionButtonItemDef\";\nimport { ItemDefBase } from \"../shared/ItemDefBase\";\nimport type { KeyboardShortcutProps } from \"../framework/FrameworkKeyboardShortcuts\";\nimport { UiFramework } from \"../UiFramework\";\nimport { KeyboardShortcutMenu } from \"./KeyboardShortcutMenu\";\n\nenum FunctionKey {\n F1 = \"F1\",\n F2 = \"F2\",\n F3 = \"F3\",\n F4 = \"F4\",\n F5 = \"F5\",\n F6 = \"F6\",\n F7 = \"F7\",\n F8 = \"F8\",\n F9 = \"F9\",\n F10 = \"F10\",\n F11 = \"F11\",\n F12 = \"F12\",\n}\n\nenum SpecialKey {\n Home = \"Home\",\n End = \"End\",\n PageUp = \"PageUp\",\n PageDown = \"PageDown\",\n Escape = \"Escape\",\n Delete = \"Delete\",\n Insert = \"Insert\",\n Tab = \"Tab\",\n ArrowLeft = \"ArrowLeft\",\n ArrowRight = \"ArrowRight\",\n ArrowUp = \"ArrowUp\",\n ArrowDown = \"ArrowDown\",\n Enter = \"Enter\",\n Return = \"Enter\", // eslint-disable-line @typescript-eslint/no-duplicate-enum-values\n Space = \" \",\n Backspace = \"Backspace\",\n Clear = \"Clear\",\n Divide = \"Divide\",\n Multiply = \"Multiply\",\n Subtract = \"Subtract\",\n Add = \"Add\",\n Decimal = \"Decimal\",\n}\n\n/** Keyboard Shortcut used to execute an action\n * @public\n */\nexport class KeyboardShortcut extends ItemDefBase {\n private _key: string;\n private _item?: ActionButtonItemDef;\n private _shortcuts: KeyboardShortcutContainer;\n\n private _isAltKeyRequired: boolean = false;\n private _isCtrlKeyRequired: boolean = false;\n private _isShiftKeyRequired: boolean = false;\n private _isFunctionKey: boolean = false;\n private _isSpecialKey: boolean = false;\n\n constructor(props: KeyboardShortcutProps) {\n super(props);\n\n this._key = props.key;\n\n if (this._key in FunctionKey) this._isFunctionKey = true;\n if (this._key in SpecialKey) this._isSpecialKey = true;\n\n this._shortcuts = new KeyboardShortcutContainer();\n\n if (props.item) {\n this._item = props.item;\n\n // Copy over icon, label & tooltip from the item\n if (!this.iconSpec) this.iconSpec = this._item.iconSpec;\n if (!this.label) this.setLabel(this._item.label);\n if (!this.tooltip) this.setTooltip(this._item.tooltip);\n if (this.isDisabled === undefined)\n this.isDisabled = this._item.isDisabled;\n if (this.isHidden === undefined) this.isHidden = this._item.isHidden;\n } else if (props.shortcuts) {\n props.shortcuts.forEach((childProps: KeyboardShortcutProps) => {\n const shortcut = new KeyboardShortcut(childProps);\n this._shortcuts.registerKey(shortcut.keyMapKey, shortcut);\n });\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item' or 'shortcuts' must be specified for '${props.key}' key.`\n );\n }\n\n if (props.isAltKeyRequired !== undefined)\n this._isAltKeyRequired = props.isAltKeyRequired;\n if (props.isCtrlKeyRequired !== undefined)\n this._isCtrlKeyRequired = props.isCtrlKeyRequired;\n if (props.isShiftKeyRequired !== undefined)\n this._isShiftKeyRequired = props.isShiftKeyRequired;\n }\n\n /** Returns the id for this shortcut */\n public get id(): string {\n return this.keyMapKey;\n }\n\n /** Returns the shortcut container */\n public get shortcutContainer(): KeyboardShortcutContainer {\n return this._shortcuts;\n }\n\n /** Finds a shortcut with a given key in the shortcut's container */\n public getShortcut(mapKey: string): KeyboardShortcut | undefined {\n return this._shortcuts.findKey(mapKey);\n }\n\n /** Returns the shortcut's key map key used as the id */\n public get keyMapKey(): string {\n const keyMapKey = KeyboardShortcutContainer.generateKeyMapKey(\n this.key,\n this._isAltKeyRequired,\n this._isCtrlKeyRequired,\n this._isShiftKeyRequired\n );\n return keyMapKey;\n }\n\n /** Returns the [[ActionButtonItemDef]] associated with this shortcut */\n public get item(): ActionButtonItemDef | undefined {\n return this._item;\n }\n\n /** Called when the [[ActionButtonItemDef]] associated with this shortcut is invoked */\n public itemPicked(): void {\n if (this._shortcuts.areKeyboardShortcutsAvailable()) {\n this._shortcuts.showShortcutsMenu();\n } else {\n setTimeout(() => {\n if (this._item) this._item.execute();\n });\n }\n }\n\n /** Gets the keyboard key */\n public get key(): string {\n return this._key;\n }\n /** Gets whether the Alt key required. */\n public get isAltKeyRequired(): boolean {\n return this._isAltKeyRequired;\n }\n /** Gets whether the Ctrl key required. */\n public get isCtrlKeyRequired(): boolean {\n return this._isCtrlKeyRequired;\n }\n /** Gets whether the Shift key required. */\n public get isShiftKeyRequired(): boolean {\n return this._isShiftKeyRequired;\n }\n /** Gets whether this is a Function key. */\n public get isFunctionKey(): boolean {\n return this._isFunctionKey;\n }\n /** Gets whether this is a Special key. */\n public get isSpecialKey(): boolean {\n return this._isSpecialKey;\n }\n}\n\n/** Keyboard Shortcut Container\n * @public\n */\nexport class KeyboardShortcutContainer {\n private _keyMap: Map<string, KeyboardShortcut> = new Map<\n string,\n KeyboardShortcut\n >();\n private _keyArray: KeyboardShortcut[] = new Array<KeyboardShortcut>();\n\n /** Registers a Keyboard Shortcut associated with a given key in the managed list */\n public registerKey(\n keyMapKey: string,\n inShortcut: KeyboardShortcut\n ): KeyboardShortcut | undefined {\n let shortcut: KeyboardShortcut | undefined;\n\n if ((shortcut = this.findKey(keyMapKey)) === undefined) {\n shortcut = inShortcut;\n this._keyArray.push(shortcut);\n } else {\n const index = this._keyArray.findIndex((value: KeyboardShortcut) => {\n return value.keyMapKey === keyMapKey;\n });\n if (index >= 0) {\n shortcut = inShortcut;\n this._keyArray[index] = shortcut;\n }\n }\n\n if (shortcut) this._keyMap.set(keyMapKey, shortcut);\n\n return shortcut;\n }\n\n /** Finds a Keyboard Shortcut associated with a given key */\n public findKey(keyMapKey: string): KeyboardShortcut | undefined {\n return this._keyMap.get(keyMapKey);\n }\n\n /** Determines if any Keyboard Shortcuts are available in this container */\n public areKeyboardShortcutsAvailable(): boolean {\n return this._keyMap.size !== 0;\n }\n\n /** Empties any Keyboard Shortcuts from this container */\n public emptyData(): void {\n this._keyMap.clear();\n this._keyArray.length = 0;\n }\n\n public getAvailableKeyboardShortcuts(): KeyboardShortcut[] {\n return this._keyArray.slice();\n }\n\n /** Generates a key used for storing and finding the Keyboard Shortcuts in this container */\n public static generateKeyMapKey(\n keyboardKey: string,\n isAltKeyRequired: boolean,\n isCtrlKeyRequired: boolean,\n isShiftKeyRequired: boolean\n ): string {\n let keyMapKey = keyboardKey;\n\n if (isAltKeyRequired) keyMapKey = `Alt+${keyMapKey}`;\n if (isShiftKeyRequired) keyMapKey = `Shift+${keyMapKey}`;\n if (isCtrlKeyRequired) keyMapKey = `Ctrl+${keyMapKey}`;\n\n return keyMapKey;\n }\n\n /** Displays a menu for the Keyboard Shortcuts in this container */\n public showShortcutsMenu() {\n const offset = 8;\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.emit({\n menuVisible: true,\n menuX: UiFramework.keyboardShortcuts.cursorX - offset,\n menuY: UiFramework.keyboardShortcuts.cursorY - offset,\n shortcuts: this.getAvailableKeyboardShortcuts(),\n });\n }\n}\n"]}
1
+ {"version":3,"file":"KeyboardShortcut.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcut.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgD;AAEhD,uDAAoD;AACpD,gDAA6C;AAC7C,iEAA8D;AAO9D,4CAA4C;AAE5C,IAAK,WAaJ;AAbD,WAAK,WAAW;IACd,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACb,CAAC,EAbI,WAAW,KAAX,WAAW,QAaf;AAED,IAAK,UAuBJ;AAvBD,WAAK,UAAU;IACb,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,8BAAgB,CAAA;IAChB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAvBI,UAAU,KAAV,UAAU,QAuBd;AAED;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,yBAAW;IAY/C,YAAY,KAA4B;QACtC,KAAK,CAAC,KAAK,CAAC,CAAC;QAPP,sBAAiB,GAAY,KAAK,CAAC;QACnC,uBAAkB,GAAY,KAAK,CAAC;QACpC,wBAAmB,GAAY,KAAK,CAAC;QACrC,mBAAc,GAAY,KAAK,CAAC;QAChC,kB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C;QACzD,IAAI,iBAAiB;YAAE,SAAS,GAAG,QAAQ,SAAS,EAAE,CAAC;QAEvD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,mEAAmE;IAC5D,iBAAiB;QACtB,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,2CAAoB,CAAC,2BAA2B,CAAC,IAAI,CAAC;YACpD,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,yBAAW,CAAC,iBAAiB,CAAC,OAAO,GAAG,MAAM;YACrD,KAAK,EAAE,yBAAW,CAAC,iBAAiB,CAAC,OAAO,GAAG,MAAM;YACrD,SAAS,EAAE,IAAI,CAAC,6BAA6B,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA9ED,8DA8EC","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 KeyboardShortcut\n */\n\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { ActionButtonItemDef } from \"../shared/ActionButtonItemDef\";\nimport { ItemDefBase } from \"../shared/ItemDefBase\";\nimport { UiFramework } from \"../UiFramework\";\nimport { KeyboardShortcutMenu } from \"./KeyboardShortcutMenu\";\nimport type { KeyboardShortcutProps } from \"./KeyboardShortcutProps\";\nimport type {\n FrameworkKeyboardShortcut,\n FrameworkKeyboardShortcutContainer,\n} from \"../framework/FrameworkKeyboardShortcuts\";\n\n/* eslint-disable deprecation/deprecation */\n\nenum FunctionKey {\n F1 = \"F1\",\n F2 = \"F2\",\n F3 = \"F3\",\n F4 = \"F4\",\n F5 = \"F5\",\n F6 = \"F6\",\n F7 = \"F7\",\n F8 = \"F8\",\n F9 = \"F9\",\n F10 = \"F10\",\n F11 = \"F11\",\n F12 = \"F12\",\n}\n\nenum SpecialKey {\n Home = \"Home\",\n End = \"End\",\n PageUp = \"PageUp\",\n PageDown = \"PageDown\",\n Escape = \"Escape\",\n Delete = \"Delete\",\n Insert = \"Insert\",\n Tab = \"Tab\",\n ArrowLeft = \"ArrowLeft\",\n ArrowRight = \"ArrowRight\",\n ArrowUp = \"ArrowUp\",\n ArrowDown = \"ArrowDown\",\n Enter = \"Enter\",\n Return = \"Enter\", // eslint-disable-line @typescript-eslint/no-duplicate-enum-values\n Space = \" \",\n Backspace = \"Backspace\",\n Clear = \"Clear\",\n Divide = \"Divide\",\n Multiply = \"Multiply\",\n Subtract = \"Subtract\",\n Add = \"Add\",\n Decimal = \"Decimal\",\n}\n\n/** Keyboard Shortcut used to execute an action\n * @public\n * @deprecated in 4.15.0. Use {@link KeyboardShortcutProps} or {@link FrameworkKeyboardShortcut} instead.\n */\nexport class KeyboardShortcut extends ItemDefBase {\n private _key: string;\n private _item?: ActionButtonItemDef;\n private _shortcuts: KeyboardShortcutContainer;\n private _execute?: () => void;\n\n private _isAltKeyRequired: boolean = false;\n private _isCtrlKeyRequired: boolean = false;\n private _isShiftKeyRequired: boolean = false;\n private _isFunctionKey: boolean = false;\n private _isSpecialKey: boolean = false;\n\n constructor(props: KeyboardShortcutProps) {\n super(props);\n\n this._key = props.key;\n\n if (this._key in FunctionKey) this._isFunctionKey = true;\n if (this._key in SpecialKey) this._isSpecialKey = true;\n\n this._shortcuts = new KeyboardShortcutContainer();\n\n if (props.item) {\n this._item = props.item;\n\n // Copy over icon, label & tooltip from the item\n if (!this.iconSpec) this.iconSpec = this._item.iconSpec;\n if (!this.label) this.setLabel(this._item.label);\n if (!this.tooltip) this.setTooltip(this._item.tooltip);\n if (this.isDisabled === undefined)\n this.isDisabled = this._item.isDisabled;\n if (this.isHidden === undefined) this.isHidden = this._item.isHidden;\n } else if (props.execute) {\n this._execute = props.execute;\n } else if (props.shortcuts) {\n props.shortcuts.forEach((childProps: KeyboardShortcutProps) => {\n const shortcut = new KeyboardShortcut(childProps);\n this._shortcuts.registerKey(shortcut.keyMapKey, shortcut);\n });\n } else {\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item', 'execute' or 'shortcuts' must be specified for '${props.key}' key.`\n );\n }\n\n if (props.isAltKeyRequired !== undefined)\n this._isAltKeyRequired = props.isAltKeyRequired;\n if (props.isCtrlKeyRequired !== undefined)\n this._isCtrlKeyRequired = props.isCtrlKeyRequired;\n if (props.isShiftKeyRequired !== undefined)\n this._isShiftKeyRequired = props.isShiftKeyRequired;\n }\n\n /** Returns the id for this shortcut */\n public get id(): string {\n return this.keyMapKey;\n }\n\n /** Returns the shortcut container */\n public get shortcutContainer(): KeyboardShortcutContainer {\n return this._shortcuts;\n }\n\n /** Finds a shortcut with a given key in the shortcut's container */\n public getShortcut(mapKey: string): KeyboardShortcut | undefined {\n return this._shortcuts.findKey(mapKey);\n }\n\n /** Returns the shortcut's key map key used as the id */\n public get keyMapKey(): string {\n const keyMapKey = KeyboardShortcutContainer.generateKeyMapKey(\n this.key,\n this._isAltKeyRequired,\n this._isCtrlKeyRequired,\n this._isShiftKeyRequired\n );\n return keyMapKey;\n }\n\n /** Returns the [[ActionButtonItemDef]] associated with this shortcut */\n public get item(): ActionButtonItemDef | undefined {\n return this._item;\n }\n\n /** Called when the [[ActionButtonItemDef]] associated with this shortcut is invoked */\n public itemPicked(): void {\n if (this._shortcuts.areKeyboardShortcutsAvailable()) {\n this._shortcuts.showShortcutsMenu();\n } else {\n setTimeout(() => {\n if (this._item) this._item.execute();\n else if (this._execute) this._execute();\n });\n }\n }\n\n /** Gets the keyboard key */\n public get key(): string {\n return this._key;\n }\n /** Gets whether the Alt key required. */\n public get isAltKeyRequired(): boolean {\n return this._isAltKeyRequired;\n }\n /** Gets whether the Ctrl key required. */\n public get isCtrlKeyRequired(): boolean {\n return this._isCtrlKeyRequired;\n }\n /** Gets whether the Shift key required. */\n public get isShiftKeyRequired(): boolean {\n return this._isShiftKeyRequired;\n }\n /** Gets whether this is a Function key. */\n public get isFunctionKey(): boolean {\n return this._isFunctionKey;\n }\n /** Gets whether this is a Special key. */\n public get isSpecialKey(): boolean {\n return this._isSpecialKey;\n }\n}\n\n/** Keyboard Shortcut Container\n * @public\n * @deprecated in 4.15.0. Use {@link FrameworkKeyboardShortcutContainer} instead.\n */\nexport class KeyboardShortcutContainer {\n private _keyMap: Map<string, KeyboardShortcut> = new Map<\n string,\n KeyboardShortcut\n >();\n private _keyArray: KeyboardShortcut[] = new Array<KeyboardShortcut>();\n\n /** Registers a Keyboard Shortcut associated with a given key in the managed list */\n public registerKey(\n keyMapKey: string,\n inShortcut: KeyboardShortcut\n ): KeyboardShortcut | undefined {\n let shortcut: KeyboardShortcut | undefined;\n\n if ((shortcut = this.findKey(keyMapKey)) === undefined) {\n shortcut = inShortcut;\n this._keyArray.push(shortcut);\n } else {\n const index = this._keyArray.findIndex((value: KeyboardShortcut) => {\n return value.keyMapKey === keyMapKey;\n });\n if (index >= 0) {\n shortcut = inShortcut;\n this._keyArray[index] = shortcut;\n }\n }\n\n if (shortcut) this._keyMap.set(keyMapKey, shortcut);\n\n return shortcut;\n }\n\n /** Finds a Keyboard Shortcut associated with a given key */\n public findKey(keyMapKey: string): KeyboardShortcut | undefined {\n return this._keyMap.get(keyMapKey);\n }\n\n /** Determines if any Keyboard Shortcuts are available in this container */\n public areKeyboardShortcutsAvailable(): boolean {\n return this._keyMap.size !== 0;\n }\n\n /** Empties any Keyboard Shortcuts from this container */\n public emptyData(): void {\n this._keyMap.clear();\n this._keyArray.length = 0;\n }\n\n public getAvailableKeyboardShortcuts(): KeyboardShortcut[] {\n return this._keyArray.slice();\n }\n\n /** Generates a key used for storing and finding the Keyboard Shortcuts in this container */\n public static generateKeyMapKey(\n keyboardKey: string,\n isAltKeyRequired: boolean,\n isCtrlKeyRequired: boolean,\n isShiftKeyRequired: boolean\n ): string {\n let keyMapKey = keyboardKey;\n\n if (isAltKeyRequired) keyMapKey = `Alt+${keyMapKey}`;\n if (isShiftKeyRequired) keyMapKey = `Shift+${keyMapKey}`;\n if (isCtrlKeyRequired) keyMapKey = `Ctrl+${keyMapKey}`;\n\n return keyMapKey;\n }\n\n /** Displays a menu for the Keyboard Shortcuts in this container */\n public showShortcutsMenu() {\n const offset = 8;\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.emit({\n menuVisible: true,\n menuX: UiFramework.keyboardShortcuts.cursorX - offset,\n menuY: UiFramework.keyboardShortcuts.cursorY - offset,\n shortcuts: this.getAvailableKeyboardShortcuts(),\n });\n }\n}\n"]}
@@ -5,8 +5,9 @@ import * as React from "react";
5
5
  import type { CommonProps } from "@itwin/core-react";
6
6
  import type { KeyboardShortcut } from "./KeyboardShortcut";
7
7
  import { UiEvent } from "@itwin/appui-abstract";
8
- /** State for a [[KeyboardShortcutMenuEvent]] and [[KeyboardShortcutMenu]] component
8
+ /** State of a [[KeyboardShortcutMenuEvent]] and [[KeyboardShortcutMenu]] component
9
9
  * @public
10
+ * @deprecated in 4.15.0. Used internally by {@link KeyboardShortcutMenu} component.
10
11
  */
11
12
  export interface KeyboardShortcutMenuState {
12
13
  menuVisible: boolean;
@@ -16,12 +17,13 @@ export interface KeyboardShortcutMenuState {
16
17
  }
17
18
  /** KeyboardShortcut Menu Event class.
18
19
  * @public
19
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
20
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
20
21
  */
21
22
  export declare class KeyboardShortcutMenuEvent extends UiEvent<KeyboardShortcutMenuState> {
22
23
  }
23
24
  /** React component that displays a context menu at the cursor containing keyboard shortcuts.
24
25
  * @public
26
+ * @deprecated in 4.15.0. Component used internally to display keyboard shortcuts in a context menu.
25
27
  */
26
28
  export declare class KeyboardShortcutMenu extends React.PureComponent<CommonProps, KeyboardShortcutMenuState> {
27
29
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcutMenu.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutMenu.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,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;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,OAAO,CAAC,yBAAyB,CAAC;CAAG;AAEpF;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,KAAK,CAAC,aAAa,CAC3D,WAAW,EACX,yBAAyB,CAC1B;IACC,gBAAgB;IAChB,SAAyB,KAAK,EAAE,yBAAyB,CAIvD;IAEF,uCAAuC;IACvC,gBAAuB,2BAA2B,4BAChB;IAElB,iBAAiB;IAMjB,oBAAoB;IAMpC,OAAO,CAAC,gCAAgC,CAItC;IAEc,MAAM,IAAI,KAAK,CAAC,SAAS;IA6BzC,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,mBAAmB;IAsD3B,OAAO,CAAC,gBAAgB,CAEtB;IAEF,OAAO,CAAC,WAAW,CAGjB;CACH"}
@@ -13,14 +13,14 @@ const core_react_1 = require("@itwin/core-react");
13
13
  const appui_abstract_1 = require("@itwin/appui-abstract");
14
14
  /** KeyboardShortcut Menu Event class.
15
15
  * @public
16
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
16
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
17
17
  */
18
- // eslint-disable-next-line deprecation/deprecation
19
18
  class KeyboardShortcutMenuEvent extends appui_abstract_1.UiEvent {
20
19
  }
21
20
  exports.KeyboardShortcutMenuEvent = KeyboardShortcutMenuEvent;
22
21
  /** React component that displays a context menu at the cursor containing keyboard shortcuts.
23
22
  * @public
23
+ * @deprecated in 4.15.0. Component used internally to display keyboard shortcuts in a context menu.
24
24
  */
25
25
  class KeyboardShortcutMenu extends React.PureComponent {
26
26
  constructor() {
@@ -95,5 +95,5 @@ class KeyboardShortcutMenu extends React.PureComponent {
95
95
  }
96
96
  exports.KeyboardShortcutMenu = KeyboardShortcutMenu;
97
97
  /** Get KeyboardShortcut Menu Event. */
98
- KeyboardShortcutMenu.onKeyboardShortcutMenuEvent = new KeyboardShortcutMenuEvent(); // eslint-disable-line deprecation/deprecation
98
+ KeyboardShortcutMenu.onKeyboardShortcutMenuEvent = new KeyboardShortcutMenuEvent();
99
99
  //# sourceMappingURL=KeyboardShortcutMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardShortcutMenu.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutMenu.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,kDAI2B;AAE3B,0DAAyE;AAYzE;;;GAGG;AACH,mDAAmD;AACnD,MAAa,yBAA0B,SAAQ,wBAAkC;CAAG;AAApF,8DAAoF;AAEpF;;GAEG;AACH,MAAa,oBAAqB,SAAQ,KAAK,CAAC,aAG/C;IAHD;;QAIE,gBAAgB;QACS,UAAK,GAA8B;YAC1D,WAAW,EAAE,KAAK;YAClB,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;SACT,CAAC;QAkBM,qCAAgC,GAAG,CACzC,KAAgC,EAChC,EAAE;YACF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC;QAoGM,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9D,CAAC,CAAC;QAEM,gBAAW,GAAG,CAAC,QAA0B,EAAQ,EAAE;YACzD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC;IA5HiB,iBAAiB;QAC/B,oBAAoB,CAAC,2BAA2B,CAAC,WAAW,CAC1D,IAAI,CAAC,gCAAgC,CACtC,CAAC;IACJ,CAAC;IAEe,oB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2B,GAChD,IAAI,yBAAyB,EAAE,AADiB,CAChB,CAAC,8CAA8C","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 KeyboardShortcut\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport {\n ContextMenuItem,\n ContextSubMenu,\n GlobalContextMenu,\n} from \"@itwin/core-react\";\nimport type { KeyboardShortcut } from \"./KeyboardShortcut\";\nimport { ConditionalBooleanValue, UiEvent } from \"@itwin/appui-abstract\";\n\n/** State for a [[KeyboardShortcutMenuEvent]] and [[KeyboardShortcutMenu]] component\n * @public\n */\nexport interface KeyboardShortcutMenuState {\n menuVisible: boolean;\n menuX: number;\n menuY: number;\n shortcuts?: KeyboardShortcut[];\n}\n\n/** KeyboardShortcut Menu Event class.\n * @public\n * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class KeyboardShortcutMenuEvent extends UiEvent<KeyboardShortcutMenuState> {}\n\n/** React component that displays a context menu at the cursor containing keyboard shortcuts.\n * @public\n */\nexport class KeyboardShortcutMenu extends React.PureComponent<\n CommonProps,\n KeyboardShortcutMenuState\n> {\n /** @internal */\n public override readonly state: KeyboardShortcutMenuState = {\n menuVisible: false,\n menuX: 0,\n menuY: 0,\n };\n\n /** Get KeyboardShortcut Menu Event. */\n public static readonly onKeyboardShortcutMenuEvent =\n new KeyboardShortcutMenuEvent(); // eslint-disable-line deprecation/deprecation\n\n public override componentDidMount() {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.addListener(\n this._handleKeyboardShortcutMenuEvent\n );\n }\n\n public override componentWillUnmount() {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.removeListener(\n this._handleKeyboardShortcutMenuEvent\n );\n }\n\n private _handleKeyboardShortcutMenuEvent = (\n state: KeyboardShortcutMenuState\n ) => {\n this.setState(state);\n };\n\n public override render(): React.ReactNode {\n const { shortcuts, menuX, menuY, menuVisible } = this.state;\n const onClose = this._hideContextMenu;\n\n if (menuVisible) {\n const items = this.getShortcutMenuItems(shortcuts);\n\n return (\n <GlobalContextMenu\n className={this.props.className}\n style={this.props.style}\n identifier=\"keyboard-shortcuts\"\n x={menuX}\n y={menuY}\n opened={menuVisible}\n onEsc={onClose}\n onOutsideClick={onClose}\n edgeLimit={false}\n autoflip={true}\n ignoreNextKeyUp={true} // Executing the shortcut on the keydown, so ignore the keyup in the menu\n >\n {items}\n </GlobalContextMenu>\n );\n }\n\n return null;\n }\n\n private getShortcutMenuItems(\n shortcuts?: KeyboardShortcut[]\n ): React.ReactNode[] {\n const items: React.ReactNode[] = [];\n\n if (shortcuts) {\n shortcuts.forEach((shortcut: KeyboardShortcut, index: number) => {\n const item = this.getShortcutMenuItem(shortcut, index);\n if (item) items.push(item);\n });\n }\n\n return items;\n }\n\n private getShortcutMenuItem(\n shortcut: KeyboardShortcut,\n index: number\n ): React.ReactNode {\n const shortcutKey = shortcut.key;\n const isHidden = ConditionalBooleanValue.getValue(shortcut.isHidden);\n\n // Only pure characters go into the context menu\n if (\n shortcutKey !== shortcut.keyMapKey ||\n shortcut.isFunctionKey ||\n shortcut.isSpecialKey ||\n isHidden\n )\n return null;\n\n let node: React.ReactNode = null;\n let label = shortcut.label;\n const iconSpec = shortcut.iconSpec;\n\n label = `~${shortcutKey.toLocaleUpperCase()} ${label}`;\n\n if (shortcut.shortcutContainer.areKeyboardShortcutsAvailable()) {\n const shortcuts =\n shortcut.shortcutContainer.getAvailableKeyboardShortcuts();\n const items = this.getShortcutMenuItems(shortcuts);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n disabled={shortcut.isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n } else {\n const sel = () => this._itemPicked(shortcut);\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n disabled={shortcut.isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n }\n\n return node;\n }\n\n private _hideContextMenu = () => {\n this.setState({ menuVisible: false, shortcuts: undefined });\n };\n\n private _itemPicked = (shortcut: KeyboardShortcut): void => {\n this._hideContextMenu();\n shortcut.itemPicked();\n };\n}\n"]}
1
+ {"version":3,"file":"KeyboardShortcutMenu.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutMenu.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,kDAI2B;AAE3B,0DAAyE;AAezE;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,wBAAkC;CAAG;AAApF,8DAAoF;AAEpF;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,KAAK,CAAC,aAG/C;IAHD;;QAIE,gBAAgB;QACS,UAAK,GAA8B;YAC1D,WAAW,EAAE,KAAK;YAClB,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;SACT,CAAC;QAkBM,qCAAgC,GAAG,CACzC,KAAgC,EAChC,EAAE;YACF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC;QAoGM,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9D,CAAC,CAAC;QAEM,gBAAW,GAAG,CAAC,QAA0B,EAAQ,EAAE;YACzD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC;IA5HiB,iBAAiB;QAC/B,oBAAoB,CAAC,2BAA2B,CAAC,WAAW,CAC1D,IAAI,CAAC,gCAAgC,CACtC,CAAC;IACJ,CAAC;IAEe,oBAAoB;QAClC,oBAAoB,CAAC,2BAA2B,CAA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ChB","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 KeyboardShortcut\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport {\n ContextMenuItem,\n ContextSubMenu,\n GlobalContextMenu,\n} from \"@itwin/core-react\";\nimport type { KeyboardShortcut } from \"./KeyboardShortcut\";\nimport { ConditionalBooleanValue, UiEvent } from \"@itwin/appui-abstract\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** State of a [[KeyboardShortcutMenuEvent]] and [[KeyboardShortcutMenu]] component\n * @public\n * @deprecated in 4.15.0. Used internally by {@link KeyboardShortcutMenu} component.\n */\nexport interface KeyboardShortcutMenuState {\n menuVisible: boolean;\n menuX: number;\n menuY: number;\n shortcuts?: KeyboardShortcut[];\n}\n\n/** KeyboardShortcut Menu Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\nexport class KeyboardShortcutMenuEvent extends UiEvent<KeyboardShortcutMenuState> {}\n\n/** React component that displays a context menu at the cursor containing keyboard shortcuts.\n * @public\n * @deprecated in 4.15.0. Component used internally to display keyboard shortcuts in a context menu.\n */\nexport class KeyboardShortcutMenu extends React.PureComponent<\n CommonProps,\n KeyboardShortcutMenuState\n> {\n /** @internal */\n public override readonly state: KeyboardShortcutMenuState = {\n menuVisible: false,\n menuX: 0,\n menuY: 0,\n };\n\n /** Get KeyboardShortcut Menu Event. */\n public static readonly onKeyboardShortcutMenuEvent =\n new KeyboardShortcutMenuEvent();\n\n public override componentDidMount() {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.addListener(\n this._handleKeyboardShortcutMenuEvent\n );\n }\n\n public override componentWillUnmount() {\n KeyboardShortcutMenu.onKeyboardShortcutMenuEvent.removeListener(\n this._handleKeyboardShortcutMenuEvent\n );\n }\n\n private _handleKeyboardShortcutMenuEvent = (\n state: KeyboardShortcutMenuState\n ) => {\n this.setState(state);\n };\n\n public override render(): React.ReactNode {\n const { shortcuts, menuX, menuY, menuVisible } = this.state;\n const onClose = this._hideContextMenu;\n\n if (menuVisible) {\n const items = this.getShortcutMenuItems(shortcuts);\n\n return (\n <GlobalContextMenu\n className={this.props.className}\n style={this.props.style}\n identifier=\"keyboard-shortcuts\"\n x={menuX}\n y={menuY}\n opened={menuVisible}\n onEsc={onClose}\n onOutsideClick={onClose}\n edgeLimit={false}\n autoflip={true}\n ignoreNextKeyUp={true} // Executing the shortcut on the keydown, so ignore the keyup in the menu\n >\n {items}\n </GlobalContextMenu>\n );\n }\n\n return null;\n }\n\n private getShortcutMenuItems(\n shortcuts?: KeyboardShortcut[]\n ): React.ReactNode[] {\n const items: React.ReactNode[] = [];\n\n if (shortcuts) {\n shortcuts.forEach((shortcut: KeyboardShortcut, index: number) => {\n const item = this.getShortcutMenuItem(shortcut, index);\n if (item) items.push(item);\n });\n }\n\n return items;\n }\n\n private getShortcutMenuItem(\n shortcut: KeyboardShortcut,\n index: number\n ): React.ReactNode {\n const shortcutKey = shortcut.key;\n const isHidden = ConditionalBooleanValue.getValue(shortcut.isHidden);\n\n // Only pure characters go into the context menu\n if (\n shortcutKey !== shortcut.keyMapKey ||\n shortcut.isFunctionKey ||\n shortcut.isSpecialKey ||\n isHidden\n )\n return null;\n\n let node: React.ReactNode = null;\n let label = shortcut.label;\n const iconSpec = shortcut.iconSpec;\n\n label = `~${shortcutKey.toLocaleUpperCase()} ${label}`;\n\n if (shortcut.shortcutContainer.areKeyboardShortcutsAvailable()) {\n const shortcuts =\n shortcut.shortcutContainer.getAvailableKeyboardShortcuts();\n const items = this.getShortcutMenuItems(shortcuts);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n disabled={shortcut.isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n } else {\n const sel = () => this._itemPicked(shortcut);\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n disabled={shortcut.isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n }\n\n return node;\n }\n\n private _hideContextMenu = () => {\n this.setState({ menuVisible: false, shortcuts: undefined });\n };\n\n private _itemPicked = (shortcut: KeyboardShortcut): void => {\n this._hideContextMenu();\n shortcut.itemPicked();\n };\n}\n"]}
@@ -0,0 +1,60 @@
1
+ /** @packageDocumentation
2
+ * @module KeyboardShortcut
3
+ */
4
+ import type { Key } from "ts-key-enum";
5
+ import type { ActionButtonItemDef } from "../shared/ActionButtonItemDef";
6
+ import type { ConditionalBooleanValue, ConditionalStringValue } from "../shared/ConditionalValue";
7
+ import type { BadgeType, IconProps, IconSpec } from "@itwin/core-react";
8
+ import type { StringGetter } from "@itwin/appui-abstract";
9
+ /** Properties for a Keyboard Shortcut
10
+ * @public
11
+ */
12
+ export interface KeyboardShortcutProps extends IconProps {
13
+ /** The key that invokes the shortcut.
14
+ * This is either an alphanumeric key, a function key or a special key.
15
+ */
16
+ key: string | Key;
17
+ /** The item to execute when this shortcut is invoked. Either 'item' or 'shortcuts' must be specified.
18
+ * @deprecated in 4.15.0. Use properties of this object instead.
19
+ */
20
+ item?: ActionButtonItemDef;
21
+ /** Function to run when the keyboard shortcut is executed. */
22
+ execute?: () => void;
23
+ /** Nested array of shortcut props.
24
+ * @note `execute` is ignored if `shortcuts` is specified.
25
+ */
26
+ shortcuts?: KeyboardShortcutProps[];
27
+ /** Indicates whether the Alt key required. Default - false */
28
+ isAltKeyRequired?: boolean;
29
+ /** Indicates whether the Ctrl key required. Default - false */
30
+ isCtrlKeyRequired?: boolean;
31
+ /** Indicates whether the Shift key required. Default - false */
32
+ isShiftKeyRequired?: boolean;
33
+ /** if true component will be hidden - defaults to false */
34
+ isHidden?: boolean | ConditionalBooleanValue;
35
+ /** if true component will be disabled - defaults to false */
36
+ isDisabled?: boolean | ConditionalBooleanValue;
37
+ /** if set, component will be considered "active" an will display an "active stripe" - defaults to false */
38
+ isActive?: boolean;
39
+ /** if set, component will be considered selected but will NOT display an "active stripe" - defaults to false. Typically used by buttons that toggle between two states. */
40
+ isPressed?: boolean;
41
+ /** can be used by application to store miscellaneous data. */
42
+ applicationData?: any;
43
+ /** Badge to be overlaid on the item. */
44
+ badgeType?: BadgeType;
45
+ /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */
46
+ icon?: IconSpec;
47
+ /** if set, it is used to explicitly set the label shown by a component. */
48
+ label?: string | StringGetter | ConditionalStringValue;
49
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */
50
+ labelKey?: string;
51
+ /** if set, it is used to explicitly set the description shown by a component. */
52
+ description?: string | StringGetter | ConditionalStringValue;
53
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */
54
+ descriptionKey?: string;
55
+ /** used to explicitly set the tooltip shown by a component. */
56
+ tooltip?: string | StringGetter | ConditionalStringValue;
57
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */
58
+ tooltipKey?: string;
59
+ }
60
+ //# sourceMappingURL=KeyboardShortcutProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardShortcutProps.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AAEH,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD;;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esModule", { value: true });
3
+ //# sourceMappingURL=KeyboardShortcutProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardShortcutProps.js","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutProps.ts"],"names":[],"mappings":"","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 KeyboardShortcut\n */\nimport type { Key } from \"ts-key-enum\";\nimport type { ActionButtonItemDef } from \"../shared/ActionButtonItemDef\";\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n} from \"../shared/ConditionalValue\";\nimport type { BadgeType, IconProps, IconSpec } from \"@itwin/core-react\";\nimport type { StringGetter } from \"@itwin/appui-abstract\";\n\n/** Properties for a Keyboard Shortcut\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface KeyboardShortcutProps extends IconProps {\n /** The key that invokes the shortcut.\n * This is either an alphanumeric key, a function key or a special key.\n */\n key: string | Key;\n\n /** The item to execute when this shortcut is invoked. Either 'item' or 'shortcuts' must be specified.\n * @deprecated in 4.15.0. Use properties of this object instead.\n */\n // eslint-disable-next-line deprecation/deprecation\n item?: ActionButtonItemDef;\n /** Function to run when the keyboard shortcut is executed. */\n execute?: () => void;\n\n /** Nested array of shortcut props.\n * @note `execute` is ignored if `shortcuts` is specified.\n */\n shortcuts?: KeyboardShortcutProps[];\n\n /** Indicates whether the Alt key required. Default - false */\n isAltKeyRequired?: boolean;\n /** Indicates whether the Ctrl key required. Default - false */\n isCtrlKeyRequired?: boolean;\n /** Indicates whether the Shift key required. Default - false */\n isShiftKeyRequired?: boolean;\n\n // #region \"ItemProps\" properties previously extended from deprecated type.\n\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n\n // #endregion \"ItemProps\"\n}\n"]}
@@ -0,0 +1,13 @@
1
+ /** @packageDocumentation
2
+ * @module KeyboardShortcut
3
+ */
4
+ import type { KeyboardShortcutProps } from "./KeyboardShortcutProps";
5
+ import { type ToolType } from "@itwin/core-frontend";
6
+ /** Helper class to create keyboard shortcuts.
7
+ * @beta
8
+ */
9
+ export declare namespace KeyboardShortcutUtilities {
10
+ /** Creates an shortcut from the specified tool type. */
11
+ function createForTool(key: string, toolType: ToolType, overrides?: Partial<KeyboardShortcutProps>): KeyboardShortcutProps;
12
+ }
13
+ //# sourceMappingURL=KeyboardShortcutUtilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardShortcutUtilities.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/keyboardshortcut/KeyboardShortcutUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wDAAwD;IACxD,SAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACzC,qBAAqB,CAWvB;CACF"}