@itwin/appui-react 5.0.4 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/CHANGELOG.md +55 -38
  2. package/lib/appui-react/UiFramework.d.ts +1 -1
  3. package/lib/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/appui-react/UiFramework.js +46 -46
  5. package/lib/appui-react/UiFramework.js.map +1 -1
  6. package/lib/appui-react/accudraw/AccuDrawCommandItems.js +1 -1
  7. package/lib/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  8. package/lib/appui-react/accudraw/AccuDrawDialog.js +1 -1
  9. package/lib/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  10. package/lib/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -0
  11. package/lib/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  12. package/lib/appui-react/accudraw/AccuDrawFieldContainer.js +38 -26
  13. package/lib/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  14. package/lib/appui-react/accudraw/AccuDrawInputField.d.ts +4 -2
  15. package/lib/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  16. package/lib/appui-react/accudraw/AccuDrawInputField.js +45 -38
  17. package/lib/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  18. package/lib/appui-react/accudraw/AccuDrawInputField.scss +0 -15
  19. package/lib/appui-react/accudraw/AccuDrawPopupManager.js +3 -3
  20. package/lib/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  21. package/lib/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  22. package/lib/appui-react/accudraw/AccuDrawWidget.js +2 -2
  23. package/lib/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  24. package/lib/appui-react/accudraw/Calculator.js +1 -1
  25. package/lib/appui-react/accudraw/Calculator.js.map +1 -1
  26. package/lib/appui-react/accudraw/CalculatorPopup.js +1 -1
  27. package/lib/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  28. package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts +2 -2
  29. package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  30. package/lib/appui-react/accudraw/FrameworkAccuDraw.js +18 -15
  31. package/lib/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  32. package/lib/appui-react/accudraw/MenuButton.js +1 -1
  33. package/lib/appui-react/accudraw/MenuButton.js.map +1 -1
  34. package/lib/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  35. package/lib/appui-react/backstage/BackstageComposer.js +2 -3
  36. package/lib/appui-react/backstage/BackstageComposer.js.map +1 -1
  37. package/lib/appui-react/backstage/BackstageComposerItem.js +6 -6
  38. package/lib/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  39. package/lib/appui-react/backstage/BackstageItem.js.map +1 -1
  40. package/lib/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  41. package/lib/appui-react/backstage/BackstageManager.js +3 -3
  42. package/lib/appui-react/backstage/BackstageManager.js.map +1 -1
  43. package/lib/appui-react/backstage/InternalBackstageManager.js +2 -2
  44. package/lib/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  45. package/lib/appui-react/configurableui/ActivityTracker.d.ts.map +1 -1
  46. package/lib/appui-react/configurableui/ActivityTracker.js +0 -1
  47. package/lib/appui-react/configurableui/ActivityTracker.js.map +1 -1
  48. package/lib/appui-react/configurableui/ConfigurableUiContent.js +6 -6
  49. package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  50. package/lib/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  51. package/lib/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
  52. package/lib/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  53. package/lib/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  54. package/lib/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  55. package/lib/appui-react/content/ContentControl.js +1 -1
  56. package/lib/appui-react/content/ContentControl.js.map +1 -1
  57. package/lib/appui-react/content/ContentGroup.js +7 -7
  58. package/lib/appui-react/content/ContentGroup.js.map +1 -1
  59. package/lib/appui-react/content/ContentLayout.d.ts.map +1 -1
  60. package/lib/appui-react/content/ContentLayout.js +16 -17
  61. package/lib/appui-react/content/ContentLayout.js.map +1 -1
  62. package/lib/appui-react/content/DefaultViewOverlay.js +1 -1
  63. package/lib/appui-react/content/DefaultViewOverlay.js.map +1 -1
  64. package/lib/appui-react/content/FloatingViewportContent.js +4 -4
  65. package/lib/appui-react/content/FloatingViewportContent.js.map +1 -1
  66. package/lib/appui-react/content/IModelViewport.d.ts +1 -1
  67. package/lib/appui-react/content/IModelViewport.d.ts.map +1 -1
  68. package/lib/appui-react/content/IModelViewport.js +1 -1
  69. package/lib/appui-react/content/IModelViewport.js.map +1 -1
  70. package/lib/appui-react/content/InternalContentViewManager.js +26 -26
  71. package/lib/appui-react/content/InternalContentViewManager.js.map +1 -1
  72. package/lib/appui-react/content/ViewportContentControl.js +1 -1
  73. package/lib/appui-react/content/ViewportContentControl.js.map +1 -1
  74. package/lib/appui-react/content/split-pane/SplitPane.js +2 -2
  75. package/lib/appui-react/content/split-pane/SplitPane.js.map +1 -1
  76. package/lib/appui-react/cursor/CursorInformation.js +2 -2
  77. package/lib/appui-react/cursor/CursorInformation.js.map +1 -1
  78. package/lib/appui-react/cursor/cursormenu/CursorMenu.d.ts +1 -1
  79. package/lib/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  80. package/lib/appui-react/cursor/cursormenu/CursorMenu.js +3 -3
  81. package/lib/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  82. package/lib/appui-react/cursor/cursorpopup/CursorPopup.d.ts +1 -1
  83. package/lib/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  84. package/lib/appui-react/cursor/cursorpopup/CursorPopup.js +3 -3
  85. package/lib/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  86. package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +1 -1
  87. package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  88. package/lib/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  89. package/lib/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -1
  90. package/lib/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  91. package/lib/appui-react/dialog/ContentDialog.js.map +1 -1
  92. package/lib/appui-react/dialog/ContentDialogManager.js +2 -2
  93. package/lib/appui-react/dialog/ContentDialogManager.js.map +1 -1
  94. package/lib/appui-react/dialog/DialogManagerBase.js +4 -4
  95. package/lib/appui-react/dialog/DialogManagerBase.js.map +1 -1
  96. package/lib/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  97. package/lib/appui-react/dialog/InternalContentDialogManager.js +2 -3
  98. package/lib/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  99. package/lib/appui-react/dialog/InternalModalDialogManager.js +1 -1
  100. package/lib/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  101. package/lib/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
  102. package/lib/appui-react/dialog/InternalModelessDialogManager.js +1 -2
  103. package/lib/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  104. package/lib/appui-react/dialog/ModalDialogManager.js +2 -2
  105. package/lib/appui-react/dialog/ModalDialogManager.js.map +1 -1
  106. package/lib/appui-react/dialog/ModelessDialog.js +1 -1
  107. package/lib/appui-react/dialog/ModelessDialog.js.map +1 -1
  108. package/lib/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  109. package/lib/appui-react/dialog/ModelessDialogManager.js +2 -3
  110. package/lib/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  111. package/lib/appui-react/dialog/StandardMessageBox.js +1 -1
  112. package/lib/appui-react/dialog/StandardMessageBox.js.map +1 -1
  113. package/lib/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  114. package/lib/appui-react/feedback/ElementTooltip.d.ts +1 -1
  115. package/lib/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  116. package/lib/appui-react/feedback/ElementTooltip.js.map +1 -1
  117. package/lib/appui-react/feedback/ValidationTextbox.js.map +1 -1
  118. package/lib/appui-react/framework/FrameworkBackstage.js.map +1 -1
  119. package/lib/appui-react/framework/FrameworkContent.js +3 -3
  120. package/lib/appui-react/framework/FrameworkContent.js.map +1 -1
  121. package/lib/appui-react/framework/FrameworkControls.js.map +1 -1
  122. package/lib/appui-react/framework/FrameworkDialogs.js +2 -2
  123. package/lib/appui-react/framework/FrameworkDialogs.js.map +1 -1
  124. package/lib/appui-react/framework/FrameworkFrontstages.js +8 -8
  125. package/lib/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  126. package/lib/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  127. package/lib/appui-react/framework/FrameworkToolSettings.js +1 -1
  128. package/lib/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  129. package/lib/appui-react/frontstage/Frontstage.js.map +1 -1
  130. package/lib/appui-react/frontstage/FrontstageConfig.d.ts +5 -2
  131. package/lib/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  132. package/lib/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  133. package/lib/appui-react/frontstage/FrontstageDef.d.ts +5 -1
  134. package/lib/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  135. package/lib/appui-react/frontstage/FrontstageDef.js +22 -17
  136. package/lib/appui-react/frontstage/FrontstageDef.js.map +1 -1
  137. package/lib/appui-react/frontstage/InternalFrontstageManager.js +29 -29
  138. package/lib/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  139. package/lib/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  140. package/lib/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  141. package/lib/appui-react/frontstage/ModalSettingsStage.js +2 -2
  142. package/lib/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  143. package/lib/appui-react/frontstage/NestedFrontstage.js +1 -1
  144. package/lib/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  145. package/lib/appui-react/frontstage/StandardFrontstageProvider.js +1 -1
  146. package/lib/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  147. package/lib/appui-react/hooks/useActiveIModelConnection.js +1 -1
  148. package/lib/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  149. package/lib/appui-react/hooks/useUiVisibility.js +1 -1
  150. package/lib/appui-react/hooks/useUiVisibility.js.map +1 -1
  151. package/lib/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  152. package/lib/appui-react/keyboardshortcut/KeyboardShortcut.js +1 -1
  153. package/lib/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  154. package/lib/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  155. package/lib/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -1
  156. package/lib/appui-react/layout/StandardLayout.js.map +1 -1
  157. package/lib/appui-react/layout/backstage/Backstage.js.map +1 -1
  158. package/lib/appui-react/layout/backstage/Item.js.map +1 -1
  159. package/lib/appui-react/layout/backstage/Separator.js +1 -1
  160. package/lib/appui-react/layout/backstage/Separator.js.map +1 -1
  161. package/lib/appui-react/layout/base/usePointerCaptor.d.ts +1 -1
  162. package/lib/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -1
  163. package/lib/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  164. package/lib/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  165. package/lib/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  166. package/lib/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  167. package/lib/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  168. package/lib/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  169. package/lib/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  170. package/lib/appui-react/layout/footer/tool-assistance/NewDot.js +1 -1
  171. package/lib/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  172. package/lib/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  173. package/lib/appui-react/layout/outline/SectionOutline.js.map +1 -1
  174. package/lib/appui-react/layout/popup/Tooltip.js.map +1 -1
  175. package/lib/appui-react/layout/state/internal/PanelStateHelpers.js +1 -1
  176. package/lib/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  177. package/lib/appui-react/layout/state/internal/TabStateHelpers.js +6 -6
  178. package/lib/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
  179. package/lib/appui-react/layout/state/internal/ToolSettingsStateHelpers.js +6 -6
  180. package/lib/appui-react/layout/state/internal/ToolSettingsStateHelpers.js.map +1 -1
  181. package/lib/appui-react/layout/state/internal/WidgetStateHelpers.js +13 -13
  182. package/lib/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  183. package/lib/appui-react/layout/target/TargetContainer.js.map +1 -1
  184. package/lib/appui-react/layout/target/useAllowedSideTarget.js +1 -1
  185. package/lib/appui-react/layout/target/useAllowedSideTarget.js.map +1 -1
  186. package/lib/appui-react/layout/tool-settings/Docked.js +1 -1
  187. package/lib/appui-react/layout/tool-settings/Docked.js.map +1 -1
  188. package/lib/appui-react/layout/tool-settings/Handle.js.map +1 -1
  189. package/lib/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  190. package/lib/appui-react/layout/tool-settings/Panel.js +1 -1
  191. package/lib/appui-react/layout/tool-settings/Panel.js.map +1 -1
  192. package/lib/appui-react/layout/tool-settings/Setting.js.map +1 -1
  193. package/lib/appui-react/layout/widget/Menu.js +1 -1
  194. package/lib/appui-react/layout/widget/Menu.js.map +1 -1
  195. package/lib/appui-react/layout/widget/MenuTab.js.map +1 -1
  196. package/lib/appui-react/layout/widget/NavigationArea.js.map +1 -1
  197. package/lib/appui-react/layout/widget/Tab.js +1 -1
  198. package/lib/appui-react/layout/widget/Tab.js.map +1 -1
  199. package/lib/appui-react/layout/widget/TabBar.js +1 -1
  200. package/lib/appui-react/layout/widget/TabBar.js.map +1 -1
  201. package/lib/appui-react/layout/widget/ToolsArea.js.map +1 -1
  202. package/lib/appui-react/layout/widget/Widget.js.map +1 -1
  203. package/lib/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  204. package/lib/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  205. package/lib/appui-react/layout/widget-panels/Expander.js +1 -1
  206. package/lib/appui-react/layout/widget-panels/Expander.js.map +1 -1
  207. package/lib/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  208. package/lib/appui-react/layout/widget-panels/Grip.js +3 -3
  209. package/lib/appui-react/layout/widget-panels/Grip.js.map +1 -1
  210. package/lib/appui-react/layout/widget-panels/Panel.d.ts.map +1 -1
  211. package/lib/appui-react/layout/widget-panels/useAnimatePanel.d.ts.map +1 -1
  212. package/lib/appui-react/messages/InputField.js +2 -2
  213. package/lib/appui-react/messages/InputField.js.map +1 -1
  214. package/lib/appui-react/messages/MessageManager.d.ts +4 -4
  215. package/lib/appui-react/messages/MessageManager.d.ts.map +1 -1
  216. package/lib/appui-react/messages/MessageManager.js +25 -25
  217. package/lib/appui-react/messages/MessageManager.js.map +1 -1
  218. package/lib/appui-react/messages/MessageRenderer.js.map +1 -1
  219. package/lib/appui-react/messages/Pointer.d.ts.map +1 -1
  220. package/lib/appui-react/messages/Pointer.js +7 -7
  221. package/lib/appui-react/messages/Pointer.js.map +1 -1
  222. package/lib/appui-react/messages/ReactNotifyMessageDetails.d.ts +2 -2
  223. package/lib/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  224. package/lib/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  225. package/lib/appui-react/navigationaids/CubeNavigationAidControl.js +2 -2
  226. package/lib/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  227. package/lib/appui-react/navigationaids/DrawingNavigationAidControl.js +2 -2
  228. package/lib/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  229. package/lib/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  230. package/lib/appui-react/navigationaids/SheetNavigationAid.js +2 -2
  231. package/lib/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  232. package/lib/appui-react/navigationaids/SheetsModalFrontstage.js +8 -8
  233. package/lib/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  234. package/lib/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +1 -1
  235. package/lib/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  236. package/lib/appui-react/navigationaids/StandardRotationNavigationAid.js +3 -3
  237. package/lib/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  238. package/lib/appui-react/pickers/ListPicker.d.ts +1 -0
  239. package/lib/appui-react/pickers/ListPicker.d.ts.map +1 -1
  240. package/lib/appui-react/pickers/ListPicker.js +11 -10
  241. package/lib/appui-react/pickers/ListPicker.js.map +1 -1
  242. package/lib/appui-react/pickers/ViewSelector.d.ts +1 -0
  243. package/lib/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  244. package/lib/appui-react/pickers/ViewSelector.js +7 -6
  245. package/lib/appui-react/pickers/ViewSelector.js.map +1 -1
  246. package/lib/appui-react/popup/CardPopup.js +2 -2
  247. package/lib/appui-react/popup/CardPopup.js.map +1 -1
  248. package/lib/appui-react/popup/ComponentPopup.js.map +1 -1
  249. package/lib/appui-react/popup/HTMLElementPopup.js.map +1 -1
  250. package/lib/appui-react/popup/InputEditorPopup.js.map +1 -1
  251. package/lib/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  252. package/lib/appui-react/popup/KeyinPalettePanel.js +2 -3
  253. package/lib/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  254. package/lib/appui-react/popup/KeyinPalettePopup.js +1 -1
  255. package/lib/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  256. package/lib/appui-react/popup/PopupManager.d.ts +1 -1
  257. package/lib/appui-react/popup/PopupManager.d.ts.map +1 -1
  258. package/lib/appui-react/popup/PopupManager.js +4 -4
  259. package/lib/appui-react/popup/PopupManager.js.map +1 -1
  260. package/lib/appui-react/popup/PositionPopup.js +2 -2
  261. package/lib/appui-react/popup/PositionPopup.js.map +1 -1
  262. package/lib/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  263. package/lib/appui-react/popup/ToolbarPopup.js +1 -1
  264. package/lib/appui-react/popup/ToolbarPopup.js.map +1 -1
  265. package/lib/appui-react/preview/PreviewFeatures.d.ts +3 -5
  266. package/lib/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  267. package/lib/appui-react/preview/PreviewFeatures.js +1 -2
  268. package/lib/appui-react/preview/PreviewFeatures.js.map +1 -1
  269. package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.d.ts +5 -0
  270. package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.d.ts.map +1 -0
  271. package/lib/appui-react/preview/{allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.js → allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.js} +5 -5
  272. package/lib/appui-react/preview/allow-bearing-letters-in-accudraw-input-fields/useAllowBearingLettersInAccuDrawInputFields.js.map +1 -0
  273. package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.d.ts +1 -1
  274. package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.d.ts.map +1 -1
  275. package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.js +1 -1
  276. package/lib/appui-react/preview/control-widget-visibility/NavigationWidget.js.map +1 -1
  277. package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.d.ts +1 -1
  278. package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.d.ts.map +1 -1
  279. package/lib/appui-react/preview/enable-maximized-widget/MaximizedWidget.js.map +1 -1
  280. package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts +1 -4
  281. package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  282. package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +13 -13
  283. package/lib/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  284. package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts +1 -1
  285. package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  286. package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +1 -1
  287. package/lib/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  288. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts +1 -1
  289. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.d.ts.map +1 -1
  290. package/lib/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -1
  291. package/lib/appui-react/redux/ConfigurableUiState.d.ts.map +1 -1
  292. package/lib/appui-react/redux/ConfigurableUiState.js +1 -1
  293. package/lib/appui-react/redux/ConfigurableUiState.js.map +1 -1
  294. package/lib/appui-react/redux/FrameworkState.js.map +1 -1
  295. package/lib/appui-react/redux/ReducerRegistry.js +1 -1
  296. package/lib/appui-react/redux/ReducerRegistry.js.map +1 -1
  297. package/lib/appui-react/redux/SessionState.d.ts.map +1 -1
  298. package/lib/appui-react/redux/SessionState.js.map +1 -1
  299. package/lib/appui-react/redux/StateManager.js +2 -2
  300. package/lib/appui-react/redux/StateManager.js.map +1 -1
  301. package/lib/appui-react/redux/connectIModel.js +1 -1
  302. package/lib/appui-react/redux/connectIModel.js.map +1 -1
  303. package/lib/appui-react/redux/redux-ts.js.map +1 -1
  304. package/lib/appui-react/selection/SelectionContextItemDef.js +2 -2
  305. package/lib/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  306. package/lib/appui-react/settings/SettingsManager.js +1 -1
  307. package/lib/appui-react/settings/SettingsManager.js.map +1 -1
  308. package/lib/appui-react/settings/quantityformatting/QuantityFormat.js +3 -3
  309. package/lib/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  310. package/lib/appui-react/settings/ui/UiSettingsPage.js +5 -5
  311. package/lib/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  312. package/lib/appui-react/shared/ActionButtonItemDef.js +1 -1
  313. package/lib/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  314. package/lib/appui-react/shared/AnyItemDef.js.map +1 -1
  315. package/lib/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  316. package/lib/appui-react/shared/CommandItemDef.js +1 -1
  317. package/lib/appui-react/shared/CommandItemDef.js.map +1 -1
  318. package/lib/appui-react/shared/CustomItemDef.js +1 -1
  319. package/lib/appui-react/shared/CustomItemDef.js.map +1 -1
  320. package/lib/appui-react/shared/CustomItemProps.js.map +1 -1
  321. package/lib/appui-react/shared/GroupItemProps.js.map +1 -1
  322. package/lib/appui-react/shared/ItemDefBase.js.map +1 -1
  323. package/lib/appui-react/shared/ItemMap.js +1 -1
  324. package/lib/appui-react/shared/ItemMap.js.map +1 -1
  325. package/lib/appui-react/shared/ItemProps.js.map +1 -1
  326. package/lib/appui-react/shared/MenuItem.js +1 -1
  327. package/lib/appui-react/shared/MenuItem.js.map +1 -1
  328. package/lib/appui-react/shared/ToolItemDef.js +1 -1
  329. package/lib/appui-react/shared/ToolItemDef.js.map +1 -1
  330. package/lib/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  331. package/lib/appui-react/stagepanels/StagePanelDef.js +2 -2
  332. package/lib/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  333. package/lib/appui-react/statusbar/Field.js.map +1 -1
  334. package/lib/appui-react/statusbar/Indicator.js +2 -2
  335. package/lib/appui-react/statusbar/Indicator.js.map +1 -1
  336. package/lib/appui-react/statusbar/LabelIndicator.js +2 -2
  337. package/lib/appui-react/statusbar/LabelIndicator.js.map +1 -1
  338. package/lib/appui-react/statusbar/Overflow.js.map +1 -1
  339. package/lib/appui-react/statusbar/Separator.js +1 -1
  340. package/lib/appui-react/statusbar/Separator.js.map +1 -1
  341. package/lib/appui-react/statusbar/StatusBar.js.map +1 -1
  342. package/lib/appui-react/statusbar/StatusBarComposer.js +6 -6
  343. package/lib/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  344. package/lib/appui-react/statusbar/StatusBarItem.js.map +1 -1
  345. package/lib/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  346. package/lib/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  347. package/lib/appui-react/statusbar/dialog/Button.js.map +1 -1
  348. package/lib/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  349. package/lib/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  350. package/lib/appui-react/statusbar/popup/Popup.js +2 -2
  351. package/lib/appui-react/statusbar/popup/Popup.js.map +1 -1
  352. package/lib/appui-react/statusfields/ActivityCenter.js +2 -2
  353. package/lib/appui-react/statusfields/ActivityCenter.js.map +1 -1
  354. package/lib/appui-react/statusfields/SectionsField.js.map +1 -1
  355. package/lib/appui-react/statusfields/SelectionCount.js.map +1 -1
  356. package/lib/appui-react/statusfields/SelectionInfo.js +2 -2
  357. package/lib/appui-react/statusfields/SelectionInfo.js.map +1 -1
  358. package/lib/appui-react/statusfields/SelectionScope.js +3 -3
  359. package/lib/appui-react/statusfields/SelectionScope.js.map +1 -1
  360. package/lib/appui-react/statusfields/SnapMode.js +2 -2
  361. package/lib/appui-react/statusfields/SnapMode.js.map +1 -1
  362. package/lib/appui-react/statusfields/ViewAttributes.d.ts +1 -1
  363. package/lib/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  364. package/lib/appui-react/statusfields/ViewAttributes.js +1 -1
  365. package/lib/appui-react/statusfields/ViewAttributes.js.map +1 -1
  366. package/lib/appui-react/statusfields/message-center/MessageCenterField.js +1 -1
  367. package/lib/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  368. package/lib/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  369. package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
  370. package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  371. package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -1
  372. package/lib/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  373. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  374. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js +5 -5
  375. package/lib/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  376. package/lib/appui-react/syncui/InternalSyncUiEventDispatcher.js +2 -2
  377. package/lib/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -1
  378. package/lib/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  379. package/lib/appui-react/syncui/SyncUiEventDispatcher.js +3 -8
  380. package/lib/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  381. package/lib/appui-react/syncui/UiSyncEvent.js +1 -1
  382. package/lib/appui-react/syncui/UiSyncEvent.js.map +1 -1
  383. package/lib/appui-react/theme/ThemeManager.js +1 -1
  384. package/lib/appui-react/theme/ThemeManager.js.map +1 -1
  385. package/lib/appui-react/toolbar/GroupItem.js +1 -1
  386. package/lib/appui-react/toolbar/GroupItem.js.map +1 -1
  387. package/lib/appui-react/toolbar/Toolbar.js.map +1 -1
  388. package/lib/appui-react/toolbar/ToolbarComposer.js +3 -3
  389. package/lib/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  390. package/lib/appui-react/toolbar/ToolbarHelper.js +4 -4
  391. package/lib/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  392. package/lib/appui-react/toolbar/ToolbarItem.js.map +1 -1
  393. package/lib/appui-react/toolbar/ToolbarItemUtilities.js +1 -1
  394. package/lib/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  395. package/lib/appui-react/toolbar/ToolbarItemsManager.js +10 -10
  396. package/lib/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  397. package/lib/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  398. package/lib/appui-react/toolbar/new-toolbars/Badge.d.ts +1 -1
  399. package/lib/appui-react/toolbar/new-toolbars/Badge.d.ts.map +1 -1
  400. package/lib/appui-react/toolbar/new-toolbars/Badge.js +1 -1
  401. package/lib/appui-react/toolbar/new-toolbars/Badge.js.map +1 -1
  402. package/lib/appui-react/toolbar/new-toolbars/GroupItem.js +2 -2
  403. package/lib/appui-react/toolbar/new-toolbars/GroupItem.js.map +1 -1
  404. package/lib/appui-react/toolbar/new-toolbars/Item.js +1 -1
  405. package/lib/appui-react/toolbar/new-toolbars/Item.js.map +1 -1
  406. package/lib/appui-react/toolbar/new-toolbars/ToolGroup.js.map +1 -1
  407. package/lib/appui-react/toolbar/new-toolbars/useOverflow.d.ts.map +1 -1
  408. package/lib/appui-react/toolbar/useDefaultToolbarItems.js +1 -1
  409. package/lib/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  410. package/lib/appui-react/toolbar/useUiItemsProviderToolbarItems.js +1 -1
  411. package/lib/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  412. package/lib/appui-react/tools/CoreToolDefinitions.js +2 -2
  413. package/lib/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  414. package/lib/appui-react/tools/KeyinPaletteTools.d.ts +1 -1
  415. package/lib/appui-react/tools/OpenSettingsTool.d.ts +1 -1
  416. package/lib/appui-react/tools/RestoreLayoutTool.d.ts +2 -2
  417. package/lib/appui-react/tools/ToolbarItems.js +1 -1
  418. package/lib/appui-react/tools/ToolbarItems.js.map +1 -1
  419. package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  420. package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -3
  421. package/lib/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  422. package/lib/appui-react/toolsettings/InternalToolSettingsManager.js +2 -2
  423. package/lib/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  424. package/lib/appui-react/toolsettings/ToolInformation.js +1 -1
  425. package/lib/appui-react/toolsettings/ToolInformation.js.map +1 -1
  426. package/lib/appui-react/toolsettings/ToolUiProvider.js +1 -1
  427. package/lib/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  428. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +5 -5
  429. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.js +1 -1
  430. package/lib/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  431. package/lib/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
  432. package/lib/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -4
  433. package/lib/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  434. package/lib/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  435. package/lib/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +3 -3
  436. package/lib/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  437. package/lib/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  438. package/lib/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
  439. package/lib/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  440. package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  441. package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -1
  442. package/lib/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  443. package/lib/appui-react/ui-items-provider/UiItemsManager.js +3 -3
  444. package/lib/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  445. package/lib/appui-react/uiadmin/FrameworkUiAdmin.js +3 -3
  446. package/lib/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  447. package/lib/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  448. package/lib/appui-react/uistate/AppUiSettings.js +2 -2
  449. package/lib/appui-react/uistate/AppUiSettings.js.map +1 -1
  450. package/lib/appui-react/uistate/LocalStateStorage.js +1 -1
  451. package/lib/appui-react/uistate/LocalStateStorage.js.map +1 -1
  452. package/lib/appui-react/uistate/UiStateStorage.js +1 -1
  453. package/lib/appui-react/uistate/UiStateStorage.js.map +1 -1
  454. package/lib/appui-react/uistate/useReduxFrameworkState.js +1 -1
  455. package/lib/appui-react/uistate/useReduxFrameworkState.js.map +1 -1
  456. package/lib/appui-react/uistate/useUiStateStorage.js +1 -1
  457. package/lib/appui-react/uistate/useUiStateStorage.js.map +1 -1
  458. package/lib/appui-react/utils/PropsHelper.js +5 -5
  459. package/lib/appui-react/utils/PropsHelper.js.map +1 -1
  460. package/lib/appui-react/utils/RectangleProps.js.map +1 -1
  461. package/lib/appui-react/utils/SizeProps.js.map +1 -1
  462. package/lib/appui-react/utils/ViewUtilities.d.ts.map +1 -1
  463. package/lib/appui-react/utils/ViewUtilities.js.map +1 -1
  464. package/lib/appui-react/utils/getActiveViewport.js +1 -1
  465. package/lib/appui-react/utils/getActiveViewport.js.map +1 -1
  466. package/lib/appui-react/widget-panels/DockedBar.js.map +1 -1
  467. package/lib/appui-react/widget-panels/Frontstage.js +7 -7
  468. package/lib/appui-react/widget-panels/Frontstage.js.map +1 -1
  469. package/lib/appui-react/widget-panels/StatusBar.js +5 -5
  470. package/lib/appui-react/widget-panels/StatusBar.js.map +1 -1
  471. package/lib/appui-react/widget-panels/Tab.js +4 -4
  472. package/lib/appui-react/widget-panels/Tab.js.map +1 -1
  473. package/lib/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  474. package/lib/appui-react/widget-panels/ToolSettings.js +8 -5
  475. package/lib/appui-react/widget-panels/ToolSettings.js.map +1 -1
  476. package/lib/appui-react/widgets/BackstageAppButton.js +2 -2
  477. package/lib/appui-react/widgets/BackstageAppButton.js.map +1 -1
  478. package/lib/appui-react/widgets/BasicNavigationWidget.js +1 -1
  479. package/lib/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  480. package/lib/appui-react/widgets/BasicToolWidget.js +1 -1
  481. package/lib/appui-react/widgets/BasicToolWidget.js.map +1 -1
  482. package/lib/appui-react/widgets/ContentToolWidgetComposer.js +1 -1
  483. package/lib/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  484. package/lib/appui-react/widgets/NavigationWidgetComposer.js +10 -10
  485. package/lib/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  486. package/lib/appui-react/widgets/StatusBarWidgetComposerControl.js +1 -1
  487. package/lib/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  488. package/lib/appui-react/widgets/ToolWidgetComposer.js +1 -1
  489. package/lib/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  490. package/lib/appui-react/widgets/ViewToolWidgetComposer.js +1 -1
  491. package/lib/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  492. package/lib/appui-react/widgets/Widget.js.map +1 -1
  493. package/lib/appui-react/widgets/WidgetControl.js +1 -1
  494. package/lib/appui-react/widgets/WidgetControl.js.map +1 -1
  495. package/lib/appui-react/widgets/WidgetDef.js +21 -21
  496. package/lib/appui-react/widgets/WidgetDef.js.map +1 -1
  497. package/lib/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  498. package/lib/appui-react/widgets/useWidget.d.ts.map +1 -1
  499. package/lib/appui-react.js +1 -1
  500. package/lib/appui-react.js.map +1 -1
  501. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +0 -15
  502. package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +0 -15
  503. package/package.json +18 -18
  504. package/lib/appui-react/layout/widget/tools/button/Back.d.ts +0 -21
  505. package/lib/appui-react/layout/widget/tools/button/Back.d.ts.map +0 -1
  506. package/lib/appui-react/layout/widget/tools/button/Back.js +0 -23
  507. package/lib/appui-react/layout/widget/tools/button/Back.js.map +0 -1
  508. package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.d.ts +0 -5
  509. package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.d.ts.map +0 -1
  510. package/lib/appui-react/preview/allow-letters-in-accudraw-input-fields/useAllowLettersInAccuDrawInputFields.js.map +0 -1
  511. package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.d.ts +0 -5
  512. package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.d.ts.map +0 -1
  513. package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.js +0 -13
  514. package/lib/appui-react/preview/enable-colorless-accudraw-input-fields/useEnableColorlessAccuDrawInputFields.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StandardContentToolsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardContentToolsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAgD/D;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,4BAA6B,SAAQ,mBAAmB;IAEnE;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,mBAAyC,EACzC,gBAIY;QAEZ,mDAAmD;QACnD,MAAM,QAAQ,GAAG,IAAI,4BAA4B,CAC/C,UAAU,EACV,mBAAmB,EACnB,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAElC,sDAAsD;QACtD,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,YACE,UAAkB,EAClB,mBAAqD,EACrD,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,mCAAmC,CAC5D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAEe,2BAA2B,CACzC,QAAgB,EAChB,WAAmB,EACnB,YAA0B,EAC1B,kBAAsC,EACtC,YAAkB;QAElB,mDAAmD;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAC7C,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,YAAY,CACb,CAAC;IACJ,CAAC;IAEe,6BAA6B,CAC3C,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,mDAAmD;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC/C,QAAQ,EACR,WAAW,EACX,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport { ViewClipByPlaneTool } from \"@itwin/core-frontend\";\nimport type { DefaultContentTools } from \"./StandardContentToolsUiItemsProvider.js\";\nimport { StandardContentToolsUiItemsProvider } from \"./StandardContentToolsUiItemsProvider.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\nimport type {\n ToolbarItem,\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { UiItemsProvider } from \"./UiItemsProvider.js\";\n\n/**\n * Defines options that may be set in frontstage app data to control what group priorities\n * to use for each tool button that can be added by this extension. Defining groupIds is optional\n * and only required if use wants to override the default grouping. This application data is statically\n * set in the FrontstageProvider.\n * @example\n * ```\n * const applicationData = {\n * defaultContentTools: {\n * vertical: {\n * selectElementGroupPriority: 100,\n * measureGroupPriority: 200,\n * selectionGroupPriority: 300,\n * },\n * horizontal: {\n * clearSelectionGroupPriority: 100,\n * overridesGroupPriority: 200,\n * },\n * },\n * }\n *\n * ```\n * @public\n * @deprecated in 4.17.0. Application data is not supported in frontstages. Instead configure the {@link UiItemsProvider} before registering for a specific frontstage.\n */\nexport interface DefaultContentToolsAppData {\n defaultContentTools?: {\n vertical?: {\n selectElementGroupPriority?: number;\n measureGroupPriority?: number;\n selectionGroupPriority?: number;\n };\n horizontal?: {\n clearSelectionGroupPriority?: number;\n overridesGroupPriority?: number;\n };\n };\n}\n\n/** Provide standard tools for the ContentManipulationWidgetComposer.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardContentToolsUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardContentToolsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardContentToolsUiItemsProvider;\n /**\n * static function to register the StandardContentToolsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard tools.\n * @param defaultContentTools - if undefined all available tools are provided to stage. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultContentTools?: DefaultContentTools,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const provider = new StandardContentToolsProvider(\n providerId,\n defaultContentTools,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n\n // register core commands not automatically registered\n ViewClipByPlaneTool.register();\n return provider;\n }\n\n constructor(\n providerId: string,\n defaultContentTools?: DefaultContentTools | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardContentToolsUiItemsProvider(\n defaultContentTools\n );\n }\n\n public override provideToolbarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n toolbarUsage: ToolbarUsage,\n toolbarOrientation: ToolbarOrientation,\n stageAppData?: any\n ): ToolbarItem[] {\n // eslint-disable-next-line deprecation/deprecation\n return this.uiItemsProvider.provideToolbarItems(\n _stageId,\n _stageUsage,\n toolbarUsage,\n toolbarOrientation,\n stageAppData\n );\n }\n\n public override provideStatusBarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n // eslint-disable-next-line deprecation/deprecation\n return this.uiItemsProvider.provideStatusBarItems(\n _stageId,\n _stageUsage,\n _stageAppData\n );\n }\n}\n"]}
