@itwin/appui-react 4.14.1 → 4.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1247) hide show
  1. package/CHANGELOG.md +33 -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/ToolbarItemsManager.js +3 -3
  535. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  536. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  537. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  538. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  539. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  540. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
  541. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  542. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
  543. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  544. package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
  545. package/lib/cjs/appui-react/tools/ToolbarItems.js.map +1 -0
  546. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  547. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  548. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  549. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  550. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  551. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  552. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  553. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  554. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  555. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  556. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  557. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  558. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  560. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  561. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  563. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  565. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  567. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  568. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  569. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  570. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  571. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  572. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  573. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  574. package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
  575. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  576. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
  577. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  578. package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
  579. package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
  580. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  581. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  582. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
  583. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  584. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  585. package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
  586. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  587. package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
  589. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  590. package/lib/cjs/appui-react/widget-panels/Frontstage.js +21 -17
  591. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  592. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  593. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -0
  594. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  595. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  596. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  597. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
  598. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  599. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  600. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
  601. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  602. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  603. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
  604. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  605. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  607. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  608. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  609. package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
  610. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  611. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  612. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
  613. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  614. package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
  615. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  616. package/lib/cjs/appui-react.d.ts +10 -3
  617. package/lib/cjs/appui-react.d.ts.map +1 -1
  618. package/lib/cjs/appui-react.js +10 -3
  619. package/lib/cjs/appui-react.js.map +1 -1
  620. package/lib/esm/appui-react/UiFramework.d.ts +202 -140
  621. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  622. package/lib/esm/appui-react/UiFramework.js +428 -297
  623. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  624. package/lib/esm/appui-react/UiFramework.json +8 -4
  625. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  626. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  627. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  628. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  630. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  631. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
  632. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  633. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  634. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  635. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  636. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  637. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  638. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  639. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  640. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  641. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  642. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  643. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  644. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  645. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  646. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  647. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  648. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  649. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  650. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
  651. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  652. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  653. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  654. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  655. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
  656. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  657. package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
  658. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  659. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  660. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  661. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  662. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  663. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  664. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  665. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  666. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  667. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  668. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
  669. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  670. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  671. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  672. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  673. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  674. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  675. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  676. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  677. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  678. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  679. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  680. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  681. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  682. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  683. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  684. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  685. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  686. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  687. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  688. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  689. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  690. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  692. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  693. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  694. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  696. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  697. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  698. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  699. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  700. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  701. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  702. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  703. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  704. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  705. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  706. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  707. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  708. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  710. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  711. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  712. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  713. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  714. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  715. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  717. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  718. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  719. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  720. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  721. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  722. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  723. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  724. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  725. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  727. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  728. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  729. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  731. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  732. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  733. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -3
  734. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  735. package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -1
  736. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  737. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  738. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  739. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  740. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  741. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  742. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  743. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  745. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  746. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  747. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  748. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  749. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  750. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  752. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  754. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  755. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  756. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  757. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  759. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  760. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  761. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  762. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  763. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  764. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  765. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  766. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  767. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  768. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  769. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  771. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  773. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  775. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  776. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  778. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  779. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  780. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  781. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  782. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  783. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  784. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  785. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  786. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  787. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  788. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  790. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  791. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  792. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  793. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  794. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  795. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  796. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  797. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  798. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  799. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  800. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  801. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  802. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  803. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  805. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  807. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  820. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  821. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  822. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  823. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  824. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  828. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  829. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  830. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  831. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  832. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  848. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  849. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  850. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  852. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  854. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  856. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  857. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  858. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  860. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  866. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  867. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  868. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  869. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  870. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  872. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  875. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  877. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  878. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  879. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  880. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  882. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  884. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  886. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  895. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  896. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  897. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  898. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  899. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  900. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  901. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  902. package/lib/esm/appui-react/messages/InputField.js +6 -2
  903. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  904. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  905. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  906. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  908. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  910. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  911. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  912. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  913. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  914. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  915. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  916. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  917. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  918. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  919. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  920. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  921. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  922. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  923. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  925. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  927. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  929. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  930. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  931. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  932. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  933. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  934. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  935. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  936. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  937. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  938. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  939. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  940. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  941. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  942. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  943. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  944. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  945. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  946. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  947. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  948. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  949. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  950. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  951. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  952. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  953. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  954. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  955. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  956. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  957. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  958. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  959. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  960. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  961. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  962. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  963. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  964. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  965. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  966. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  967. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  968. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  969. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  970. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  971. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  972. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  973. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  974. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  975. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  976. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  977. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  978. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  979. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  980. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  981. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  982. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  983. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  984. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  985. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  986. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  987. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  988. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  989. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  990. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  991. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  992. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  993. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  994. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  995. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  996. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  997. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  998. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  999. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  1000. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  1001. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1002. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1003. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1004. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1005. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1006. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1007. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1008. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1009. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1011. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1013. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1014. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1015. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1016. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1017. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1018. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1020. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1022. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1023. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1024. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1025. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1026. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1027. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1028. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1029. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1031. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1033. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1035. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1037. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1038. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1039. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1040. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1041. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1042. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1043. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1044. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1045. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1046. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1047. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1048. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1049. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1050. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1051. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1052. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1053. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1055. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1057. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1059. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1060. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1061. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1062. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1063. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1065. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1067. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1069. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1071. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1079. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1081. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1083. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1084. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1085. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1086. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1087. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1088. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1094. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1096. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1098. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1100. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1102. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1104. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1106. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1108. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1109. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1110. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1113. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1115. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1117. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1118. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1119. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1120. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1121. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1122. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1123. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1124. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1125. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1126. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1127. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1128. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1129. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1130. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1131. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1133. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1134. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1135. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1137. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1139. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1140. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1141. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1142. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1144. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1146. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1148. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1152. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js +3 -3
  1153. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  1154. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1155. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1156. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  1157. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1158. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
  1159. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1160. package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
  1161. package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  1162. package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
  1163. package/lib/esm/appui-react/tools/ToolbarItems.js.map +1 -0
  1164. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1165. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  1166. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1167. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1168. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  1169. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1170. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1171. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1172. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1173. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1174. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  1175. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1176. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1177. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1178. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1179. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1180. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  1181. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1182. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  1183. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1184. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  1185. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1186. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1187. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  1188. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  1189. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1190. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1191. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
  1193. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1194. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
  1195. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  1196. package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
  1197. package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
  1198. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  1199. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  1200. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
  1201. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  1202. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1203. package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
  1204. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1205. package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  1206. package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
  1207. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1208. package/lib/esm/appui-react/widget-panels/Frontstage.js +21 -17
  1209. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1210. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -0
  1212. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1213. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  1214. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1215. package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
  1216. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1217. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1218. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
  1219. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1220. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1221. package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
  1222. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1223. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1224. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1225. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1226. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1227. package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
  1228. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1229. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1230. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
  1231. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1232. package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
  1233. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1234. package/lib/esm/appui-react.d.ts +10 -3
  1235. package/lib/esm/appui-react.d.ts.map +1 -1
  1236. package/lib/esm/appui-react.js +10 -3
  1237. package/lib/esm/appui-react.js.map +1 -1
  1238. package/lib/public/locales/en/UiFramework.json +8 -4
  1239. package/package.json +8 -8
  1240. package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
  1241. package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
  1242. package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
  1243. package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
  1244. package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
  1245. package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
  1246. package/lib/esm/appui-react/configurableui/state.js.map +0 -1
  1247. package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
@@ -30,7 +30,7 @@ export class FrameworkUiAdmin extends UiAdmin {
30
30
  this._localizedKeyinPreference = KeyinFieldLocalization.NonLocalized;
31
31
  }
32
32
  /**
33
- * @deprecated in 4.11.x. Gathering and filtering of keyins is now left up to the user.
33
+ * @deprecated in 4.11.0. Gathering and filtering of keyins is now left up to the user.
34
34
  */
