@itwin/appui-react 4.14.1 → 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 (1243) hide show
  1. package/CHANGELOG.md +28 -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/content/ContentControl.d.ts +2 -2
  53. package/lib/cjs/appui-react/content/ContentControl.js +1 -1
  54. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  55. package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
  56. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  59. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  62. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
  63. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
  65. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  66. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  67. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  69. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
  70. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  71. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  72. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  73. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  75. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  76. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  78. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  79. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  80. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  82. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  83. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
  84. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
  86. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  87. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  88. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
  89. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  90. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  91. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  94. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
  96. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  97. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
  99. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  100. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
  101. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
  103. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  104. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  105. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
  106. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  107. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  111. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  112. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  113. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  114. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  115. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +4 -3
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.js +1 -1
  118. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  119. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  120. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  121. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  122. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  124. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  125. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  127. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  128. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  129. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
  130. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  131. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  132. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
  134. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  135. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  136. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  138. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  139. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
  140. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  141. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  142. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  143. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
  144. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  145. package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
  146. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  147. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  148. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  149. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  150. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  151. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  155. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
  157. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  158. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  159. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  160. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
  161. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  162. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  163. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  164. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  165. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  166. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  167. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  168. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  169. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  170. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  171. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
  172. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  173. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  174. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  175. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
  176. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  177. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  178. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  179. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  180. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  181. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  182. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
  183. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  184. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  185. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  189. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  190. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  191. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  192. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  193. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  195. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  196. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  197. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  198. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
  199. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  200. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  201. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  202. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
  203. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  204. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  206. package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  208. package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
  210. package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
  212. package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
  213. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  214. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  215. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  217. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  219. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  221. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  223. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  225. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  227. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  229. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  230. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  231. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  232. package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
  234. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  236. package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
  238. package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
  240. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  241. package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  242. package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  244. package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  245. package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
  247. package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
  248. package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  249. package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
  250. package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
  252. package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
  253. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
  257. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
  259. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  260. package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  261. package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
  262. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  263. package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  264. package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
  265. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  268. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  269. package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
  270. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  271. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  273. package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  275. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  277. package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
  279. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  280. package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
  282. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  283. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/messages/InputField.js +6 -2
  285. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  286. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  287. package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
  288. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
  290. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
  292. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  293. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  294. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  295. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/messages/Pointer.js +11 -3
  297. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  298. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  299. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  300. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  301. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  302. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  303. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  304. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  305. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  307. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  309. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  311. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  313. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  315. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
  316. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  317. package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
  318. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  319. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  320. package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
  321. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  322. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  323. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  324. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
  325. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  326. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  327. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  328. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  329. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
  331. package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
  332. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  333. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  334. package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
  335. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  336. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  337. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  339. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  340. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  341. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  343. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  344. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  345. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  346. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  347. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  348. package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
  349. package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
  350. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
  351. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  352. package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
  353. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  354. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
  355. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  356. package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
  357. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  358. package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
  359. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  360. package/lib/cjs/appui-react/redux/SessionState.js +11 -10
  361. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  362. package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
  363. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.js +3 -3
  365. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  366. package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
  367. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
  369. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  370. package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
  371. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  372. package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
  373. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  374. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  375. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  378. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  379. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  382. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  383. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  386. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  387. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  390. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
  391. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  392. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  393. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  395. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
  396. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
  398. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  399. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
  400. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  401. package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
  402. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
  404. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
  406. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  407. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -0
  408. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  409. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  410. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  411. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  413. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
  415. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  416. package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
  417. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  418. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -0
  419. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  421. package/lib/cjs/appui-react/shared/MenuItem.d.ts +45 -12
  422. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
  424. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  425. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
  426. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  427. package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
  428. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  429. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  430. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  431. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  432. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
  433. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  434. package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
  435. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Field.js +1 -1
  437. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
  439. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
  441. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  442. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  443. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
  444. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  445. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  448. package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
  449. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
  451. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
  453. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  454. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  455. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  456. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  458. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
  463. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
  465. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  467. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  468. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
  470. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  471. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  472. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  473. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  475. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  476. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  477. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
  478. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  479. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
  480. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  481. package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
  482. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  483. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
  484. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  485. package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
  486. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  488. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
  490. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  492. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  493. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  494. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  495. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  497. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  498. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  499. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  500. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  501. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  502. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  504. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  505. package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  506. package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
  507. package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
  508. package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
  509. package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
  510. package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
  511. package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
  512. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
  513. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  514. package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
  515. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  516. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
  517. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  518. package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
  519. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  520. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
  521. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  522. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  523. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  524. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  527. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  528. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  529. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  530. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  531. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  534. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  535. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  536. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  537. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  538. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
  539. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  540. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
  541. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  542. package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
  543. package/lib/cjs/appui-react/tools/ToolbarItems.js.map +1 -0
  544. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  545. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  546. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  547. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  548. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  549. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  550. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  551. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  552. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  553. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  554. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  555. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  556. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  557. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  558. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  560. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  561. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  563. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  565. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  567. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  568. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  569. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  570. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  571. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  572. package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
  573. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  574. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
  575. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  576. package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
  577. package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
  578. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  579. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  580. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
  581. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  582. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  583. package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
  584. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  585. package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  586. package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
  587. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/widget-panels/Frontstage.js +21 -17
  589. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  590. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  591. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -0
  592. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  593. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  594. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  595. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
  596. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  597. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  598. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
  599. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  600. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  601. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
  602. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  603. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  604. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  605. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  607. package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
  608. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  609. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  610. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
  611. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  612. package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
  613. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  614. package/lib/cjs/appui-react.d.ts +10 -3
  615. package/lib/cjs/appui-react.d.ts.map +1 -1
  616. package/lib/cjs/appui-react.js +10 -3
  617. package/lib/cjs/appui-react.js.map +1 -1
  618. package/lib/esm/appui-react/UiFramework.d.ts +202 -140
  619. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  620. package/lib/esm/appui-react/UiFramework.js +428 -297
  621. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  622. package/lib/esm/appui-react/UiFramework.json +8 -4
  623. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  624. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  625. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  626. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  627. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  628. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
  630. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  631. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  632. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  633. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  634. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  635. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  636. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  637. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  638. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  639. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  640. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  641. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  642. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  643. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  644. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  645. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  646. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  647. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  648. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
  649. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  650. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  651. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  652. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  653. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
  654. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  655. package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
  656. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  657. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  658. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  659. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  660. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  661. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  662. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  663. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  664. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  665. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  666. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
  667. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  668. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  669. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  670. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  671. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  672. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  673. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  674. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  675. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  676. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  677. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  678. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  679. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  680. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  681. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  682. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  683. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  684. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  685. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  686. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  687. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  688. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  689. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  690. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  692. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  693. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  694. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  696. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  697. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  698. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  699. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  700. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  701. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  702. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  703. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  704. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  705. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  706. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  707. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  708. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  710. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  711. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  712. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  713. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  714. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  715. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  717. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  718. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  719. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  720. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  721. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  722. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  723. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  724. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  725. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  727. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  728. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  729. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  731. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -3
  732. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  733. package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -1
  734. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  735. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  736. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  737. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  738. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  739. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  740. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  741. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  742. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  743. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  745. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  746. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  747. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  748. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  749. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  750. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  752. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  754. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  755. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  756. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  757. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  759. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  760. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  761. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  762. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  763. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  764. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  765. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  766. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  767. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  768. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  769. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  771. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  773. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  775. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  776. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  778. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  779. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  780. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  781. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  782. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  783. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  784. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  785. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  786. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  787. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  788. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  790. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  791. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  792. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  793. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  794. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  795. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  796. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  797. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  798. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  799. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  800. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  801. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  802. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  803. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  805. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  807. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  820. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  821. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  822. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  823. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  824. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  828. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  829. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  830. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  831. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  832. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  848. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  849. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  850. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  852. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  854. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  856. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  857. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  858. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  860. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  866. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  867. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  868. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  869. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  870. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  872. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  875. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  877. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  878. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  879. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  880. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  882. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  884. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  886. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  895. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  896. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  897. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  898. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  899. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  900. package/lib/esm/appui-react/messages/InputField.js +6 -2
  901. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  902. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  903. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  904. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  905. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  906. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  908. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  910. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  911. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  912. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  913. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  914. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  915. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  916. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  917. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  918. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  919. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  920. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  921. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  922. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  923. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  925. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  927. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  929. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  930. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  931. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  932. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  933. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  934. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  935. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  936. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  937. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  938. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  939. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  940. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  941. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  942. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  943. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  944. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  945. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  946. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  947. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  948. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  949. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  950. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  951. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  952. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  953. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  954. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  955. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  956. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  957. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  958. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  959. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  960. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  961. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  962. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  963. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  964. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  965. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  966. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  967. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  968. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  969. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  970. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  971. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  972. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  973. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  974. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  975. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  976. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  977. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  978. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  979. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  980. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  981. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  982. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  983. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  984. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  985. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  986. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  987. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  988. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  989. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  990. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  991. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  992. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  993. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  994. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  995. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  996. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  997. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  998. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  999. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1000. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1001. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1002. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1003. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1004. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1005. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1006. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1007. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1008. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1009. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1011. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1012. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1013. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1014. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1015. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1016. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1017. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1018. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1020. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1022. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1023. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1024. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1026. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1027. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1028. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1029. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1031. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1033. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1035. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1037. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1038. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1039. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1040. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1041. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1042. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1043. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1044. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1045. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1046. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1047. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1048. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1049. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1050. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1051. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1052. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1053. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1055. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1057. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1059. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1060. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1061. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1062. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1063. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1065. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1067. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1069. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1071. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1079. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1081. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1083. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1084. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1085. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1086. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1087. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1088. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1092. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1094. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1096. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1098. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1100. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1102. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1104. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1106. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1108. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1109. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1110. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1113. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1115. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1117. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1118. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1119. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1120. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1121. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1122. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1123. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1124. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1125. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1126. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1127. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1128. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1129. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1130. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1131. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1132. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1133. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1134. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1135. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1137. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1139. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1140. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1141. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1142. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1144. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1146. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1148. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1152. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  1153. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1154. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
  1155. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1156. package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
  1157. package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  1158. package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
  1159. package/lib/esm/appui-react/tools/ToolbarItems.js.map +1 -0
  1160. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1161. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  1162. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1163. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1164. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  1165. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1166. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1167. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1168. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1169. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1170. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  1171. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1172. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1173. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1174. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1175. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1176. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  1177. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1178. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  1179. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1180. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  1181. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1182. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1183. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  1184. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  1185. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1186. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1187. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1188. package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
  1189. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1190. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
  1191. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  1192. package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
  1193. package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
  1194. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  1195. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  1196. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
  1197. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  1198. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1199. package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
  1200. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1201. package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  1202. package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
  1203. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1204. package/lib/esm/appui-react/widget-panels/Frontstage.js +21 -17
  1205. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1206. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1207. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -0
  1208. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1209. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  1210. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
  1212. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1213. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1214. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
  1215. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1216. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1217. package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
  1218. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1219. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1220. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1221. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1222. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1223. package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
  1224. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1225. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1226. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
  1227. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1228. package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
  1229. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1230. package/lib/esm/appui-react.d.ts +10 -3
  1231. package/lib/esm/appui-react.d.ts.map +1 -1
  1232. package/lib/esm/appui-react.js +10 -3
  1233. package/lib/esm/appui-react.js.map +1 -1
  1234. package/lib/public/locales/en/UiFramework.json +8 -4
  1235. package/package.json +8 -8
  1236. package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
  1237. package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
  1238. package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
  1239. package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
  1240. package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
  1241. package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
  1242. package/lib/esm/appui-react/configurableui/state.js.map +0 -1
  1243. package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