1
+ {"version":3,"file":"StandardContentToolsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardContentToolsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAgD/D;;;GAGG;AACH,4DAA4D;AAC5D,MAAM,OAAO,4BAA6B,SAAQ,mBAAmB;IAEnE;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,mBAAyC,EACzC,gBAIY;QAEZ,4DAA4D;QAC5D,MAAM,QAAQ,GAAG,IAAI,4BAA4B,CAC/C,UAAU,EACV,mBAAmB,EACnB,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAElC,sDAAsD;QACtD,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,YACE,UAAkB,EAClB,mBAAqD,EACrD,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,mCAAmC,CAC5D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAEe,2BAA2B,CACzC,QAAgB,EAChB,WAAmB,EACnB,YAA0B,EAC1B,kBAAsC,EACtC,YAAkB;QAElB,4DAA4D;QAC5D,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAC7C,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,YAAY,CACb,CAAC;IACJ,CAAC;IAEe,6BAA6B,CAC3C,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,4DAA4D;QAC5D,OAAO,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC/C,QAAQ,EACR,WAAW,EACX,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport { ViewClipByPlaneTool } from \"@itwin/core-frontend\";\nimport type { DefaultContentTools } from \"./StandardContentToolsUiItemsProvider.js\";\nimport { StandardContentToolsUiItemsProvider } from \"./StandardContentToolsUiItemsProvider.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\nimport type {\n ToolbarItem,\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { UiItemsProvider } from \"./UiItemsProvider.js\";\n\n/**\n * Defines options that may be set in frontstage app data to control what group priorities\n * to use for each tool button that can be added by this extension. Defining groupIds is optional\n * and only required if use wants to override the default grouping. This application data is statically\n * set in the FrontstageProvider.\n * @example\n * ```\n * const applicationData = {\n * defaultContentTools: {\n * vertical: {\n * selectElementGroupPriority: 100,\n * measureGroupPriority: 200,\n * selectionGroupPriority: 300,\n * },\n * horizontal: {\n * clearSelectionGroupPriority: 100,\n * overridesGroupPriority: 200,\n * },\n * },\n * }\n *\n * ```\n * @public\n * @deprecated in 4.17.0. Application data is not supported in frontstages. Instead configure the {@link UiItemsProvider} before registering for a specific frontstage.\n */\nexport interface DefaultContentToolsAppData {\n defaultContentTools?: {\n vertical?: {\n selectElementGroupPriority?: number;\n measureGroupPriority?: number;\n selectionGroupPriority?: number;\n };\n horizontal?: {\n clearSelectionGroupPriority?: number;\n overridesGroupPriority?: number;\n };\n };\n}\n\n/** Provide standard tools for the ContentManipulationWidgetComposer.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardContentToolsUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class StandardContentToolsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardContentToolsUiItemsProvider;\n /**\n * static function to register the StandardContentToolsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard tools.\n * @param defaultContentTools - if undefined all available tools are provided to stage. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultContentTools?: DefaultContentTools,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const provider = new StandardContentToolsProvider(\n providerId,\n defaultContentTools,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n\n // register core commands not automatically registered\n ViewClipByPlaneTool.register();\n return provider;\n }\n\n constructor(\n providerId: string,\n defaultContentTools?: DefaultContentTools | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardContentToolsUiItemsProvider(\n defaultContentTools\n );\n }\n\n public override provideToolbarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n toolbarUsage: ToolbarUsage,\n toolbarOrientation: ToolbarOrientation,\n stageAppData?: any\n ): ToolbarItem[] {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return this.uiItemsProvider.provideToolbarItems(\n _stageId,\n _stageUsage,\n toolbarUsage,\n toolbarOrientation,\n stageAppData\n );\n }\n\n public override provideStatusBarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return this.uiItemsProvider.provideStatusBarItems(\n _stageId,\n _stageUsage,\n _stageAppData\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StandardContentToolsUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE;QACX,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,4FAA4F;QAC5F,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC3B,+FAA+F;QAC/F,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B,sDAAsD;QACtD,SAAS,CAAC,EAAE,SAAS,CAAC;KACvB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;CACH;AAYD;;GAEG;AACH,qBAAa,mCAAoC,YAAW,eAAe;IAK7D,OAAO,CAAC,mBAAmB,CAAC;IAJxC,IAAW,EAAE,IAAI,MAAM,CAEtB;gBAEmB,mBAAmB,CAAC,iCAAqB;IAE7D,6GAA6G;IACtG,mBAAmB,CACxB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,CAAC,EAAE,GAAG,GACjB,WAAW,EAAE;IAST,eAAe,IAAI,SAAS,WAAW,EAAE;IAIhD,+GAA+G;IACxG,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,GAAG,GAClB,aAAa,EAAE;IAIX,iBAAiB,IAAI,SAAS,aAAa,EAAE;CAiBrD"}
1
+ {"version":3,"file":"StandardContentToolsUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE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ardNavigationToolsUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.
14
14
  */
15
- // eslint-disable-next-line deprecation/deprecation
15
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
16
16
  export class StandardNavigationToolsProvider extends BaseUiItemsProvider {
17
17
  /**
18
18
  * static function to register the StandardContentToolsProvider
@@ -24,7 +24,7 @@ export class StandardNavigationToolsProvider extends BaseUiItemsProvider {
24
24
  * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.
25
25
  */
26
26
  static register(providerId, defaultNavigationTools, isSupportedStage) {
27
- // eslint-disable-next-line deprecation/deprecation
27
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
28
28
  const provider = new StandardNavigationToolsProvider(providerId, defaultNavigationTools, isSupportedStage);
29
29
  UiItemsManager.register(provider);
30
30
  return provider;
@@ -34,7 +34,7 @@ export class StandardNavigationToolsProvider extends BaseUiItemsProvider {
34
34
  this.uiItemsProvider = new StandardNavigationToolsUiItemsProvider(defaultNavigationTools);
35
35
  }
36
36
  provideToolbarItemsInternal(_stageId, _stageUsage, toolbarUsage, toolbarOrientation, _stageAppData) {
37
- // eslint-disable-next-line deprecation/deprecation
37
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
38
38
  return this.uiItemsProvider.provideToolbarItems(_stageId, _stageUsage, toolbarUsage, toolbarOrientation, _stageAppData);
39
39
  }
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StandardNavigationToolsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardNavigationToolsProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAOH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,+BAAgC,SAAQ,mBAAmB;IAEtE;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,sBAA+C,EAC/C,gBAIY;QAEZ,mDAAmD;QACnD,MAAM,QAAQ,GAAG,IAAI,+BAA+B,CAClD,UAAU,EACV,sBAAsB,EACtB,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,YACE,UAAkB,EAClB,sBAA2D,EAC3D,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,sCAAsC,CAC/D,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAEe,2BAA2B,CACzC,QAAgB,EAChB,WAAmB,EACnB,YAA0B,EAC1B,kBAAsC,EACtC,aAAmB;QAEnB,mDAAmD;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAC7C,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport type {\n ToolbarItem,\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\nimport type { DefaultNavigationTools } from \"./StandardNavigationToolsUiItemsProvider.js\";\nimport { StandardNavigationToolsUiItemsProvider } from \"./StandardNavigationToolsUiItemsProvider.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\n\n/** Provide standard tools for the ViewNavigationWidgetComposer.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardNavigationToolsUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardNavigationToolsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardNavigationToolsUiItemsProvider;\n /**\n * static function to register the StandardContentToolsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard tools\n * @param defaultNavigationTools - if undefined all available tools are provided to stage. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultNavigationTools?: DefaultNavigationTools,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const provider = new StandardNavigationToolsProvider(\n providerId,\n defaultNavigationTools,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n return provider;\n }\n\n constructor(\n providerId: string,\n defaultNavigationTools?: DefaultNavigationTools | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardNavigationToolsUiItemsProvider(\n defaultNavigationTools\n );\n }\n\n public override provideToolbarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n toolbarUsage: ToolbarUsage,\n toolbarOrientation: ToolbarOrientation,\n _stageAppData?: any\n ): ToolbarItem[] {\n // eslint-disable-next-line deprecation/deprecation\n return this.uiItemsProvider.provideToolbarItems(\n _stageId,\n _stageUsage,\n toolbarUsage,\n toolbarOrientation,\n _stageAppData\n );\n }\n}\n"]}
1
+ {"version":3,"file":"StandardNavigationToolsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardNavigationToolsProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAOH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;GAGG;AACH,4DAA4D;AAC5D,MAAM,OAAO,+BAAgC,SAAQ,mBAAmB;IAEtE;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,sBAA+C,EAC/C,gBAIY;QAEZ,4DAA4D;QAC5D,MAAM,QAAQ,GAAG,IAAI,+BAA+B,CAClD,UAAU,EACV,sBAAsB,EACtB,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,YACE,UAAkB,EAClB,sBAA2D,EAC3D,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,sCAAsC,CAC/D,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAEe,2BAA2B,CACzC,QAAgB,EAChB,WAAmB,EACnB,YAA0B,EAC1B,kBAAsC,EACtC,aAAmB;QAEnB,4DAA4D;QAC5D,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAC7C,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport type {\n ToolbarItem,\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\nimport type { DefaultNavigationTools } from \"./StandardNavigationToolsUiItemsProvider.js\";\nimport { StandardNavigationToolsUiItemsProvider } from \"./StandardNavigationToolsUiItemsProvider.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\n\n/** Provide standard tools for the ViewNavigationWidgetComposer.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardNavigationToolsUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class StandardNavigationToolsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardNavigationToolsUiItemsProvider;\n /**\n * static function to register the StandardContentToolsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard tools\n * @param defaultNavigationTools - if undefined all available tools are provided to stage. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultNavigationTools?: DefaultNavigationTools,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const provider = new StandardNavigationToolsProvider(\n providerId,\n defaultNavigationTools,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n return provider;\n }\n\n constructor(\n providerId: string,\n defaultNavigationTools?: DefaultNavigationTools | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardNavigationToolsUiItemsProvider(\n defaultNavigationTools\n );\n }\n\n public override provideToolbarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n toolbarUsage: ToolbarUsage,\n toolbarOrientation: ToolbarOrientation,\n _stageAppData?: any\n ): ToolbarItem[] {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return this.uiItemsProvider.provideToolbarItems(\n _stageId,\n _stageUsage,\n toolbarUsage,\n toolbarOrientation,\n _stageAppData\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StandardNavigationToolsUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE;QACX,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;GAEG;AACH,qBAAa,sCAAuC,YAAW,eAAe;IAKhE,OAAO,CAAC,sBAAsB,CAAC;IAJ3C,IAAW,EAAE,IAAI,MAAM,CAEtB;gBAEmB,sBAAsB,CAAC,oCAAwB;IAEnE,6GAA6G;IACtG,mBAAmB,CACxB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,CAAC,EAAE,GAAG,GAClB,WAAW,EAAE;IAQT,eAAe,IAAI,SAAS,WAAW,EAAE;CAwHjD"}
1
+ {"version":3,"file":"StandardNavigationToolsUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE;QACX,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;GAEG;AACH,qBAAa,sCAAuC,YAAW,eAAe;IAKhE,OAAO,CAAC,sBAAsB,CAAC;IAJ3C,IAAW,EAAE,IAAI,MAAM,CAEtB;gBAEmB,sBAAsB,CAAC,EAAE,sBAAsB,YAAA;IAEnE,6GAA6G;IACtG,mBAAmB,CACxB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,CAAC,EAAE,GAAG,GAClB,WAAW,EAAE;IAQT,eAAe,IAAI,SAAS,WAAW,EAAE;CAwHjD"}
@@ -12,7 +12,7 @@ import { BaseUiItemsProvider } from "./BaseUiItemsProvider.js";
12
12
  * @public
13
13
  * @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.
14
14
  */
15
- // eslint-disable-next-line deprecation/deprecation
15
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
16
16
  export class StandardStatusbarItemsProvider extends BaseUiItemsProvider {
17
17
  constructor(providerId, _defaultItems, isSupportedStage) {
18
18
  super(providerId, isSupportedStage);
@@ -28,13 +28,13 @@ export class StandardStatusbarItemsProvider extends BaseUiItemsProvider {
28
28
  * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.
29
29
  */
30
30
  static register(providerId, defaultItems, isSupportedStage) {
31
- // eslint-disable-next-line deprecation/deprecation
31
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
32
32
  const provider = new StandardStatusbarItemsProvider(providerId, defaultItems, isSupportedStage);
33
33
  UiItemsManager.register(provider);
34
34
  return provider;
35
35
  }
36
36
  provideStatusBarItemsInternal(_stageId, _stageUsage, _stageAppData) {
37
- // eslint-disable-next-line deprecation/deprecation
37
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
38
38
  return this.uiItemsProvider.provideStatusBarItems(_stageId, _stageUsage, _stageAppData);
39
39
  }
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StandardStatusbarItemsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;GAGG;AACH,mDAAmD;AACnD,MAAM,OAAO,8BAA+B,SAAQ,mBAAmB;IAErE,YACE,UAAkB,EAClB,aAAiD,EACjD,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAgC,CAAC,aAAa,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,YAAoC,EACpC,gBAIY;QAEZ,mDAAmD;QACnD,MAAM,QAAQ,GAAG,IAAI,8BAA8B,CACjD,UAAU,EACV,YAAY,EACZ,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEe,6BAA6B,CAC3C,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,mDAAmD;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC/C,QAAQ,EACR,WAAW,EACX,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport type { DefaultStatusbarItems } from \"./StandardStatusbarUiItemsProvider.js\";\nimport { StandardStatusbarUiItemsProvider } from \"./StandardStatusbarUiItemsProvider.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\n\n/** Provide standard status bar fields.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardStatusbarItemsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardStatusbarUiItemsProvider;\n constructor(\n providerId: string,\n _defaultItems?: DefaultStatusbarItems | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardStatusbarUiItemsProvider(_defaultItems);\n }\n\n /**\n * static function to register the StandardStatusbarItemsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard status bar items.\n * @param defaultItems - if undefined all available item are provided to stage except for activityCenter. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultItems?: DefaultStatusbarItems,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const provider = new StandardStatusbarItemsProvider(\n providerId,\n defaultItems,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n return provider;\n }\n\n public override provideStatusBarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n // eslint-disable-next-line deprecation/deprecation\n return this.uiItemsProvider.provideStatusBarItems(\n _stageId,\n _stageUsage,\n _stageAppData\n );\n }\n}\n"]}
1
+ {"version":3,"file":"StandardStatusbarItemsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;GAGG;AACH,4DAA4D;AAC5D,MAAM,OAAO,8BAA+B,SAAQ,mBAAmB;IAErE,YACE,UAAkB,EAClB,aAAiD,EACjD,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAgC,CAAC,aAAa,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,YAAoC,EACpC,gBAIY;QAEZ,4DAA4D;QAC5D,MAAM,QAAQ,GAAG,IAAI,8BAA8B,CACjD,UAAU,EACV,YAAY,EACZ,gBAAgB,CACjB,CAAC;QACF,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEe,6BAA6B,CAC3C,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,4DAA4D;QAC5D,OAAO,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC/C,QAAQ,EACR,WAAW,EACX,aAAa,CACd,CAAC;IACJ,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 StandardUiItemsProvider\n */\n\nimport type { DefaultStatusbarItems } from \"./StandardStatusbarUiItemsProvider.js\";\nimport { StandardStatusbarUiItemsProvider } from \"./StandardStatusbarUiItemsProvider.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { UiItemsManager } from \"./UiItemsManager.js\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider.js\";\n\n/** Provide standard status bar fields.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport class StandardStatusbarItemsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardStatusbarUiItemsProvider;\n constructor(\n providerId: string,\n _defaultItems?: DefaultStatusbarItems | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardStatusbarUiItemsProvider(_defaultItems);\n }\n\n /**\n * static function to register the StandardStatusbarItemsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard status bar items.\n * @param defaultItems - if undefined all available item are provided to stage except for activityCenter. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultItems?: DefaultStatusbarItems,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const provider = new StandardStatusbarItemsProvider(\n providerId,\n defaultItems,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n return provider;\n }\n\n public override provideStatusBarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return this.uiItemsProvider.provideStatusBarItems(\n _stageId,\n _stageUsage,\n _stageAppData\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"StandardStatusbarUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGnE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,gCAAiC,YAAW,eAAe;IAM1D,OAAO,CAAC,aAAa,CAAC;IALlC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,gKAAgK;gBAC5I,aAAa,CAAC,mCAAuB;IAEzD,+GAA+G;IACxG,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,GAAG,GAClB,aAAa,EAAE;IAIX,iBAAiB,IAAI,SAAS,aAAa,EAAE;CAmGrD"}
1
+ {"version":3,"file":"StandardStatusbarUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGnE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,gCAAiC,YAAW,eAAe;IAM1D,OAAO,CAAC,aAAa,CAAC;IALlC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,gKAAgK;gBAC5I,aAAa,CAAC,EAAE,qBAAqB,YAAA;IAEzD,+GAA+G;IACxG,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,GAAG,GAClB,aAAa,EAAE;IAIX,iBAAiB,IAAI,SAAS,aAAa,EAAE;CAmGrD"}
@@ -100,7 +100,7 @@ export class StandardStatusbarUiItemsProvider {
100
100
  id: "uifw.SelectionInfo",
101
101
  section: StatusBarSection.Right,
102
102
  itemPriority: 30,
103
- // eslint-disable-next-line deprecation/deprecation
103
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
104
104
  content: React.createElement(SelectionInfoField, null),
105
105
  }));
106
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StandardStatusbarUiItemsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAmBjE;;GAEG;AACH,MAAM,OAAO,gCAAgC;IAC3C,IAAW,EAAE;QACX,OAAO,8CAA8C,CAAC;IACxD,CAAC;IAED,gKAAgK;IAChK,YAAoB,aAAqC;QAArC,kBAAa,GAAb,aAAa,CAAwB;IAAG,CAAC;IAE7D,+GAA+G;IACxG,qB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,EAAE,gBAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,oBAAC,mBAAmB,OAAG;aACjC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC;YAC5D,cAAc,CAAC,IAAI,CACjB,sBAAsB,CAAC,gBAAgB,CAAC;gBACtC,EAAE,EAAE,oBAAoB;gBACxB,OAAO,EAAE,gBAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,mDAAmD;gBACnD,OAAO,EAAE,oBAAC,kBAAkB,OAAG;aAChC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,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 StandardUiItemsProvider\n */\n\nimport * as React from \"react\";\nimport { StatusBarItemUtilities } from \"../statusbar/StatusBarItemUtilities.js\";\nimport { ToolAssistanceField } from \"../statusfields/toolassistance/ToolAssistanceField.js\";\nimport { MessageCenterField } from \"../statusfields/message-center/MessageCenterField.js\";\nimport { ActivityCenterField } from \"../statusfields/ActivityCenter.js\";\nimport { SnapModeField } from \"../statusfields/SnapMode.js\";\nimport { SelectionInfoField } from \"../statusfields/SelectionInfo.js\";\nimport { TileLoadingIndicator } from \"../statusfields/tileloading/TileLoadingIndicator.js\";\nimport { SelectionScopeField } from \"../statusfields/SelectionScope.js\";\nimport { StatusBarSeparator } from \"../statusbar/Separator.js\";\nimport type { UiItemsProvider } from \"./UiItemsProvider.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { StatusBarSection } from \"../statusbar/StatusBarItem.js\";\n\n/** Defines what items to include from the provider.\n * @note When this object is used, only explicitly enabled items will be added to the status bar. I.e. `{ messageCenter: true }` will only add message center field to the statusbar.\n * @public\n */\nexport interface DefaultStatusbarItems {\n messageCenter?: boolean;\n preToolAssistanceSeparator?: boolean;\n toolAssistance?: boolean;\n postToolAssistanceSeparator?: boolean;\n /** Activity center field is hidden by default. */\n activityCenter?: boolean;\n accuSnapModePicker?: boolean;\n tileLoadIndicator?: boolean;\n selectionScope?: boolean;\n selectionInfo?: boolean;\n}\n\n/** Provides standard status bar items.\n * @public\n */\nexport class StandardStatusbarUiItemsProvider implements UiItemsProvider {\n public get id(): string {\n return \"appui-react:StandardStatusbarUiItemsProvider\";\n }\n\n /** Creates a provider. If the `defaultItems` argument is not set, all default fields are added. Otherwise, only the fields that are set to `true` are added. */\n constructor(private _defaultItems?: DefaultStatusbarItems) {}\n\n /** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideStatusBarItems}. */\n public provideStatusBarItems(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n return this.getStatusBarItems() as StatusBarItem[];\n }\n\n public getStatusBarItems(): readonly StatusBarItem[] {\n const statusBarItems: StatusBarItem[] = [];\n if (!this._defaultItems || this._defaultItems.messageCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.MessageCenter\",\n section: StatusBarSection.Left,\n itemPriority: 10,\n content: <MessageCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.toolAssistance) {\n if (!this._defaultItems || this._defaultItems.preToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PreToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 15,\n content: <StatusBarSeparator />,\n })\n );\n\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 20,\n content: <ToolAssistanceField />,\n })\n );\n\n if (!this._defaultItems || this._defaultItems.postToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PostToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 25,\n content: <StatusBarSeparator />,\n })\n );\n }\n if (this._defaultItems?.activityCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ActivityCenter\",\n section: StatusBarSection.Left,\n itemPriority: 30,\n content: <ActivityCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.accuSnapModePicker) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SnapMode\",\n section: StatusBarSection.Center,\n itemPriority: 10,\n content: <SnapModeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.tileLoadIndicator) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.TileLoadIndicator\",\n section: StatusBarSection.Right,\n itemPriority: 10,\n content: <TileLoadingIndicator />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionScope) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionScope\",\n section: StatusBarSection.Right,\n itemPriority: 20,\n content: <SelectionScopeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionInfo) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionInfo\",\n section: StatusBarSection.Right,\n itemPriority: 30,\n // eslint-disable-next-line deprecation/deprecation\n content: <SelectionInfoField />,\n })\n );\n }\n\n return statusBarItems;\n }\n}\n"]}
1
+ {"version":3,"file":"StandardStatusbarUiItemsProvider.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,mBAAmB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AAE,EAAE,eAAe;gBACnB,OAAO,EAAE,gBAAgB,CAAC,MAAM;gBAChC,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,oBAAC,aAAa,OAAG;aAC3B,CAAC,CACH,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,CAAC;YAChE,cAAc,CAAC,IAAI,CACjB,sBAAsB,CAAC,gBAAgB,CAAC;gBACtC,EAAE,EAAE,wBAAwB;gBAC5B,OAAO,EAAE,gBAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,oBAAC,oBAAoB,OAAG;aAClC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC;YAC7D,cAAc,CAAC,IAAI,CACjB,sBAAsB,CAAC,gBAAgB,CAAC;gBACtC,EAAE,EAAE,qBAAqB;gBACzB,OAAO,EAAE,gBAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,oBAAC,mBAAmB,OAAG;aACjC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC;YAC5D,cAAc,CAAC,IAAI,CACjB,sBAAsB,CAAC,gBAAgB,CAAC;gBACtC,EAAE,EAAE,oBAAoB;gBACxB,OAAO,EAAE,gBAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,4DAA4D;gBAC5D,OAAO,EAAE,oBAAC,kBAAkB,OAAG;aAChC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,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 StandardUiItemsProvider\n */\n\nimport * as React from \"react\";\nimport { StatusBarItemUtilities } from \"../statusbar/StatusBarItemUtilities.js\";\nimport { ToolAssistanceField } from \"../statusfields/toolassistance/ToolAssistanceField.js\";\nimport { MessageCenterField } from \"../statusfields/message-center/MessageCenterField.js\";\nimport { ActivityCenterField } from \"../statusfields/ActivityCenter.js\";\nimport { SnapModeField } from \"../statusfields/SnapMode.js\";\nimport { SelectionInfoField } from \"../statusfields/SelectionInfo.js\";\nimport { TileLoadingIndicator } from \"../statusfields/tileloading/TileLoadingIndicator.js\";\nimport { SelectionScopeField } from \"../statusfields/SelectionScope.js\";\nimport { StatusBarSeparator } from \"../statusbar/Separator.js\";\nimport type { UiItemsProvider } from \"./UiItemsProvider.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport { StatusBarSection } from \"../statusbar/StatusBarItem.js\";\n\n/** Defines what items to include from the provider.\n * @note When this object is used, only explicitly enabled items will be added to the status bar. I.e. `{ messageCenter: true }` will only add message center field to the statusbar.\n * @public\n */\nexport interface DefaultStatusbarItems {\n messageCenter?: boolean;\n preToolAssistanceSeparator?: boolean;\n toolAssistance?: boolean;\n postToolAssistanceSeparator?: boolean;\n /** Activity center field is hidden by default. */\n activityCenter?: boolean;\n accuSnapModePicker?: boolean;\n tileLoadIndicator?: boolean;\n selectionScope?: boolean;\n selectionInfo?: boolean;\n}\n\n/** Provides standard status bar items.\n * @public\n */\nexport class StandardStatusbarUiItemsProvider implements UiItemsProvider {\n public get id(): string {\n return \"appui-react:StandardStatusbarUiItemsProvider\";\n }\n\n /** Creates a provider. If the `defaultItems` argument is not set, all default fields are added. Otherwise, only the fields that are set to `true` are added. */\n constructor(private _defaultItems?: DefaultStatusbarItems) {}\n\n /** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideStatusBarItems}. */\n public provideStatusBarItems(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n return this.getStatusBarItems() as StatusBarItem[];\n }\n\n public getStatusBarItems(): readonly StatusBarItem[] {\n const statusBarItems: StatusBarItem[] = [];\n if (!this._defaultItems || this._defaultItems.messageCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.MessageCenter\",\n section: StatusBarSection.Left,\n itemPriority: 10,\n content: <MessageCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.toolAssistance) {\n if (!this._defaultItems || this._defaultItems.preToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PreToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 15,\n content: <StatusBarSeparator />,\n })\n );\n\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 20,\n content: <ToolAssistanceField />,\n })\n );\n\n if (!this._defaultItems || this._defaultItems.postToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PostToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 25,\n content: <StatusBarSeparator />,\n })\n );\n }\n if (this._defaultItems?.activityCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ActivityCenter\",\n section: StatusBarSection.Left,\n itemPriority: 30,\n content: <ActivityCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.accuSnapModePicker) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SnapMode\",\n section: StatusBarSection.Center,\n itemPriority: 10,\n content: <SnapModeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.tileLoadIndicator) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.TileLoadIndicator\",\n section: StatusBarSection.Right,\n itemPriority: 10,\n content: <TileLoadingIndicator />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionScope) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionScope\",\n section: StatusBarSection.Right,\n itemPriority: 20,\n content: <SelectionScopeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionInfo) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionInfo\",\n section: StatusBarSection.Right,\n itemPriority: 30,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n content: <SelectionInfoField />,\n })\n );\n }\n\n return statusBarItems;\n }\n}\n"]}
@@ -31,7 +31,7 @@ export class UiItemsManager {
31
31
  UiItemsManager._registeredUiItemsProviders.clear();
32
32
  }