35
35
  get localizedKeyinPreference() {
36
36
  return this._localizedKeyinPreference;
@@ -39,19 +39,19 @@ export class FrameworkUiAdmin extends UiAdmin {
39
39
  this._localizedKeyinPreference = preference;
40
40
  }
41
41
  /** Gets the cursor X and Y position, which is mouseEvent.pageX and mouseEvent.pageY.
42
- * @deprecated in 4.11.x. Please use {@link CursorInformation.cursorPosition}
42
+ * @deprecated in 4.11.0. Please use {@link CursorInformation.cursorPosition}
43
43
  */
44
44
  get cursorPosition() {
45
45
  return CursorInformation.cursorPosition;
46
46
  }
47
47
  /** Determines if focus is set to Home
48
- * @deprecated in 4.11.x. Please use {@link UiFramework.keyboardShortcuts().isFocusOnHome}
48
+ * @deprecated in 4.11.0. Please use {@link UiFramework.keyboardShortcuts().isFocusOnHome}
49
49
  */
50
50
  get isFocusOnHome() {
51
51
  return UiFramework.keyboardShortcuts.isFocusOnHome;
52
52
  }
53
53
  /** Sets focus to Home
54
- * @deprecated in 4.11.x. Please use {@link UiFramework.keyboardShortcuts().setFocusToHome}
54
+ * @deprecated in 4.11.0. Please use {@link UiFramework.keyboardShortcuts().setFocusToHome}
55
55
  */
56
56
  setFocusToHome() {
57
57
  UiFramework.keyboardShortcuts.setFocusToHome();
@@ -61,13 +61,13 @@ export class FrameworkUiAdmin extends UiAdmin {
61
61
  * @param location Location of the context menu, relative to the origin of htmlElement or the overall window.
62
62
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
63
63
  * @return true if the menu was displayed, false if the menu could not be displayed.
64
- * @deprecated in 4.11.x. Use {@link UiFramework.openContextMenu}
64
+ * @deprecated in 4.11.0. Use {@link UiFramework.openContextMenu}
65
65
  */
66
66
  showContextMenu(items, location, htmlElement) {
67
67
  return UiFramework.openContextMenu(items, location, htmlElement);
68
68
  }
69
69
  /**
70
- * @deprecated in 4.11.x. Construct your own {@link KeyinEntry[]} via {@link @itwin/core-frontend#IModelApp.tools.getToolList}.
70
+ * @deprecated in 4.11.0. Construct your own {@link KeyinEntry[]} via {@link @itwin/core-frontend#IModelApp.tools.getToolList}.
71
71
  */
72
72
  getKeyins() {
73
73
  const tools = IModelApp.tools.getToolList();
@@ -76,7 +76,7 @@ export class FrameworkUiAdmin extends UiAdmin {
76
76
  /** Show the Key-in Palette to display key-in from all registered Tools.
77
77
  * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.
78
78
  * @return true if the Command Palette was displayed, false if it could not be displayed.
79
- * @deprecated in 4.11.x. Use {@link UiFramework.showKeyinPalette}. Please note, the use of feature flags to control whether the KeyinPalette can be opened has been deprecated.
79
+ * @deprecated in 4.11.0. Use {@link UiFramework.showKeyinPalette}. Please note, the use of feature flags to control whether the KeyinPalette can be opened has been deprecated.
80
80
  */
81
81
  showKeyinPalette(htmlElement) {
82
82
  if (!this.featureFlags.allowKeyinPalette)
@@ -87,7 +87,7 @@ export class FrameworkUiAdmin extends UiAdmin {
87
87
  }
88
88
  /**
89
89
  * Hides the Key-in Palette.
90
- * @deprecated in 4.11.x. Use {@link UiFramework.hideKeyinPalette}
90
+ * @deprecated in 4.11.0. Use {@link UiFramework.hideKeyinPalette}
91
91
  */
92
92
  hideKeyinPalette() {
93
93
  if (!this.featureFlags.allowKeyinPalette)
@@ -103,14 +103,14 @@ export class FrameworkUiAdmin extends UiAdmin {
103
103
  * @param relativePosition Position relative to the given location. Defaults to TopRight.
104
104
  * @param htmlElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.
105
105
  * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.
106
- * @deprecated in 4.11.x. Please use {@link UiFramework.showToolbar}.
106
+ * @deprecated in 4.11.0. Please use {@link UiFramework.showToolbar}.
107
107
  */
108
108
  showToolbar(toolbarProps, location, offset, onItemExecuted, onCancel, relativePosition, htmlElement) {
109
109
  const placement = mapToPlacement(relativePosition);
110
110
  return UiFramework.showToolbar(toolbarProps, location, offset, onItemExecuted, onCancel, placement, htmlElement);
111
111
  }
112
112
  /** Hides the toolbar.
113
- * @deprecated in 4.11.x. Please use {@link UiFramework.hideToolbar}.
113
+ * @deprecated in 4.11.0. Please use {@link UiFramework.hideToolbar}.
114
114
  */
115
115
  hideToolbar() {
116
116
  return UiFramework.hideToolbar();
@@ -121,7 +121,7 @@ export class FrameworkUiAdmin extends UiAdmin {
121
121
  * @param location Location of the context menu, relative to the origin of htmlElement or the window.
122
122
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
123
123
  * @return true if the menu was displayed, false if the menu could not be displayed.
124
- * @deprecated in 4.11.x. Please use {@link UiFramework.showMenuButton}.
124
+ * @deprecated in 4.11.0. Please use {@link UiFramework.showMenuButton}.
125
125
  */
126
126
  showMenuButton(id, menuItemsProps, location, htmlElement) {
127
127
  return UiFramework.showMenuButton(id, menuItemsProps, location, htmlElement);
@@ -129,7 +129,7 @@ export class FrameworkUiAdmin extends UiAdmin {
129
129
  /** Hides a menu button.
130
130
  * @param id Id of the menu button. Multiple menu buttons may be displayed.
131
131
  * @return true if the menu was hidden, false if the menu could not be hidden.
132
- * @deprecated in 4.11.x. Please use {@link UiFramework.hideMenuButton}.
132
+ * @deprecated in 4.11.0. Please use {@link UiFramework.hideMenuButton}.
133
133
  */
134
134
  hideMenuButton(id) {
135
135
  return UiFramework.hideMenuButton(id);
@@ -142,13 +142,13 @@ export class FrameworkUiAdmin extends UiAdmin {
142
142
  * @param onCancel Function called when the Cancel button or the Escape key is pressed.
143
143
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
144
144
  * @return true if the menu was displayed, false if the menu could not be displayed.
145
- * @deprecated in 4.11.x. Use {@link UiFramework.showCalculator}.
145
+ * @deprecated in 4.11.0. Use {@link UiFramework.showCalculator}.
146
146
  */
147
147
  showCalculator(initialValue, resultIcon, location, onOk, onCancel, htmlElement) {
148
148
  return UiFramework.showCalculator(initialValue, resultIcon, location, onOk, onCancel, htmlElement);
149
149
  }
150
150
  /** Hides the calculator.
151
- * @deprecated in 4.11.x. Use {@link UiFramework.hideCalculator}.
151
+ * @deprecated in 4.11.0. Use {@link UiFramework.hideCalculator}.
152
152
  */
153
153
  hideCalculator() {
154
154
  return UiFramework.hideCalculator();
@@ -160,7 +160,7 @@ export class FrameworkUiAdmin extends UiAdmin {
160
160
  * @param onCancel Function called when the Cancel button or the Escape key is pressed.
161
161
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
162
162
  * @return true if the editor was displayed, false if the editor could not be displayed.
163
- * @deprecated in 4.11.x. Use {@link UiFramework.showAngleEditor}.
163
+ * @deprecated in 4.11.0. Use {@link UiFramework.showAngleEditor}.
164
164
  */
165
165
  showAngleEditor(initialValue, location, onCommit, onCancel, htmlElement) {
166
166
  return UiFramework.showAngleEditor(initialValue, location, onCommit, onCancel, htmlElement);
@@ -172,7 +172,7 @@ export class FrameworkUiAdmin extends UiAdmin {
172
172
  * @param onCancel Function called when the Cancel button or the Escape key is pressed.
173
173
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
174
174
  * @return true if the editor was displayed, false if the editor could not be displayed.
175
- * @deprecated in 4.11.x. Use {@link UiFramework.showDimensionEditor("length")}.
175
+ * @deprecated in 4.11.0. Use {@link UiFramework.showDimensionEditor("length")}.
176
176
  */
177
177
  showLengthEditor(initialValue, location, onCommit, onCancel, htmlElement) {
178
178
  return UiFramework.showDimensionEditor("length", initialValue, location, onCommit, onCancel, htmlElement);
@@ -184,7 +184,7 @@ export class FrameworkUiAdmin extends UiAdmin {
184
184
  * @param onCancel Function called when the Cancel button or the Escape key is pressed.
185
185
  * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.
186
186
  * @return true if the editor was displayed, false if the editor could not be displayed.
187
- * @deprecated in 4.11.x. Use {@link UiFramework.showDimensionEditor("height")}.
187
+ * @deprecated in 4.11.0. Use {@link UiFramework.showDimensionEditor("height")}.
188
188
  */
189
189
  showHeightEditor(initialValue, location, onCommit, onCancel, htmlElement) {
190
190
  return UiFramework.showDimensionEditor("height", initialValue, location, onCommit, onCancel, htmlElement);
@@ -220,7 +220,7 @@ export class FrameworkUiAdmin extends UiAdmin {
220
220
  * @param relativePosition Position relative to the given location. Defaults to TopRight.
221
221
  * @param anchorElement The HTMLElement that anchors the display element. If undefined, the location is relative to the overall window.
222
222
  * @return true if the display element was displayed, false if the display element could not be displayed.
223
- * @deprecated in 4.11.x. Use {@link UiFramework.showComponent}
223
+ * @deprecated in 4.11.0. Use {@link UiFramework.showComponent}
224
224
  */
225
225
  showHTMLElement(displayElement, location, offset, onCancel, relativePosition, anchorElement) {
226
226
  const el = anchorElement ?? UiFramework.controls.getWrapperElement();
@@ -230,7 +230,7 @@ export class FrameworkUiAdmin extends UiAdmin {
230
230
  }
231
231
  /**
232
232
  * Hides the HTML Element.
233
- * @deprecated in 4.11.x. Use {@link UiFramework.hideComponent}
233
+ * @deprecated in 4.11.0. Use {@link UiFramework.hideComponent}
234
234
  */
235
235
  hideHTMLElement() {
236
236
  return PopupManager.hideHTMLElement();
@@ -1 +1 @@
1
- {"version":3,"file":"FrameworkUiAdmin.js","sourceRoot":"","sources":["../../../../src/appui-react/uiadmin/FrameworkUiAdmin.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAejD,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO;IAA7C;;QACU,8BAAyB,GAC/B,sBAAsB,CAAC,YAAY,CAAC;IAuexC,CAAC;IAreC;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GAAG,GAAI,CAAC;AAC3B,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 Admin\n */\n\nimport * as React from \"react\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n AbstractMenuItemProps,\n AbstractToolbarProps,\n CommonToolbarItem,\n DialogLayoutDataProvider,\n DialogProps,\n OnCancelFunc,\n OnItemExecutedFunc,\n OnNumberCommitFunc,\n OnValueCommitFunc,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { RelativePosition, UiAdmin } from \"@itwin/appui-abstract\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport { PopupManager } from \"../popup/PopupManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { KeyinEntry } from \"../keyins/Keyins\";\nimport {\n getKeyinsFromToolList,\n KeyinFieldLocalization,\n} from \"../keyins/Keyins\";\nimport { mapToPlacement } from \"../utils/Placement\";\nimport type { ToolbarProps } from \"../toolbar/Toolbar\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport type { CursorMenuItemProps } from \"../shared/MenuItem\";\n\n/** Subclass of `UiAdmin` in `@itwin/core-frontend` to be used to initialize `IModelApp`.\n *\n * This implementation uses themed react components that blends in AppUI look and feel.\n *\n * ```ts\n * await IModelApp.startup({\n * uiAdmin: new FrameworkUiAdmin()\n * });\n * ```\n * @public\n */\nexport class FrameworkUiAdmin extends UiAdmin {\n private _localizedKeyinPreference: KeyinFieldLocalization =\n KeyinFieldLocalization.NonLocalized;\n\n /**\n * @deprecated in 4.11.x. Gathering and filtering of keyins is now left up to the user.\n */\n public get localizedKeyinPreference(): KeyinFieldLocalization {\n return this._localizedKeyinPreference;\n }\n\n public set localizedKeyinPreference(preference: KeyinFieldLocalization) {\n this._localizedKeyinPreference = preference;\n }\n\n /** Gets the cursor X and Y position, which is mouseEvent.pageX and mouseEvent.pageY.\n * @deprecated in 4.11.x. Please use {@link CursorInformation.cursorPosition}\n */\n public override get cursorPosition(): XAndY {\n return CursorInformation.cursorPosition;\n }\n\n /** Determines if focus is set to Home\n * @deprecated in 4.11.x. Please use {@link UiFramework.keyboardShortcuts().isFocusOnHome}\n */\n public override get isFocusOnHome(): boolean {\n return UiFramework.keyboardShortcuts.isFocusOnHome;\n }\n\n /** Sets focus to Home\n * @deprecated in 4.11.x. Please use {@link UiFramework.keyboardShortcuts().setFocusToHome}\n */\n public override setFocusToHome(): void {\n UiFramework.keyboardShortcuts.setFocusToHome();\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of htmlElement or the overall window.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.openContextMenu}\n */\n public override showContextMenu(\n items: AbstractMenuItemProps[],\n location: XAndY,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.openContextMenu(\n items as CursorMenuItemProps[],\n location,\n htmlElement\n );\n }\n\n /**\n * @deprecated in 4.11.x. Construct your own {@link KeyinEntry[]} via {@link @itwin/core-frontend#IModelApp.tools.getToolList}.\n */\n public getKeyins(): KeyinEntry[] {\n const tools = IModelApp.tools.getToolList();\n return getKeyinsFromToolList(tools);\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showKeyinPalette}. Please note, the use of feature flags to control whether the KeyinPalette can be opened has been deprecated.\n */\n public override showKeyinPalette(htmlElement?: HTMLElement): boolean {\n if (!this.featureFlags.allowKeyinPalette) return false;\n\n const tools = IModelApp.tools.getToolList();\n const keyIns = getKeyinsFromToolList(tools);\n\n return UiFramework.showKeyinPalette(keyIns, htmlElement);\n }\n\n /**\n * Hides the Key-in Palette.\n * @deprecated in 4.11.x. Use {@link UiFramework.hideKeyinPalette}\n */\n public override hideKeyinPalette(): boolean {\n if (!this.featureFlags.allowKeyinPalette) return false;\n\n return UiFramework.hideKeyinPalette();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of htmlElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param htmlElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n * @deprecated in 4.11.x. Please use {@link UiFramework.showToolbar}.\n */\n public override showToolbar(\n toolbarProps: AbstractToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n htmlElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n\n return UiFramework.showToolbar(\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n htmlElement\n );\n }\n\n /** Hides the toolbar.\n * @deprecated in 4.11.x. Please use {@link UiFramework.hideToolbar}.\n */\n public override hideToolbar(): boolean {\n return UiFramework.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of htmlElement or the window.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.x. Please use {@link UiFramework.showMenuButton}.\n */\n public override showMenuButton(\n id: string,\n menuItemsProps: AbstractMenuItemProps[],\n location: XAndY,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showMenuButton(\n id,\n menuItemsProps as CursorMenuItemProps[],\n location,\n htmlElement\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n * @deprecated in 4.11.x. Please use {@link UiFramework.hideMenuButton}.\n */\n public override hideMenuButton(id: string): boolean {\n return UiFramework.hideMenuButton(id);\n }\n\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of htmlElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showCalculator}.\n */\n public override showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showCalculator(\n initialValue,\n resultIcon,\n location,\n onOk,\n onCancel,\n htmlElement\n );\n }\n\n /** Hides the calculator.\n * @deprecated in 4.11.x. Use {@link UiFramework.hideCalculator}.\n */\n public override hideCalculator(): boolean {\n return UiFramework.hideCalculator();\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showAngleEditor}.\n */\n public override showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showAngleEditor(\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showDimensionEditor(\"length\")}.\n */\n public override showLengthEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showDimensionEditor(\n \"length\",\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a height value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showDimensionEditor(\"height\")}.\n */\n public override showHeightEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showDimensionEditor(\n \"height\",\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a primitive value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param propertyDescription Description of the primitive value property\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public override showInputEditor(\n initialValue: Primitives.Value,\n propertyDescription: PropertyDescription,\n location: XAndY,\n onCommit: OnValueCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showInputEditor({\n initialValue,\n propertyDescription,\n location,\n onCommit,\n onCancel,\n anchorElement: htmlElement,\n });\n }\n\n /** Hides the input editor.*/\n public override hideInputEditor(): boolean {\n return UiFramework.hideInputEditor();\n }\n\n /** Show an HTML element at a particular location.\n * @param displayElement The HTMLElement to display\n * @param location Location of the display element, relative to the origin of htmlElement or the window\n * @param offset Offset of the display element from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the display element\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the display element. If undefined, the location is relative to the overall window.\n * @return true if the display element was displayed, false if the display element could not be displayed.\n * @deprecated in 4.11.x. Use {@link UiFramework.showComponent}\n */\n public override showHTMLElement(\n displayElement: HTMLElement,\n location: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const el = anchorElement ?? UiFramework.controls.getWrapperElement();\n\n if (relativePosition === undefined)\n relativePosition = RelativePosition.TopRight;\n\n return PopupManager.showHTMLElement(\n displayElement,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Hides the HTML Element.\n * @deprecated in 4.11.x. Use {@link UiFramework.hideComponent}\n */\n public override hideHTMLElement(): boolean {\n return PopupManager.hideHTMLElement();\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The HTMLElement of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of htmlElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n */\n public override showCard(\n content: HTMLElement,\n title: string | PropertyRecord | undefined,\n toolbarProps: AbstractToolbarProps | undefined,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.showCard(\n <CardRenderer content={content} />,\n title,\n toolbarProps\n ? AbstractToolbarPropsToToolbarProps(toolbarProps)\n : { items: [] },\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /** Show a Card containing React-based content, a title and a toolbar at a particular location.\n * @param content The React node of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of htmlElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n */\n public showReactCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: AbstractToolbarProps | undefined,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.showCard(\n content,\n title,\n toolbarProps\n ? AbstractToolbarPropsToToolbarProps(toolbarProps)\n : { items: [] },\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /**\n * Hides the Card.\n * */\n public override hideCard(): boolean {\n return UiFramework.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public override openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.openToolSettingsPopup(\n dataProvider,\n location,\n offset,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /** Closes the Tool Settings Ui popup. */\n public override closeToolSettingsPopup(): boolean {\n return UiFramework.closeToolSettingsPopup();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public override openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n return UiFramework.openDialog(\n uiDataProvider,\n title,\n isModal,\n id,\n optionalProps\n );\n }\n\n /** Closes the Tool Settings Ui popup.*/\n public override closeDialog(dialogId: string): boolean {\n return UiFramework.closeDialog(dialogId);\n }\n}\n\n// utility functions to wean off appui-abstract\nfunction AbstractToolbarPropsToToolbarProps(\n props: AbstractToolbarProps\n): ToolbarProps {\n return {\n items: props.items.map(CommonToolbarItemToToolBarItem),\n itemId: props.toolbarId,\n };\n}\n\nfunction CommonToolbarItemToToolBarItem(item: CommonToolbarItem): ToolbarItem {\n return {\n ...item,\n badge: item.badgeType,\n };\n}\n\ninterface CardRendererProps {\n content: HTMLElement;\n}\n\nfunction CardRenderer({ content }: CardRendererProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n const el = ref.current;\n el?.appendChild(content);\n return () => {\n el?.removeChild(content);\n };\n }, [content]);\n\n return <div ref={ref} />;\n}\n"]}
1
+ {"version":3,"file":"FrameworkUiAdmin.js","sourceRoot":"","sources":["../../../../src/appui-react/uiadmin/FrameworkUiAdmin.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAejD,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO;IAA7C;;QACU,8BAAyB,GAC/B,sBAAsB,CAAC,YAAY,CAAC;IAuexC,CAAC;IAreC;;OAEG;IACH,IAAW,wBAAwB;QACjC,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAW,wBAAwB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,CAAC;IAED,yCAAyC;IACzB,sBAAsB;QACpC,OAAO,WAAW,CAAC,sBAAsB,EAAE,CAAC;IAC9C,CAAC;IAED;;;;;;;OAOG;IACa,UAAU,CACxB,cAAwC,EACxC,KAAa,EACb,OAAgB,EAChB,EAAU,EACV,aAA2B;QAE3B,OAAO,WAAW,CAAC,UAAU,CAC3B,cAAc,EACd,KAAK,EACL,OAAO,EACP,EAAE,EACF,aAAa,CACd,CAAC;IACJ,CAAC;IAED,wCAAwC;IACxB,WAAW,CAAC,QAAgB;QAC1C,OAAO,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,+CAA+C;AAC/C,SAAS,kCAAkC,CACzC,KAA2B;IAE3B,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,8BAA8B,CAAC;QACtD,MAAM,EAAE,KAAK,CAAC,SAAS;KACxB,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B,CAAC,IAAuB;IAC7D,OAAO;QACL,GAAG,IAAI;QACP,KAAK,EAAE,IAAI,CAAC,SAAS;KACtB,CAAC;AACJ,CAAC;AAMD,SAAS,YAAY,CAAC,EAAE,OAAO,EAAqB;IAClD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE/C,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,EAAE,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QACzB,OAAO,GAAG,EAAE;YACV,EAAE,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,6BAAK,GAAG,EAAE,GAAG,GAAI,CAAC;AAC3B,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 Admin\n */\n\nimport * as React from \"react\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type {\n AbstractMenuItemProps,\n AbstractToolbarProps,\n CommonToolbarItem,\n DialogLayoutDataProvider,\n DialogProps,\n OnCancelFunc,\n OnItemExecutedFunc,\n OnNumberCommitFunc,\n OnValueCommitFunc,\n Primitives,\n PropertyDescription,\n PropertyRecord,\n} from \"@itwin/appui-abstract\";\nimport { RelativePosition, UiAdmin } from \"@itwin/appui-abstract\";\nimport { CursorInformation } from \"../cursor/CursorInformation\";\nimport { PopupManager } from \"../popup/PopupManager\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { KeyinEntry } from \"../keyins/Keyins\";\nimport {\n getKeyinsFromToolList,\n KeyinFieldLocalization,\n} from \"../keyins/Keyins\";\nimport { mapToPlacement } from \"../utils/Placement\";\nimport type { ToolbarProps } from \"../toolbar/Toolbar\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport type { CursorMenuItemProps } from \"../shared/MenuItem\";\n\n/** Subclass of `UiAdmin` in `@itwin/core-frontend` to be used to initialize `IModelApp`.\n *\n * This implementation uses themed react components that blends in AppUI look and feel.\n *\n * ```ts\n * await IModelApp.startup({\n * uiAdmin: new FrameworkUiAdmin()\n * });\n * ```\n * @public\n */\nexport class FrameworkUiAdmin extends UiAdmin {\n private _localizedKeyinPreference: KeyinFieldLocalization =\n KeyinFieldLocalization.NonLocalized;\n\n /**\n * @deprecated in 4.11.0. Gathering and filtering of keyins is now left up to the user.\n */\n public get localizedKeyinPreference(): KeyinFieldLocalization {\n return this._localizedKeyinPreference;\n }\n\n public set localizedKeyinPreference(preference: KeyinFieldLocalization) {\n this._localizedKeyinPreference = preference;\n }\n\n /** Gets the cursor X and Y position, which is mouseEvent.pageX and mouseEvent.pageY.\n * @deprecated in 4.11.0. Please use {@link CursorInformation.cursorPosition}\n */\n public override get cursorPosition(): XAndY {\n return CursorInformation.cursorPosition;\n }\n\n /** Determines if focus is set to Home\n * @deprecated in 4.11.0. Please use {@link UiFramework.keyboardShortcuts().isFocusOnHome}\n */\n public override get isFocusOnHome(): boolean {\n return UiFramework.keyboardShortcuts.isFocusOnHome;\n }\n\n /** Sets focus to Home\n * @deprecated in 4.11.0. Please use {@link UiFramework.keyboardShortcuts().setFocusToHome}\n */\n public override setFocusToHome(): void {\n UiFramework.keyboardShortcuts.setFocusToHome();\n }\n\n /** Show a context menu at a particular location.\n * @param items Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of htmlElement or the overall window.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.openContextMenu}\n */\n public override showContextMenu(\n items: AbstractMenuItemProps[],\n location: XAndY,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.openContextMenu(\n items as CursorMenuItemProps[],\n location,\n htmlElement\n );\n }\n\n /**\n * @deprecated in 4.11.0. Construct your own {@link KeyinEntry[]} via {@link @itwin/core-frontend#IModelApp.tools.getToolList}.\n */\n public getKeyins(): KeyinEntry[] {\n const tools = IModelApp.tools.getToolList();\n return getKeyinsFromToolList(tools);\n }\n\n /** Show the Key-in Palette to display key-in from all registered Tools.\n * @param htmlElement The HTMLElement that anchors the Popup. If undefined, the location is relative to the overall window.\n * @return true if the Command Palette was displayed, false if it could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showKeyinPalette}. Please note, the use of feature flags to control whether the KeyinPalette can be opened has been deprecated.\n */\n public override showKeyinPalette(htmlElement?: HTMLElement): boolean {\n if (!this.featureFlags.allowKeyinPalette) return false;\n\n const tools = IModelApp.tools.getToolList();\n const keyIns = getKeyinsFromToolList(tools);\n\n return UiFramework.showKeyinPalette(keyIns, htmlElement);\n }\n\n /**\n * Hides the Key-in Palette.\n * @deprecated in 4.11.0. Use {@link UiFramework.hideKeyinPalette}\n */\n public override hideKeyinPalette(): boolean {\n if (!this.featureFlags.allowKeyinPalette) return false;\n\n return UiFramework.hideKeyinPalette();\n }\n\n /** Show a Toolbar at a particular location.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Toolbar, relative to the origin of htmlElement or the overall window.\n * @param offset Offset of the Toolbar from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param htmlElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n * @deprecated in 4.11.0. Please use {@link UiFramework.showToolbar}.\n */\n public override showToolbar(\n toolbarProps: AbstractToolbarProps,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n htmlElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n\n return UiFramework.showToolbar(\n toolbarProps,\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n htmlElement\n );\n }\n\n /** Hides the toolbar.\n * @deprecated in 4.11.0. Please use {@link UiFramework.hideToolbar}.\n */\n public override hideToolbar(): boolean {\n return UiFramework.hideToolbar();\n }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @param menuItemsProps Properties of the menu items to display.\n * @param location Location of the context menu, relative to the origin of htmlElement or the window.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.0. Please use {@link UiFramework.showMenuButton}.\n */\n public override showMenuButton(\n id: string,\n menuItemsProps: AbstractMenuItemProps[],\n location: XAndY,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showMenuButton(\n id,\n menuItemsProps as CursorMenuItemProps[],\n location,\n htmlElement\n );\n }\n\n /** Hides a menu button.\n * @param id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n * @deprecated in 4.11.0. Please use {@link UiFramework.hideMenuButton}.\n */\n public override hideMenuButton(id: string): boolean {\n return UiFramework.hideMenuButton(id);\n }\n\n /** Show a calculator at a particular location.\n * @param initialValue Value initially displayed in the calculator.\n * @param resultIcon Icon displayed to the left of the value.\n * @param location Location of the calculator, relative to the origin of htmlElement or the window.\n * @param onOk Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showCalculator}.\n */\n public override showCalculator(\n initialValue: number,\n resultIcon: string,\n location: XAndY,\n onOk: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showCalculator(\n initialValue,\n resultIcon,\n location,\n onOk,\n onCancel,\n htmlElement\n );\n }\n\n /** Hides the calculator.\n * @deprecated in 4.11.0. Use {@link UiFramework.hideCalculator}.\n */\n public override hideCalculator(): boolean {\n return UiFramework.hideCalculator();\n }\n\n /** Show an input editor for an angle value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showAngleEditor}.\n */\n public override showAngleEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showAngleEditor(\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showDimensionEditor(\"length\")}.\n */\n public override showLengthEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showDimensionEditor(\n \"length\",\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a height value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showDimensionEditor(\"height\")}.\n */\n public override showHeightEditor(\n initialValue: number,\n location: XAndY,\n onCommit: OnNumberCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showDimensionEditor(\n \"height\",\n initialValue,\n location,\n onCommit,\n onCancel,\n htmlElement\n );\n }\n\n /** Show an input editor for a primitive value at a particular location.\n * @param initialValue Value initially displayed in the editor.\n * @param propertyDescription Description of the primitive value property\n * @param location Location of the editor, relative to the origin of htmlElement or the window.\n * @param onCommit Function called when the OK button or the Enter key is pressed.\n * @param onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public override showInputEditor(\n initialValue: Primitives.Value,\n propertyDescription: PropertyDescription,\n location: XAndY,\n onCommit: OnValueCommitFunc,\n onCancel: OnCancelFunc,\n htmlElement?: HTMLElement\n ): boolean {\n return UiFramework.showInputEditor({\n initialValue,\n propertyDescription,\n location,\n onCommit,\n onCancel,\n anchorElement: htmlElement,\n });\n }\n\n /** Hides the input editor.*/\n public override hideInputEditor(): boolean {\n return UiFramework.hideInputEditor();\n }\n\n /** Show an HTML element at a particular location.\n * @param displayElement The HTMLElement to display\n * @param location Location of the display element, relative to the origin of htmlElement or the window\n * @param offset Offset of the display element from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the display element\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the display element. If undefined, the location is relative to the overall window.\n * @return true if the display element was displayed, false if the display element could not be displayed.\n * @deprecated in 4.11.0. Use {@link UiFramework.showComponent}\n */\n public override showHTMLElement(\n displayElement: HTMLElement,\n location: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const el = anchorElement ?? UiFramework.controls.getWrapperElement();\n\n if (relativePosition === undefined)\n relativePosition = RelativePosition.TopRight;\n\n return PopupManager.showHTMLElement(\n displayElement,\n el,\n location,\n offset,\n onCancel,\n relativePosition\n );\n }\n\n /**\n * Hides the HTML Element.\n * @deprecated in 4.11.0. Use {@link UiFramework.hideComponent}\n */\n public override hideHTMLElement(): boolean {\n return PopupManager.hideHTMLElement();\n }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param content The HTMLElement of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of htmlElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n */\n public override showCard(\n content: HTMLElement,\n title: string | PropertyRecord | undefined,\n toolbarProps: AbstractToolbarProps | undefined,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.showCard(\n <CardRenderer content={content} />,\n title,\n toolbarProps\n ? AbstractToolbarPropsToToolbarProps(toolbarProps)\n : { items: [] },\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /** Show a Card containing React-based content, a title and a toolbar at a particular location.\n * @param content The React node of the content to display\n * @param title Title to display at the top of the card.\n * @param toolbarProps Properties of the Toolbar to display.\n * @param location Location of the Card, relative to the origin of htmlElement or the window.\n * @param offset Offset of the Card from the location.\n * @param onItemExecuted Function invoked after a Toolbar item is executed\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n */\n public showReactCard(\n content: React.ReactNode,\n title: string | PropertyRecord | undefined,\n toolbarProps: AbstractToolbarProps | undefined,\n location: XAndY,\n offset: XAndY,\n onItemExecuted: OnItemExecutedFunc,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.showCard(\n content,\n title,\n toolbarProps\n ? AbstractToolbarPropsToToolbarProps(toolbarProps)\n : { items: [] },\n location,\n offset,\n onItemExecuted,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /**\n * Hides the Card.\n * */\n public override hideCard(): boolean {\n return UiFramework.hideCard();\n }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param dataProvider The DialogLayoutDataProvider for the tool settings popup dialog.\n * @param location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param offset Offset of the tool settings from the location\n * @param onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param relativePosition Position relative to the given location. Defaults to TopRight.\n * @param anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public override openToolSettingsPopup(\n dataProvider: DialogLayoutDataProvider,\n location: XAndY,\n offset: XAndY,\n onCancel: OnCancelFunc,\n relativePosition?: RelativePosition,\n anchorElement?: HTMLElement\n ): boolean {\n const placement = mapToPlacement(relativePosition);\n return UiFramework.openToolSettingsPopup(\n dataProvider,\n location,\n offset,\n onCancel,\n placement,\n anchorElement\n );\n }\n\n /** Closes the Tool Settings Ui popup. */\n public override closeToolSettingsPopup(): boolean {\n return UiFramework.closeToolSettingsPopup();\n }\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param uiDataProvider The UiDataProvider for the tool settings\n * @param title Specify title for dialog.\n * @param isModal Specify if the dialog is opened as a modal or modeless.\n * @param id Id of the dialog that is used to close it.\n * @param optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public override openDialog(\n uiDataProvider: DialogLayoutDataProvider,\n title: string,\n isModal: boolean,\n id: string,\n optionalProps?: DialogProps\n ): boolean {\n return UiFramework.openDialog(\n uiDataProvider,\n title,\n isModal,\n id,\n optionalProps\n );\n }\n\n /** Closes the Tool Settings Ui popup.*/\n public override closeDialog(dialogId: string): boolean {\n return UiFramework.closeDialog(dialogId);\n }\n}\n\n// utility functions to wean off appui-abstract\nfunction AbstractToolbarPropsToToolbarProps(\n props: AbstractToolbarProps\n): ToolbarProps {\n return {\n items: props.items.map(CommonToolbarItemToToolBarItem),\n itemId: props.toolbarId,\n };\n}\n\nfunction CommonToolbarItemToToolBarItem(item: CommonToolbarItem): ToolbarItem {\n return {\n ...item,\n badge: item.badgeType,\n };\n}\n\ninterface CardRendererProps {\n content: HTMLElement;\n}\n\nfunction CardRenderer({ content }: CardRendererProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n const el = ref.current;\n el?.appendChild(content);\n return () => {\n el?.removeChild(content);\n };\n }, [content]);\n\n return <div ref={ref} />;\n}\n"]}
@@ -4,9 +4,10 @@
4
4
  import type { UiStateStorage } from "@itwin/core-react";
5
5
  import { UiStateEntry } from "@itwin/core-react";
6
6
  import type { UserSettingsProvider } from "../UiFramework";
7
- import type { ThemeId } from "../theme/ThemeManager";
7
+ import type { ThemeId } from "../theme/ThemeId";
8
8
  /** Default values that may be specified for [[AppUiSettings]].
9
9
  * @public
10
+ * @deprecated in 4.15.0. Interface used in a deprecated class {@link AppUiSettings}.
10
11
  */
11
12
  export interface InitialAppUiSettings {
12
13
  colorTheme: ThemeId;
@@ -27,8 +28,8 @@ export interface InitialAppUiSettings {
27
28
  * ```ts
28
29
  * UiFramework.registerUserSettingsProvider(new AppUiSettings(defaults));
29
30
  * ```
30
- *
31
31
  * @public
32
+ * @deprecated in 4.15.0. Use {@link @itwin/core-react#UiStateStorage} to persist UI settings.
32
33
  */
33
34
  export declare class AppUiSettings implements UserSettingsProvider {
34
35
  readonly providerId = "AppUiSettingsProvider";
@@ -1 +1 @@
1
- {"version":3,"file":"AppUiSettings.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/uistate/AppUiSettings.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,OAAO,KAA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AC;IAE5C,OAAO,CAAC,aAAa,CAInB;gBAEU,QAAQ,EAAE,OAAO,CAAC,oBAAoB,CAAC;IA+EnD,OAAO,CAAC,iBAAiB,CAsCvB;IAEW,KAAK,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ7C,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtE"}
@@ -8,6 +8,7 @@
8
8
  import { UiStateEntry } from "@itwin/core-react";
9
9
  import { SyncUiEventDispatcher } from "../syncui/SyncUiEventDispatcher";
10
10
  import { UiFramework } from "../UiFramework";
11
+ import { ConfigurableUiActionId } from "../redux/ConfigurableUiState";
11
12
  /** These are the UI settings that are stored in the Redux store. They control the color theme,
12
13
  * how toolbar group buttons work, and the opacity of floating widget when the cursor
13
14
  * is not inside them. It is expect that an IModelApp using App UI components will create and register AppUiSettings with
@@ -16,8 +17,8 @@ import { UiFramework } from "../UiFramework";
16
17
  * ```ts
17
18
  * UiFramework.registerUserSettingsProvider(new AppUiSettings(defaults));
18
19
  * ```
19
- *
20
20
  * @public
21
+ * @deprecated in 4.15.0. Use {@link @itwin/core-react#UiStateStorage} to persist UI settings.
21
22
  */
22
23
  export class AppUiSettings {
23
24
  constructor(defaults) {
@@ -33,24 +34,24 @@ export class AppUiSettings {
33
34
  this.handleSyncUiEvent = async (args) => {
34
35
  if (this._applyingLocalSettings)
35
36
  return;
36
- if (args.eventIds.has("configurableui:set_theme")) {
37
+ if (args.eventIds.has(ConfigurableUiActionId.SetTheme)) {
37
38
  await this.colorTheme.saveSetting(UiFramework.getUiStateStorage());
38
39
  // always store as default theme in local storage to avoid flicker during startup if user is not yet logged-in
39
40
  window.localStorage.setItem("uifw:defaultTheme", UiFramework.getColorTheme());
40
41
  }
41
- if (args.eventIds.has("configurableui:set-drag-interaction"))
42
+ if (args.eventIds.has(ConfigurableUiActionId.SetDragInteraction))
42
43
  await this.dragInteraction.saveSetting(UiFramework.getUiStateStorage());
43
- if (args.eventIds.has("configurableui:set-show-widget-icon"))
44
+ if (args.eventIds.has(ConfigurableUiActionId.SetShowWidgetIcon))
44
45
  await this.showWidgetIcon.saveSetting(UiFramework.getUiStateStorage());
45
- if (args.eventIds.has("configurableui:set-auto-collapse-unpinned-panels"))
46
+ if (args.eventIds.has(ConfigurableUiActionId.AutoCollapseUnpinnedPanels))
46
47
  await this.autoCollapseUnpinnedPanels.saveSetting(UiFramework.getUiStateStorage());
47
- if (args.eventIds.has("configurableui:set_widget_opacity"))
48
+ if (args.eventIds.has(ConfigurableUiActionId.SetWidgetOpacity))
48
49
  await this.widgetOpacity.saveSetting(UiFramework.getUiStateStorage());
49
- if (args.eventIds.has("configurableui:set-animate-tool-settings"))
50
+ if (args.eventIds.has(ConfigurableUiActionId.AnimateToolSettings))
50
51
  await this.animateToolSettings.saveSetting(UiFramework.getUiStateStorage());
51
- if (args.eventIds.has("configurableui:set-use-tool-as-tool-settings-label"))
52
+ if (args.eventIds.has(ConfigurableUiActionId.UseToolAsToolSettingsLabel))
52
53
  await this.useToolAsToolSettingsLabel.saveSetting(UiFramework.getUiStateStorage());
53
- if (args.eventIds.has("configurableui:set-toolbar-opacity"))
54
+ if (args.eventIds.has(ConfigurableUiActionId.SetToolbarOpacity))
54
55
  await this.toolbarOpacity.saveSetting(UiFramework.getUiStateStorage());
55
56
  };
56
57
  this._settings = [];
@@ -1 +1 @@
1
- {"version":3,"file":"AppUiSettings.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/AppUiSettings.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqB7C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,aAAa;IAsBxB,YAAY,QAAuC;QArBnC,eAA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AY,CAChD,aAAa,CAAC,iBAAiB,EAC/B,4BAA4B,EAC5B,GAAG,EAAE,CAAC,WAAW,CAAC,0BAA0B,EAC5C,CAAC,KAAc,EAAE,EAAE,CAAC,WAAW,CAAC,6BAA6B,CAAC,KAAK,CAAC,EACpE,QAAQ,CAAC,0BAA0B,CACpC,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAErD,IAAI,CAAC,cAAc,GAAG,IAAI,YAAY,CACpC,aAAa,CAAC,iBAAiB,EAC/B,aAAa,EACb,GAAG,EAAE,CAAC,WAAW,CAAC,iBAAiB,EAAE,EACrC,CAAC,KAAa,EAAE,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,EACvD,QAAQ,CAAC,cAAc,CACxB,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEzC,qBAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IA2CM,KAAK,CAAC,KAAK,CAAC,OAAuB;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACnC,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC3C,MAAM,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAuB;QACnD,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;;AApJc,+BAAiB,GAAG,eAAe,AAAlB,CAAmB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport type { UiStateStorage } from \"@itwin/core-react\";\nimport { UiStateEntry } from \"@itwin/core-react\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport type { UserSettingsProvider } from \"../UiFramework\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\nimport type { ThemeId } from \"../theme/ThemeManager\";\n\n// cSpell:ignore configurableui\n\n/** Default values that may be specified for [[AppUiSettings]].\n * @public\n */\nexport interface InitialAppUiSettings {\n colorTheme: ThemeId;\n dragInteraction: boolean;\n widgetOpacity: number;\n showWidgetIcon?: boolean;\n /** @alpha */\n autoCollapseUnpinnedPanels?: boolean;\n animateToolSettings?: boolean;\n useToolAsToolSettingsLabel?: boolean;\n toolbarOpacity: number;\n}\n\n/** These are the UI settings that are stored in the Redux store. They control the color theme,\n * how toolbar group buttons work, and the opacity of floating widget when the cursor\n * is not inside them. It is expect that an IModelApp using App UI components will create and register AppUiSettings with\n * defaults specific to their application. This would be done by calling the following.\n *\n * ```ts\n * UiFramework.registerUserSettingsProvider(new AppUiSettings(defaults));\n * ```\n *\n * @public\n */\nexport class AppUiSettings implements UserSettingsProvider {\n public readonly providerId = \"AppUiSettingsProvider\";\n\n private static _settingNamespace = \"AppUiSettings\";\n private _settings: Array<UiStateEntry<any>> = [];\n private _applyingLocalSettings = false;\n\n public colorTheme: UiStateEntry<ThemeId>;\n public dragInteraction: UiStateEntry<boolean>;\n public widgetOpacity: UiStateEntry<number>;\n public showWidgetIcon: UiStateEntry<boolean>;\n public autoCollapseUnpinnedPanels: UiStateEntry<boolean>;\n public animateToolSettings: UiStateEntry<boolean>;\n public useToolAsToolSettingsLabel: UiStateEntry<boolean>;\n public toolbarOpacity: UiStateEntry<number>;\n\n private setColorTheme = (theme: ThemeId) => {\n UiFramework.setColorTheme(theme);\n // always store to local storage to avoid flicker during startup if user is not yet logged-in\n window.localStorage.setItem(\"uifw:defaultTheme\", theme);\n };\n\n constructor(defaults: Partial<InitialAppUiSettings>) {\n this._settings = [];\n\n this.colorTheme = new UiStateEntry<ThemeId>(\n AppUiSettings._settingNamespace,\n \"ColorTheme\",\n UiFramework.getColorTheme,\n this.setColorTheme,\n defaults.colorTheme\n );\n this._settings.push(this.colorTheme);\n\n this.dragInteraction = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"DragInteraction\",\n () => UiFramework.useDragInteraction,\n (value: boolean) => UiFramework.setUseDragInteraction(value),\n defaults.dragInteraction\n );\n this._settings.push(this.dragInteraction);\n\n this.showWidgetIcon = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"ShowWidgetIcon\",\n () => UiFramework.showWidgetIcon,\n (value: boolean) => UiFramework.setShowWidgetIcon(value),\n defaults.showWidgetIcon\n );\n this._settings.push(this.showWidgetIcon);\n\n this.autoCollapseUnpinnedPanels = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"AutoCollapseUnpinnedPanels\",\n () => UiFramework.autoCollapseUnpinnedPanels,\n (value: boolean) => UiFramework.setAutoCollapseUnpinnedPanels(value),\n defaults.autoCollapseUnpinnedPanels\n );\n this._settings.push(this.autoCollapseUnpinnedPanels);\n\n this.widgetOpacity = new UiStateEntry<number>(\n AppUiSettings._settingNamespace,\n \"WidgetOpacity\",\n () => UiFramework.getWidgetOpacity(),\n (value: number) => UiFramework.setWidgetOpacity(value),\n defaults.widgetOpacity\n );\n this._settings.push(this.widgetOpacity);\n\n this.animateToolSettings = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"AnimateToolSettings\",\n () => UiFramework.animateToolSettings,\n (value: boolean) => UiFramework.setAnimateToolSettings(value),\n defaults.animateToolSettings\n );\n this._settings.push(this.animateToolSettings);\n\n this.useToolAsToolSettingsLabel = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"UseToolAsToolSettingsLabel\",\n () => UiFramework.useToolAsToolSettingsLabel,\n (value: boolean) => UiFramework.setUseToolAsToolSettingsLabel(value),\n defaults.useToolAsToolSettingsLabel\n );\n this._settings.push(this.useToolAsToolSettingsLabel);\n\n this.toolbarOpacity = new UiStateEntry<number>(\n AppUiSettings._settingNamespace,\n \"ToolOpacity\",\n () => UiFramework.getToolbarOpacity(),\n (value: number) => UiFramework.setToolbarOpacity(value),\n defaults.toolbarOpacity\n );\n this._settings.push(this.toolbarOpacity);\n\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this.handleSyncUiEvent);\n }\n\n // eslint-disable-next-line deprecation/deprecation\n private handleSyncUiEvent = async (args: UiSyncEventArgs) => {\n if (this._applyingLocalSettings) return;\n\n if (args.eventIds.has(\"configurableui:set_theme\")) {\n await this.colorTheme.saveSetting(UiFramework.getUiStateStorage());\n // always store as default theme in local storage to avoid flicker during startup if user is not yet logged-in\n window.localStorage.setItem(\n \"uifw:defaultTheme\",\n UiFramework.getColorTheme()\n );\n }\n\n if (args.eventIds.has(\"configurableui:set-drag-interaction\"))\n await this.dragInteraction.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(\"configurableui:set-show-widget-icon\"))\n await this.showWidgetIcon.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(\"configurableui:set-auto-collapse-unpinned-panels\"))\n await this.autoCollapseUnpinnedPanels.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(\"configurableui:set_widget_opacity\"))\n await this.widgetOpacity.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(\"configurableui:set-animate-tool-settings\"))\n await this.animateToolSettings.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(\"configurableui:set-use-tool-as-tool-settings-label\"))\n await this.useToolAsToolSettingsLabel.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(\"configurableui:set-toolbar-opacity\"))\n await this.toolbarOpacity.saveSetting(UiFramework.getUiStateStorage());\n };\n\n public async apply(storage: UiStateStorage): Promise<void> {\n this._applyingLocalSettings = true;\n for await (const setting of this._settings) {\n await setting.getSettingAndApplyValue(storage);\n }\n this._applyingLocalSettings = false;\n }\n\n public async loadUserSettings(storage: UiStateStorage): Promise<void> {\n await this.apply(storage);\n }\n}\n"]}
1
+ {"version":3,"file":"AppUiSettings.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/AppUiSettings.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAoBtE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,aAAa;IAsBxB,YAAY,QAAuC;QArBnC,eAAU,GAAG,uBAAuB,CAAC;QAG7C,cAAS,GAA6B,EAAE,CAAC;QACzC,2BAAsB,GAAG,KAAK,CAAC;QAW/B,kBAAa,GAAG,CAAC,KAAc,EAAE,EAAE;YACzC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YACjC,6FAA6F;YAC7F,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;QAC1D,CAAC,CAAC;QAgFF,mDAAmD;QAC3C,sBAAiB,GAAG,KAAK,EAAE,IAAqB,EAAE,EAAE;YAC1D,IAAI,IAAI,CAAC,sBAAsB;gBAAE,OAAO;YAExC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACvD,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC;gBACnE,8GAA8G;gBAC9G,MAAM,CAAC,YAAY,CAAC,OAAO,CACzB,mBA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AAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEzC,qBAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IA2CM,KAAK,CAAC,KAAK,CAAC,OAAuB;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACnC,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC3C,MAAM,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAuB;QACnD,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;;AApJc,+BAAiB,GAAG,eAAe,AAAlB,CAAmB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport type { UiStateStorage } from \"@itwin/core-react\";\nimport { UiStateEntry } from \"@itwin/core-react\";\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\nimport type { UserSettingsProvider } from \"../UiFramework\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { UiSyncEventArgs } from \"../syncui/UiSyncEvent\";\nimport type { ThemeId } from \"../theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"../redux/ConfigurableUiState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Default values that may be specified for [[AppUiSettings]].\n * @public\n * @deprecated in 4.15.0. Interface used in a deprecated class {@link AppUiSettings}.\n */\nexport interface InitialAppUiSettings {\n colorTheme: ThemeId;\n dragInteraction: boolean;\n widgetOpacity: number;\n showWidgetIcon?: boolean;\n /** @alpha */\n autoCollapseUnpinnedPanels?: boolean;\n animateToolSettings?: boolean;\n useToolAsToolSettingsLabel?: boolean;\n toolbarOpacity: number;\n}\n\n/** These are the UI settings that are stored in the Redux store. They control the color theme,\n * how toolbar group buttons work, and the opacity of floating widget when the cursor\n * is not inside them. It is expect that an IModelApp using App UI components will create and register AppUiSettings with\n * defaults specific to their application. This would be done by calling the following.\n *\n * ```ts\n * UiFramework.registerUserSettingsProvider(new AppUiSettings(defaults));\n * ```\n * @public\n * @deprecated in 4.15.0. Use {@link @itwin/core-react#UiStateStorage} to persist UI settings.\n */\nexport class AppUiSettings implements UserSettingsProvider {\n public readonly providerId = \"AppUiSettingsProvider\";\n\n private static _settingNamespace = \"AppUiSettings\";\n private _settings: Array<UiStateEntry<any>> = [];\n private _applyingLocalSettings = false;\n\n public colorTheme: UiStateEntry<ThemeId>;\n public dragInteraction: UiStateEntry<boolean>;\n public widgetOpacity: UiStateEntry<number>;\n public showWidgetIcon: UiStateEntry<boolean>;\n public autoCollapseUnpinnedPanels: UiStateEntry<boolean>;\n public animateToolSettings: UiStateEntry<boolean>;\n public useToolAsToolSettingsLabel: UiStateEntry<boolean>;\n public toolbarOpacity: UiStateEntry<number>;\n\n private setColorTheme = (theme: ThemeId) => {\n UiFramework.setColorTheme(theme);\n // always store to local storage to avoid flicker during startup if user is not yet logged-in\n window.localStorage.setItem(\"uifw:defaultTheme\", theme);\n };\n\n constructor(defaults: Partial<InitialAppUiSettings>) {\n this._settings = [];\n\n this.colorTheme = new UiStateEntry<ThemeId>(\n AppUiSettings._settingNamespace,\n \"ColorTheme\",\n UiFramework.getColorTheme,\n this.setColorTheme,\n defaults.colorTheme\n );\n this._settings.push(this.colorTheme);\n\n this.dragInteraction = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"DragInteraction\",\n () => UiFramework.useDragInteraction,\n (value: boolean) => UiFramework.setUseDragInteraction(value),\n defaults.dragInteraction\n );\n this._settings.push(this.dragInteraction);\n\n this.showWidgetIcon = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"ShowWidgetIcon\",\n () => UiFramework.showWidgetIcon,\n (value: boolean) => UiFramework.setShowWidgetIcon(value),\n defaults.showWidgetIcon\n );\n this._settings.push(this.showWidgetIcon);\n\n this.autoCollapseUnpinnedPanels = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"AutoCollapseUnpinnedPanels\",\n () => UiFramework.autoCollapseUnpinnedPanels,\n (value: boolean) => UiFramework.setAutoCollapseUnpinnedPanels(value),\n defaults.autoCollapseUnpinnedPanels\n );\n this._settings.push(this.autoCollapseUnpinnedPanels);\n\n this.widgetOpacity = new UiStateEntry<number>(\n AppUiSettings._settingNamespace,\n \"WidgetOpacity\",\n () => UiFramework.getWidgetOpacity(),\n (value: number) => UiFramework.setWidgetOpacity(value),\n defaults.widgetOpacity\n );\n this._settings.push(this.widgetOpacity);\n\n this.animateToolSettings = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"AnimateToolSettings\",\n () => UiFramework.animateToolSettings,\n (value: boolean) => UiFramework.setAnimateToolSettings(value),\n defaults.animateToolSettings\n );\n this._settings.push(this.animateToolSettings);\n\n this.useToolAsToolSettingsLabel = new UiStateEntry<boolean>(\n AppUiSettings._settingNamespace,\n \"UseToolAsToolSettingsLabel\",\n () => UiFramework.useToolAsToolSettingsLabel,\n (value: boolean) => UiFramework.setUseToolAsToolSettingsLabel(value),\n defaults.useToolAsToolSettingsLabel\n );\n this._settings.push(this.useToolAsToolSettingsLabel);\n\n this.toolbarOpacity = new UiStateEntry<number>(\n AppUiSettings._settingNamespace,\n \"ToolOpacity\",\n () => UiFramework.getToolbarOpacity(),\n (value: number) => UiFramework.setToolbarOpacity(value),\n defaults.toolbarOpacity\n );\n this._settings.push(this.toolbarOpacity);\n\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this.handleSyncUiEvent);\n }\n\n // eslint-disable-next-line deprecation/deprecation\n private handleSyncUiEvent = async (args: UiSyncEventArgs) => {\n if (this._applyingLocalSettings) return;\n\n if (args.eventIds.has(ConfigurableUiActionId.SetTheme)) {\n await this.colorTheme.saveSetting(UiFramework.getUiStateStorage());\n // always store as default theme in local storage to avoid flicker during startup if user is not yet logged-in\n window.localStorage.setItem(\n \"uifw:defaultTheme\",\n UiFramework.getColorTheme()\n );\n }\n\n if (args.eventIds.has(ConfigurableUiActionId.SetDragInteraction))\n await this.dragInteraction.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(ConfigurableUiActionId.SetShowWidgetIcon))\n await this.showWidgetIcon.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(ConfigurableUiActionId.AutoCollapseUnpinnedPanels))\n await this.autoCollapseUnpinnedPanels.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(ConfigurableUiActionId.SetWidgetOpacity))\n await this.widgetOpacity.saveSetting(UiFramework.getUiStateStorage());\n\n if (args.eventIds.has(ConfigurableUiActionId.AnimateToolSettings))\n await this.animateToolSettings.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(ConfigurableUiActionId.UseToolAsToolSettingsLabel))\n await this.useToolAsToolSettingsLabel.saveSetting(\n UiFramework.getUiStateStorage()\n );\n\n if (args.eventIds.has(ConfigurableUiActionId.SetToolbarOpacity))\n await this.toolbarOpacity.saveSetting(UiFramework.getUiStateStorage());\n };\n\n public async apply(storage: UiStateStorage): Promise<void> {\n this._applyingLocalSettings = true;\n for await (const setting of this._settings) {\n await setting.getSettingAndApplyValue(storage);\n }\n this._applyingLocalSettings = false;\n }\n\n public async loadUserSettings(storage: UiStateStorage): Promise<void> {\n await this.apply(storage);\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ /** @packageDocumentation
2
+ * @module Utilities
3
+ */
4
+ import type { IModelConnection, ViewState } from "@itwin/core-frontend";
5
+ import type { CursorMenuPayload } from "../redux/SessionState";
6
+ interface GlobalState {
7
+ numItemsSelected: number;
8
+ iModelConnection: IModelConnection | undefined;
9
+ viewState: ViewState | undefined;
10
+ cursorMenuPayload: CursorMenuPayload | undefined;
11
+ }
12
+ /** Replacement for static APIs that were dependent on redux store.
13
+ * @internal
14
+ */
15
+ export declare const useGlobalStore: import("zustand").StoreApi<GlobalState>;
16
+ export {};
17
+ //# sourceMappingURL=useGlobalStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalStore.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useGlobalStore.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,UAAU,WAAW;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAClD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,yCAKxB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module Utilities
7
+ */
8
+ import { createStore } from "zustand";
9
+ /** Replacement for static APIs that were dependent on redux store.
10
+ * @internal
11
+ */
12
+ export const useGlobalStore = createStore(() => ({
13
+ numItemsSelected: 0,
14
+ iModelConnection: undefined,
15
+ viewState: undefined,
16
+ cursorMenuPayload: undefined,
17
+ }));
18
+ //# sourceMappingURL=useGlobalStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGlobalStore.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useGlobalStore.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAUtC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAc,GAAG,EAAE,CAAC,CAAC;IAC5D,gBAAgB,EAAE,CAAC;IACnB,gBAAgB,EAAE,SAAS;IAC3B,SAAS,EAAE,SAAS;IACpB,iBAAiB,EAAE,SAAS;CAC7B,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport { createStore } from \"zustand\";\nimport type { CursorMenuPayload } from \"../redux/SessionState\";\n\ninterface GlobalState {\n numItemsSelected: number;\n iModelConnection: IModelConnection | undefined;\n viewState: ViewState | undefined;\n cursorMenuPayload: CursorMenuPayload | undefined;\n}\n\n/** Replacement for static APIs that were dependent on redux store.\n * @internal\n */\nexport const useGlobalStore = createStore<GlobalState>(() => ({\n numItemsSelected: 0,\n iModelConnection: undefined,\n viewState: undefined,\n cursorMenuPayload: undefined,\n}));\n"]}
@@ -0,0 +1,7 @@
1
+ /** @packageDocumentation
2
+ * @module State
3
+ */
4
+ import type { FrameworkState as ReduxFrameworkState } from "../redux/FrameworkState";
5
+ /** @internal */
6
+ export declare function useReduxFrameworkState<T>(selector: (state: ReduxFrameworkState | undefined) => T): T;
7
+ //# sourceMappingURL=useReduxFrameworkState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReduxFrameworkState.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useReduxFrameworkState.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAIrF,gBAAgB;AAChB,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,GAAG,SAAS,KAAK,CAAC,GACtD,CAAC,CAgBH"}
@@ -0,0 +1,28 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module State
7
+ */
8
+ import * as React from "react";
9
+ import { useSyncExternalStore } from "use-sync-external-store/shim";
10
+ import { UiFramework } from "../UiFramework";
11
+ /* eslint-disable deprecation/deprecation */
12
+ /** @internal */
13
+ export function useReduxFrameworkState(selector) {
14
+ const subscribe = React.useCallback((onStoreChange) => {
15
+ const reduxStore = UiFramework.reduxStore;
16
+ if (!reduxStore)
17
+ return () => { };
18
+ return reduxStore.subscribe(onStoreChange);
19
+ }, []);
20
+ const getSnapshot = React.useCallback(() => {
21
+ const reduxStore = UiFramework.reduxStore;
22
+ const state = reduxStore?.getState();
23
+ const frameworkState = state?.[UiFramework.frameworkStateKey];
24
+ return selector(frameworkState);
25
+ }, [selector]);
26
+ return useSyncExternalStore(subscribe, getSnapshot);
27
+ }
28
+ //# sourceMappingURL=useReduxFrameworkState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReduxFrameworkState.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useReduxFrameworkState.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,4CAA4C;AAE5C,gBAAgB;AAChB,MAAM,UAAU,sBAAsB,CACpC,QAAuD;IAEvD,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,aAAyB,EAAE,EAAE;QAChE,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QAC1C,IAAI,CAAC,UAAU;YAAE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;QAEjC,OAAO,UAAU,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAM,EAAE;QAC5C,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,EAAE,QAAQ,EAAE,CAAC;QACrC,MAAM,cAAc,GAAG,KAAK,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAE/C,CAAC;QACd,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;IAClC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACf,OAAO,oBAAoB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACtD,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 State\n */\n\nimport * as React from \"react\";\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { FrameworkState as ReduxFrameworkState } from \"../redux/FrameworkState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** @internal */\nexport function useReduxFrameworkState<T>(\n selector: (state: ReduxFrameworkState | undefined) => T\n): T {\n const subscribe = React.useCallback((onStoreChange: () => void) => {\n const reduxStore = UiFramework.reduxStore;\n if (!reduxStore) return () => {};\n\n return reduxStore.subscribe(onStoreChange);\n }, []);\n const getSnapshot = React.useCallback((): T => {\n const reduxStore = UiFramework.reduxStore;\n const state = reduxStore?.getState();\n const frameworkState = state?.[UiFramework.frameworkStateKey] as\n | ReduxFrameworkState\n | undefined;\n return selector(frameworkState);\n }, [selector]);\n return useSyncExternalStore(subscribe, getSnapshot);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PropsHelper.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/utils/PropsHelper.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACV,YAAY,EAEZ,mBAAmB,IAAI,uBAAuB,EAE9C,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/D;;GAEG;AACH,qBAAa,WAAW;IACtB,sHAAsH;WACxG,aAAa,CACzB,aAAa,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB,GAAG,SAAS,EACzE,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,GAAG,YAAY,GAAG,sBAAsB;IAWjD,8BAA8B;WAChB,iBAAiB,CAC7B,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB,GACnD,MAAM;IAQT,+JAA+J;WACjJ,OAAO,CACnB,QAAQ,EAAE,MAAM,GAAG,sBAAsB,GAAG,KAAK,CAAC,SAAS,GAC1D,KAAK,CAAC,YAAY,GAAG,SAAS;IAOjC,4FAA4F;WAC9E,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAOtD,kEAAkE;WACpD,4BAA4B,CACxC,QAAQ,EAAE,QAAQ,EAClB,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GAE9B,OAAO,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;CASvE"}
1
+ {"version":3,"file":"PropsHelper.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/utils/PropsHelper.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACV,YAAY,EAEZ,mBAAmB,IAAI,uBAAuB,EAE9C,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/D;;GAEG;AACH,qBAAa,WAAW;IACtB,sHAAsH;WACxG,aAAa,CACzB,aAAa,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB,GAAG,SAAS,EACzE,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,GAAG,YAAY,GAAG,sBAAsB;IAWjD,8BAA8B;WAChB,iBAAiB,CAC7B,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB,GACnD,MAAM;IAQT,+JAA+J;WACjJ,OAAO,CACnB,QAAQ,EAAE,MAAM,GAAG,sBAAsB,GAAG,KAAK,CAAC,SAAS,GAC1D,KAAK,CAAC,YAAY,GAAG,SAAS;IAOjC,4FAA4F;WAC9E,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAOtD,kEAAkE;WACpD,4BAA4B,CACxC,QAAQ,EAAE,QAAQ,EAClB,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GAE9B,OAAO,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAUvE"}
@@ -57,6 +57,7 @@ export class PropsHelper {
57
57
  return {};
58
58
  if (!internalData)
59
59
  internalData = new Map();
60
+ // eslint-disable-next-line deprecation/deprecation
60
61
  const icon = IconHelper.getIconData(iconSpec, internalData);
61
62
  return icon === "" ? { icon } : { icon, internalData };
62
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PropsHelper.js","sourceRoot":"","sources":["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;IAED,4FAA4F;IACrF,MAAM,CAAC,cAAc,CAAC,MAAW,EAAE,OAAY;QACpD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC;gBAAE,OAAO,KAAK,CAAC;QACjD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kEAAkE;IAC3D,MAAM,CAAC,4BAA4B,CACxC,QAAkB,EAClB,YAA+B;IAC/B,mDAAmD;;QAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;YAAE,OAAO,EAAE,CAAC;QAE5D,IAAI,CAAC,YAAY;YAAE,YAAY,GAAG,IAAI,GAAG,EAAe,CAAC;QAEzD,MAAM,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAE5D,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IACzD,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 Utilities\n */\n\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n\nimport * as React from \"react\";\nimport type { IconSpec } from \"@itwin/core-react\";\nimport { Icon, IconHelper } from \"@itwin/core-react\";\nimport type {\n StringGetter,\n // @ts-ignore Removed in 4.0\n AbstractWidgetProps as UIA_AbstractWidgetProps,\n // @ts-ignore Removed in 4.0\n CommonBackstageItem as UIA_CommonBackstageItem,\n} from \"@itwin/appui-abstract\";\nimport { ConditionalStringValue } from \"@itwin/appui-abstract\";\nimport { IModelApp } from \"@itwin/core-frontend\";\n\n/** A set of helper methods for various props\n * @public\n */\nexport class PropsHelper {\n /** Get spec for returning a string. Could be a simple string of a 'StringGetter' method used to return the string. */\n public static getStringSpec(\n explicitValue: string | StringGetter | ConditionalStringValue | undefined,\n stringKey?: string\n ): string | StringGetter | ConditionalStringValue {\n if (explicitValue) {\n return explicitValue;\n }\n\n const outValue = stringKey\n ? IModelApp.localization.getLocalizedString(stringKey)\n : \"\";\n return outValue;\n }\n\n /** Get the display string. */\n public static getStringFromSpec(\n spec: string | StringGetter | ConditionalStringValue\n ): string {\n let label = \"\";\n if (typeof spec === \"string\") label = spec;\n else if (spec instanceof ConditionalStringValue) label = spec.value;\n else label = spec();\n return label;\n }\n\n /** Get JSX element that defines an icon. If iconSpec is a string, then a web-font icon class is used otherwise a ReactNode holding an SVG icon is assumed. */\n public static getIcon(\n iconSpec: string | ConditionalStringValue | React.ReactNode\n ): React.ReactElement | undefined {\n if (iconSpec instanceof ConditionalStringValue)\n return <Icon iconSpec={iconSpec.value} />;\n\n return iconSpec ? <Icon iconSpec={iconSpec} /> : undefined;\n }\n\n /** returns true if the two objects are the same using a shallow compare of each property */\n public static isShallowEqual(newObj: any, prevObj: any) {\n for (const key in newObj) {\n if (newObj[key] !== prevObj[key]) return false;\n }\n return true;\n }\n\n /** @deprecated in 4.0 These abstract props types are obsolete. */\n public static getAbstractPropsForReactIcon(\n iconSpec: IconSpec,\n internalData?: Map<string, any>\n // eslint-disable-next-line deprecation/deprecation\n ): Partial<UIA_AbstractWidgetProps> | Partial<UIA_CommonBackstageItem> {\n if (!iconSpec || !React.isValidElement(iconSpec)) return {};\n\n if (!internalData) internalData = new Map<string, any>();\n\n const icon = IconHelper.getIconData(iconSpec, internalData);\n\n return icon === \"\" ? { icon } : { icon, internalData };\n }\n}\n"]}
1
+ {"version":3,"file":"PropsHelper.js","sourceRoot":"","sources":["../../../../src/appui-react/utils/PropsHelper.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,sDAAsD;AAEtD,OAAO,KAAK,KA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YACzB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC;gBAAE,OAAO,KAAK,CAAC;QACjD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kEAAkE;IAC3D,MAAM,CAAC,4BAA4B,CACxC,QAAkB,EAClB,YAA+B;IAC/B,mDAAmD;;QAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;YAAE,OAAO,EAAE,CAAC;QAE5D,IAAI,CAAC,YAAY;YAAE,YAAY,GAAG,IAAI,GAAG,EAAe,CAAC;QAEzD,mDAAmD;QACnD,MAAM,IAAI,GAAG,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAE5D,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IACzD,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 Utilities\n */\n\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n\nimport * as React from \"react\";\nimport type { IconSpec } from \"@itwin/core-react\";\nimport { Icon, IconHelper } from \"@itwin/core-react\";\nimport type {\n StringGetter,\n // @ts-ignore Removed in 4.0\n AbstractWidgetProps as UIA_AbstractWidgetProps,\n // @ts-ignore Removed in 4.0\n CommonBackstageItem as UIA_CommonBackstageItem,\n} from \"@itwin/appui-abstract\";\nimport { ConditionalStringValue } from \"@itwin/appui-abstract\";\nimport { IModelApp } from \"@itwin/core-frontend\";\n\n/** A set of helper methods for various props\n * @public\n */\nexport class PropsHelper {\n /** Get spec for returning a string. Could be a simple string of a 'StringGetter' method used to return the string. */\n public static getStringSpec(\n explicitValue: string | StringGetter | ConditionalStringValue | undefined,\n stringKey?: string\n ): string | StringGetter | ConditionalStringValue {\n if (explicitValue) {\n return explicitValue;\n }\n\n const outValue = stringKey\n ? IModelApp.localization.getLocalizedString(stringKey)\n : \"\";\n return outValue;\n }\n\n /** Get the display string. */\n public static getStringFromSpec(\n spec: string | StringGetter | ConditionalStringValue\n ): string {\n let label = \"\";\n if (typeof spec === \"string\") label = spec;\n else if (spec instanceof ConditionalStringValue) label = spec.value;\n else label = spec();\n return label;\n }\n\n /** Get JSX element that defines an icon. If iconSpec is a string, then a web-font icon class is used otherwise a ReactNode holding an SVG icon is assumed. */\n public static getIcon(\n iconSpec: string | ConditionalStringValue | React.ReactNode\n ): React.ReactElement | undefined {\n if (iconSpec instanceof ConditionalStringValue)\n return <Icon iconSpec={iconSpec.value} />;\n\n return iconSpec ? <Icon iconSpec={iconSpec} /> : undefined;\n }\n\n /** returns true if the two objects are the same using a shallow compare of each property */\n public static isShallowEqual(newObj: any, prevObj: any) {\n for (const key in newObj) {\n if (newObj[key] !== prevObj[key]) return false;\n }\n return true;\n }\n\n /** @deprecated in 4.0 These abstract props types are obsolete. */\n public static getAbstractPropsForReactIcon(\n iconSpec: IconSpec,\n internalData?: Map<string, any>\n // eslint-disable-next-line deprecation/deprecation\n ): Partial<UIA_AbstractWidgetProps> | Partial<UIA_CommonBackstageItem> {\n if (!iconSpec || !React.isValidElement(iconSpec)) return {};\n\n if (!internalData) internalData = new Map<string, any>();\n\n // eslint-disable-next-line deprecation/deprecation\n const icon = IconHelper.getIconData(iconSpec, internalData);\n\n return icon === \"\" ? { icon } : { icon, internalData };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DockedBar.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widget-panels/DockedBar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,4BAA4B;IAC5B,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B;AAED,gBAAgB;AAChB,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAQ9C"}
1
+ {"version":3,"file":"DockedBar.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widget-panels/DockedBar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AAEH,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,4BAA4B;IAC5B,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B;AAED,gBAAgB;AAChB,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAQ9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"DockedBar.js","sourceRoot":"","sources":["../../../../src/appui-react/widget-panels/DockedBar.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAUpC,gBAAgB;AAChB,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC7D,OAAO,CACL,gCAAS,UAAU,EAAE,SAAS,EAAE,YAAY,oBAAkB,SAAS,IACpE,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport \"./DockedBar.scss\";\nimport type { CommonDivProps } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\n\n/** Properties of [[DockedBar]] component.\n * @internal\n */\nexport interface DockedBarProps extends CommonDivProps {\n /** Placement of the bar. */\n placement?: \"top\" | \"bottom\";\n}\n\n/** @internal */\nexport function DockedBar(props: DockedBarProps) {\n const { className, placement, ...otherProps } = props;\n const divClassName = classnames(\"uifw-dockedBar\", className);\n return (\n <div {...otherProps} className={divClassName} data-placement={placement}>\n {props.children}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"DockedBar.js","sourceRoot":"","sources":["../../../../src/appui-react/widget-panels/DockedBar.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAWpC,gBAAgB;AAChB,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC7D,OAAO,CACL,gCAAS,UAAU,EAAE,SAAS,EAAE,YAAY,oBAAkB,SAAS,IACpE,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport \"./DockedBar.scss\";\nimport type { CommonDivProps } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\n\n/** Properties of [[DockedBar]] component.\n * @internal\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface DockedBarProps extends CommonDivProps {\n /** Placement of the bar. */\n placement?: \"top\" | \"bottom\";\n}\n\n/** @internal */\nexport function DockedBar(props: DockedBarProps) {\n const { className, placement, ...otherProps } = props;\n const divClassName = classnames(\"uifw-dockedBar\", className);\n return (\n <div {...otherProps} className={divClassName} data-placement={placement}>\n {props.children}\n </div>\n );\n}\n"]}