@@ -1 +1 @@
1
- {"version":3,"file":"InternalChildWindowManager.js","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/InternalChildWindowManager.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAMzE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,C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AAW,QAAQ,CAAC,MAAM,SAAS,QAAQ,CAAC,IAAI,QAAQ,QAAQ,CAAC,GAAG,+DAA+D,CAC3J,CAAC;QACF,IAAI,CAAC,WAAW;YAAE,OAAO,KAAK,CAAC;QAC/B,WAAW,CAAC,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC7C,WAAW,CAAC,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC3C,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC;QAC/D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAC,SAAS,CAAC;QAE5D,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACtC,IAAI,CAAC,yBAAyB,CAC5B,WAAW,EACX,aAAa,EACb,OAAO,EACP,KAAK,CACN,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,gBAAgB,CAC1B,kBAAkB,EAClB,GAAG,EAAE;gBACH,IAAI,CAAC,yBAAyB,CAC5B,WAAW,EACX,aAAa,EACb,OAAO,EACP,KAAK,CACN,CAAC;YACJ,CAAC,EACD,KAAK,CACN,CAAC;QACJ,CAAC;QAED,MAAM,CAAC,gBAAgB,CACrB,QAAQ,EACR,GAAG,EAAE;YACH,MAAM,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;YAClE,IAAI,aAAa,EAAE,CAAC;gBAClB,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClC,CAAC;QACH,CAAC,EACD,KAAK,CACN,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF","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\n/** @packageDocumentation\n * @module ChildWindowManager\n */\n\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Provider } from \"react-redux\";\nimport { UiFramework } from \"../UiFramework\";\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\nimport type {\n ChildWindowLocationProps,\n FrameworkChildWindows,\n OpenChildWindowInfo,\n} from \"../framework/FrameworkChildWindows\";\nimport { TabIdContext } from \"../layout/widget/ContentRenderer\";\nimport { PopupRenderer } from \"../popup/PopupManager\";\nimport { ThemeManager } from \"../theme/ThemeManager\";\nimport { UiStateStorageHandler } from \"../uistate/useUiStateStorage\";\nimport type { ChildWindow } from \"./ChildWindowConfig\";\nimport { copyStyles } from \"./CopyStyles\";\nimport \"./InternalChildWindowManager.scss\";\nimport { usePopoutsStore } from \"../preview/reparent-popout-widgets/usePopoutsStore\";\n\nconst childHtml = `<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <style>\n html,\n body {\n height: 100%;\n width: 100%;\n margin: 0;\n overflow: hidden;\n }\n #root {\n height: 100%;\n }\n </style>\n</head>\n<body>\n <noscript>You need to enable JavaScript to run this app.</noscript>\n <div id=\"root\"></div>\n</body>\n</html>`;\n\n/**\n * Simplification of non exported CreateRoot parameter, only to be used\n * in InternalChildWindowManager and ChildWindowManager\n * @internal\n */\nexport type CreateRoot = Parameters<FrameworkChildWindows[\"useCreateRoot\"]>[0];\n\n/** Supports opening a child browser window from the main application window. The child window is managed by the main application\n * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.\n * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)\n * @internal\n * */\nexport class InternalChildWindowManager implements FrameworkChildWindows {\n private _openChildWindows: OpenChildWindowInfo[] = [];\n private _createRoot?: CreateRoot;\n private _roots: { [childwindowId: string]: any } = {};\n\n public get openChildWindows() {\n return this._openChildWindows;\n }\n\n /**\n * When using React 18, the `createRoot` function must be provided in order to render Popout content with React 18.\n * Do not call if using React 17 or before.\n *\n * Note: The type of the function is intentionally simplified here.\n *\n * @param createRootFn Function imported from `import { createRoot } from \"react-dom/client\";`\n * @beta Will be removed once the transition to React 18 is complete.\n */\n public useCreateRoot(createRootFn: CreateRoot): void {\n this._createRoot = createRootFn;\n }\n\n /**\n * Abstracts ReactDOM.render to use either the _createRoot method or the default ReactDOM.render.\n * @param element Element to render.\n * @param container Container to render to.\n */\n private render(\n element: React.FunctionComponentElement<any>,\n container: Element | DocumentFragment\n ) {\n // If createRoot is passed in for React 18 we have to render differently\n // than without it. React 17 vs React 18. We need to save the root to\n // unmount it.\n if (this._createRoot) {\n const childWindowId = UiFramework.childWindows.findId(\n container.ownerDocument.defaultView\n );\n if (childWindowId) {\n this._roots[childWindowId] = this._createRoot(container);\n this._roots[childWindowId].render(element);\n }\n } else {\n // eslint-disable-next-line react/no-deprecated, deprecation/deprecation\n ReactDOM.render(element, container);\n }\n }\n\n /**\n * Returns the OpenChildWindowInfo for the related id.\n * @param childWindowId Id of the window to retrieve.\n * @returns undefined if not found.\n */\n public find(\n childWindowId: string | undefined\n ): OpenChildWindowInfo | undefined {\n if (undefined === childWindowId) return undefined;\n\n return this.openChildWindows.find(\n (openWindow) => openWindow.childWindowId === childWindowId\n );\n }\n\n /**\n * Return the childWindowId of the provided window.\n * @param contentWindow Window element to identify\n * @returns undefined if not found\n */\n public findId(contentWindow: Window | undefined | null): string | undefined {\n if (!contentWindow) return undefined;\n\n const childWindow = this.openChildWindows.find(\n (openWindow) => openWindow.window === contentWindow\n );\n return childWindow?.childWindowId;\n }\n\n private renderChildWindowContents(\n childWindow: ChildWindow,\n childWindowId: string,\n content: React.ReactNode,\n title: string\n ) {\n childWindow.document.title = title;\n\n const reactConnectionDiv = childWindow.document.getElementById(\"root\");\n if (reactConnectionDiv && content && React.isValidElement(content)) {\n // set openChildWindows now so components can use it when they mount\n this._openChildWindows.push({\n childWindowId,\n window: childWindow,\n parentWindow: window,\n });\n let element: React.FunctionComponentElement<any>;\n if (content.props.widgetDef) {\n const tabId = content.props.widgetDef.id as string;\n element = (\n <Provider store={UiFramework.store}>\n <TabIdContext.Provider value={tabId}>\n <UiStateStorageHandler>\n <ThemeManager>\n <div className=\"uifw-child-window-container-host\">\n <PopupRenderer />\n <ModalDialogRenderer />\n <ModelessDialogRenderer />\n <CursorPopupMenu />\n <div className=\"uifw-child-window-container nz-widget-widget\">\n {content}\n </div>\n </div>\n </ThemeManager>\n </UiStateStorageHandler>\n </TabIdContext.Provider>\n </Provider>\n );\n } else {\n element = (\n <Provider store={UiFramework.store}>\n <UiStateStorageHandler>\n <ThemeManager>\n <div className=\"uifw-child-window-container-host\">\n <PopupRenderer />\n <ModalDialogRenderer />\n <ModelessDialogRenderer />\n <CursorPopupMenu />\n <div className=\"uifw-child-window-container nz-widget-widget\">\n {content}\n </div>\n </div>\n </ThemeManager>\n </UiStateStorageHandler>\n </Provider>\n );\n }\n\n setTimeout(() => {\n copyStyles(childWindow.document);\n setTimeout(() => {\n this.render(element, reactConnectionDiv);\n\n if (childWindow.expectedHeight && childWindow.expectedWidth) {\n childWindow.deltaWidth =\n childWindow.expectedWidth - childWindow.innerWidth;\n childWindow.deltaHeight =\n childWindow.expectedHeight - childWindow.innerHeight;\n }\n });\n });\n\n childWindow.addEventListener(\"pagehide\", () => {\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontStageDef) return;\n frontStageDef.saveChildWindowSizeAndPosition(\n childWindowId,\n childWindow\n );\n\n // Trigger first so popout can be converted back to main window widget\n this.close(childWindowId, false);\n\n // UnmountComponentAtNode is deprecated in React 18, so if they are\n // using React 18 and passing in a createRoot function, unmount()\n // will be used\n if (this._roots[childWindowId]) {\n this._roots[childWindowId].unmount();\n // eslint-disable-next-line react/no-deprecated, deprecation/deprecation\n } else ReactDOM.unmountComponentAtNode(reactConnectionDiv);\n });\n }\n }\n\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed. */\n public closeAll() {\n this.openChildWindows.forEach((openChildWindow) =>\n openChildWindow.window.close()\n );\n this._openChildWindows = [];\n }\n\n /**\n * Close a specific child window.\n * @param childWindowId Id of the window to close.\n * @param processWindowClose should the `close` method be called on the closing window. (defaults to true).\n * @returns false if the window could not be found.\n */\n public close = (childWindowId: string, processWindowClose = true) => {\n const windowIndex = this.openChildWindows.findIndex(\n (openWindow) => openWindow.childWindowId === childWindowId\n );\n if (windowIndex === -1) return false;\n const { onClosePopoutWidget } = usePopoutsStore.getState();\n onClosePopoutWidget.raiseEvent({ windowId: childWindowId });\n\n const childWindow = this.openChildWindows[windowIndex];\n this.openChildWindows.splice(windowIndex, 1);\n if (processWindowClose) {\n childWindow.window.close();\n } else {\n // call the following to convert popout to docked widget\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n frontStageDef?.dockWidgetContainerByContainerId(childWindowId);\n }\n return true;\n };\n\n private adjustWindowLocation(location: ChildWindowLocationProps) {\n // If no location is provided, child window will open in the center of the current window.\n if (location.top === 0 && location.left === 0) {\n location.left =\n window.outerWidth / 2 + window.screenX - location.width / 2;\n location.top =\n window.outerHeight / 2 + window.screenY - location.height / 2;\n }\n }\n\n /**\n * Open a new child window.\n * @param childWindowId Id to assign to the newly created window.\n * @param title Title to display on the window.\n * @param content ReactNode to be rendered in the window.\n * @param location Position and size information\n * @param useDefaultPopoutUrl use \"/iTwinPopup.html\" as the window Url, \"\" otherwise.\n * @returns true if the window is opened successfully.\n */\n public open(\n childWindowId: string,\n title: string,\n content: React.ReactNode,\n location: ChildWindowLocationProps,\n useDefaultPopoutUrl?: boolean\n ) {\n if (\n this.openChildWindows.some(\n (openWindow) => openWindow.childWindowId === childWindowId\n )\n ) {\n return false;\n }\n\n this.adjustWindowLocation(location);\n const url = useDefaultPopoutUrl ? \"/iTwinPopup.html\" : \"\";\n const childWindow: ChildWindow | null = window.open(\n url,\n \"\",\n `width=${location.width},height=${location.height},left=${location.left},top=${location.top},menubar=no,resizable=yes,scrollbars=no,status=no,location=no`\n );\n if (!childWindow) return false;\n childWindow.expectedHeight = location.height;\n childWindow.expectedWidth = location.width;\n childWindow.deltaLeft = location.left - childWindow.screenLeft;\n childWindow.deltaTop = location.top - childWindow.screenTop;\n\n if (url.length === 0) {\n childWindow.document.write(childHtml);\n this.renderChildWindowContents(\n childWindow,\n childWindowId,\n content,\n title\n );\n } else {\n childWindow.addEventListener(\n \"DOMContentLoaded\",\n () => {\n this.renderChildWindowContents(\n childWindow,\n childWindowId,\n content,\n title\n );\n },\n false\n );\n }\n\n window.addEventListener(\n \"unload\",\n () => {\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n if (frontStageDef) {\n this.close(childWindowId, true);\n }\n },\n false\n );\n\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"InternalChildWindowManager.js","sourceRoot":"","sources":["../../../../src/appui-react/childwindow/InternalChildWindowManager.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAMzE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,E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tC,IAAI,CAAC,yBAAyB,CAC5B,WAAW,EACX,aAAa,EACb,OAAO,EACP,KAAK,CACN,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,gBAAgB,CAC1B,kBAAkB,EAClB,GAAG,EAAE;gBACH,IAAI,CAAC,yBAAyB,CAC5B,WAAW,EACX,aAAa,EACb,OAAO,EACP,KAAK,CACN,CAAC;YACJ,CAAC,EACD,KAAK,CACN,CAAC;QACJ,CAAC;QAED,MAAM,CAAC,gBAAgB,CACrB,QAAQ,EACR,GAAG,EAAE;YACH,MAAM,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;YAClE,IAAI,aAAa,EAAE,CAAC;gBAClB,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClC,CAAC;QACH,CAAC,EACD,KAAK,CACN,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF","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\n/** @packageDocumentation\n * @module ChildWindowManager\n */\n\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Provider } from \"react-redux\";\nimport { UiFramework } from \"../UiFramework\";\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\nimport type {\n ChildWindowLocationProps,\n FrameworkChildWindows,\n OpenChildWindowInfo,\n} from \"../framework/FrameworkChildWindows\";\nimport { TabIdContext } from \"../layout/widget/ContentRenderer\";\nimport { PopupRenderer } from \"../popup/PopupManager\";\nimport { ThemeManager } from \"../theme/ThemeManager\";\nimport { UiStateStorageHandler } from \"../uistate/useUiStateStorage\";\nimport type { ChildWindow } from \"./ChildWindowConfig\";\nimport { copyStyles } from \"./CopyStyles\";\nimport \"./InternalChildWindowManager.scss\";\nimport { usePopoutsStore } from \"../preview/reparent-popout-widgets/usePopoutsStore\";\nimport type { WidgetDef } from \"../widgets/WidgetDef\";\n\nconst childHtml = `<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <style>\n html,\n body {\n height: 100%;\n width: 100%;\n margin: 0;\n overflow: hidden;\n }\n #root {\n height: 100%;\n }\n </style>\n</head>\n<body>\n <noscript>You need to enable JavaScript to run this app.</noscript>\n <div id=\"root\"></div>\n</body>\n</html>`;\n\n/**\n * Simplification of non exported CreateRoot parameter, only to be used\n * in InternalChildWindowManager and ChildWindowManager\n * @internal\n */\nexport type CreateRoot = Parameters<FrameworkChildWindows[\"useCreateRoot\"]>[0];\n\n/** Supports opening a child browser window from the main application window. The child window is managed by the main application\n * and is running in the same security context. The application must deliver the html file iTwinPopup.html along side its index.html.\n * See also: [Child Window Manager]($docs/learning/ui/appui-react/ChildWindows.md)\n * @internal\n * */\nexport class InternalChildWindowManager implements FrameworkChildWindows {\n private _openChildWindows: OpenChildWindowInfo[] = [];\n private _createRoot?: CreateRoot;\n private _roots: { [childwindowId: string]: any } = {};\n\n public get openChildWindows() {\n return this._openChildWindows;\n }\n\n /**\n * When using React 18, the `createRoot` function must be provided in order to render Popout content with React 18.\n * Do not call if using React 17 or before.\n *\n * Note: The type of the function is intentionally simplified here.\n *\n * @param createRootFn Function imported from `import { createRoot } from \"react-dom/client\";`\n * @beta Will be removed once the transition to React 18 is complete.\n */\n public useCreateRoot(createRootFn: CreateRoot): void {\n this._createRoot = createRootFn;\n }\n\n /**\n * Abstracts ReactDOM.render to use either the _createRoot method or the default ReactDOM.render.\n * @param element Element to render.\n * @param container Container to render to.\n */\n private render(\n element: React.FunctionComponentElement<any>,\n container: Element | DocumentFragment\n ) {\n // If createRoot is passed in for React 18 we have to render differently\n // than without it. React 17 vs React 18. We need to save the root to\n // unmount it.\n if (this._createRoot) {\n const childWindowId = UiFramework.childWindows.findId(\n container.ownerDocument.defaultView\n );\n if (childWindowId) {\n this._roots[childWindowId] = this._createRoot(container);\n this._roots[childWindowId].render(element);\n }\n } else {\n // eslint-disable-next-line react/no-deprecated, deprecation/deprecation\n ReactDOM.render(element, container);\n }\n }\n\n /**\n * Returns the OpenChildWindowInfo for the related id.\n * @param childWindowId Id of the window to retrieve.\n * @returns undefined if not found.\n */\n public find(\n childWindowId: string | undefined\n ): OpenChildWindowInfo | undefined {\n if (undefined === childWindowId) return undefined;\n\n return this.openChildWindows.find(\n (openWindow) => openWindow.childWindowId === childWindowId\n );\n }\n\n /**\n * Return the childWindowId of the provided window.\n * @param contentWindow Window element to identify\n * @returns undefined if not found\n */\n public findId(contentWindow: Window | undefined | null): string | undefined {\n if (!contentWindow) return undefined;\n\n const childWindow = this.openChildWindows.find(\n (openWindow) => openWindow.window === contentWindow\n );\n return childWindow?.childWindowId;\n }\n\n private renderChildWindowContents(\n childWindow: ChildWindow,\n childWindowId: string,\n content: React.ReactNode,\n title: string\n ) {\n childWindow.document.title = title;\n\n const reactConnectionDiv = childWindow.document.getElementById(\"root\");\n if (reactConnectionDiv && content && React.isValidElement(content)) {\n // set openChildWindows now so components can use it when they mount\n this._openChildWindows.push({\n childWindowId,\n window: childWindow,\n parentWindow: window,\n });\n const widgetDef = content.props.widgetDef as WidgetDef | undefined;\n const tabId = widgetDef?.id;\n const element = (\n // eslint-disable-next-line deprecation/deprecation\n <Provider store={UiFramework.store}>\n <TabIdContext.Provider value={tabId}>\n <UiStateStorageHandler>\n <ThemeManager>\n <div className=\"uifw-child-window-container-host\">\n <PopupRenderer />\n <ModalDialogRenderer />\n <ModelessDialogRenderer />\n <CursorPopupMenu />\n <div className=\"uifw-child-window-container nz-widget-widget\">\n {content}\n </div>\n </div>\n <div className=\"uifw-childwindow-internalChildWindowManager_portalContainer\" />\n </ThemeManager>\n </UiStateStorageHandler>\n </TabIdContext.Provider>\n </Provider>\n );\n\n setTimeout(() => {\n copyStyles(childWindow.document);\n setTimeout(() => {\n this.render(element, reactConnectionDiv);\n\n if (childWindow.expectedHeight && childWindow.expectedWidth) {\n childWindow.deltaWidth =\n childWindow.expectedWidth - childWindow.innerWidth;\n childWindow.deltaHeight =\n childWindow.expectedHeight - childWindow.innerHeight;\n }\n });\n });\n\n childWindow.addEventListener(\"pagehide\", () => {\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontStageDef) return;\n frontStageDef.saveChildWindowSizeAndPosition(\n childWindowId,\n childWindow\n );\n\n // Trigger first so popout can be converted back to main window widget\n this.close(childWindowId, false);\n\n // UnmountComponentAtNode is deprecated in React 18, so if they are\n // using React 18 and passing in a createRoot function, unmount()\n // will be used\n if (this._roots[childWindowId]) {\n this._roots[childWindowId].unmount();\n // eslint-disable-next-line react/no-deprecated, deprecation/deprecation\n } else ReactDOM.unmountComponentAtNode(reactConnectionDiv);\n });\n }\n }\n\n /** Close all child/pop-out windows. This typically is called when the frontstage is changed. */\n public closeAll() {\n this.openChildWindows.forEach((openChildWindow) =>\n openChildWindow.window.close()\n );\n this._openChildWindows = [];\n }\n\n /**\n * Close a specific child window.\n * @param childWindowId Id of the window to close.\n * @param processWindowClose should the `close` method be called on the closing window. (defaults to true).\n * @returns false if the window could not be found.\n */\n public close = (childWindowId: string, processWindowClose = true) => {\n const windowIndex = this.openChildWindows.findIndex(\n (openWindow) => openWindow.childWindowId === childWindowId\n );\n if (windowIndex === -1) return false;\n const { onClosePopoutWidget } = usePopoutsStore.getState();\n onClosePopoutWidget.raiseEvent({ windowId: childWindowId });\n\n const childWindow = this.openChildWindows[windowIndex];\n this.openChildWindows.splice(windowIndex, 1);\n if (processWindowClose) {\n childWindow.window.close();\n } else {\n // call the following to convert popout to docked widget\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n frontStageDef?.dockWidgetContainerByContainerId(childWindowId);\n }\n return true;\n };\n\n private adjustWindowLocation(location: ChildWindowLocationProps) {\n // If no location is provided, child window will open in the center of the current window.\n if (location.top === 0 && location.left === 0) {\n location.left =\n window.outerWidth / 2 + window.screenX - location.width / 2;\n location.top =\n window.outerHeight / 2 + window.screenY - location.height / 2;\n }\n }\n\n /**\n * Open a new child window.\n * @param childWindowId Id to assign to the newly created window.\n * @param title Title to display on the window.\n * @param content ReactNode to be rendered in the window.\n * @param location Position and size information\n * @param useDefaultPopoutUrl use \"/iTwinPopup.html\" as the window Url, \"\" otherwise.\n * @returns true if the window is opened successfully.\n */\n public open(\n childWindowId: string,\n title: string,\n content: React.ReactNode,\n location: ChildWindowLocationProps,\n useDefaultPopoutUrl?: boolean\n ) {\n if (\n this.openChildWindows.some(\n (openWindow) => openWindow.childWindowId === childWindowId\n )\n ) {\n return false;\n }\n\n this.adjustWindowLocation(location);\n const url = useDefaultPopoutUrl ? \"/iTwinPopup.html\" : \"\";\n const childWindow: ChildWindow | null = window.open(\n url,\n \"\",\n `width=${location.width},height=${location.height},left=${location.left},top=${location.top},menubar=no,resizable=yes,scrollbars=no,status=no,location=no`\n );\n if (!childWindow) return false;\n childWindow.expectedHeight = location.height;\n childWindow.expectedWidth = location.width;\n childWindow.deltaLeft = location.left - childWindow.screenLeft;\n childWindow.deltaTop = location.top - childWindow.screenTop;\n\n if (url.length === 0) {\n childWindow.document.write(childHtml);\n this.renderChildWindowContents(\n childWindow,\n childWindowId,\n content,\n title\n );\n } else {\n childWindow.addEventListener(\n \"DOMContentLoaded\",\n () => {\n this.renderChildWindowContents(\n childWindow,\n childWindowId,\n content,\n title\n );\n },\n false\n );\n }\n\n window.addEventListener(\n \"unload\",\n () => {\n const frontStageDef = UiFramework.frontstages.activeFrontstageDef;\n if (frontStageDef) {\n this.close(childWindowId, true);\n }\n },\n false\n );\n\n return true;\n }\n}\n"]}
@@ -12,3 +12,7 @@
12
12
  height: 100%;