33
33
  /** Event raised any time a UiProvider is registered or unregistered. */
34
- // eslint-disable-next-line deprecation/deprecation
34
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
35
35
  static get onUiProviderRegisteredEvent() {
36
36
  if (this._abstractAdapter)
37
37
  return this._abstractAdapter.onUiProviderRegisteredEvent;
@@ -59,7 +59,7 @@ export class UiItemsManager {
59
59
  return this._abstractAdapter.getUiItemsProvider(providerId);
60
60
  return UiItemsManager._registeredUiItemsProviders.get(providerId)?.provider;
61
61
  }
62
- // eslint-disable-next-line deprecation/deprecation
62
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
63
63
  static sendRegisteredEvent(args) {
64
64
  UiItemsManager.onUiProviderRegisteredEvent.raiseEvent(args);
65
65
  }
@@ -217,7 +217,7 @@ export class UiItemsManager {
217
217
  }
218
218
  }
219
219
  UiItemsManager._registeredUiItemsProviders = new Map();
220
- UiItemsManager._onUiProviderRegisteredEvent = new BeUiEvent(); // eslint-disable-line deprecation/deprecation
220
+ UiItemsManager._onUiProviderRegisteredEvent = new BeUiEvent(); // eslint-disable-line @typescript-eslint/no-deprecated
221
221
  UiItemsManager._abstractAdapter = createAbstractUiItemsManagerAdapter();