13
13
  width: 100%;
14
14
  }
15
+
16
+ .uifw-childwindow-internalChildWindowManager_portalContainer {
17
+ position: fixed;
18
+ }
@@ -4,12 +4,28 @@
4
4
  import "./ConfigurableUiContent.scss";
5
5
  import * as React from "react";
6
6
  import type { CommonProps } from "@itwin/core-react";
7
+ /** @internal */
8
+ export declare const ConfigurableUiContext: React.Context<Pick<ConfigurableUiContentProps, "viewOverlay" | "widgetOpacity" | "widgetIcon" | "collapsePanels" | "animateToolSettings" | "toolAsToolSettingsLabel">>;
7
9
  /** Properties for [[ConfigurableUiContent]]
8
10
  * @public
9
11
  */
10
12
  export interface ConfigurableUiContentProps extends CommonProps {
11
13
  /** React node of the Backstage */
12
14
  appBackstage?: React.ReactNode;
15
+ /** Controls if the view overlay should be displayed. Uses redux store as a fallback. Defaults to `true`. */
16
+ viewOverlay?: boolean;
17
+ /** Describes the opacity of widgets. Uses redux store as a fallback. Defaults to {@link WIDGET_OPACITY_DEFAULT}. */
18
+ widgetOpacity?: number;
19
+ /** Controls if the widget icons should be displayed. Uses redux store as a fallback. Defaults to `true`. */
20
+ widgetIcon?: boolean;
21
+ /** Controls if the unpinned panels should be collapsed automatically. Uses redux store as a fallback. Defaults to `false`. */
22
+ collapsePanels?: boolean;
23
+ /** Controls if the tool settings should be animated. Uses redux store as a fallback. Defaults to `false`. */
24
+ animateToolSettings?: boolean;
25
+ /** Controls if the tool settings label should be set based on activated tool. Uses redux store as a fallback. Defaults to `false`. */
26
+ toolAsToolSettingsLabel?: boolean;
27
+ /** Describes the opacity of toolbars. Uses redux store as a fallback. Defaults to {@link TOOLBAR_OPACITY_DEFAULT}. */
28
+ toolbarOpacity?: number;
13
29
  /** @internal */
14
30
  idleTimeout?: number;
15
31
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAqBrD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE/B,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4BAAkD,CAAC;AAE9E;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBA6DtE"}
1
+ {"version":3,"file":"ConfigurableUiContent.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAwBrD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,wKAU7B,CAAC;AAEN;;GAEG;AAEH,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,kCAAkC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,4GAA4G;IAC5G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oHAAoH;IACpH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4GAA4G;IAC5G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8HAA8H;IAC9H,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6GAA6G;IAC7G,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sIAAsI;IACtI,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sHAAsH;IACtH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4BAAkD,CAAC;AAE9E;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBA2EtE"}
@@ -24,6 +24,10 @@ import { ContentDialogRenderer } from "../dialog/ContentDialogManager";
24
24
  import { UiFramework } from "../UiFramework";
25
25
  import { InternalConfigurableUiManager } from "./InternalConfigurableUiManager";
26
26
  import { MessageRenderer } from "../messages/MessageRenderer";
27
+ import { TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT, } from "../theme/ThemeId";
28
+ import { useReduxFrameworkState } from "../uistate/useReduxFrameworkState";
29
+ /** @internal */
30
+ export const ConfigurableUiContext = React.createContext({});
27
31
  /**
28
32
  * Allows children to get the bounds or other properties of the wrapper element.
29
33
  * @internal
@@ -33,6 +37,8 @@ export const WrapperContext = React.createContext(document.body);
33
37
  * @public
34
38
  */
35
39
  export function ConfigurableUiContent(props) {
40
+ useWidgetOpacity(props.widgetOpacity);
41
+ useToolbarOpacity(props.toolbarOpacity);
36
42
  const [mainElement, setMainElement] = React.useState(null);
37
43
  const [portalContainer, setPortalContainer] = React.useState();
38
44
  React.useEffect(() => {
@@ -51,22 +57,62 @@ export function ConfigurableUiContent(props) {
51
57
  const point = new Point(e.pageX, e.pageY);
52
58
  CursorInformation.handleMouseMove(point);
53
59
  }, []);
54
- return (React.createElement("main", { role: "main", id: "uifw-configurableui-wrapper", className: props.className, style: props.style, onMouseMove: handleMouseMove, ref: setMainElement },
55
- React.createElement(WrapperContext.Provider, { value: mainElement },
56
- React.createElement(ThemeProvider, { style: { height: "100%" }, portalContainer: portalContainer },
57
- props.appBackstage,
58
- React.createElement(WidgetPanelsFrontstage, null),
59
- React.createElement(ContentDialogRenderer, null),
60
- React.createElement(ModelessDialogRenderer, null),
61
- React.createElement(ModalDialogRenderer, null),
62
- React.createElement(ElementTooltip, null),
63
- React.createElement(PointerMessage, null),
64
- React.createElement(KeyboardShortcutMenu, null),
65
- React.createElement(InputFieldMessage, null),
66
- React.createElement(CursorPopupMenu, null),
67
- React.createElement(CursorPopupRenderer, null),
68
- React.createElement(PopupRenderer, null),
69
- React.createElement(MessageRenderer, null))),
70
- React.createElement("div", { className: "uifw-configurableui-portalContainer", ref: (instance) => setPortalContainer(instance ?? undefined) })));
60
+ return (React.createElement(ConfigurableUiContext.Provider, { value: {
61
+ viewOverlay: props.viewOverlay,
62
+ widgetOpacity: props.widgetOpacity,
63
+ widgetIcon: props.widgetIcon,
64
+ collapsePanels: props.collapsePanels,
65
+ animateToolSettings: props.animateToolSettings,
66
+ toolAsToolSettingsLabel: props.toolAsToolSettingsLabel,
67
+ } },
68
+ React.createElement("main", { role: "main", id: "uifw-configurableui-wrapper", className: props.className, style: props.style, onMouseMove: handleMouseMove, ref: setMainElement },
69
+ React.createElement(WrapperContext.Provider, { value: mainElement },
70
+ React.createElement(ThemeProvider, { style: { height: "100%" }, portalContainer: portalContainer },
71
+ props.appBackstage,
72
+ React.createElement(WidgetPanelsFrontstage, null),
73
+ React.createElement(ContentDialogRenderer, null),
74
+ React.createElement(ModelessDialogRenderer, null),
75
+ React.createElement(ModalDialogRenderer, null),
76
+ React.createElement(ElementTooltip, null),
77
+ React.createElement(PointerMessage, null),
78
+ React.createElement(KeyboardShortcutMenu, null),
79
+ React.createElement(InputFieldMessage, null),
80
+ React.createElement(CursorPopupMenu, null),
81
+ React.createElement(CursorPopupRenderer, null),
82
+ React.createElement(PopupRenderer, null),
83
+ React.createElement(MessageRenderer, null))),
84
+ React.createElement("div", { className: "uifw-configurableui-portalContainer", ref: (instance) => setPortalContainer(instance ?? undefined) }))));
85
+ }
86
+ function useWidgetOpacity(widgetOpacity) {
87
+ const reduxWidgetOpacity = useReduxFrameworkState((state) => {
88
+ // eslint-disable-next-line deprecation/deprecation
89
+ return state?.configurableUiState.widgetOpacity;
90
+ });
91
+ const opacity = widgetOpacity ?? reduxWidgetOpacity ?? WIDGET_OPACITY_DEFAULT;
92
+ React.useEffect(() => {
93
+ const currentWidgetOpacity = document.documentElement.style.getPropertyValue("--buic-widget-opacity");
94
+ if (currentWidgetOpacity === opacity.toString())
95
+ return;
96
+ document.documentElement.style.setProperty("--buic-widget-opacity", opacity.toString());
97
+ return () => {
98
+ document.documentElement.style.removeProperty("--buic-widget-opacity");
99
+ };
100
+ }, [opacity]);
101
+ }
102
+ function useToolbarOpacity(toolbarOpacity) {
103
+ const reduxToolbarOpacity = useReduxFrameworkState((state) => {
104
+ // eslint-disable-next-line deprecation/deprecation
105
+ return state?.configurableUiState.toolbarOpacity;
106
+ });
107
+ const opacity = toolbarOpacity ?? reduxToolbarOpacity ?? TOOLBAR_OPACITY_DEFAULT;
108
+ React.useEffect(() => {
109
+ const currentToolbarOpacity = document.documentElement.style.getPropertyValue("--buic-toolbar-opacity");
110
+ if (currentToolbarOpacity === opacity.toString())
111
+ return;
112
+ document.documentElement.style.setProperty("--buic-toolbar-opacity", opacity.toString());
113
+ return () => {
114
+ document.documentElement.style.removeProperty("--buic-toolbar-opacity");
115
+ };
116
+ }, [opacity]);
71
117
  }
72
118
  //# sourceMappingURL=ConfigurableUiContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableUiContent.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,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AI,SAAS,CAAC,GAC5D,CACG,CACR,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module ConfigurableUi\n */\n\nimport \"./ConfigurableUiContent.scss\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Point } from \"@itwin/core-react\";\nimport { ThemeProvider } from \"@itwin/itwinui-react\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\nimport { CursorPopupRenderer } from \"../cursor/cursorpopup/CursorPopupManager\";\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\nimport { ElementTooltip } from \"../feedback/ElementTooltip\";\nimport { KeyboardShortcutMenu } from \"../keyboardshortcut/KeyboardShortcutMenu\";\nimport { InputFieldMessage } from \"../messages/InputField\";\nimport { PointerMessage } from \"../messages/Pointer\";\nimport { PopupRenderer } from \"../popup/PopupManager\";\nimport { WidgetPanelsFrontstage } from \"../widget-panels/Frontstage\";\nimport { ContentDialogRenderer } from \"../dialog/ContentDialogManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalConfigurableUiManager } from \"./InternalConfigurableUiManager\";\nimport { MessageRenderer } from \"../messages/MessageRenderer\";\n\n// cSpell:ignore cursormenu cursorpopup\n\n/** Properties for [[ConfigurableUiContent]]\n * @public\n */\nexport interface ConfigurableUiContentProps extends CommonProps {\n /** React node of the Backstage */\n appBackstage?: React.ReactNode;\n\n /** @internal */\n idleTimeout?: number;\n /** @internal */\n intervalTimeout?: number;\n}\n\n/**\n * Allows children to get the bounds or other properties of the wrapper element.\n * @internal\n */\nexport const WrapperContext = React.createContext<HTMLElement>(document.body);\n\n/** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi\n * @public\n */\nexport function ConfigurableUiContent(props: ConfigurableUiContentProps) {\n const [mainElement, setMainElement] = React.useState<HTMLElement | null>(\n null\n );\n const [portalContainer, setPortalContainer] = React.useState<\n HTMLElement | undefined\n >();\n React.useEffect(() => {\n UiFramework.keyboardShortcuts.setFocusToHome();\n }, []);\n\n React.useEffect(() => {\n InternalConfigurableUiManager.activityTracker.initialize({\n idleTimeout: props.idleTimeout,\n intervalTimeout: props.intervalTimeout,\n });\n return () => {\n InternalConfigurableUiManager.activityTracker.terminate();\n };\n }, [props.idleTimeout, props.intervalTimeout]);\n\n const handleMouseMove = React.useCallback((e: React.MouseEvent) => {\n const point = new Point(e.pageX, e.pageY);\n CursorInformation.handleMouseMove(point);\n }, []);\n\n return (\n <main\n role=\"main\"\n id=\"uifw-configurableui-wrapper\"\n className={props.className}\n style={props.style}\n onMouseMove={handleMouseMove}\n ref={setMainElement}\n >\n <WrapperContext.Provider value={mainElement!}>\n <ThemeProvider\n style={{ height: \"100%\" }}\n portalContainer={portalContainer}\n >\n {props.appBackstage}\n <WidgetPanelsFrontstage />\n <ContentDialogRenderer />\n <ModelessDialogRenderer />\n <ModalDialogRenderer />\n <ElementTooltip />\n <PointerMessage />\n <KeyboardShortcutMenu />\n <InputFieldMessage />\n <CursorPopupMenu />\n <CursorPopupRenderer />\n <PopupRenderer />\n <MessageRenderer />\n </ThemeProvider>\n </WrapperContext.Provider>\n <div\n className=\"uifw-configurableui-portalContainer\"\n ref={(instance) => setPortalContainer(instance ?? undefined)}\n />\n </main>\n );\n}\n"]}
1
+ {"version":3,"file":"ConfigurableUiContent.js","sourceRoot":"","sources":["../../../../src/appui-react/configurableui/ConfigurableUiContent.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C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AM,oBAAoB,GACxB,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;QAC3E,IAAI,oBAAoB,KAAK,OAAO,CAAC,QAAQ,EAAE;YAAE,OAAO;QACxD,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CACxC,uBAAuB,EACvB,OAAO,CAAC,QAAQ,EAAE,CACnB,CAAC;QACF,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC;QACzE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,iBAAiB,CACxB,cAA4D;IAE5D,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3D,mDAAmD;QACnD,OAAO,KAAK,EAAE,mBAAmB,CAAC,cAAc,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,cAAc,IAAI,mBAAmB,IAAI,uBAAuB,CAAC;IAEnE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,qBAAqB,GACzB,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;QAC5E,IAAI,qBAAqB,KAAK,OAAO,CAAC,QAAQ,EAAE;YAAE,OAAO;QACzD,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CACxC,wBAAwB,EACxB,OAAO,CAAC,QAAQ,EAAE,CACnB,CAAC;QACF,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC;QAC1E,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChB,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 ConfigurableUi\n */\n\nimport \"./ConfigurableUiContent.scss\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Point } from \"@itwin/core-react\";\nimport { ThemeProvider } from \"@itwin/itwinui-react\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport { CursorPopupMenu } from \"../cursor/cursormenu/CursorMenu\";\nimport { CursorPopupRenderer } from \"../cursor/cursorpopup/CursorPopupManager\";\nimport { ModalDialogRenderer } from \"../dialog/ModalDialogManager\";\nimport { ModelessDialogRenderer } from \"../dialog/ModelessDialogManager\";\nimport { ElementTooltip } from \"../feedback/ElementTooltip\";\nimport { KeyboardShortcutMenu } from \"../keyboardshortcut/KeyboardShortcutMenu\";\nimport { InputFieldMessage } from \"../messages/InputField\";\nimport { PointerMessage } from \"../messages/Pointer\";\nimport { PopupRenderer } from \"../popup/PopupManager\";\nimport { WidgetPanelsFrontstage } from \"../widget-panels/Frontstage\";\nimport { ContentDialogRenderer } from \"../dialog/ContentDialogManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalConfigurableUiManager } from \"./InternalConfigurableUiManager\";\nimport { MessageRenderer } from \"../messages/MessageRenderer\";\nimport {\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"../theme/ThemeId\";\nimport { useReduxFrameworkState } from \"../uistate/useReduxFrameworkState\";\n\n/** @internal */\nexport const ConfigurableUiContext = React.createContext<\n Pick<\n ConfigurableUiContentProps,\n | \"viewOverlay\"\n | \"widgetOpacity\"\n | \"widgetIcon\"\n | \"collapsePanels\"\n | \"animateToolSettings\"\n | \"toolAsToolSettingsLabel\"\n >\n>({});\n\n/** Properties for [[ConfigurableUiContent]]\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface ConfigurableUiContentProps extends CommonProps {\n /** React node of the Backstage */\n appBackstage?: React.ReactNode;\n /** Controls if the view overlay should be displayed. Uses redux store as a fallback. Defaults to `true`. */\n viewOverlay?: boolean;\n /** Describes the opacity of widgets. Uses redux store as a fallback. Defaults to {@link WIDGET_OPACITY_DEFAULT}. */\n widgetOpacity?: number;\n /** Controls if the widget icons should be displayed. Uses redux store as a fallback. Defaults to `true`. */\n widgetIcon?: boolean;\n /** Controls if the unpinned panels should be collapsed automatically. Uses redux store as a fallback. Defaults to `false`. */\n collapsePanels?: boolean;\n /** Controls if the tool settings should be animated. Uses redux store as a fallback. Defaults to `false`. */\n animateToolSettings?: boolean;\n /** Controls if the tool settings label should be set based on activated tool. Uses redux store as a fallback. Defaults to `false`. */\n toolAsToolSettingsLabel?: boolean;\n /** Describes the opacity of toolbars. Uses redux store as a fallback. Defaults to {@link TOOLBAR_OPACITY_DEFAULT}. */\n toolbarOpacity?: number;\n\n /** @internal */\n idleTimeout?: number;\n /** @internal */\n intervalTimeout?: number;\n}\n\n/**\n * Allows children to get the bounds or other properties of the wrapper element.\n * @internal\n */\nexport const WrapperContext = React.createContext<HTMLElement>(document.body);\n\n/** The ConfigurableUiContent component is the component the pages specified using ConfigurableUi\n * @public\n */\nexport function ConfigurableUiContent(props: ConfigurableUiContentProps) {\n useWidgetOpacity(props.widgetOpacity);\n useToolbarOpacity(props.toolbarOpacity);\n const [mainElement, setMainElement] = React.useState<HTMLElement | null>(\n null\n );\n const [portalContainer, setPortalContainer] = React.useState<\n HTMLElement | undefined\n >();\n React.useEffect(() => {\n UiFramework.keyboardShortcuts.setFocusToHome();\n }, []);\n\n React.useEffect(() => {\n InternalConfigurableUiManager.activityTracker.initialize({\n idleTimeout: props.idleTimeout,\n intervalTimeout: props.intervalTimeout,\n });\n return () => {\n InternalConfigurableUiManager.activityTracker.terminate();\n };\n }, [props.idleTimeout, props.intervalTimeout]);\n\n const handleMouseMove = React.useCallback((e: React.MouseEvent) => {\n const point = new Point(e.pageX, e.pageY);\n CursorInformation.handleMouseMove(point);\n }, []);\n\n return (\n <ConfigurableUiContext.Provider\n value={{\n viewOverlay: props.viewOverlay,\n widgetOpacity: props.widgetOpacity,\n widgetIcon: props.widgetIcon,\n collapsePanels: props.collapsePanels,\n animateToolSettings: props.animateToolSettings,\n toolAsToolSettingsLabel: props.toolAsToolSettingsLabel,\n }}\n >\n <main\n role=\"main\"\n id=\"uifw-configurableui-wrapper\"\n className={props.className}\n style={props.style}\n onMouseMove={handleMouseMove}\n ref={setMainElement}\n >\n <WrapperContext.Provider value={mainElement!}>\n <ThemeProvider\n style={{ height: \"100%\" }}\n portalContainer={portalContainer}\n >\n {props.appBackstage}\n <WidgetPanelsFrontstage />\n <ContentDialogRenderer />\n <ModelessDialogRenderer />\n <ModalDialogRenderer />\n <ElementTooltip />\n <PointerMessage />\n {/* eslint-disable-next-line deprecation/deprecation */}\n <KeyboardShortcutMenu />\n <InputFieldMessage />\n <CursorPopupMenu />\n <CursorPopupRenderer />\n <PopupRenderer />\n <MessageRenderer />\n </ThemeProvider>\n </WrapperContext.Provider>\n <div\n className=\"uifw-configurableui-portalContainer\"\n ref={(instance) => setPortalContainer(instance ?? undefined)}\n />\n </main>\n </ConfigurableUiContext.Provider>\n );\n}\n\nfunction useWidgetOpacity(\n widgetOpacity: ConfigurableUiContentProps[\"widgetOpacity\"]\n) {\n const reduxWidgetOpacity = useReduxFrameworkState((state) => {\n // eslint-disable-next-line deprecation/deprecation\n return state?.configurableUiState.widgetOpacity;\n });\n const opacity = widgetOpacity ?? reduxWidgetOpacity ?? WIDGET_OPACITY_DEFAULT;\n\n React.useEffect(() => {\n const currentWidgetOpacity =\n document.documentElement.style.getPropertyValue(\"--buic-widget-opacity\");\n if (currentWidgetOpacity === opacity.toString()) return;\n document.documentElement.style.setProperty(\n \"--buic-widget-opacity\",\n opacity.toString()\n );\n return () => {\n document.documentElement.style.removeProperty(\"--buic-widget-opacity\");\n };\n }, [opacity]);\n}\n\nfunction useToolbarOpacity(\n toolbarOpacity: ConfigurableUiContentProps[\"toolbarOpacity\"]\n) {\n const reduxToolbarOpacity = useReduxFrameworkState((state) => {\n // eslint-disable-next-line deprecation/deprecation\n return state?.configurableUiState.toolbarOpacity;\n });\n\n const opacity =\n toolbarOpacity ?? reduxToolbarOpacity ?? TOOLBAR_OPACITY_DEFAULT;\n\n React.useEffect(() => {\n const currentToolbarOpacity =\n document.documentElement.style.getPropertyValue(\"--buic-toolbar-opacity\");\n if (currentToolbarOpacity === opacity.toString()) return;\n document.documentElement.style.setProperty(\n \"--buic-toolbar-opacity\",\n opacity.toString()\n );\n return () => {\n document.documentElement.style.removeProperty(\"--buic-toolbar-opacity\");\n };\n }, [opacity]);\n}\n"]}
@@ -8,7 +8,7 @@ import { UiEvent } from "@itwin/appui-abstract";
8
8
  import { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl";
9
9
  /** ControlControl Activated Event Args interface.
10
10
  * @public
11
- * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.
11
+ * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
12
12
  */
13
13
  export interface ContentControlActivatedEventArgs {
14
14
  activeContentControl: ContentControl;
@@ -16,7 +16,7 @@ export interface ContentControlActivatedEventArgs {
16
16
  }
17
17
  /** ContentControl Activated Event class.
18
18
  * @public
19
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
19
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
20
20
  */
21
21
  export declare class ContentControlActivatedEvent extends UiEvent<ContentControlActivatedEventArgs> {
22
22
  }
@@ -10,7 +10,7 @@ import { UiEvent } from "@itwin/appui-abstract";
10
10
  import { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType, } from "../configurableui/ConfigurableUiControl";
11
11
  /** ContentControl Activated Event class.
12
12
  * @public
13
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
13
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
14
14
  */
15
15
  // eslint-disable-next-line deprecation/deprecation
16
16
  export class ContentControlActivatedEvent extends UiEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"ContentControl.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentControl.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AAWjD;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,4BAA6B,SAAQ,OAAyC;CAAG;AAiB9F;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,qBAAqB;IAIvD;;;OAGG;IACH,YAAY,IAA4B,EAAE,OAAY;QACpD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAPf,cAAS,GAAG,KAAK,CAAC;IAQ1B,CAAC;IAED,mDAAmD;IAC5C,WAAW,KAAU,CAAC;IAE7B,qDAAqD;IAC9C,aAAa,KAAU,CAAC;IAE/B,8EAA8E;IACvE,OAAO;QACZ,OAAO,yBAAyB,CAAC,OAAO,CAAC;IAC3C,CAAC;IAED,0DAA0D;IAC1D,IAAW,UAAU;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,uDAAuD;IACvD,IAAW,QAAQ;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAES,iBAAiB;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7D,IAAI,CAAE,IAAI,CAAC,UAAsC,CAAC,GAAG,EAAE,CAAC;gBACtD,MAAM,eAAe,GAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;YACzE,CAAC;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAES,YAAY;QACpB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,mDAAmD;IACnD,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,IAAW,SAAS,CAAC,CAAkB;QACrC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,uEAAuE;IACvE,IAAW,oBAAoB;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD,YAAY,QAAgB,EAAE,IAAY,EAAE,IAAqB;QAC/D,KAAK,CAAC,IAAI,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;CACF","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 ContentView\n */\n\nimport * as React from \"react\";\nimport type { Id64String } from \"@itwin/core-bentley\";\nimport type {\n IModelConnection,\n ScreenViewport,\n ViewState,\n} from \"@itwin/core-frontend\";\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControl,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\n\n/** ControlControl Activated Event Args interface.\n * @public\n * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface ContentControlActivatedEventArgs {\n activeContentControl: ContentControl;\n oldContentControl?: ContentControl;\n}\n\n/** ContentControl Activated 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 ContentControlActivatedEvent extends UiEvent<ContentControlActivatedEventArgs> {}\n\n/** Interface to be implemented when the ContentControl supports ViewSelector changes\n * @public\n */\nexport interface SupportsViewSelectorChange {\n /** Returns true if this control supports reacting to ViewSelector changes. */\n supportsViewSelectorChange: boolean;\n /** Process a ViewSelector change. */\n processViewSelectorChange(\n iModel: IModelConnection,\n viewDefinitionId: Id64String,\n viewState: ViewState,\n name: string\n ): Promise<void>;\n}\n\n/** The base class for Frontstage content controls.\n * @public\n */\nexport class ContentControl extends ConfigurableUiControl {\n protected _reactNode: React.ReactNode;\n private _keyAdded = false;\n\n /** Creates an instance of ContentControl.\n * @param info An object that the subclass must pass to this base class.\n * @param options Options provided via the applicationData in a [[ContentProps]].\n */\n constructor(info: ConfigurableCreateInfo, options: any) {\n super(info, options);\n }\n\n /** Called when this ContentControl is activated */\n public onActivated(): void {}\n\n /** Called when this ContentControl is deactivated */\n public onDeactivated(): void {}\n\n /** Gets the type of ConfigurableUiControl, which is 'Content' in this case */\n public getType(): ConfigurableUiControlType {\n return ConfigurableUiControlType.Content;\n }\n\n /** Returns true if this control is a Viewport control. */\n public get isViewport(): boolean {\n return false;\n }\n /** Returns the ScreenViewport if isViewport is true */\n public get viewport(): ScreenViewport | undefined {\n return undefined;\n }\n\n protected getKeyedReactNode(): React.ReactNode {\n if (!this._keyAdded && React.isValidElement(this._reactNode)) {\n if (!(this._reactNode as React.ReactElement<any>).key) {\n const additionalProps: any = { key: this.uniqueId };\n this._reactNode = React.cloneElement(this._reactNode, additionalProps);\n }\n this._keyAdded = true;\n }\n\n return this._reactNode;\n }\n\n protected getReactNode(): React.ReactNode {\n return this.getKeyedReactNode();\n }\n\n /** The React node associated with this control. */\n public get reactNode(): React.ReactNode {\n return this.getReactNode();\n }\n\n public set reactNode(r: React.ReactNode) {\n this._reactNode = r;\n }\n\n /** Get the NavigationAidControl associated with this ContentControl */\n public get navigationAidControl(): string {\n return \"\";\n }\n}\n\n/**\n * @beta\n */\nexport class FloatingContentControl extends ContentControl {\n constructor(uniqueId: string, name: string, node: React.ReactNode) {\n super(new ConfigurableCreateInfo(name, uniqueId, name), undefined);\n this._reactNode = node;\n }\n}\n"]}
1
+ {"version":3,"file":"ContentControl.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentControl.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AAWjD;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,4BAA6B,SAAQ,OAAyC;CAAG;AAiB9F;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,qBAAqB;IAIvD;;;OAGG;IACH,YAAY,IAA4B,EAAE,OAAY;QACpD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAPf,cAAS,GAAG,KAAK,CAAC;IAQ1B,CAAC;IAED,mDAAmD;IAC5C,WAAW,KAAU,CAAC;IAE7B,qDAAqD;IAC9C,aAAa,KAAU,CAAC;IAE/B,8EAA8E;IACvE,OAAO;QACZ,OAAO,yBAAyB,CAAC,OAAO,CAAC;IAC3C,CAAC;IAED,0DAA0D;IAC1D,IAAW,UAAU;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,uDAAuD;IACvD,IAAW,QAAQ;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAES,iBAAiB;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7D,IAAI,CAAE,IAAI,CAAC,UAAsC,CAAC,GAAG,EAAE,CAAC;gBACtD,MAAM,eAAe,GAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;YACzE,CAAC;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAES,YAAY;QACpB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,mDAAmD;IACnD,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,IAAW,SAAS,CAAC,CAAkB;QACrC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,uEAAuE;IACvE,IAAW,oBAAoB;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD,YAAY,QAAgB,EAAE,IAAY,EAAE,IAAqB;QAC/D,KAAK,CAAC,IAAI,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;CACF","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 ContentView\n */\n\nimport * as React from \"react\";\nimport type { Id64String } from \"@itwin/core-bentley\";\nimport type {\n IModelConnection,\n ScreenViewport,\n ViewState,\n} from \"@itwin/core-frontend\";\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControl,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\n\n/** ControlControl Activated Event Args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface ContentControlActivatedEventArgs {\n activeContentControl: ContentControl;\n oldContentControl?: ContentControl;\n}\n\n/** ContentControl Activated Event class.\n * @public\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class ContentControlActivatedEvent extends UiEvent<ContentControlActivatedEventArgs> {}\n\n/** Interface to be implemented when the ContentControl supports ViewSelector changes\n * @public\n */\nexport interface SupportsViewSelectorChange {\n /** Returns true if this control supports reacting to ViewSelector changes. */\n supportsViewSelectorChange: boolean;\n /** Process a ViewSelector change. */\n processViewSelectorChange(\n iModel: IModelConnection,\n viewDefinitionId: Id64String,\n viewState: ViewState,\n name: string\n ): Promise<void>;\n}\n\n/** The base class for Frontstage content controls.\n * @public\n */\nexport class ContentControl extends ConfigurableUiControl {\n protected _reactNode: React.ReactNode;\n private _keyAdded = false;\n\n /** Creates an instance of ContentControl.\n * @param info An object that the subclass must pass to this base class.\n * @param options Options provided via the applicationData in a [[ContentProps]].\n */\n constructor(info: ConfigurableCreateInfo, options: any) {\n super(info, options);\n }\n\n /** Called when this ContentControl is activated */\n public onActivated(): void {}\n\n /** Called when this ContentControl is deactivated */\n public onDeactivated(): void {}\n\n /** Gets the type of ConfigurableUiControl, which is 'Content' in this case */\n public getType(): ConfigurableUiControlType {\n return ConfigurableUiControlType.Content;\n }\n\n /** Returns true if this control is a Viewport control. */\n public get isViewport(): boolean {\n return false;\n }\n /** Returns the ScreenViewport if isViewport is true */\n public get viewport(): ScreenViewport | undefined {\n return undefined;\n }\n\n protected getKeyedReactNode(): React.ReactNode {\n if (!this._keyAdded && React.isValidElement(this._reactNode)) {\n if (!(this._reactNode as React.ReactElement<any>).key) {\n const additionalProps: any = { key: this.uniqueId };\n this._reactNode = React.cloneElement(this._reactNode, additionalProps);\n }\n this._keyAdded = true;\n }\n\n return this._reactNode;\n }\n\n protected getReactNode(): React.ReactNode {\n return this.getKeyedReactNode();\n }\n\n /** The React node associated with this control. */\n public get reactNode(): React.ReactNode {\n return this.getReactNode();\n }\n\n public set reactNode(r: React.ReactNode) {\n this._reactNode = r;\n }\n\n /** Get the NavigationAidControl associated with this ContentControl */\n public get navigationAidControl(): string {\n return \"\";\n }\n}\n\n/**\n * @beta\n */\nexport class FloatingContentControl extends ContentControl {\n constructor(uniqueId: string, name: string, node: React.ReactNode) {\n super(new ConfigurableCreateInfo(name, uniqueId, name), undefined);\n this._reactNode = node;\n }\n}\n"]}
@@ -6,7 +6,7 @@ import type { ScreenViewport } from "@itwin/core-frontend";
6
6
  import type { ContentLayoutProps } from "@itwin/appui-abstract";
7
7
  import type { ConfigurableUiControlConstructor } from "../configurableui/ConfigurableUiControl";
8
8
  import type { ContentControl } from "./ContentControl";
9
- import type { FrontstageConfig } from "../frontstage/FrontstageConfig";
9
+ import type { Frontstage } from "../frontstage/Frontstage";
10
10
  /** Properties for content displayed in a content view
11
11
  * @public
12
12
  */
@@ -34,8 +34,8 @@ export interface ContentGroupProps {
34
34
  * @public
35
35
  */
36
36
  export declare abstract class ContentGroupProvider {
37
- /** Return the contentGroup based on the `FrontstageConfig`. */
38
- abstract contentGroup(config: FrontstageConfig): Promise<ContentGroup>;
37
+ /** Return the contentGroup based on the `Frontstage`. */
38
+ abstract contentGroup(frontstage: Frontstage): Promise<ContentGroup>;
39
39
  /** Allow provider to update any data stored in ContentGroupProps. Typically this may
40
40
  * be to remove applicationData entries.
41
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGroup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE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S;IAIpE,iFAAiF;IAC1E,eAAe,IAAI,KAAK,CAAC,SAAS,EAAE;IAkB3C,kGAAkG;IAC3F,qBAAqB,CAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,GACpB,cAAc,GAAG,SAAS;IAa7B,uFAAuF;IAChF,mBAAmB;IAI1B,4EAA4E;IACrE,kBAAkB,IAAI,cAAc,EAAE;IAe7C,6CAA6C;IACtC,uBAAuB,IAAI,IAAI;IAItC,uCAAuC;IAChC,iBAAiB,IAAI,IAAI;IAEhC,0CAA0C;IACnC,oBAAoB,IAAI,IAAI;IAInC;;OAEG;IACI,MAAM,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,iBAAiB;IA4BnE;;OAEG;IACI,YAAY,IAAI,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;CAczD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AA0BhG;;;GAGG;AACH,MAAM,OAAgB,oBAAoB;IAIxC;;OAEG;IACI,kBAAkB,CAAC,iBAAoC;QAC5D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,wBAAwB,CAAC,iBAAoC;QAClE,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,kFAAkF;IAC3E,KAAK,CAAC,uBAAuB,KAAI,CAAC;CAC1C;AAOD;;GAEG;AACH,MAAM,OAAO,YAAY;IASvB,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,YA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AS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;;AAtMc,iBAAI,GAAG,CAAC,AAAJ,CAAK","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 ContentView\n */\n\nimport type * as React from \"react\";\nimport type { ScreenViewport } from \"@itwin/core-frontend\";\nimport type { ContentLayoutProps } from \"@itwin/appui-abstract\";\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { ConfigurableUiControlConstructor } from \"../configurableui/ConfigurableUiControl\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ContentControl } from \"./ContentControl\";\nimport type { FrontstageConfig } from \"../frontstage/FrontstageConfig\";\nimport { InternalConfigurableUiManager } from \"../configurableui/InternalConfigurableUiManager\";\n\n/** Properties for content displayed in a content view\n * @public\n */\nexport interface ContentProps {\n /** A unique id for the Content View within the group */\n id: string;\n /** The class name or [[ConfigurableUiControlConstructor]] of the content control */\n classId: string | ConfigurableUiControlConstructor;\n /** Optional application data passed down to the Content View */\n applicationData?: any;\n}\n\n/** Properties for a [[ContentGroup]]\n * @public\n */\nexport interface ContentGroupProps {\n /** An id for the [[ContentGroup]]. This id is used to locate a ContentGroup and it also can be used by an ContentGroupProvider to save/restore content settings */\n id: string;\n /** Content Layout Id or complete set of [[ContentLayoutProps]] */\n layout: ContentLayoutProps;\n /** A collection of [[ContentProps]], one for each content view */\n contents: ContentProps[];\n}\n\n/** Abstract class that can be implemented and specified by frontstage to dynamically construct\n * content group just prior to activating the frontstage.\n * @public\n */\nexport abstract class ContentGroupProvider {\n /** Return the contentGroup based on the `FrontstageConfig`. */\n public abstract contentGroup(config: FrontstageConfig): Promise<ContentGroup>;\n\n /** Allow provider to update any data stored in ContentGroupProps. Typically this may\n * be to remove applicationData entries.\n */\n public prepareToSaveProps(contentGroupProps: ContentGroupProps) {\n return contentGroupProps;\n }\n\n /** Allow provider to update any stored ContentGroupProps be it is to be used to create ContentGroup and layouts.\n * Typically this may be to add applicationData to content entries.\n */\n public applyUpdatesToSavedProps(contentGroupProps: ContentGroupProps) {\n return contentGroupProps;\n }\n\n /** Allow provider to save any content group data before the stage deactivated. */\n public async onFrontstageDeactivated() {}\n}\n\n/** Callback to process content properties during toJSON method\n * @public\n */\nexport type ContentCallback = (content: ContentProps) => void;\n\n/** ContentGroup class. Content Groups define content displayed in content views that are laid out using a [[ContentLayout]].\n * @public\n */\nexport class ContentGroup {\n private static _sId = 0;\n public groupId: string;\n public propsId: string;\n public layout: ContentLayoutProps;\n public contentPropsList: ContentProps[];\n private _contentControls = new Map<string, ContentControl>();\n private _contentSetMap = new Map<string, ContentControl>();\n\n public get id() {\n return this.groupId;\n }\n\n constructor(contentGroupProps: ContentGroupProps) {\n this.layout = { ...contentGroupProps.layout };\n this.propsId = contentGroupProps.id;\n // ensure we have a unique groupId for each instance of a content group - this will be used to generate a key in the React controls\n this.groupId = `[${contentGroupProps.id}-${ContentGroup._sId++}]`;\n this.contentPropsList = contentGroupProps.contents;\n }\n\n /** Gets a [[ContentControl]] from the Content Group based on its [[ContentProps]]. */\n public getContentControl(\n contentProps: ContentProps,\n _index: number\n ): ContentControl | undefined {\n // ensure we have a unique control Id for each instance of a content control - this will be used as a key for the React control - see `ContentControl.getKeyedReactNode`\n const id = `${contentProps.id}::${this.groupId}`;\n let contentControl: ContentControl | undefined;\n\n if (!this._contentControls.get(contentProps.id)) {\n let usedClassId: string = \"\";\n\n if (typeof contentProps.classId === \"string\") {\n if (\n !this._contentControls.get(contentProps.id) &&\n UiFramework.controls.isRegistered(contentProps.classId)\n ) {\n contentControl = UiFramework.controls.create(\n contentProps.classId,\n id,\n contentProps.applicationData,\n contentProps.id\n ) as ContentControl;\n usedClassId = contentProps.classId;\n }\n } else {\n const info = new ConfigurableCreateInfo(\n contentProps.classId.name,\n id,\n contentProps.id\n );\n contentControl = new contentProps.classId(\n info,\n contentProps.applicationData\n ) as ContentControl;\n usedClassId = contentProps.classId.name;\n }\n\n if (contentControl) {\n if (\n contentControl.getType() !== ConfigurableUiControlType.Content &&\n contentControl.getType() !== ConfigurableUiControlType.Viewport\n ) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `getContentControl error: '${usedClassId}' is NOT a ContentControl or ViewportContentControl`\n );\n }\n contentControl.initialize();\n this._contentControls.set(contentProps.id, contentControl);\n }\n }\n\n return this._contentControls.get(contentProps.id);\n }\n\n /** Gets a [[ContentControl]] from the Content Group with a given ID. */\n public getContentControlById(id: string): ContentControl | undefined {\n return this._contentControls.get(id);\n }\n\n /** Gets the React nodes representing the Content Views in this Content Group. */\n public getContentNodes(): React.ReactNode[] {\n const contentNodes: React.ReactNode[] = new Array<React.ReactNode>();\n\n this._contentSetMap.clear();\n\n this.contentPropsList.forEach(\n (contentProps: ContentProps, index: number) => {\n const control = this.getContentControl(contentProps, index);\n if (control) {\n contentNodes.push(control.reactNode);\n this._contentSetMap.set(control.controlId, control);\n }\n }\n );\n\n return contentNodes;\n }\n\n /** Gets the [[ContentControl]] associated with a given React node representing a Content View. */\n public getControlFromElement(\n node: React.ReactNode\n ): ContentControl | undefined {\n if (this._contentSetMap.size === 0) this.getContentNodes();\n\n if (node && (node as React.ReactElement<any>).key) {\n const key = (node as React.ReactElement<any>).key as string;\n // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id\n const controlId = key.split(\"::\", 1)[0];\n return this._contentSetMap.get(controlId);\n }\n\n return undefined;\n }\n\n /** Refreshes the React nodes representing the Content Views in this Content Group.. */\n public refreshContentNodes() {\n this._contentSetMap.clear();\n }\n\n /** Gets an array of the content controls representing the Content Views. */\n public getContentControls(): ContentControl[] {\n const contentControls: ContentControl[] = new Array<ContentControl>();\n\n this.contentPropsList.forEach(\n (contentProps: ContentProps, index: number) => {\n const control = this.getContentControl(contentProps, index);\n if (control) {\n contentControls.push(control);\n }\n }\n );\n\n return contentControls;\n }\n\n /** Called when Frontstage is deactivated. */\n public onFrontstageDeactivated(): void {\n this.clearContentControls();\n }\n\n /** Called when Frontstage is ready. */\n public onFrontstageReady(): void {}\n\n /** Clears the map of content controls. */\n public clearContentControls(): void {\n this._contentControls.clear();\n }\n\n /** Creates [[ContentGroupProps]] for JSON purposes\n * @public\n */\n public toJSON(contentCallback?: ContentCallback): ContentGroupProps {\n const contentGroupProps: ContentGroupProps = {\n id: this.propsId,\n layout: this.layout,\n contents: this.contentPropsList,\n };\n\n contentGroupProps.contents.forEach(\n (content: ContentProps, index: number) => {\n if (typeof content.classId !== \"string\") {\n const classId = InternalConfigurableUiManager.getConstructorClassId(\n content.classId\n );\n if (classId !== undefined) content.classId = classId;\n else\n throw new UiError( // eslint-disable-line deprecation/deprecation\n UiFramework.loggerCategory(this),\n `toJSON: ContentControl at index ${index} is NOT registered with a string id`\n );\n\n if (contentCallback) contentCallback(content);\n }\n }\n );\n\n return contentGroupProps;\n }\n\n /** Gets Viewports from Viewport Content Controls\n * @internal\n */\n public getViewports(): Array<ScreenViewport | undefined> {\n const contentControls = this.getContentControls();\n const viewports = new Array<ScreenViewport | undefined>();\n\n contentControls.forEach((control: ContentControl) => {\n if (control.isViewport && control.viewport) {\n viewports.push(control.viewport);\n } else {\n viewports.push(undefined);\n }\n });\n\n return viewports;\n }\n}\n"]}
1
+ {"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentGroup.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,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eAAe;oBAAE,eAAe,CAAC,OAAO,CAAC,CAAC;YAChD,CAAC;QACH,CAAC,CACF,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,YAAY;QACjB,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAClD,MAAM,SAAS,GAAG,IAAI,KAAK,EAA8B,CAAC;QAE1D,eAAe,CAAC,OAAO,CAAC,CAAC,OAAuB,EAAE,EAAE;YAClD,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;gBAC3C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACnC,CAAC;iBAAM,CAAC;gBACN,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;;AAtMc,iBAAI,GAAG,CAAC,AAAJ,CAAK","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 ContentView\n */\n\nimport type * as React from \"react\";\nimport type { ScreenViewport } from \"@itwin/core-frontend\";\nimport type { ContentLayoutProps } from \"@itwin/appui-abstract\";\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { ConfigurableUiControlConstructor } from \"../configurableui/ConfigurableUiControl\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ContentControl } from \"./ContentControl\";\nimport { InternalConfigurableUiManager } from \"../configurableui/InternalConfigurableUiManager\";\nimport type { Frontstage } from \"../frontstage/Frontstage\";\n\n/** Properties for content displayed in a content view\n * @public\n */\nexport interface ContentProps {\n /** A unique id for the Content View within the group */\n id: string;\n /** The class name or [[ConfigurableUiControlConstructor]] of the content control */\n classId: string | ConfigurableUiControlConstructor;\n /** Optional application data passed down to the Content View */\n applicationData?: any;\n}\n\n/** Properties for a [[ContentGroup]]\n * @public\n */\nexport interface ContentGroupProps {\n /** An id for the [[ContentGroup]]. This id is used to locate a ContentGroup and it also can be used by an ContentGroupProvider to save/restore content settings */\n id: string;\n /** Content Layout Id or complete set of [[ContentLayoutProps]] */\n layout: ContentLayoutProps;\n /** A collection of [[ContentProps]], one for each content view */\n contents: ContentProps[];\n}\n\n/** Abstract class that can be implemented and specified by frontstage to dynamically construct\n * content group just prior to activating the frontstage.\n * @public\n */\nexport abstract class ContentGroupProvider {\n /** Return the contentGroup based on the `Frontstage`. */\n public abstract contentGroup(frontstage: Frontstage): Promise<ContentGroup>;\n\n /** Allow provider to update any data stored in ContentGroupProps. Typically this may\n * be to remove applicationData entries.\n */\n public prepareToSaveProps(contentGroupProps: ContentGroupProps) {\n return contentGroupProps;\n }\n\n /** Allow provider to update any stored ContentGroupProps be it is to be used to create ContentGroup and layouts.\n * Typically this may be to add applicationData to content entries.\n */\n public applyUpdatesToSavedProps(contentGroupProps: ContentGroupProps) {\n return contentGroupProps;\n }\n\n /** Allow provider to save any content group data before the stage deactivated. */\n public async onFrontstageDeactivated() {}\n}\n\n/** Callback to process content properties during toJSON method\n * @public\n */\nexport type ContentCallback = (content: ContentProps) => void;\n\n/** ContentGroup class. Content Groups define content displayed in content views that are laid out using a [[ContentLayout]].\n * @public\n */\nexport class ContentGroup {\n private static _sId = 0;\n public groupId: string;\n public propsId: string;\n public layout: ContentLayoutProps;\n public contentPropsList: ContentProps[];\n private _contentControls = new Map<string, ContentControl>();\n private _contentSetMap = new Map<string, ContentControl>();\n\n public get id() {\n return this.groupId;\n }\n\n constructor(contentGroupProps: ContentGroupProps) {\n this.layout = { ...contentGroupProps.layout };\n this.propsId = contentGroupProps.id;\n // ensure we have a unique groupId for each instance of a content group - this will be used to generate a key in the React controls\n this.groupId = `[${contentGroupProps.id}-${ContentGroup._sId++}]`;\n this.contentPropsList = contentGroupProps.contents;\n }\n\n /** Gets a [[ContentControl]] from the Content Group based on its [[ContentProps]]. */\n public getContentControl(\n contentProps: ContentProps,\n _index: number\n ): ContentControl | undefined {\n // ensure we have a unique control Id for each instance of a content control - this will be used as a key for the React control - see `ContentControl.getKeyedReactNode`\n const id = `${contentProps.id}::${this.groupId}`;\n let contentControl: ContentControl | undefined;\n\n if (!this._contentControls.get(contentProps.id)) {\n let usedClassId: string = \"\";\n\n if (typeof contentProps.classId === \"string\") {\n if (\n !this._contentControls.get(contentProps.id) &&\n UiFramework.controls.isRegistered(contentProps.classId)\n ) {\n contentControl = UiFramework.controls.create(\n contentProps.classId,\n id,\n contentProps.applicationData,\n contentProps.id\n ) as ContentControl;\n usedClassId = contentProps.classId;\n }\n } else {\n const info = new ConfigurableCreateInfo(\n contentProps.classId.name,\n id,\n contentProps.id\n );\n contentControl = new contentProps.classId(\n info,\n contentProps.applicationData\n ) as ContentControl;\n usedClassId = contentProps.classId.name;\n }\n\n if (contentControl) {\n if (\n contentControl.getType() !== ConfigurableUiControlType.Content &&\n contentControl.getType() !== ConfigurableUiControlType.Viewport\n ) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `getContentControl error: '${usedClassId}' is NOT a ContentControl or ViewportContentControl`\n );\n }\n contentControl.initialize();\n this._contentControls.set(contentProps.id, contentControl);\n }\n }\n\n return this._contentControls.get(contentProps.id);\n }\n\n /** Gets a [[ContentControl]] from the Content Group with a given ID. */\n public getContentControlById(id: string): ContentControl | undefined {\n return this._contentControls.get(id);\n }\n\n /** Gets the React nodes representing the Content Views in this Content Group. */\n public getContentNodes(): React.ReactNode[] {\n const contentNodes: React.ReactNode[] = new Array<React.ReactNode>();\n\n this._contentSetMap.clear();\n\n this.contentPropsList.forEach(\n (contentProps: ContentProps, index: number) => {\n const control = this.getContentControl(contentProps, index);\n if (control) {\n contentNodes.push(control.reactNode);\n this._contentSetMap.set(control.controlId, control);\n }\n }\n );\n\n return contentNodes;\n }\n\n /** Gets the [[ContentControl]] associated with a given React node representing a Content View. */\n public getControlFromElement(\n node: React.ReactNode\n ): ContentControl | undefined {\n if (this._contentSetMap.size === 0) this.getContentNodes();\n\n if (node && (node as React.ReactElement<any>).key) {\n const key = (node as React.ReactElement<any>).key as string;\n // key has format `${contentProps.id}::${this.groupId}` which is stored as unique id\n const controlId = key.split(\"::\", 1)[0];\n return this._contentSetMap.get(controlId);\n }\n\n return undefined;\n }\n\n /** Refreshes the React nodes representing the Content Views in this Content Group.. */\n public refreshContentNodes() {\n this._contentSetMap.clear();\n }\n\n /** Gets an array of the content controls representing the Content Views. */\n public getContentControls(): ContentControl[] {\n const contentControls: ContentControl[] = new Array<ContentControl>();\n\n this.contentPropsList.forEach(\n (contentProps: ContentProps, index: number) => {\n const control = this.getContentControl(contentProps, index);\n if (control) {\n contentControls.push(control);\n }\n }\n );\n\n return contentControls;\n }\n\n /** Called when Frontstage is deactivated. */\n public onFrontstageDeactivated(): void {\n this.clearContentControls();\n }\n\n /** Called when Frontstage is ready. */\n public onFrontstageReady(): void {}\n\n /** Clears the map of content controls. */\n public clearContentControls(): void {\n this._contentControls.clear();\n }\n\n /** Creates [[ContentGroupProps]] for JSON purposes\n * @public\n */\n public toJSON(contentCallback?: ContentCallback): ContentGroupProps {\n const contentGroupProps: ContentGroupProps = {\n id: this.propsId,\n layout: this.layout,\n contents: this.contentPropsList,\n };\n\n contentGroupProps.contents.forEach(\n (content: ContentProps, index: number) => {\n if (typeof content.classId !== \"string\") {\n const classId = InternalConfigurableUiManager.getConstructorClassId(\n content.classId\n );\n if (classId !== undefined) content.classId = classId;\n else\n throw new UiError( // eslint-disable-line deprecation/deprecation\n UiFramework.loggerCategory(this),\n `toJSON: ContentControl at index ${index} is NOT registered with a string id`\n );\n\n if (contentCallback) contentCallback(content);\n }\n }\n );\n\n return contentGroupProps;\n }\n\n /** Gets Viewports from Viewport Content Controls\n * @internal\n */\n public getViewports(): Array<ScreenViewport | undefined> {\n const contentControls = this.getContentControls();\n const viewports = new Array<ScreenViewport | undefined>();\n\n contentControls.forEach((control: ContentControl) => {\n if (control.isViewport && control.viewport) {\n viewports.push(control.viewport);\n } else {\n viewports.push(undefined);\n }\n });\n\n return viewports;\n }\n}\n"]}
@@ -50,7 +50,7 @@ export declare class ContentLayoutDef {
50
50
  }