222
222
  function getUniqueItems(items) {
223
223
  const uniqueItems = [];
@@ -1 +1 @@
1
- {"version":3,"file":"UiItemsManager.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/UiItemsManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAUxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EACL,mCAAmC,EACnC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AA2CrC;;GAEG;AACH,MAAM,OAAO,cAAc;IAOzB;;OAEG;IACI,MAAM,CAAC,kBAAkB,CAAC,kBAA2B;QAC1D,IAAI,kBAAkB,EAAE,CAAC;YACvB,IAAI,CAAC,gBAAgB,GAAG,mCAAmC,EAAE,CAAC;QAChE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACpC,CAAC;IACH,CAAC;IAED;mBACe;IACR,MAAM,CAAC,iBAAiB;QAC7B,IAAI,IAAI,CAAC,gBAAgB;YAAE,OAAO,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC;QAE5E,cAAc,CAAC,2BAA2B,CAAC,KAAK,EAAE,CAAC;IACrD,CAAC;IAED,wEAAwE;IACxE,mDAAmD;IAC5C,MAAM,KAAK,2BAA2B;QAC3C,IAAI,IAAI,CAAC,gBAAgB;YACvB,OAAO,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC;QAE3D,OAAO,IAAI,CAAC,4BAA4B,CAAC;IAC3C,CAAC;IAED,8CAA8C;IACvC,MAAM,KAAK,qBAAqB;QACrC,IAAI,IAAI,CAAC,gBAAgB;YACvB,OAAO,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,CAAC;QAErD,MAAM,GAAG,GAAG,CAAC,GAAG,cAAc,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,OAAO,GAAG,CAAC;IACb,C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;QAEH,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;;AA7Rc,0CAA2B,GACxC,IAAI,GAAG,EAA+B,CAAC;AAC1B,2CAA4B,GACzC,IAAI,SAAS,EAAsC,CAAC,CAAC,8CAA8C;AACtF,+BAAgB,GAAG,mCAAmC,EAAE,CAAC;AA4R1E,SAAS,cAAc,CAA2B,KAAmB;IACnE,MAAM,WAAW,GAAQ,EAAE,CAAC;IAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,YAAY,CAAC,EAAE,CAAC;YAAE,OAAO;QAC5E,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,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 UiProvider\n */\n\nimport type { MarkRequired } from \"@itwin/core-bentley\";\nimport { BeUiEvent, Logger } from \"@itwin/core-bentley\";\nimport type { BackstageItem } from \"../backstage/BackstageItem.js\";\nimport type { StagePanelLocation } from \"../stagepanels/StagePanelLocation.js\";\nimport type { StagePanelSection } from \"../stagepanels/StagePanelSection.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem.js\";\nimport type {\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type { Widget } from \"../widgets/Widget.js\";\nimport type { ProviderItem } from \"./ProviderItem.js\";\nimport type { UiItemsProvider } from \"./UiItemsProvider.js\";\nimport {\n createAbstractUiItemsManagerAdapter,\n createGetPropertyAdapter,\n} from \"./AbstractUiItemsManager.js\";\n\n/** UiItemsProvider register event args.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiItemsProviderRegisteredEventArgs {\n providerId: string;\n}\n\n/** UiItemsProvider overrides allows the application that registers a provider to limit when it is allowed to provide items\n * @public\n */\nexport interface AllowedUiItemsProviderOverrides {\n /** allows providerId to be overridden in the items manager for cases where the same provider needs to provide different content to different stages */\n providerId?: string;\n /** if specified then the current stage's Usage will be compared before allowing any items to be provided */\n stageUsages?: string[];\n /** if specified then the current stage's Id will be compared before allowing any items to be provided */\n stageIds?: string[];\n}\n\n/** Allowed overrides applied to a UiItemsProvider the application that registers a provider to limit when it is allowed to provide items.\n * Note that if an override `providerId` is specified then either `stageIds` or `stageUsages` must be defined to limit when the provider's\n * items are allowed.\n * @public\n */\nexport type UiItemsProviderOverrides =\n | MarkRequired<AllowedUiItemsProviderOverrides, \"providerId\" | \"stageUsages\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"providerId\" | \"stageIds\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"stageIds\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"stageUsages\">\n | MarkRequired<\n AllowedUiItemsProviderOverrides,\n \"providerId\" | \"stageUsages\" | \"stageIds\"\n >;\n\n/** Interface that defines an instance of a UiItemsProvider and its application specified overrides. */\ninterface UiItemProviderEntry {\n provider: UiItemsProvider;\n overrides?: UiItemsProviderOverrides;\n}\n\n/** Controls registering of UiItemsProviders and calls the provider's methods when populating different parts of the User Interface.\n * @public\n */\nexport class UiItemsManager {\n private static _registeredUiItemsProviders: Map<string, UiItemProviderEntry> =\n new Map<string, UiItemProviderEntry>();\n private static _onUiProviderRegisteredEvent =\n new BeUiEvent<UiItemsProviderRegisteredEventArgs>(); // eslint-disable-line deprecation/deprecation\n private static _abstractAdapter = createAbstractUiItemsManagerAdapter();\n\n /** For use in unit testing\n * @internal\n */\n public static useAbstractAdapter(useAbstractAdapter: boolean) {\n if (useAbstractAdapter) {\n this._abstractAdapter = createAbstractUiItemsManagerAdapter();\n } else {\n this._abstractAdapter = undefined;\n }\n }\n\n /** For use in unit testing\n * @internal */\n public static clearAllProviders() {\n if (this._abstractAdapter) return this._abstractAdapter.clearAllProviders();\n\n UiItemsManager._registeredUiItemsProviders.clear();\n }\n\n /** Event raised any time a UiProvider is registered or unregistered. */\n // eslint-disable-next-line deprecation/deprecation\n public static get onUiProviderRegisteredEvent(): BeUiEvent<UiItemsProviderRegisteredEventArgs> {\n if (this._abstractAdapter)\n return this._abstractAdapter.onUiProviderRegisteredEvent;\n\n return this._onUiProviderRegisteredEvent;\n }\n\n /** Return number of registered UiProvider. */\n public static get registeredProviderIds(): string[] {\n if (this._abstractAdapter)\n return this._abstractAdapter.registeredProviderIds;\n\n const ids = [...UiItemsManager._registeredUiItemsProviders.keys()];\n return ids;\n }\n\n /** Return true if there is any registered UiProvider. */\n public static get hasRegisteredProviders(): boolean {\n if (this._abstractAdapter)\n return this._abstractAdapter.hasRegisteredProviders;\n\n return this._registeredUiItemsProviders.size > 0;\n }\n\n /**\n * Retrieves a previously loaded UiItemsProvider.\n * @param providerId id of the UiItemsProvider to get\n */\n public static getUiItemsProvider(\n providerId: string\n ): UiItemsProvider | undefined {\n if (this._abstractAdapter)\n return this._abstractAdapter.getUiItemsProvider(providerId);\n\n return UiItemsManager._registeredUiItemsProviders.get(providerId)?.provider;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n private static sendRegisteredEvent(args: UiItemsProviderRegisteredEventArgs) {\n UiItemsManager.onUiProviderRegisteredEvent.raiseEvent(args);\n }\n\n /**\n * Registers a UiItemsProvider with the UiItemsManager.\n * @param uiProvider the UI items provider to register.\n * @param overrides the UI items provider to register.\n */\n public static register(\n uiProvider: UiItemsProvider,\n overrides?: UiItemsProviderOverrides\n ): void {\n if (this._abstractAdapter)\n return this._abstractAdapter.register(uiProvider, overrides);\n\n const providerId = overrides?.providerId ?? uiProvider.id;\n\n if (UiItemsManager.getUiItemsProvider(providerId)) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider (${providerId}) is already loaded`\n );\n } else {\n UiItemsManager._registeredUiItemsProviders.set(providerId, {\n provider: uiProvider,\n overrides,\n });\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider ${uiProvider.id} registered as ${providerId} `\n );\n\n UiItemsManager.sendRegisteredEvent({ providerId });\n }\n }\n\n /** Remove a specific UiItemsProvider from the list of available providers. */\n public static unregister(providerId: string): void {\n if (this._abstractAdapter)\n return this._abstractAdapter.unregister(providerId);\n\n const provider = UiItemsManager.getUiItemsProvider(providerId);\n if (!provider) return;\n\n provider.onUnregister && provider.onUnregister();\n\n UiItemsManager._registeredUiItemsProviders.delete(providerId);\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider (${providerId}) unloaded`\n );\n\n // trigger a refresh of the ui\n UiItemsManager.sendRegisteredEvent({ providerId });\n }\n\n private static allowItemsFromProvider(\n entry: UiItemProviderEntry,\n stageId?: string,\n stageUsage?: string\n ) {\n const overrides = entry.overrides;\n if (\n undefined !== stageId &&\n overrides?.stageIds &&\n !overrides.stageIds.some((value: string) => value === stageId)\n )\n return false;\n if (\n undefined !== stageUsage &&\n overrides?.stageUsages &&\n !overrides.stageUsages.some((value: string) => value === stageUsage)\n )\n return false;\n return true;\n }\n\n /** Called when the application is populating a toolbar so that any registered UiItemsProvider can add tool buttons that either either execute\n * an action or specify a registered ToolId into toolbar.\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @param usage usage of the toolbar\n * @param orientation orientation of the toolbar\n * @returns an array of error messages. The array will be empty if the load is successful, otherwise it is a list of one or more problems.\n */\n public static getToolbarButtonItems(\n stageId: string,\n stageUsage: string,\n usage: ToolbarUsage,\n orientation: ToolbarOrientation\n ): ReadonlyArray<ProviderItem<ToolbarItem>> {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getToolbarButtonItems(\n stageId,\n stageUsage,\n usage,\n orientation\n );\n }\n\n const items: ProviderItem<ToolbarItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n const providerItems = provider\n .provideToolbarItems(stageId, stageUsage, usage, orientation)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @returns An array of CommonStatusBarItem that will be used to create controls for the status bar.\n */\n public static getStatusBarItems(\n stageId: string,\n stageUsage: string\n ): ReadonlyArray<ProviderItem<StatusBarItem>> {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getStatusBarItems(stageId, stageUsage);\n }\n\n const items: ProviderItem<StatusBarItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n\n const providerItems = provider\n .provideStatusBarItems(stageId, stageUsage)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields\n * @returns An array of BackstageItem that will be used to create controls for the backstage menu.\n */\n public static getBackstageItems(): ReadonlyArray<\n ProviderItem<BackstageItem>\n > {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getBackstageItems();\n }\n\n const items: ProviderItem<BackstageItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n // Note: We do not call this.allowItemsFromProvider here as backstage items\n // should not be considered stage specific.\n const providerItems = provider.provideBackstageItems().map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the Stage Panels so that any registered UiItemsProvider can add widgets\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @param location the location within the stage.\n * @param section the section within location.\n * @returns An array of widgets.\n */\n public static getWidgets(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section?: StagePanelSection\n ): ReadonlyArray<ProviderItem<Widget>> {\n const items: ProviderItem<Widget>[] = [];\n if (this._abstractAdapter) {\n const abstractWidgets = this._abstractAdapter.getWidgets(\n stageId,\n stageUsage,\n location,\n section\n );\n items.push(...abstractWidgets);\n }\n\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const provider = createGetPropertyAdapter(uiProvider);\n const providerItems = provider\n .provideWidgets(stageId, stageUsage, location, section)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n}\n\nfunction getUniqueItems<T extends { id: string }>(items: readonly T[]) {\n const uniqueItems: T[] = [];\n items.forEach((item) => {\n if (uniqueItems.find((existingItem) => item.id === existingItem.id)) return;\n uniqueItems.push(item);\n });\n return uniqueItems;\n}\n"]}
1
+ {"version":3,"file":"UiItemsManager.js","sourceRoot":"","sources":["../../../src/appui-react/ui-items-provider/UiItemsManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAUxD,OAAO,EAAE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B,KAAmB;IACnE,MAAM,WAAW,GAAQ,EAAE,CAAC;IAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,YAAY,CAAC,EAAE,CAAC;YAAE,OAAO;QAC5E,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,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 UiProvider\n */\n\nimport type { MarkRequired } from \"@itwin/core-bentley\";\nimport { BeUiEvent, Logger } from \"@itwin/core-bentley\";\nimport type { BackstageItem } from \"../backstage/BackstageItem.js\";\nimport type { StagePanelLocation } from \"../stagepanels/StagePanelLocation.js\";\nimport type { StagePanelSection } from \"../stagepanels/StagePanelSection.js\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem.js\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem.js\";\nimport type {\n ToolbarOrientation,\n ToolbarUsage,\n} from \"../toolbar/ToolbarItem.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type { Widget } from \"../widgets/Widget.js\";\nimport type { ProviderItem } from \"./ProviderItem.js\";\nimport type { UiItemsProvider } from \"./UiItemsProvider.js\";\nimport {\n createAbstractUiItemsManagerAdapter,\n createGetPropertyAdapter,\n} from \"./AbstractUiItemsManager.js\";\n\n/** UiItemsProvider register event args.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface UiItemsProviderRegisteredEventArgs {\n providerId: string;\n}\n\n/** UiItemsProvider overrides allows the application that registers a provider to limit when it is allowed to provide items\n * @public\n */\nexport interface AllowedUiItemsProviderOverrides {\n /** allows providerId to be overridden in the items manager for cases where the same provider needs to provide different content to different stages */\n providerId?: string;\n /** if specified then the current stage's Usage will be compared before allowing any items to be provided */\n stageUsages?: string[];\n /** if specified then the current stage's Id will be compared before allowing any items to be provided */\n stageIds?: string[];\n}\n\n/** Allowed overrides applied to a UiItemsProvider the application that registers a provider to limit when it is allowed to provide items.\n * Note that if an override `providerId` is specified then either `stageIds` or `stageUsages` must be defined to limit when the provider's\n * items are allowed.\n * @public\n */\nexport type UiItemsProviderOverrides =\n | MarkRequired<AllowedUiItemsProviderOverrides, \"providerId\" | \"stageUsages\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"providerId\" | \"stageIds\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"stageIds\">\n | MarkRequired<AllowedUiItemsProviderOverrides, \"stageUsages\">\n | MarkRequired<\n AllowedUiItemsProviderOverrides,\n \"providerId\" | \"stageUsages\" | \"stageIds\"\n >;\n\n/** Interface that defines an instance of a UiItemsProvider and its application specified overrides. */\ninterface UiItemProviderEntry {\n provider: UiItemsProvider;\n overrides?: UiItemsProviderOverrides;\n}\n\n/** Controls registering of UiItemsProviders and calls the provider's methods when populating different parts of the User Interface.\n * @public\n */\nexport class UiItemsManager {\n private static _registeredUiItemsProviders: Map<string, UiItemProviderEntry> =\n new Map<string, UiItemProviderEntry>();\n private static _onUiProviderRegisteredEvent =\n new BeUiEvent<UiItemsProviderRegisteredEventArgs>(); // eslint-disable-line @typescript-eslint/no-deprecated\n private static _abstractAdapter = createAbstractUiItemsManagerAdapter();\n\n /** For use in unit testing\n * @internal\n */\n public static useAbstractAdapter(useAbstractAdapter: boolean) {\n if (useAbstractAdapter) {\n this._abstractAdapter = createAbstractUiItemsManagerAdapter();\n } else {\n this._abstractAdapter = undefined;\n }\n }\n\n /** For use in unit testing\n * @internal */\n public static clearAllProviders() {\n if (this._abstractAdapter) return this._abstractAdapter.clearAllProviders();\n\n UiItemsManager._registeredUiItemsProviders.clear();\n }\n\n /** Event raised any time a UiProvider is registered or unregistered. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get onUiProviderRegisteredEvent(): BeUiEvent<UiItemsProviderRegisteredEventArgs> {\n if (this._abstractAdapter)\n return this._abstractAdapter.onUiProviderRegisteredEvent;\n\n return this._onUiProviderRegisteredEvent;\n }\n\n /** Return number of registered UiProvider. */\n public static get registeredProviderIds(): string[] {\n if (this._abstractAdapter)\n return this._abstractAdapter.registeredProviderIds;\n\n const ids = [...UiItemsManager._registeredUiItemsProviders.keys()];\n return ids;\n }\n\n /** Return true if there is any registered UiProvider. */\n public static get hasRegisteredProviders(): boolean {\n if (this._abstractAdapter)\n return this._abstractAdapter.hasRegisteredProviders;\n\n return this._registeredUiItemsProviders.size > 0;\n }\n\n /**\n * Retrieves a previously loaded UiItemsProvider.\n * @param providerId id of the UiItemsProvider to get\n */\n public static getUiItemsProvider(\n providerId: string\n ): UiItemsProvider | undefined {\n if (this._abstractAdapter)\n return this._abstractAdapter.getUiItemsProvider(providerId);\n\n return UiItemsManager._registeredUiItemsProviders.get(providerId)?.provider;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private static sendRegisteredEvent(args: UiItemsProviderRegisteredEventArgs) {\n UiItemsManager.onUiProviderRegisteredEvent.raiseEvent(args);\n }\n\n /**\n * Registers a UiItemsProvider with the UiItemsManager.\n * @param uiProvider the UI items provider to register.\n * @param overrides the UI items provider to register.\n */\n public static register(\n uiProvider: UiItemsProvider,\n overrides?: UiItemsProviderOverrides\n ): void {\n if (this._abstractAdapter)\n return this._abstractAdapter.register(uiProvider, overrides);\n\n const providerId = overrides?.providerId ?? uiProvider.id;\n\n if (UiItemsManager.getUiItemsProvider(providerId)) {\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider (${providerId}) is already loaded`\n );\n } else {\n UiItemsManager._registeredUiItemsProviders.set(providerId, {\n provider: uiProvider,\n overrides,\n });\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider ${uiProvider.id} registered as ${providerId} `\n );\n\n UiItemsManager.sendRegisteredEvent({ providerId });\n }\n }\n\n /** Remove a specific UiItemsProvider from the list of available providers. */\n public static unregister(providerId: string): void {\n if (this._abstractAdapter)\n return this._abstractAdapter.unregister(providerId);\n\n const provider = UiItemsManager.getUiItemsProvider(providerId);\n if (!provider) return;\n\n provider.onUnregister && provider.onUnregister();\n\n UiItemsManager._registeredUiItemsProviders.delete(providerId);\n Logger.logInfo(\n UiFramework.loggerCategory(\"UiItemsManager\"),\n `UiItemsProvider (${providerId}) unloaded`\n );\n\n // trigger a refresh of the ui\n UiItemsManager.sendRegisteredEvent({ providerId });\n }\n\n private static allowItemsFromProvider(\n entry: UiItemProviderEntry,\n stageId?: string,\n stageUsage?: string\n ) {\n const overrides = entry.overrides;\n if (\n undefined !== stageId &&\n overrides?.stageIds &&\n !overrides.stageIds.some((value: string) => value === stageId)\n )\n return false;\n if (\n undefined !== stageUsage &&\n overrides?.stageUsages &&\n !overrides.stageUsages.some((value: string) => value === stageUsage)\n )\n return false;\n return true;\n }\n\n /** Called when the application is populating a toolbar so that any registered UiItemsProvider can add tool buttons that either either execute\n * an action or specify a registered ToolId into toolbar.\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @param usage usage of the toolbar\n * @param orientation orientation of the toolbar\n * @returns an array of error messages. The array will be empty if the load is successful, otherwise it is a list of one or more problems.\n */\n public static getToolbarButtonItems(\n stageId: string,\n stageUsage: string,\n usage: ToolbarUsage,\n orientation: ToolbarOrientation\n ): ReadonlyArray<ProviderItem<ToolbarItem>> {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getToolbarButtonItems(\n stageId,\n stageUsage,\n usage,\n orientation\n );\n }\n\n const items: ProviderItem<ToolbarItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n const providerItems = provider\n .provideToolbarItems(stageId, stageUsage, usage, orientation)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @returns An array of CommonStatusBarItem that will be used to create controls for the status bar.\n */\n public static getStatusBarItems(\n stageId: string,\n stageUsage: string\n ): ReadonlyArray<ProviderItem<StatusBarItem>> {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getStatusBarItems(stageId, stageUsage);\n }\n\n const items: ProviderItem<StatusBarItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n\n const providerItems = provider\n .provideStatusBarItems(stageId, stageUsage)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields\n * @returns An array of BackstageItem that will be used to create controls for the backstage menu.\n */\n public static getBackstageItems(): ReadonlyArray<\n ProviderItem<BackstageItem>\n > {\n if (this._abstractAdapter) {\n return this._abstractAdapter.getBackstageItems();\n }\n\n const items: ProviderItem<BackstageItem>[] = [];\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n const provider = createGetPropertyAdapter(uiProvider);\n // Note: We do not call this.allowItemsFromProvider here as backstage items\n // should not be considered stage specific.\n const providerItems = provider.provideBackstageItems().map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n\n /** Called when the application is populating the Stage Panels so that any registered UiItemsProvider can add widgets\n * @param stageId a string identifier of the active stage.\n * @param stageUsage the StageUsage of the active stage.\n * @param location the location within the stage.\n * @param section the section within location.\n * @returns An array of widgets.\n */\n public static getWidgets(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section?: StagePanelSection\n ): ReadonlyArray<ProviderItem<Widget>> {\n const items: ProviderItem<Widget>[] = [];\n if (this._abstractAdapter) {\n const abstractWidgets = this._abstractAdapter.getWidgets(\n stageId,\n stageUsage,\n location,\n section\n );\n items.push(...abstractWidgets);\n }\n\n UiItemsManager._registeredUiItemsProviders.forEach((entry) => {\n const uiProvider = entry.provider;\n const providerId = entry.overrides?.providerId ?? uiProvider.id;\n if (!this.allowItemsFromProvider(entry, stageId, stageUsage)) return;\n\n const provider = createGetPropertyAdapter(uiProvider);\n const providerItems = provider\n .provideWidgets(stageId, stageUsage, location, section)\n .map((item) => ({\n ...item,\n providerId,\n }));\n items.push(...providerItems);\n });\n\n return getUniqueItems(items);\n }\n}\n\nfunction getUniqueItems<T extends { id: string }>(items: readonly T[]) {\n const uniqueItems: T[] = [];\n items.forEach((item) => {\n if (uniqueItems.find((existingItem) => item.id === existingItem.id)) return;\n uniqueItems.push(item);\n });\n return uniqueItems;\n}\n"]}
@@ -223,11 +223,11 @@ export class FrameworkUiAdmin extends UiAdmin {
223
223
  * @deprecated in 4.11.0. Use {@link UiFramework.showComponent}
224
224
  */
225
225
  showHTMLElement(displayElement, location, offset, onCancel, relativePosition, anchorElement) {
226
- // eslint-disable-next-line deprecation/deprecation
226
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
227
227
  const el = anchorElement ?? UiFramework.controls.getWrapperElement();
228
228
  if (relativePosition === undefined)
229
229
  relativePosition = RelativePosition.TopRight;
230
- // eslint-disable-next-line deprecation/deprecation
230
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
231
231
  return PopupManager.showHTMLElement(displayElement, el, location, offset, onCancel, relativePosition);
232
232
  }
233
233
  /**
@@ -235,7 +235,7 @@ export class FrameworkUiAdmin extends UiAdmin {
235
235
  * @deprecated in 4.11.0. Use {@link UiFramework.hideComponent}
236
236
  */
237
237
  hideHTMLElement() {
238
- // eslint-disable-next-line deprecation/deprecation
238
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
239
239
  return PopupManager.hideHTMLElement();
240
240
  }
241
241
  /** Show a Card containing content, a title and a toolbar at a particular location.
@@ -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,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO;IAA7C;;QACU,8BAAyB,GAC/B,sBAAsB,CAAC,YAAY,CAAC;IA0exC,CAAC;IAxeC;;OAEG;IACH,IAAW,wBAAwB;QACjC,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAW,wBAAwB,CAAC,UAAkC;QACpE,IAAI,CAAC,yBAAyB,GAAG,UAAU,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,IAAoB,cAAc;QAChC,OAAO,iBAAiB,CAAC,cAAc,C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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.js\";\nimport { PopupManager } from \"../popup/PopupManager.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type { KeyinEntry } from \"../keyins/Keyins.js\";\nimport {\n getKeyinsFromToolList,\n KeyinFieldLocalization,\n} from \"../keyins/Keyins.js\";\nimport { mapToPlacement } from \"../utils/Placement.js\";\nimport type { ToolbarProps } from \"../toolbar/Toolbar.js\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem.js\";\nimport type { CursorMenuItemProps } from \"../shared/MenuItem.js\";\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 // eslint-disable-next-line deprecation/deprecation\n const el = anchorElement ?? UiFramework.controls.getWrapperElement();\n\n if (relativePosition === undefined)\n relativePosition = RelativePosition.TopRight;\n\n // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\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,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO;IAA7C;;QACU,8BAAyB,GAC/B,sBAAsB,CAAC,YAAY,CAAC;IA0exC,CAAC;IAxeC;;OAEG;IACH,IAAW,wBAAwB;QACjC,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAW,wBAAwB,CAAC,UAAkC;QACpE,IAAI,CAAC,yBAAyB,GAAG,UAAU,CAAC;IAC9C,CAAC;IAED;;OAEG;IAC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,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.js\";\nimport { PopupManager } from \"../popup/PopupManager.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport type { KeyinEntry } from \"../keyins/Keyins.js\";\nimport {\n getKeyinsFromToolList,\n KeyinFieldLocalization,\n} from \"../keyins/Keyins.js\";\nimport { mapToPlacement } from \"../utils/Placement.js\";\nimport type { ToolbarProps } from \"../toolbar/Toolbar.js\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem.js\";\nimport type { CursorMenuItemProps } from \"../shared/MenuItem.js\";\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 // eslint-disable-next-line @typescript-eslint/no-deprecated\n const el = anchorElement ?? UiFramework.controls.getWrapperElement();\n\n if (relativePosition === undefined)\n relativePosition = RelativePosition.TopRight;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\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 // eslint-disable-next-line @typescript-eslint/no-deprecated\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 +1 @@
1
- {"version":3,"file":"ComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/appui-react/uiprovider/ComponentGenerator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,mCAAmC,CAAC;AAE3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAKV,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAkL1E;;GAEG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,SAAS,CAAC;gBADV,eAAe,EAAE,oBAAoB,EACrC,SAAS,CAAC,SAAQ,IAAI,aAAA;IAGhC,IAAW,cAAc,yBAExB;IAED,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,iCAAiC;IA2BzC,OAAO,CAAC,mCAAmC;IAiC3C,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,uBAAuB;IAkB/B,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,YAAY;IAKb,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS;IAazD,oBAAoB,CACzB,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,MAAM,GACf,iBAAiB;IAWpB,6DAA6D;IACtD,sBAAsB,IAAI,iBAAiB,EAAE;CAKrD"}
1
+ {"version":3,"file":"ComponentGenerator.d.ts","sourceRoot":"","sources":["../../../src/appui-react/uiprovider/ComponentGenerator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,mCAAmC,CAAC;AAE3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAKV,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAkL1E;;GAEG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,SAAS,CAAC;gBADV,eAAe,EAAE,oBAAoB,EACrC,SAAS,CAAC,GAAE,MAAM,IAAI,aAAA;IAGhC,IAAW,cAAc,yBAExB;IAED,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,iCAAiC;IA2BzC,OAAO,CAAC,mCAAmC;IAiC3C,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,uBAAuB;IAkB/B,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,YAAY;IAKb,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS;IAazD,oBAAoB,CACzB,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,MAAM,GACf,iBAAiB;IAWpB,6DAA6D;IACtD,sBAAsB,IAAI,iBAAiB,EAAE;CAKrD"}
@@ -30,7 +30,7 @@ export class AppUiSettings {
30
30
  // always store to local storage to avoid flicker during startup if user is not yet logged-in
31
31
  window.localStorage.setItem("uifw:defaultTheme", theme);
32
32
  };
33
- // eslint-disable-next-line deprecation/deprecation
33
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
34
34
  this.handleSyncUiEvent = async (args) => {
35
35
  if (this._applyingLocalSettings)
36
36
  return;
@@ -75,7 +75,7 @@ export class AppUiSettings {
75
75
  }
76
76
  async apply(storage) {
77
77
  this._applyingLocalSettings = true;
78
- for await (const setting of this._settings) {
78
+ for (const setting of this._settings) {
79
79
  await setting.getSettingAndApplyValue(storage);
80
80
  }
81
81
  this._applyingLocalSettings = false;