51
51
  /** Content Layout Activated Event Args class.
52
52
  * @public
53
- * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.
53
+ * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
54
54
  */
55
55
  export interface ContentLayoutActivatedEventArgs {
56
56
  contentLayout: ContentLayoutDef;
@@ -58,7 +58,7 @@ export interface ContentLayoutActivatedEventArgs {
58
58
  }
59
59
  /** Content Layout Activated Event class.
60
60
  * @public
61
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
61
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
62
62
  */
63
63
  export declare class ContentLayoutActivatedEvent extends UiEvent<ContentLayoutActivatedEventArgs> {
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/content/ContentLayout.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EAIpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKhD,wCAAwC;AACxC,UAAU,mBAAoB,SAAQ,WAAW;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC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QAAQ,CAAC,kBAAkB,CAAC,CAAC;gBAEjD,KAAK,EAAE,2BAA2B;IAmB9B,iBAAiB;IAMjB,oBAAoB;IAMpC,OAAO,CAAC,6BAA6B,CAiBnC;IAEc,MAAM,IAAI,KAAK,CAAC,SAAS;IAoBzC,OAAO,CAAC,YAAY,CAElB;IAEF,OAAO,CAAC,UAAU,CAEhB;CACH"}
@@ -308,7 +308,7 @@ export class ContentLayoutDef {
308
308
  }
309
309
  /** Content Layout Activated Event class.
310
310
  * @public
311
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
311
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
312
312
  */
313
313
  // eslint-disable-next-line deprecation/deprecation
314
314
  export class ContentLayoutActivatedEvent extends UiEvent {