@itwin/appui-react 4.13.2 → 4.13.4

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 (616) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/lib/cjs/appui-react/UiFramework.js +1 -1
  3. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  4. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  5. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  6. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/Calculator.js +1 -1
  13. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/CalculatorEngine.js +2 -2
  15. package/lib/cjs/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +1 -1
  17. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
  19. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  20. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  21. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +1 -1
  22. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  23. package/lib/cjs/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  24. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  25. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  26. package/lib/cjs/appui-react/childwindow/ChildWindowWidget.js.map +1 -1
  27. package/lib/cjs/appui-react/childwindow/CopyStyles.js.map +1 -1
  28. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  29. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +2 -0
  30. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  31. package/lib/cjs/appui-react/configurableui/ActivityTracker.js.map +1 -1
  32. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js +1 -1
  33. package/lib/cjs/appui-react/configurableui/ConfigurableUiControl.js.map +1 -1
  34. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  35. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  36. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  37. package/lib/cjs/appui-react/configurableui/state.js +1 -1
  38. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  39. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  40. package/lib/cjs/appui-react/content/ContentGroup.js +1 -1
  41. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  42. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  43. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  44. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  45. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  46. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +1 -1
  47. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  48. package/lib/cjs/appui-react/content/InternalContentViewManager.js +1 -1
  49. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  50. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -1
  51. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -1
  52. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  53. package/lib/cjs/appui-react/content/split-pane/Pane.js.map +1 -1
  54. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -1
  55. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  56. package/lib/cjs/appui-react/cursor/CursorInformation.js +3 -3
  57. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  58. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  59. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  60. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  61. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js +1 -1
  62. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  63. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  64. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  65. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +1 -1
  66. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  67. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -1
  68. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  69. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js +1 -1
  70. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  71. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js +1 -1
  72. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  73. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  74. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  75. package/lib/cjs/appui-react/feedback/ElementTooltip.js +1 -1
  76. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  77. package/lib/cjs/appui-react/feedback/ValidationTextbox.js +1 -1
  78. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  79. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +1 -1
  80. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +1 -1
  81. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  82. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +1 -1
  83. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  84. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +1 -1
  85. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  86. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +1 -1
  87. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  88. package/lib/cjs/appui-react/frontstage/StageUsage.js +1 -1
  89. package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -1
  90. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  91. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  92. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  93. package/lib/cjs/appui-react/hooks/useConditionalValue.js.map +1 -1
  94. package/lib/cjs/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  95. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  96. package/lib/cjs/appui-react/hooks/useTranslation.js.map +1 -1
  97. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +1 -1
  98. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  99. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  100. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +1 -1
  101. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  102. package/lib/cjs/appui-react/keyins/Keyins.js +1 -1
  103. package/lib/cjs/appui-react/keyins/Keyins.js.map +1 -1
  104. package/lib/cjs/appui-react/layout/backstage/Backstage.js +1 -1
  105. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  106. package/lib/cjs/appui-react/layout/base/DragManager.js.map +1 -1
  107. package/lib/cjs/appui-react/layout/base/NineZone.js.map +1 -1
  108. package/lib/cjs/appui-react/layout/base/SafeAreaInsets.js +1 -1
  109. package/lib/cjs/appui-react/layout/base/SafeAreaInsets.js.map +1 -1
  110. package/lib/cjs/appui-react/layout/base/usePointerCaptor.js.map +1 -1
  111. package/lib/cjs/appui-react/layout/footer/Indicator.js +1 -1
  112. package/lib/cjs/appui-react/layout/footer/Indicator.js.map +1 -1
  113. package/lib/cjs/appui-react/layout/outline/PanelOutline.js.map +1 -1
  114. package/lib/cjs/appui-react/layout/popup/Tooltip.js +1 -1
  115. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  116. package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.js.map +1 -1
  117. package/lib/cjs/appui-react/layout/state/TabLocation.js.map +1 -1
  118. package/lib/cjs/appui-react/layout/state/WidgetLocation.js.map +1 -1
  119. package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  120. package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  121. package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
  122. package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  123. package/lib/cjs/appui-react/layout/target/PanelTargets.js.map +1 -1
  124. package/lib/cjs/appui-react/layout/target/SectionTarget.js.map +1 -1
  125. package/lib/cjs/appui-react/layout/target/useAllowedSideTarget.js.map +1 -1
  126. package/lib/cjs/appui-react/layout/target/useAllowedWidgetTarget.js.map +1 -1
  127. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  128. package/lib/cjs/appui-react/layout/widget/Buttons.js.map +1 -1
  129. package/lib/cjs/appui-react/layout/widget/ContentManager.js.map +1 -1
  130. package/lib/cjs/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  131. package/lib/cjs/appui-react/layout/widget/FloatingWidget.js.map +1 -1
  132. package/lib/cjs/appui-react/layout/widget/Overflow.js.map +1 -1
  133. package/lib/cjs/appui-react/layout/widget/PanelWidget.js.map +1 -1
  134. package/lib/cjs/appui-react/layout/widget/SendBack.js.map +1 -1
  135. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  136. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  137. package/lib/cjs/appui-react/layout/widget/Tabs.js.map +1 -1
  138. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  139. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  140. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  141. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  142. package/lib/cjs/appui-react/layout/widget-panels/PanelSections.js.map +1 -1
  143. package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  144. package/lib/cjs/appui-react/layout/widget-panels/usePanelsAutoCollapse.js.map +1 -1
  145. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  146. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  147. package/lib/cjs/appui-react/messages/MessageManager.js +1 -1
  148. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  149. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  150. package/lib/cjs/appui-react/messages/Pointer.js +1 -1
  151. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  152. package/lib/cjs/appui-react/messages/StatusMessageManager.js.map +1 -1
  153. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  154. package/lib/cjs/appui-react/messages/getToastCategory.js.map +1 -1
  155. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js +1 -1
  156. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  157. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js +1 -1
  158. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  159. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +1 -1
  160. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  161. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  162. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  163. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +1 -1
  164. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  165. package/lib/cjs/appui-react/pickers/ListPicker.js +1 -1
  166. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  167. package/lib/cjs/appui-react/pickers/ViewSelector.js +1 -1
  168. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  169. package/lib/cjs/appui-react/popup/CardPopup.js +1 -1
  170. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  171. package/lib/cjs/appui-react/popup/ComponentPopup.js.map +1 -1
  172. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  173. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  174. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  175. package/lib/cjs/appui-react/popup/PopupManager.js +2 -2
  176. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  177. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  178. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  179. package/lib/cjs/appui-react/popup/ToolbarPopup.js +1 -1
  180. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  181. package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -1
  182. package/lib/cjs/appui-react/preview/activate-dropped-tab/activateDroppedTab.js.map +1 -1
  183. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  184. package/lib/cjs/appui-react/preview/new-toolbars/ActionItem.js.map +1 -1
  185. package/lib/cjs/appui-react/preview/new-toolbars/CustomItem.js.map +1 -1
  186. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.js.map +1 -1
  187. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  188. package/lib/cjs/appui-react/preview/new-toolbars/Toolbar.js.map +1 -1
  189. package/lib/cjs/appui-react/preview/new-toolbars/useOverflow.js.map +1 -1
  190. package/lib/cjs/appui-react/preview/reparent-popout-widgets/usePopoutsStore.js.map +1 -1
  191. package/lib/cjs/appui-react/preview/reparent-popout-widgets/useReparentPopoutWidget.js.map +1 -1
  192. package/lib/cjs/appui-react/preview/widget-action-dropdown/Button.js.map +1 -1
  193. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  194. package/lib/cjs/appui-react/redux/SessionState.js +2 -2
  195. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  196. package/lib/cjs/appui-react/redux/StateManager.js +1 -1
  197. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  198. package/lib/cjs/appui-react/redux/connectIModel.js +3 -3
  199. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  200. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +1 -1
  201. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  202. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +3 -3
  203. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  204. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  205. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  206. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  207. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  208. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +1 -1
  209. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  210. package/lib/cjs/appui-react/shared/CommandItemDef.js +1 -1
  211. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  212. package/lib/cjs/appui-react/shared/CustomItemDef.js +1 -1
  213. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  214. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  215. package/lib/cjs/appui-react/shared/SelectionScope.js +1 -1
  216. package/lib/cjs/appui-react/shared/SelectionScope.js.map +1 -1
  217. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  218. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  219. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js +1 -1
  220. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -1
  221. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js +1 -1
  222. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -1
  223. package/lib/cjs/appui-react/stagepanels/StagePanelState.js +1 -1
  224. package/lib/cjs/appui-react/stagepanels/StagePanelState.js.map +1 -1
  225. package/lib/cjs/appui-react/statusbar/Field.js +2 -4
  226. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  227. package/lib/cjs/appui-react/statusbar/StatusBar.js +1 -1
  228. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  229. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  230. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +3 -3
  231. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  232. package/lib/cjs/appui-react/statusbar/StatusBarItem.js +2 -2
  233. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  234. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +1 -1
  235. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  236. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  237. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +1 -1
  238. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  239. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  240. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  241. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  242. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  243. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  244. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  245. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  246. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  247. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  248. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  249. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  250. package/lib/cjs/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -1
  251. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +2 -2
  252. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  253. package/lib/cjs/appui-react/theme/ThemeManager.js +1 -1
  254. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  255. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  256. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js +1 -1
  257. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  258. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  259. package/lib/cjs/appui-react/toolbar/GroupItem.js +1 -1
  260. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  261. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  262. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  263. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  264. package/lib/cjs/appui-react/toolbar/ToolbarItem.js +2 -2
  265. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  266. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +1 -1
  267. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  268. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  269. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  270. package/lib/cjs/appui-react/toolbar/useActiveStageProvidedToolbarItems.js.map +1 -1
  271. package/lib/cjs/appui-react/toolbar/useActiveToolIdSynchedItems.js.map +1 -1
  272. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  273. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  274. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  275. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js +1 -1
  276. package/lib/cjs/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  277. package/lib/cjs/appui-react/tools/OpenSettingsTool.js +1 -1
  278. package/lib/cjs/appui-react/tools/OpenSettingsTool.js.map +1 -1
  279. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +2 -2
  280. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  281. package/lib/cjs/appui-react/tools/ToolSettingsTools.js +2 -2
  282. package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
  283. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  284. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js +1 -1
  285. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  286. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +1 -1
  287. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  288. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  289. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  290. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  291. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  292. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +1 -1
  293. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  294. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  295. package/lib/cjs/appui-react/uistate/AppUiSettings.js +1 -1
  296. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  297. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +2 -2
  298. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  299. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  300. package/lib/cjs/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  301. package/lib/cjs/appui-react/utils/matchesWords.js.map +1 -1
  302. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +1 -4
  303. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  304. package/lib/cjs/appui-react/widget-panels/Frontstage.js +3 -77
  305. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  306. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  307. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/widget-panels/useSaveFrontstageSettings.d.ts +8 -0
  309. package/lib/cjs/appui-react/widget-panels/useSaveFrontstageSettings.d.ts.map +1 -0
  310. package/lib/cjs/appui-react/widget-panels/useSaveFrontstageSettings.js +55 -0
  311. package/lib/cjs/appui-react/widget-panels/useSaveFrontstageSettings.js.map +1 -0
  312. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  313. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  314. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  315. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  316. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  317. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  318. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js +1 -1
  319. package/lib/cjs/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  320. package/lib/cjs/appui-react/widgets/WidgetDef.js +2 -2
  321. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  322. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  323. package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
  324. package/lib/cjs/appui-react/widgets/WidgetState.js +1 -1
  325. package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -1
  326. package/lib/cjs/appui-react/widgets/useWidget.js.map +1 -1
  327. package/lib/esm/appui-react/UiFramework.js +1 -2
  328. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  329. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  330. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +1 -1
  331. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  332. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  333. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +1 -2
  334. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  335. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js +1 -2
  336. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  337. package/lib/esm/appui-react/accudraw/Calculator.js +1 -2
  338. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  339. package/lib/esm/appui-react/accudraw/CalculatorEngine.js.map +1 -1
  340. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +1 -2
  341. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  342. package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
  343. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  344. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  345. package/lib/esm/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  346. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  347. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  348. package/lib/esm/appui-react/childwindow/ChildWindowWidget.js.map +1 -1
  349. package/lib/esm/appui-react/childwindow/CopyStyles.js.map +1 -1
  350. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  351. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +2 -0
  352. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  353. package/lib/esm/appui-react/configurableui/ActivityTracker.js.map +1 -1
  354. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -2
  355. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  356. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  357. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  358. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  359. package/lib/esm/appui-react/content/ContentGroup.js +1 -2
  360. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  361. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  362. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  363. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  364. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  365. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +1 -2
  366. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  367. package/lib/esm/appui-react/content/InternalContentViewManager.js +1 -2
  368. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  369. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -1
  370. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -1
  371. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  372. package/lib/esm/appui-react/content/split-pane/Pane.js.map +1 -1
  373. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -1
  374. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  375. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -2
  376. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  377. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  378. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -2
  379. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  380. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js +1 -2
  381. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  382. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  383. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  384. package/lib/esm/appui-react/dialog/DialogManagerBase.js +1 -2
  385. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  386. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -2
  387. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  388. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js +1 -2
  389. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  390. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js +1 -2
  391. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  392. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  393. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  394. package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -2
  395. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  396. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  397. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +1 -1
  398. package/lib/esm/appui-react/frontstage/FrontstageDef.js +1 -1
  399. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  400. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +1 -2
  401. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  402. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +1 -2
  403. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  404. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +1 -2
  405. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  406. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  407. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  408. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  409. package/lib/esm/appui-react/hooks/useConditionalValue.js.map +1 -1
  410. package/lib/esm/appui-react/hooks/useEscapeSetFocusToHome.js.map +1 -1
  411. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  412. package/lib/esm/appui-react/hooks/useTranslation.js.map +1 -1
  413. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +1 -2
  414. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  415. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  416. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +1 -2
  417. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  418. package/lib/esm/appui-react/keyins/Keyins.js.map +1 -1
  419. package/lib/esm/appui-react/layout/backstage/Backstage.js +1 -2
  420. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  421. package/lib/esm/appui-react/layout/base/DragManager.js.map +1 -1
  422. package/lib/esm/appui-react/layout/base/NineZone.js.map +1 -1
  423. package/lib/esm/appui-react/layout/base/SafeAreaInsets.js +1 -2
  424. package/lib/esm/appui-react/layout/base/SafeAreaInsets.js.map +1 -1
  425. package/lib/esm/appui-react/layout/base/usePointerCaptor.js.map +1 -1
  426. package/lib/esm/appui-react/layout/footer/Indicator.js +1 -1
  427. package/lib/esm/appui-react/layout/footer/Indicator.js.map +1 -1
  428. package/lib/esm/appui-react/layout/outline/PanelOutline.js.map +1 -1
  429. package/lib/esm/appui-react/layout/popup/Tooltip.js +1 -2
  430. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  431. package/lib/esm/appui-react/layout/state/NineZoneStateReducer.js.map +1 -1
  432. package/lib/esm/appui-react/layout/state/TabLocation.js.map +1 -1
  433. package/lib/esm/appui-react/layout/state/WidgetLocation.js.map +1 -1
  434. package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -1
  435. package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -1
  436. package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -1
  437. package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -1
  438. package/lib/esm/appui-react/layout/target/PanelTargets.js.map +1 -1
  439. package/lib/esm/appui-react/layout/target/SectionTarget.js.map +1 -1
  440. package/lib/esm/appui-react/layout/target/useAllowedSideTarget.js.map +1 -1
  441. package/lib/esm/appui-react/layout/target/useAllowedWidgetTarget.js.map +1 -1
  442. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  443. package/lib/esm/appui-react/layout/widget/Buttons.js.map +1 -1
  444. package/lib/esm/appui-react/layout/widget/ContentManager.js.map +1 -1
  445. package/lib/esm/appui-react/layout/widget/ContentRenderer.js.map +1 -1
  446. package/lib/esm/appui-react/layout/widget/FloatingWidget.js.map +1 -1
  447. package/lib/esm/appui-react/layout/widget/Overflow.js.map +1 -1
  448. package/lib/esm/appui-react/layout/widget/PanelWidget.js.map +1 -1
  449. package/lib/esm/appui-react/layout/widget/SendBack.js.map +1 -1
  450. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  451. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  452. package/lib/esm/appui-react/layout/widget/Tabs.js.map +1 -1
  453. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  454. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  455. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  456. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  457. package/lib/esm/appui-react/layout/widget-panels/PanelSections.js.map +1 -1
  458. package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -1
  459. package/lib/esm/appui-react/layout/widget-panels/usePanelsAutoCollapse.js.map +1 -1
  460. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  461. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  462. package/lib/esm/appui-react/messages/MessageManager.js +1 -2
  463. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  464. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  465. package/lib/esm/appui-react/messages/Pointer.js +1 -2
  466. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  467. package/lib/esm/appui-react/messages/StatusMessageManager.js.map +1 -1
  468. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  469. package/lib/esm/appui-react/messages/getToastCategory.js.map +1 -1
  470. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js +1 -2
  471. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  472. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js +1 -2
  473. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  474. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +1 -2
  475. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  476. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -2
  477. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  478. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +1 -2
  479. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  480. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  481. package/lib/esm/appui-react/pickers/ViewSelector.js +1 -2
  482. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  483. package/lib/esm/appui-react/popup/CardPopup.js +1 -2
  484. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  485. package/lib/esm/appui-react/popup/ComponentPopup.js.map +1 -1
  486. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  487. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  488. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  489. package/lib/esm/appui-react/popup/PopupManager.js +2 -4
  490. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  491. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  492. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  493. package/lib/esm/appui-react/popup/ToolbarPopup.js +1 -2
  494. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  495. package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -1
  496. package/lib/esm/appui-react/preview/activate-dropped-tab/activateDroppedTab.js.map +1 -1
  497. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  498. package/lib/esm/appui-react/preview/new-toolbars/ActionItem.js.map +1 -1
  499. package/lib/esm/appui-react/preview/new-toolbars/CustomItem.js.map +1 -1
  500. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.js.map +1 -1
  501. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  502. package/lib/esm/appui-react/preview/new-toolbars/Toolbar.js.map +1 -1
  503. package/lib/esm/appui-react/preview/new-toolbars/useOverflow.js.map +1 -1
  504. package/lib/esm/appui-react/preview/reparent-popout-widgets/usePopoutsStore.js.map +1 -1
  505. package/lib/esm/appui-react/preview/reparent-popout-widgets/useReparentPopoutWidget.js.map +1 -1
  506. package/lib/esm/appui-react/preview/widget-action-dropdown/Button.js.map +1 -1
  507. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  508. package/lib/esm/appui-react/redux/SessionState.js +1 -1
  509. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  510. package/lib/esm/appui-react/redux/StateManager.js +1 -2
  511. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  512. package/lib/esm/appui-react/redux/connectIModel.js +3 -3
  513. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  514. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +2 -4
  515. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  516. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  517. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  518. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  519. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  520. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +1 -2
  521. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  522. package/lib/esm/appui-react/shared/CommandItemDef.js +1 -2
  523. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  524. package/lib/esm/appui-react/shared/CustomItemDef.js +1 -2
  525. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  526. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  527. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  528. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  529. package/lib/esm/appui-react/statusbar/Field.js +2 -4
  530. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  531. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  532. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +3 -3
  533. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  534. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  535. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  536. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  537. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  538. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  539. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  540. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  541. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  542. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  543. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  544. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -2
  545. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  546. package/lib/esm/appui-react/syncui/InternalSyncUiEventDispatcher.js.map +1 -1
  547. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  548. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  549. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  550. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  551. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js +1 -1
  552. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  553. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  554. package/lib/esm/appui-react/toolbar/GroupItem.js +1 -2
  555. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  556. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  557. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  558. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  559. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  560. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  561. package/lib/esm/appui-react/toolbar/useActiveStageProvidedToolbarItems.js.map +1 -1
  562. package/lib/esm/appui-react/toolbar/useActiveToolIdSynchedItems.js.map +1 -1
  563. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  564. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  565. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  566. package/lib/esm/appui-react/tools/KeyinPaletteTools.js +1 -2
  567. package/lib/esm/appui-react/tools/KeyinPaletteTools.js.map +1 -1
  568. package/lib/esm/appui-react/tools/OpenSettingsTool.js +1 -2
  569. package/lib/esm/appui-react/tools/OpenSettingsTool.js.map +1 -1
  570. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +2 -4
  571. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  572. package/lib/esm/appui-react/tools/ToolSettingsTools.js +2 -4
  573. package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
  574. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  575. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js +1 -2
  576. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  577. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +1 -1
  578. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  579. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  580. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  581. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  582. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  583. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +1 -2
  584. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  585. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  586. package/lib/esm/appui-react/uistate/AppUiSettings.js +1 -2
  587. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  588. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +2 -4
  589. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  590. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  591. package/lib/esm/appui-react/utils/ToolbarButtonHelper.js.map +1 -1
  592. package/lib/esm/appui-react/utils/matchesWords.js.map +1 -1
  593. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +1 -4
  594. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  595. package/lib/esm/appui-react/widget-panels/Frontstage.js +1 -74
  596. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  597. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  598. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  599. package/lib/esm/appui-react/widget-panels/useSaveFrontstageSettings.d.ts +8 -0
  600. package/lib/esm/appui-react/widget-panels/useSaveFrontstageSettings.d.ts.map +1 -0
  601. package/lib/esm/appui-react/widget-panels/useSaveFrontstageSettings.js +51 -0
  602. package/lib/esm/appui-react/widget-panels/useSaveFrontstageSettings.js.map +1 -0
  603. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  604. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  605. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  606. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  607. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  608. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  609. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js +1 -2
  610. package/lib/esm/appui-react/widgets/StatusBarWidgetComposerControl.js.map +1 -1
  611. package/lib/esm/appui-react/widgets/WidgetDef.js +1 -2
  612. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  613. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  614. package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
  615. package/lib/esm/appui-react/widgets/useWidget.js.map +1 -1
  616. package/package.json +17 -19
@@ -1 +1 @@
1
- {"version":3,"file":"activateDroppedTab.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/activate-dropped-tab/activateDroppedTab.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,CAAC,OAAoC,EAA+B,EAAE,CACtE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;IAChB,IAAI,MAAM,CAAC,IAAI,KAAK,qBAAqB,EAAE;QACzC,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAAC;QAE/B,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QACrD,KAAK,GAAG,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;KAC9D;SAAM,IAAI,MAAM,CAAC,IAAI,KAAK,iBAAiB,EAAE;QAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAErE,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;QAClE,KAAK,GAAG,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;KAC3E;SAAM;QACL,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAChC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEJ,SAAS,gBAAgB,CAAC,KAAoB,EAAE,kBAA0B;IACxE,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IAC3D,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEnB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\nimport { assert } from \"@itwin/core-bentley\";\nimport type { NineZoneState } from \"../../layout/state/NineZoneState\";\nimport type { NineZoneStateReducer } from \"../../layout/state/NineZoneStateReducer\";\nimport { getTabLocation } from \"../../layout/state/TabLocation\";\nimport {\n getWidgetState,\n setWidgetActiveTabId,\n} from \"../../layout/state/internal/WidgetStateHelpers\";\n\n/** Reducer factory to activate tab of a dragged widget when dropped in a container.\n * @internal\n */\nexport const activateDroppedTab =\n (reducer: typeof NineZoneStateReducer): typeof NineZoneStateReducer =>\n (state, action) => {\n if (action.type === \"WIDGET_TAB_DRAG_END\") {\n const draggedTabId = action.id;\n\n state = reducer(state, action);\n const widget = getWidgetByTabId(state, draggedTabId);\n state = setWidgetActiveTabId(state, widget.id, draggedTabId);\n } else if (action.type === \"WIDGET_DRAG_END\") {\n const draggedWidget = getWidgetState(state, action.floatingWidgetId);\n\n state = reducer(state, action);\n const widget = getWidgetByTabId(state, draggedWidget.activeTabId);\n state = setWidgetActiveTabId(state, widget.id, draggedWidget.activeTabId);\n } else {\n state = reducer(state, action);\n }\n return state;\n };\n\nfunction getWidgetByTabId(state: NineZoneState, draggedWidgetTabId: string) {\n const location = getTabLocation(state, draggedWidgetTabId);\n assert(!!location);\n\n const widget = state.widgets[location.widgetId];\n return widget;\n}\n"]}
1
+ {"version":3,"file":"activateDroppedTab.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/activate-dropped-tab/activateDroppedTab.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,CAAC,OAAoC,EAA+B,EAAE,CACtE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;IAChB,IAAI,MAAM,CAAC,IAAI,KAAK,qBAAqB,EAAE,CAAC;QAC1C,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAAC;QAE/B,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QACrD,KAAK,GAAG,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IAC/D,CAAC;SAAM,IAAI,MAAM,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;QAC7C,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAErE,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;QAClE,KAAK,GAAG,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC5E,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEJ,SAAS,gBAAgB,CAAC,KAAoB,EAAE,kBAA0B;IACxE,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IAC3D,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEnB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\nimport { assert } from \"@itwin/core-bentley\";\nimport type { NineZoneState } from \"../../layout/state/NineZoneState\";\nimport type { NineZoneStateReducer } from \"../../layout/state/NineZoneStateReducer\";\nimport { getTabLocation } from \"../../layout/state/TabLocation\";\nimport {\n getWidgetState,\n setWidgetActiveTabId,\n} from \"../../layout/state/internal/WidgetStateHelpers\";\n\n/** Reducer factory to activate tab of a dragged widget when dropped in a container.\n * @internal\n */\nexport const activateDroppedTab =\n (reducer: typeof NineZoneStateReducer): typeof NineZoneStateReducer =>\n (state, action) => {\n if (action.type === \"WIDGET_TAB_DRAG_END\") {\n const draggedTabId = action.id;\n\n state = reducer(state, action);\n const widget = getWidgetByTabId(state, draggedTabId);\n state = setWidgetActiveTabId(state, widget.id, draggedTabId);\n } else if (action.type === \"WIDGET_DRAG_END\") {\n const draggedWidget = getWidgetState(state, action.floatingWidgetId);\n\n state = reducer(state, action);\n const widget = getWidgetByTabId(state, draggedWidget.activeTabId);\n state = setWidgetActiveTabId(state, widget.id, draggedWidget.activeTabId);\n } else {\n state = reducer(state, action);\n }\n return state;\n };\n\nfunction getWidgetByTabId(state: NineZoneState, draggedWidgetTabId: string) {\n const location = getTabLocation(state, draggedWidgetTabId);\n assert(!!location);\n\n const widget = state.widgets[location.widgetId];\n return widget;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewHorizontalPanelAlign.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,M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AAC,EAC1B,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,IAErC,UAAU,CAAC,KAAK,CAAC,CACT,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IACL,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACtE,IAAI,eAAe,KAAK,SAAS,EAAE;QACjC,OAAO,CACL,oBAAC,QAAQ,IACP,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EACrC,YAAY,EAAE,YAAY,EAAE,IAE3B,KAAK,CACG,CACZ,CAAC;KACH;IACD,OAAO,CACL,oBAAC,YAAY,IAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC;QACrD,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,IACvB,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CACnB,CACF,CAChB,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,6BAA6B;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAChD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACnD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,CACL,OAAO,IAAI,iBAAiB,IAAI,iBAAiB,IAAI,CAAC,iBAAiB,CACxE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { assert } from \"@itwin/core-bentley\";\nimport { HorizontalAlignment } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuItem } from \"@itwin/itwinui-react\";\nimport {\n isHorizontalPanelSide,\n PanelSideContext,\n} from \"../../layout/widget-panels/Panel\";\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../../layout/widget-panels/PanelTypes\";\nimport { WidgetActionDropdownContext } from \"../widget-action-dropdown/MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\nimport { useMainPanelWidgetId } from \"../../layout/widget/usePanelWidgetId\";\nimport { useIsMaximizedWidget } from \"../enable-maximized-widget/useMaximizedWidget\";\n\n/** Default value used when not provided or disabled. */\nconst defaultAlignments = {\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n};\n\n/** @internal */\nexport const HorizontalPanelAlignContext = React.createContext<{\n enabled: boolean;\n alignments: {\n [side in HorizontalPanelSide]: HorizontalAlignment;\n };\n setAlignment: (\n panel: PanelSide | undefined,\n alignment: HorizontalAlignment\n ) => void;\n}>({\n enabled: false,\n alignments: defaultAlignments,\n setAlignment: () => {},\n});\n\n/** Preview horizontal panel alignment feature provider.\n * @internal\n */\nexport function PreviewHorizontalPanelAlignFeatureProvider({\n enabled,\n children,\n}: {\n enabled?: boolean;\n children?: React.ReactNode;\n}) {\n const [alignments, setAlignments] = React.useState<{\n [x in HorizontalPanelSide]: HorizontalAlignment;\n }>({\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n });\n const setAlignment = React.useCallback(\n (panel: PanelSide | undefined, alignment: HorizontalAlignment) => {\n if (!panel || !isHorizontalPanelSide(panel)) return;\n setAlignments((prev) => ({\n ...prev,\n [panel]: alignment,\n }));\n },\n []\n );\n return (\n <HorizontalPanelAlignContext.Provider\n value={{\n enabled: !!enabled,\n alignments: enabled ? alignments : defaultAlignments,\n setAlignment,\n }}\n >\n {children}\n </HorizontalPanelAlignContext.Provider>\n );\n}\n\nfunction SvgSide(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm11 7H1V3h10v6Zm4 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction SvgJustify(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 7H1V3h3v6Zm1 0V3h6v6H5Zm10 0h-3V3h3v6Z\" />\n </svg>\n );\n}\n\nfunction SvgCenter(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 11H1V3h3v10Zm1-4V3h6v6H5Zm10 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction getIcon(side: HorizontalPanelSide, alignment: HorizontalAlignment) {\n const scaleY = side === \"top\" ? \"-1\" : \"1\";\n if (alignment === HorizontalAlignment.Justify)\n return <SvgJustify transform={`scale(1, ${scaleY})`} />;\n if (alignment === HorizontalAlignment.Center)\n return <SvgCenter transform={`scale(1, ${scaleY})`} />;\n const scaleX = alignment === HorizontalAlignment.Left ? \"1\" : \"-1\";\n return <SvgSide transform={`scale(${scaleX}, ${scaleY})`} />;\n}\n\nfunction capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** @internal */\nexport function PreviewHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n assert(!!side);\n assert(isHorizontalPanelSide(side));\n const { alignments, setAlignment } = React.useContext(\n HorizontalPanelAlignContext\n );\n const title = \"Align panel\";\n\n const getMenuItems = (onClose?: () => void) =>\n [\n HorizontalAlignment.Justify,\n HorizontalAlignment.Center,\n HorizontalAlignment.Left,\n HorizontalAlignment.Right,\n ].map((align) => {\n return (\n <MenuItem\n key={align}\n onClick={() => {\n setAlignment(side, align);\n onClose?.();\n }}\n icon={getIcon(side, align)}\n isSelected={alignments[side] === align}\n >\n {capitalize(align)}\n </MenuItem>\n );\n });\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem\n icon={getIcon(side, alignments[side])}\n subMenuItems={getMenuItems()}\n >\n {title}\n </MenuItem>\n );\n }\n return (\n <DropdownMenu menuItems={(close) => getMenuItems(close)}>\n <TabBarButton title={title}>\n {getIcon(side, alignments[side])}\n </TabBarButton>\n </DropdownMenu>\n );\n}\n\n/** @internal */\nexport function useHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n const { enabled } = React.useContext(HorizontalPanelAlignContext);\n const isMainPanelWidget = !!useMainPanelWidgetId();\n const isMaximizedWidget = useIsMaximizedWidget();\n\n if (!side) return false;\n const isHorizontalPanel = isHorizontalPanelSide(side);\n return (\n enabled && isHorizontalPanel && isMainPanelWidget && !isMaximizedWidget\n );\n}\n"]}
1
+ {"version":3,"file":"PreviewHorizontalPanelAlign.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAA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AO,CAAC,IAAI,EAAE,KAAK,CAAC,EAC1B,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,IAErC,UAAU,CAAC,KAAK,CAAC,CACT,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IACL,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACtE,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,CACL,oBAAC,QAAQ,IACP,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,EACrC,YAAY,EAAE,YAAY,EAAE,IAE3B,KAAK,CACG,CACZ,CAAC;IACJ,CAAC;IACD,OAAO,CACL,oBAAC,YAAY,IAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC;QACrD,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,IACvB,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CACnB,CACF,CAChB,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,6BAA6B;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAChD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACnD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,CACL,OAAO,IAAI,iBAAiB,IAAI,iBAAiB,IAAI,CAAC,iBAAiB,CACxE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { assert } from \"@itwin/core-bentley\";\nimport { HorizontalAlignment } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuItem } from \"@itwin/itwinui-react\";\nimport {\n isHorizontalPanelSide,\n PanelSideContext,\n} from \"../../layout/widget-panels/Panel\";\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../../layout/widget-panels/PanelTypes\";\nimport { WidgetActionDropdownContext } from \"../widget-action-dropdown/MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\nimport { useMainPanelWidgetId } from \"../../layout/widget/usePanelWidgetId\";\nimport { useIsMaximizedWidget } from \"../enable-maximized-widget/useMaximizedWidget\";\n\n/** Default value used when not provided or disabled. */\nconst defaultAlignments = {\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n};\n\n/** @internal */\nexport const HorizontalPanelAlignContext = React.createContext<{\n enabled: boolean;\n alignments: {\n [side in HorizontalPanelSide]: HorizontalAlignment;\n };\n setAlignment: (\n panel: PanelSide | undefined,\n alignment: HorizontalAlignment\n ) => void;\n}>({\n enabled: false,\n alignments: defaultAlignments,\n setAlignment: () => {},\n});\n\n/** Preview horizontal panel alignment feature provider.\n * @internal\n */\nexport function PreviewHorizontalPanelAlignFeatureProvider({\n enabled,\n children,\n}: {\n enabled?: boolean;\n children?: React.ReactNode;\n}) {\n const [alignments, setAlignments] = React.useState<{\n [x in HorizontalPanelSide]: HorizontalAlignment;\n }>({\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n });\n const setAlignment = React.useCallback(\n (panel: PanelSide | undefined, alignment: HorizontalAlignment) => {\n if (!panel || !isHorizontalPanelSide(panel)) return;\n setAlignments((prev) => ({\n ...prev,\n [panel]: alignment,\n }));\n },\n []\n );\n return (\n <HorizontalPanelAlignContext.Provider\n value={{\n enabled: !!enabled,\n alignments: enabled ? alignments : defaultAlignments,\n setAlignment,\n }}\n >\n {children}\n </HorizontalPanelAlignContext.Provider>\n );\n}\n\nfunction SvgSide(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm11 7H1V3h10v6Zm4 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction SvgJustify(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 7H1V3h3v6Zm1 0V3h6v6H5Zm10 0h-3V3h3v6Z\" />\n </svg>\n );\n}\n\nfunction SvgCenter(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 11H1V3h3v10Zm1-4V3h6v6H5Zm10 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction getIcon(side: HorizontalPanelSide, alignment: HorizontalAlignment) {\n const scaleY = side === \"top\" ? \"-1\" : \"1\";\n if (alignment === HorizontalAlignment.Justify)\n return <SvgJustify transform={`scale(1, ${scaleY})`} />;\n if (alignment === HorizontalAlignment.Center)\n return <SvgCenter transform={`scale(1, ${scaleY})`} />;\n const scaleX = alignment === HorizontalAlignment.Left ? \"1\" : \"-1\";\n return <SvgSide transform={`scale(${scaleX}, ${scaleY})`} />;\n}\n\nfunction capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** @internal */\nexport function PreviewHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n assert(!!side);\n assert(isHorizontalPanelSide(side));\n const { alignments, setAlignment } = React.useContext(\n HorizontalPanelAlignContext\n );\n const title = \"Align panel\";\n\n const getMenuItems = (onClose?: () => void) =>\n [\n HorizontalAlignment.Justify,\n HorizontalAlignment.Center,\n HorizontalAlignment.Left,\n HorizontalAlignment.Right,\n ].map((align) => {\n return (\n <MenuItem\n key={align}\n onClick={() => {\n setAlignment(side, align);\n onClose?.();\n }}\n icon={getIcon(side, align)}\n isSelected={alignments[side] === align}\n >\n {capitalize(align)}\n </MenuItem>\n );\n });\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem\n icon={getIcon(side, alignments[side])}\n subMenuItems={getMenuItems()}\n >\n {title}\n </MenuItem>\n );\n }\n return (\n <DropdownMenu menuItems={(close) => getMenuItems(close)}>\n <TabBarButton title={title}>\n {getIcon(side, alignments[side])}\n </TabBarButton>\n </DropdownMenu>\n );\n}\n\n/** @internal */\nexport function useHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n const { enabled } = React.useContext(HorizontalPanelAlignContext);\n const isMainPanelWidget = !!useMainPanelWidgetId();\n const isMaximizedWidget = useIsMaximizedWidget();\n\n if (!side) return false;\n const isHorizontalPanel = isHorizontalPanelSide(side);\n return (\n enabled && isHorizontalPanel && isMainPanelWidget && !isMaximizedWidget\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ActionItem.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ActionItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAO5C,gBAAgB;AAChB,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACxC,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG;IAC/B,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IACnE,IAAI,eAAe,EAAE;QACnB,OAAO,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC;KACxE;IACD,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CACF,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { ToolbarActionItem } from \"../../toolbar/ToolbarItem\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { Item } from \"./Item\";\nimport { GroupMenuItem } from \"./GroupItem\";\n\n/** @internal */\nexport interface ActionItemProps {\n item: ToolbarActionItem;\n}\n\n/** @internal */\nexport const ActionItem = React.forwardRef<HTMLButtonElement, ActionItemProps>(\n function ActionItem({ item }, ref) {\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <Item\n ref={ref}\n item={item}\n onClick={() => {\n item.execute();\n }}\n />\n );\n }\n);\n"]}
1
+ {"version":3,"file":"ActionItem.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ActionItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAO5C,gBAAgB;AAChB,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACxC,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG;IAC/B,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IACnE,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC;IACzE,CAAC;IACD,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CACF,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { ToolbarActionItem } from \"../../toolbar/ToolbarItem\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { Item } from \"./Item\";\nimport { GroupMenuItem } from \"./GroupItem\";\n\n/** @internal */\nexport interface ActionItemProps {\n item: ToolbarActionItem;\n}\n\n/** @internal */\nexport const ActionItem = React.forwardRef<HTMLButtonElement, ActionItemProps>(\n function ActionItem({ item }, ref) {\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <Item\n ref={ref}\n item={item}\n onClick={() => {\n item.execute();\n }}\n />\n );\n }\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItem.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/CustomItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAO3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACxC,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG;IAC/B,MAAM,SAAS,GAAG,mBAAmB,EAAE,CAAC;IACxC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAEnE,IAAI,eAAe,EAAE;QACnB,OAAO,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC;KACxE;IACD,OAAO,CACL,oBAAC,YAAY,IACX,SAAS,EAAE,GAAG,EAAE;YACd,OAAO;gBACL,oBAAC,gBAAgB,IAAC,GAAG,EAAE,CAAC,IAAG,IAAI,CAAC,YAAY,CAAoB;aACjE,CAAC;QACJ,CAAC,EACD,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE;YAC9B,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,CAAC;QAED,oBAAC,IAAI,IAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI;YACxB,oBAAC,eAAe,OAAG,CACd,CACM,CAChB,CAAC;AACJ,CAAC,CACF,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport { DropdownMenu, MenuExtraContent } from \"@itwin/itwinui-react\";\nimport type { ToolbarCustomItem } from \"../../toolbar/ToolbarItem\";\nimport { ExpandIndicator } from \"./ExpandIndicator\";\nimport { Item } from \"./Item\";\nimport { GroupMenuItem, usePopoverPlacement } from \"./GroupItem\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { ToolbarContext } from \"./Toolbar\";\n\n/** @internal */\nexport interface CustomItemProps {\n item: ToolbarCustomItem;\n}\n\n/** @internal */\nexport const CustomItem = React.forwardRef<HTMLButtonElement, CustomItemProps>(\n function CustomItem({ item }, ref) {\n const placement = usePopoverPlacement();\n const context = React.useContext(ToolbarContext);\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <DropdownMenu\n menuItems={() => {\n return [\n <MenuExtraContent key={0}>{item.panelContent}</MenuExtraContent>,\n ];\n }}\n placement={placement}\n onVisibleChange={(newVisible) => {\n context?.setPopoverOpen(newVisible);\n }}\n >\n <Item ref={ref} item={item}>\n <ExpandIndicator />\n </Item>\n </DropdownMenu>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"CustomItem.js","sourceRoot":"","sources":["../../../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GAAG,EAAE,IAAI,EAAE,IAAI;YACxB,oBAAC,eAAe,OAAG,CACd,CACM,CAChB,CAAC;AACJ,CAAC,CACF,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport { DropdownMenu, MenuExtraContent } from \"@itwin/itwinui-react\";\nimport type { ToolbarCustomItem } from \"../../toolbar/ToolbarItem\";\nimport { ExpandIndicator } from \"./ExpandIndicator\";\nimport { Item } from \"./Item\";\nimport { GroupMenuItem, usePopoverPlacement } from \"./GroupItem\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { ToolbarContext } from \"./Toolbar\";\n\n/** @internal */\nexport interface CustomItemProps {\n item: ToolbarCustomItem;\n}\n\n/** @internal */\nexport const CustomItem = React.forwardRef<HTMLButtonElement, CustomItemProps>(\n function CustomItem({ item }, ref) {\n const placement = usePopoverPlacement();\n const context = React.useContext(ToolbarContext);\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <DropdownMenu\n menuItems={() => {\n return [\n <MenuExtraContent key={0}>{item.panelContent}</MenuExtraContent>,\n ];\n }}\n placement={placement}\n onVisibleChange={(newVisible) => {\n context?.setPopoverOpen(newVisible);\n }}\n >\n <Item ref={ref} item={item}>\n <ExpandIndicator />\n </Item>\n </DropdownMenu>\n );\n }\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"GroupItem.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/GroupItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,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;QAEpB,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;QAC3B,KAAK,CACG,CACZ,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAiB,EAAE,OAAoB;IAC1D,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YAClC,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,CACxE,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IACD,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO;YACL,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,IAAG,IAAI,CAAC,YAAY,CAAoB;SACvE,CAAC;KACH;IACD,OAAO,EAAE,CAAC;AACZ,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport { Icon } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuExtraContent, MenuItem } from \"@itwin/itwinui-react\";\nimport type { ToolbarItem } from \"../../toolbar/ToolbarItem\";\nimport {\n isToolbarActionItem,\n isToolbarCustomItem,\n isToolbarGroupItem,\n type ToolbarGroupItem,\n} from \"../../toolbar/ToolbarItem\";\nimport { useConditionalValue } from \"../../hooks/useConditionalValue\";\nimport { ExpandIndicator } from \"./ExpandIndicator\";\nimport { Item } from \"./Item\";\nimport { Badge } from \"./Badge\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { ToolbarContext } from \"./Toolbar\";\n\n/** @internal */\nexport interface GroupItemProps {\n item: ToolbarGroupItem;\n}\n\n/** @internal */\nexport const GroupItem = React.forwardRef<HTMLButtonElement, GroupItemProps>(\n function GroupItem({ item }, ref) {\n const placement = usePopoverPlacement();\n const context = React.useContext(ToolbarContext);\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <DropdownMenu\n menuItems={(close) => {\n return toMenuItems(item, close);\n }}\n placement={placement}\n onVisibleChange={(newVisible) => {\n context?.setPopoverOpen(newVisible);\n }}\n >\n <Item item={item} ref={ref}>\n <ExpandIndicator />\n </Item>\n </DropdownMenu>\n );\n }\n);\n\n/** @internal */\nexport function usePopoverPlacement() {\n const context = React.useContext(ToolbarContext);\n if (!context) return undefined;\n\n return `${context.expandsTo}-${context.panelAlignment}` as const;\n}\n\ninterface GroupMenuItemProps {\n item: ToolbarItem;\n onClose?: () => void;\n}\n\n/** @internal */\nexport function GroupMenuItem({ item, onClose }: GroupMenuItemProps) {\n const iconSpec = useConditionalValue(item.icon);\n const label = useConditionalValue(item.label);\n const isDisabled = useConditionalValue(item.isDisabled);\n const isHidden = useConditionalValue(item.isHidden);\n const isActive = useConditionalValue(item.isActive);\n\n if (isHidden) {\n return null;\n }\n\n const subMenuItems = isDisabled ? undefined : toMenuItems(item, onClose);\n return (\n <MenuItem\n startIcon={<Icon iconSpec={iconSpec} />}\n disabled={isDisabled}\n subMenuItems={subMenuItems}\n onClick={() => {\n if (isToolbarActionItem(item)) {\n item.execute();\n onClose?.();\n }\n }}\n isSelected={isActive}\n >\n <Badge badge={item.badge} />\n {label}\n </MenuItem>\n );\n}\n\nfunction toMenuItems(item: ToolbarItem, onClose?: () => void) {\n if (isToolbarGroupItem(item)) {\n return item.items.map((groupItem) => {\n return (\n <GroupMenuItem key={groupItem.id} item={groupItem} onClose={onClose} />\n );\n });\n }\n if (isToolbarCustomItem(item)) {\n return [\n <MenuExtraContent key={item.id}>{item.panelContent}</MenuExtraContent>,\n ];\n }\n return [];\n}\n"]}
1
+ {"version":3,"file":"GroupItem.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/GroupItem.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,GAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAO3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG;IAC9B,MAAM,SAAS,GAAG,mBAAmB,EAAE,CAAC;IACxC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAEnE,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,oBAAC,aAAa,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC;IACzE,CAAC;IACD,OAAO,CACL,oBAAC,YAAY,IACX,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACnB,OAAO,WA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,EAAE,QAAQ,GAAI,EACvC,QAAQ,EAAE,UAAU,EACpB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;gBACf,OAAO,EAAE,EAAE,CAAC;YACd,CAAC;QACH,CAAC,EACD,UAAU,EAAE,QAAQ;QAEpB,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;QAC3B,KAAK,CACG,CACZ,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAiB,EAAE,OAAoB;IAC1D,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YAClC,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,CACxE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO;YACL,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,IAAG,IAAI,CAAC,YAAY,CAAoB;SACvE,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport { Icon } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuExtraContent, MenuItem } from \"@itwin/itwinui-react\";\nimport type { ToolbarItem } from \"../../toolbar/ToolbarItem\";\nimport {\n isToolbarActionItem,\n isToolbarCustomItem,\n isToolbarGroupItem,\n type ToolbarGroupItem,\n} from \"../../toolbar/ToolbarItem\";\nimport { useConditionalValue } from \"../../hooks/useConditionalValue\";\nimport { ExpandIndicator } from \"./ExpandIndicator\";\nimport { Item } from \"./Item\";\nimport { Badge } from \"./Badge\";\nimport { ToolGroupOverflowContext } from \"./OverflowButton\";\nimport { ToolbarContext } from \"./Toolbar\";\n\n/** @internal */\nexport interface GroupItemProps {\n item: ToolbarGroupItem;\n}\n\n/** @internal */\nexport const GroupItem = React.forwardRef<HTMLButtonElement, GroupItemProps>(\n function GroupItem({ item }, ref) {\n const placement = usePopoverPlacement();\n const context = React.useContext(ToolbarContext);\n const overflowContext = React.useContext(ToolGroupOverflowContext);\n\n if (overflowContext) {\n return <GroupMenuItem item={item} onClose={overflowContext.onClose} />;\n }\n return (\n <DropdownMenu\n menuItems={(close) => {\n return toMenuItems(item, close);\n }}\n placement={placement}\n onVisibleChange={(newVisible) => {\n context?.setPopoverOpen(newVisible);\n }}\n >\n <Item item={item} ref={ref}>\n <ExpandIndicator />\n </Item>\n </DropdownMenu>\n );\n }\n);\n\n/** @internal */\nexport function usePopoverPlacement() {\n const context = React.useContext(ToolbarContext);\n if (!context) return undefined;\n\n return `${context.expandsTo}-${context.panelAlignment}` as const;\n}\n\ninterface GroupMenuItemProps {\n item: ToolbarItem;\n onClose?: () => void;\n}\n\n/** @internal */\nexport function GroupMenuItem({ item, onClose }: GroupMenuItemProps) {\n const iconSpec = useConditionalValue(item.icon);\n const label = useConditionalValue(item.label);\n const isDisabled = useConditionalValue(item.isDisabled);\n const isHidden = useConditionalValue(item.isHidden);\n const isActive = useConditionalValue(item.isActive);\n\n if (isHidden) {\n return null;\n }\n\n const subMenuItems = isDisabled ? undefined : toMenuItems(item, onClose);\n return (\n <MenuItem\n startIcon={<Icon iconSpec={iconSpec} />}\n disabled={isDisabled}\n subMenuItems={subMenuItems}\n onClick={() => {\n if (isToolbarActionItem(item)) {\n item.execute();\n onClose?.();\n }\n }}\n isSelected={isActive}\n >\n <Badge badge={item.badge} />\n {label}\n </MenuItem>\n );\n}\n\nfunction toMenuItems(item: ToolbarItem, onClose?: () => void) {\n if (isToolbarGroupItem(item)) {\n return item.items.map((groupItem) => {\n return (\n <GroupMenuItem key={groupItem.id} item={groupItem} onClose={onClose} />\n );\n });\n }\n if (isToolbarCustomItem(item)) {\n return [\n <MenuExtraContent key={item.id}>{item.panelContent}</MenuExtraContent>,\n ];\n }\n return [];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ToolGroup.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ToolGroup.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQ3C,gBAAgB;AAChB,MAAM,UAAU,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAkB;IACzE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,IAAI,QAAQ,CAAC;IACjD,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,OAAO,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AAC,GAAG,EAAE,WAAW,IAC7B,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CACtB,CAClB,CACO,CACN,CACP,CAAC;AACJ,CAAC;AAED,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;AAChC,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAIlC,SAAS,cAAc,CACrB,SAAwD;IAExD,QAAQ,SAAS,EAAE;QACjB,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,UAAU,CAAC;QACpB,KAAK,KAAK,CAAC;QACX,KAAK,QAAQ;YACX,OAAO,YAAY,CAAC;KACvB;AACH,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 Toolbar\n */\n\nimport \"./ToolGroup.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Surface } from \"@itwin/itwinui-react\";\nimport { ActionItem } from \"./ActionItem\";\nimport { GroupItem } from \"./GroupItem\";\nimport { CustomItem } from \"./CustomItem\";\nimport { OverflowButton } from \"./OverflowButton\";\nimport { useOverflow } from \"./useOverflow\";\nimport { getChildKey } from \"../../layout/tool-settings/Docked\";\nimport { ToolbarContext } from \"./Toolbar\";\n\ninterface ToolGroupProps extends CommonProps {\n children?: React.ReactNode;\n}\n\ntype Child = ReturnType<typeof React.Children.toArray>[0];\n\n/** @internal */\nexport function ToolGroup({ children, className, ...props }: ToolGroupProps) {\n const context = React.useContext(ToolbarContext);\n const expandsTo = context?.expandsTo ?? \"bottom\";\n const panelAlignment = context?.panelAlignment ?? \"start\";\n const orientation = getOrientation(expandsTo);\n const childrenArray = React.Children.toArray(children);\n\n const keyToChildMap = childrenArray.reduce<Map<string, Child>>(\n (acc, child, index) => {\n const childKey = getChildKey(child, index);\n acc.set(childKey, child);\n return acc;\n },\n new Map()\n );\n const childrenKeys = Array.from(keyToChildMap.keys());\n const itemRefs = React.useRef<Map<string, Element>>(new Map());\n const overflowRef = React.useRef<HTMLButtonElement>(null);\n\n const getItemSize = React.useCallback((item: string) => {\n const element = itemRefs.current.get(item);\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n const getOverflowSize = React.useCallback(() => {\n const element = overflowRef.current;\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n\n const [containerRef, componentRef, visibleCount, renderOverflow] =\n useOverflow(childrenKeys, orientation, getItemSize, getOverflowSize);\n\n const keyToChildEntries = Array.from(keyToChildMap.entries());\n const visibleChildren = keyToChildEntries.slice(0, visibleCount);\n const overflown = keyToChildEntries.slice(visibleCount);\n return (\n <div\n className={classnames(\n \"uifw-toolbar-group-toolGroup_container\",\n `uifw-${orientation}`,\n `uifw-${panelAlignment}`,\n className\n )}\n ref={containerRef}\n >\n <Surface\n className={classnames(\n \"uifw-toolbar-group-toolGroup\",\n `uifw-${orientation}`\n )}\n ref={componentRef}\n {...props}\n >\n {visibleChildren.map(([item, child]) => {\n if (!React.isValidElement<{ ref: React.Ref<Element> }>(child))\n return child;\n return React.cloneElement(child, {\n ref: (el: Element | null) => {\n if (!el) {\n itemRefs.current.delete(item);\n return;\n }\n itemRefs.current.set(item, el);\n },\n });\n })}\n {renderOverflow && (\n <OverflowButton ref={overflowRef}>\n {overflown.map(([_, child]) => child)}\n </OverflowButton>\n )}\n </Surface>\n </div>\n );\n}\n\nToolGroup.ActionItem = ActionItem;\nToolGroup.GroupItem = GroupItem;\nToolGroup.CustomItem = CustomItem;\n\ntype ToolbarContextProps = React.ContextType<typeof ToolbarContext>;\n\nfunction getOrientation(\n expandsTo: NonNullable<ToolbarContextProps>[\"expandsTo\"]\n) {\n switch (expandsTo) {\n case \"left\":\n case \"right\":\n return \"vertical\";\n case \"top\":\n case \"bottom\":\n return \"horizontal\";\n }\n}\n"]}
1
+ {"version":3,"file":"ToolGroup.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ToolGroup.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQ3C,gBAAgB;AAChB,MAAM,UAAU,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAkB;IACzE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,IAAI,QAAQ,CAAC;IACjD,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,OAAO,CAAC;IAC1D,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEvD,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,CACxC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EA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AAC,SAAS,GAAG,SAAS,CAAC;AAChC,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAIlC,SAAS,cAAc,CACrB,SAAwD;IAExD,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,UAAU,CAAC;QACpB,KAAK,KAAK,CAAC;QACX,KAAK,QAAQ;YACX,OAAO,YAAY,CAAC;IACxB,CAAC;AACH,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 Toolbar\n */\n\nimport \"./ToolGroup.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Surface } from \"@itwin/itwinui-react\";\nimport { ActionItem } from \"./ActionItem\";\nimport { GroupItem } from \"./GroupItem\";\nimport { CustomItem } from \"./CustomItem\";\nimport { OverflowButton } from \"./OverflowButton\";\nimport { useOverflow } from \"./useOverflow\";\nimport { getChildKey } from \"../../layout/tool-settings/Docked\";\nimport { ToolbarContext } from \"./Toolbar\";\n\ninterface ToolGroupProps extends CommonProps {\n children?: React.ReactNode;\n}\n\ntype Child = ReturnType<typeof React.Children.toArray>[0];\n\n/** @internal */\nexport function ToolGroup({ children, className, ...props }: ToolGroupProps) {\n const context = React.useContext(ToolbarContext);\n const expandsTo = context?.expandsTo ?? \"bottom\";\n const panelAlignment = context?.panelAlignment ?? \"start\";\n const orientation = getOrientation(expandsTo);\n const childrenArray = React.Children.toArray(children);\n\n const keyToChildMap = childrenArray.reduce<Map<string, Child>>(\n (acc, child, index) => {\n const childKey = getChildKey(child, index);\n acc.set(childKey, child);\n return acc;\n },\n new Map()\n );\n const childrenKeys = Array.from(keyToChildMap.keys());\n const itemRefs = React.useRef<Map<string, Element>>(new Map());\n const overflowRef = React.useRef<HTMLButtonElement>(null);\n\n const getItemSize = React.useCallback((item: string) => {\n const element = itemRefs.current.get(item);\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n const getOverflowSize = React.useCallback(() => {\n const element = overflowRef.current;\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n\n const [containerRef, componentRef, visibleCount, renderOverflow] =\n useOverflow(childrenKeys, orientation, getItemSize, getOverflowSize);\n\n const keyToChildEntries = Array.from(keyToChildMap.entries());\n const visibleChildren = keyToChildEntries.slice(0, visibleCount);\n const overflown = keyToChildEntries.slice(visibleCount);\n return (\n <div\n className={classnames(\n \"uifw-toolbar-group-toolGroup_container\",\n `uifw-${orientation}`,\n `uifw-${panelAlignment}`,\n className\n )}\n ref={containerRef}\n >\n <Surface\n className={classnames(\n \"uifw-toolbar-group-toolGroup\",\n `uifw-${orientation}`\n )}\n ref={componentRef}\n {...props}\n >\n {visibleChildren.map(([item, child]) => {\n if (!React.isValidElement<{ ref: React.Ref<Element> }>(child))\n return child;\n return React.cloneElement(child, {\n ref: (el: Element | null) => {\n if (!el) {\n itemRefs.current.delete(item);\n return;\n }\n itemRefs.current.set(item, el);\n },\n });\n })}\n {renderOverflow && (\n <OverflowButton ref={overflowRef}>\n {overflown.map(([_, child]) => child)}\n </OverflowButton>\n )}\n </Surface>\n </div>\n );\n}\n\nToolGroup.ActionItem = ActionItem;\nToolGroup.GroupItem = GroupItem;\nToolGroup.CustomItem = CustomItem;\n\ntype ToolbarContextProps = React.ContextType<typeof ToolbarContext>;\n\nfunction getOrientation(\n expandsTo: NonNullable<ToolbarContextProps>[\"expandsTo\"]\n) {\n switch (expandsTo) {\n case \"left\":\n case \"right\":\n return \"vertical\";\n case \"top\":\n case \"bottom\":\n return \"horizontal\";\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/Toolbar.tsx"],"names":[],"mappings":"AAAA;;;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C;AACb,cAAc,CAAC,WAAW,GAAG,qBAAqB,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { ToolbarItem } from \"../../toolbar/ToolbarItem\";\nimport {\n isToolbarActionItem,\n isToolbarCustomItem,\n isToolbarGroupItem,\n} from \"../../toolbar/ToolbarItem\";\nimport { ToolGroup } from \"./ToolGroup\";\n\ninterface ToolbarProps {\n /** Definitions for items of the toolbar. */\n items: ToolbarItem[];\n /** Describes direction to which the panels are expanded. Orientation of the toolbar is determined based on this prop. Defaults to `bottom`. */\n expandsTo?: \"top\" | \"bottom\" | \"left\" | \"right\";\n /** Describes how panels are aligned. Defaults to `start`. */\n panelAlignment?: \"start\" | \"end\";\n}\n\n/** @internal */\nexport function Toolbar({\n items,\n expandsTo = \"bottom\",\n panelAlignment = \"start\",\n}: ToolbarProps) {\n const [popoverOpen, setPopoverOpen] = React.useState(false);\n return (\n <ToolbarContext.Provider\n value={{\n expandsTo,\n panelAlignment,\n popoverOpen,\n setPopoverOpen,\n }}\n >\n <ToolGroup>\n {items.map((item) => {\n if (isToolbarActionItem(item)) {\n return <ToolGroup.ActionItem key={item.id} item={item} />;\n }\n if (isToolbarGroupItem(item)) {\n return <ToolGroup.GroupItem key={item.id} item={item} />;\n }\n if (isToolbarCustomItem(item)) {\n return <ToolGroup.CustomItem key={item.id} item={item} />;\n }\n return null;\n })}\n </ToolGroup>\n </ToolbarContext.Provider>\n );\n}\n\ninterface ToolbarContextProps\n extends Pick<Required<ToolbarProps>, \"expandsTo\" | \"panelAlignment\"> {\n popoverOpen: boolean;\n setPopoverOpen: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\n/** @internal */\nexport const ToolbarContext = React.createContext<\n ToolbarContextProps | undefined\n>(undefined);\nToolbarContext.displayName = \"uifw:ToolbarContext\";\n"]}
1
+ {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/Toolbar.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,gBAAgB;AAChB,MAAM,UAAU,OAAO,CAAC,EACtB,KAAK,EACL,SAAS,GAAG,QAAQ,EACpB,cAAc,GAAG,OAAO,GACX;IACb,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,OAAO,CACL,oBAAC,cAAc,CAAC,QAAQ,IACtB,KAAK,EAAE;YACL,SAAS;YACT,cAAc;YACd,WAAW;YACX,cAAc;SACf;QAED,oBAAC,SAAS,QACP,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAClB,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,OAAO,oBAAC,SAAS,CAAC,UAAU,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;YAC5D,CAAC;YACD,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7B,OAAO,oBAAC,SAAS,CAAC,SAAS,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;YAC3D,CAAC;YACD,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,OAAO,oBAAC,SAAS,CAAC,UAAU,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;YAC5D,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CACQ,CACY,CAC3B,CAAC;AACJ,CAAC;AAQD,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAE/C,SAAS,CAAC,CAAC;AACb,cAAc,CAAC,WAAW,GAAG,qBAAqB,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { ToolbarItem } from \"../../toolbar/ToolbarItem\";\nimport {\n isToolbarActionItem,\n isToolbarCustomItem,\n isToolbarGroupItem,\n} from \"../../toolbar/ToolbarItem\";\nimport { ToolGroup } from \"./ToolGroup\";\n\ninterface ToolbarProps {\n /** Definitions for items of the toolbar. */\n items: ToolbarItem[];\n /** Describes direction to which the panels are expanded. Orientation of the toolbar is determined based on this prop. Defaults to `bottom`. */\n expandsTo?: \"top\" | \"bottom\" | \"left\" | \"right\";\n /** Describes how panels are aligned. Defaults to `start`. */\n panelAlignment?: \"start\" | \"end\";\n}\n\n/** @internal */\nexport function Toolbar({\n items,\n expandsTo = \"bottom\",\n panelAlignment = \"start\",\n}: ToolbarProps) {\n const [popoverOpen, setPopoverOpen] = React.useState(false);\n return (\n <ToolbarContext.Provider\n value={{\n expandsTo,\n panelAlignment,\n popoverOpen,\n setPopoverOpen,\n }}\n >\n <ToolGroup>\n {items.map((item) => {\n if (isToolbarActionItem(item)) {\n return <ToolGroup.ActionItem key={item.id} item={item} />;\n }\n if (isToolbarGroupItem(item)) {\n return <ToolGroup.GroupItem key={item.id} item={item} />;\n }\n if (isToolbarCustomItem(item)) {\n return <ToolGroup.CustomItem key={item.id} item={item} />;\n }\n return null;\n })}\n </ToolGroup>\n </ToolbarContext.Provider>\n );\n}\n\ninterface ToolbarContextProps\n extends Pick<Required<ToolbarProps>, \"expandsTo\" | \"panelAlignment\"> {\n popoverOpen: boolean;\n setPopoverOpen: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\n/** @internal */\nexport const ToolbarContext = React.createContext<\n ToolbarContextProps | undefined\n>(undefined);\nToolbarContext.displayName = \"uifw:ToolbarContext\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useOverflow.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/useOverflow.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,gBAAgB;AAChB,MAAM,CAAC,MAAM,WAAW,GAAG,CAIzB,QAA+B,EAC/B,WAAwB,EACxB,WAAwC,EACxC,eAAgC,EAChC,EAAE;IACF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAa,CAAC;IACnD,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,EAAa,CAAC;IAEnD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC1E,IAAI,eAAe,KAAK,WAAW,EAAE;QACnC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QAChC,YAAY,CAAC,IAAI,CAAC,CAAC;KACpB;IAED,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;QACzB,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,MAAM,aAAa,GAAG,gBAAgB,CAAC,OA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AC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3D,OAAO,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,CAAU,CAAC;AAC3E,CAAC,CAAC;AAEF,SAAS,SAAS,CAChB,IAAuC,EACvC,WAAwB;IAExB,OAAO,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;AACjE,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { useResizeObserver } from \"@itwin/core-react\";\n\ntype Orientation = \"horizontal\" | \"vertical\";\n\n/** @internal */\nexport const useOverflow = <\n TContainer extends HTMLElement,\n TComponent extends HTMLElement\n>(\n allItems: ReadonlyArray<string>,\n orientation: Orientation,\n getItemSize: (item: string) => SizeProps,\n getOverflowSize: () => SizeProps\n) => {\n const [visible, setVisible] = React.useState(allItems.length);\n const [calculate, setCalculate] = React.useState(false);\n const containerSizeRef = React.useRef<SizeProps>();\n const componentSizeRef = React.useRef<SizeProps>();\n\n const [prevOrientation, setPrevOrientation] = React.useState(orientation);\n if (prevOrientation !== orientation) {\n setPrevOrientation(orientation);\n setCalculate(true);\n }\n\n React.useLayoutEffect(() => {\n setCalculate(false);\n if (!calculate) return;\n\n const containerSize = containerSizeRef.current\n ? getLength(containerSizeRef.current, orientation)\n : undefined;\n if (containerSize === undefined) return;\n\n const componentSize = componentSizeRef.current\n ? getLength(componentSizeRef.current, orientation)\n : undefined;\n if (componentSize === undefined) return;\n\n const itemSizes = allItems.map((item) => {\n const size = getItemSize(item);\n return getLength(size, orientation);\n });\n const overflowSize = getLength(getOverflowSize(), orientation);\n\n const otherSize = itemSizes.reduce((acc, size) => acc + size, 0);\n if (otherSize < containerSize) {\n // No overflow.\n setVisible(itemSizes.length);\n return;\n }\n\n let totalSize = overflowSize;\n if (totalSize >= containerSize) {\n // Render only overflow.\n setVisible(0);\n return;\n }\n\n let newVisible = 0;\n for (const size of itemSizes) {\n totalSize += size;\n if (totalSize >= containerSize) {\n break;\n }\n newVisible++;\n }\n setVisible(newVisible);\n }, [calculate, allItems, getItemSize, getOverflowSize, orientation]);\n const containerRoRef = useResizeObserver<TContainer>(\n React.useCallback(\n (width: number, height: number) => {\n const length = containerSizeRef.current\n ? getLength(containerSizeRef.current, orientation)\n : undefined;\n containerSizeRef.current = { width, height };\n const newLength = getLength(containerSizeRef.current, orientation);\n\n if (newLength === length) return;\n setCalculate(true);\n },\n [orientation]\n )\n );\n const componentRoRef = useResizeObserver<TComponent>(\n React.useCallback(\n (width: number, height: number) => {\n const length = componentSizeRef.current\n ? getLength(componentSizeRef.current, orientation)\n : undefined;\n componentSizeRef.current = { width, height };\n const newLength = getLength(componentSizeRef.current, orientation);\n\n if (newLength === length) return;\n setCalculate(true);\n },\n [orientation]\n )\n );\n\n const overflow = calculate || visible < allItems.length;\n const visibleItems = calculate ? allItems.length : visible;\n return [containerRoRef, componentRoRef, visibleItems, overflow] as const;\n};\n\nfunction getLength(\n size: { width: number; height: number },\n orientation: Orientation\n) {\n return orientation === \"horizontal\" ? size.width : size.height;\n}\n"]}
1
+ {"version":3,"file":"useOverflow.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/useOverflow.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,gBAAgB;AAChB,MAAM,CAAC,MAAM,WAAW,GAAG,CAIzB,QAA+B,EAC/B,WAAwB,EACxB,WAAwC,EACxC,eAAgC,EA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AAI,SAAS,KAAK,MAAM;YAAE,OAAO;QACjC,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CACF,CAAC;IACF,MAAM,cAAc,GAAG,iBAAiB,CACtC,KAAK,CAAC,WAAW,CACf,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE;QAChC,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO;YACrC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC;YAClD,CAAC,CAAC,SAAS,CAAC;QACd,gBAAgB,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAC7C,MAAM,SAAS,GAAG,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAEnE,IAAI,SAAS,KAAK,MAAM;YAAE,OAAO;QACjC,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CACF,CAAC;IAEF,MAAM,QAAQ,GAAG,SAAS,IAAI,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxD,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3D,OAAO,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,CAAU,CAAC;AAC3E,CAAC,CAAC;AAEF,SAAS,SAAS,CAChB,IAAuC,EACvC,WAAwB;IAExB,OAAO,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;AACjE,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 Toolbar\n */\n\nimport * as React from \"react\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { useResizeObserver } from \"@itwin/core-react\";\n\ntype Orientation = \"horizontal\" | \"vertical\";\n\n/** @internal */\nexport const useOverflow = <\n TContainer extends HTMLElement,\n TComponent extends HTMLElement\n>(\n allItems: ReadonlyArray<string>,\n orientation: Orientation,\n getItemSize: (item: string) => SizeProps,\n getOverflowSize: () => SizeProps\n) => {\n const [visible, setVisible] = React.useState(allItems.length);\n const [calculate, setCalculate] = React.useState(false);\n const containerSizeRef = React.useRef<SizeProps>();\n const componentSizeRef = React.useRef<SizeProps>();\n\n const [prevOrientation, setPrevOrientation] = React.useState(orientation);\n if (prevOrientation !== orientation) {\n setPrevOrientation(orientation);\n setCalculate(true);\n }\n\n React.useLayoutEffect(() => {\n setCalculate(false);\n if (!calculate) return;\n\n const containerSize = containerSizeRef.current\n ? getLength(containerSizeRef.current, orientation)\n : undefined;\n if (containerSize === undefined) return;\n\n const componentSize = componentSizeRef.current\n ? getLength(componentSizeRef.current, orientation)\n : undefined;\n if (componentSize === undefined) return;\n\n const itemSizes = allItems.map((item) => {\n const size = getItemSize(item);\n return getLength(size, orientation);\n });\n const overflowSize = getLength(getOverflowSize(), orientation);\n\n const otherSize = itemSizes.reduce((acc, size) => acc + size, 0);\n if (otherSize < containerSize) {\n // No overflow.\n setVisible(itemSizes.length);\n return;\n }\n\n let totalSize = overflowSize;\n if (totalSize >= containerSize) {\n // Render only overflow.\n setVisible(0);\n return;\n }\n\n let newVisible = 0;\n for (const size of itemSizes) {\n totalSize += size;\n if (totalSize >= containerSize) {\n break;\n }\n newVisible++;\n }\n setVisible(newVisible);\n }, [calculate, allItems, getItemSize, getOverflowSize, orientation]);\n const containerRoRef = useResizeObserver<TContainer>(\n React.useCallback(\n (width: number, height: number) => {\n const length = containerSizeRef.current\n ? getLength(containerSizeRef.current, orientation)\n : undefined;\n containerSizeRef.current = { width, height };\n const newLength = getLength(containerSizeRef.current, orientation);\n\n if (newLength === length) return;\n setCalculate(true);\n },\n [orientation]\n )\n );\n const componentRoRef = useResizeObserver<TComponent>(\n React.useCallback(\n (width: number, height: number) => {\n const length = componentSizeRef.current\n ? getLength(componentSizeRef.current, orientation)\n : undefined;\n componentSizeRef.current = { width, height };\n const newLength = getLength(componentSizeRef.current, orientation);\n\n if (newLength === length) return;\n setCalculate(true);\n },\n [orientation]\n )\n );\n\n const overflow = calculate || visible < allItems.length;\n const visibleItems = calculate ? allItems.length : visible;\n return [containerRoRef, componentRoRef, visibleItems, overflow] as const;\n};\n\nfunction getLength(\n size: { width: number; height: number },\n orientation: Orientation\n) {\n return orientation === \"horizontal\" ? size.width : size.height;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"usePopoutsStore.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/usePopoutsStore.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAW9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAqB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAClE,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,CACT,QAA2B,EAC3B,SAAkC,EAClC,EAAE;QACF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACZ,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,SAAS,EAAE;gBACd,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC/B,OAAO;aACR;YAED,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IACD,mBAAmB,EAAE,IAAI,OAAO,EAAwC;CACzE,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport produce, { castDraft } from \"immer\";\nimport { create } from \"zustand\";\nimport type { WidgetState } from \"../../layout/state/WidgetState\";\nimport { BeEvent } from \"@itwin/core-bentley\";\n\ninterface PopoutWidgetsStore {\n popouts: { readonly [id in WidgetState[\"id\"]]: HTMLElement | undefined };\n setPopout: (\n widgetId: WidgetState[\"id\"],\n container: HTMLElement | undefined\n ) => void;\n onClosePopoutWidget: BeEvent<(args: { windowId: string }) => void>;\n}\n\n/** @internal */\nexport const usePopoutsStore = create<PopoutWidgetsStore>((set) => ({\n popouts: {},\n setPopout: (\n widgetId: WidgetState[\"id\"],\n container: HTMLElement | undefined\n ) => {\n set((state) =>\n produce(state, (draft) => {\n if (!container) {\n delete draft.popouts[widgetId];\n return;\n }\n\n draft.popouts[widgetId] = castDraft(container);\n })\n );\n },\n onClosePopoutWidget: new BeEvent<(args: { windowId: string }) => void>(),\n}));\n"]}
1
+ {"version":3,"file":"usePopoutsStore.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/usePopoutsStore.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAW9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAqB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAClE,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,CACT,QAA2B,EAC3B,SAAkC,EAClC,EAAE;QACF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACZ,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC/B,OAAO;YACT,CAAC;YAED,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IACD,mBAAmB,EAAE,IAAI,OAAO,EAAwC;CACzE,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport produce, { castDraft } from \"immer\";\nimport { create } from \"zustand\";\nimport type { WidgetState } from \"../../layout/state/WidgetState\";\nimport { BeEvent } from \"@itwin/core-bentley\";\n\ninterface PopoutWidgetsStore {\n popouts: { readonly [id in WidgetState[\"id\"]]: HTMLElement | undefined };\n setPopout: (\n widgetId: WidgetState[\"id\"],\n container: HTMLElement | undefined\n ) => void;\n onClosePopoutWidget: BeEvent<(args: { windowId: string }) => void>;\n}\n\n/** @internal */\nexport const usePopoutsStore = create<PopoutWidgetsStore>((set) => ({\n popouts: {},\n setPopout: (\n widgetId: WidgetState[\"id\"],\n container: HTMLElement | undefined\n ) => {\n set((state) =>\n produce(state, (draft) => {\n if (!container) {\n delete draft.popouts[widgetId];\n return;\n }\n\n draft.popouts[widgetId] = castDraft(container);\n })\n );\n },\n onClosePopoutWidget: new BeEvent<(args: { windowId: string }) => void>(),\n}));\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useReparentPopoutWidget.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/useReparentPopoutWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,gBAAgB;AAChB,MAAM,UAAU,uBAAuB,CAAC,EAAmB;IACzD,MAAM,EAAE,qBAAqB,EAAE,GAAG,kBAAkB,EAAE,CAAC;IACvD,IAAI,qBAAqB,KAAK,IAAI,EAAE;QAClC,OAAO,IAAI,CAAC;KACb;IACD,IACE,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QACpC,qBAAqB,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EACtC;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,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 *--------------------------------------------------------------------------------------------*/\nimport type { WidgetDef } from \"../../widgets/WidgetDef\";\nimport { usePreviewFeatures } from \"../PreviewFeatures\";\n\n/** @internal */\nexport function useReparentPopoutWidget(id: WidgetDef[\"id\"]) {\n const { reparentPopoutWidgets } = usePreviewFeatures();\n if (reparentPopoutWidgets === true) {\n return true;\n }\n if (\n Array.isArray(reparentPopoutWidgets) &&\n reparentPopoutWidgets.indexOf(id) >= 0\n ) {\n return true;\n }\n\n return false;\n}\n"]}
1
+ {"version":3,"file":"useReparentPopoutWidget.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/useReparentPopoutWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,gBAAgB;AAChB,MAAM,UAAU,uBAAuB,CAAC,EAAmB;IACzD,MAAM,EAAE,qBAAqB,EAAE,GAAG,kBAAkB,EAAE,CAAC;IACvD,IAAI,qBAAqB,KAAK,IAAI,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IACE,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QACpC,qBAAqB,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EACtC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,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 *--------------------------------------------------------------------------------------------*/\nimport type { WidgetDef } from \"../../widgets/WidgetDef\";\nimport { usePreviewFeatures } from \"../PreviewFeatures\";\n\n/** @internal */\nexport function useReparentPopoutWidget(id: WidgetDef[\"id\"]) {\n const { reparentPopoutWidgets } = usePreviewFeatures();\n if (reparentPopoutWidgets === true) {\n return true;\n }\n if (\n Array.isArray(reparentPopoutWidgets) &&\n reparentPopoutWidgets.indexOf(id) >= 0\n ) {\n return true;\n }\n\n return false;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/widget-action-dropdown/Button.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAU1D,gBAAgB;AAChB,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACtE,IAAI,eAAe,KAAK,SAAS,EAAE;QACjC,OAAO,CACL,oBAAC,QAAQ,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,KAAM,KAAK,CAAC,SAAS,IACpE,KAAK,CAAC,KAAK,CACH,CACZ,CAAC;KACH;IACD,OAAO,CACL,oBAAC,YAAY,IACX,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,KAAK,KACd,KAAK,CAAC,WAAW,IAEpB,KAAK,CAAC,IAAI,CACE,CAChB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { MenuItem } from \"@itwin/itwinui-react\";\nimport { WidgetActionDropdownContext } from \"./MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\n\ninterface ActionButtonProps {\n title?: string;\n icon: React.JSX.Element;\n onClick?: () => void;\n menuProps?: React.ComponentProps<typeof MenuItem>;\n buttonProps?: React.ComponentProps<typeof TabBarButton>;\n}\n\n/** @internal */\nexport function ActionButton(props: ActionButtonProps) {\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem icon={props.icon} onClick={props.onClick} {...props.menuProps}>\n {props.title}\n </MenuItem>\n );\n }\n return (\n <TabBarButton\n onClick={props.onClick}\n title={props.title}\n {...props.buttonProps}\n >\n {props.icon}\n </TabBarButton>\n );\n}\n"]}
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/widget-action-dropdown/Button.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAU1D,gBAAgB;AAChB,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACtE,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,CACL,oBAAC,QAAQ,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,KAAM,KAAK,CAAC,SAAS,IACpE,KAAK,CAAC,KAAK,CACH,CACZ,CAAC;IACJ,CAAC;IACD,OAAO,CACL,oBAAC,YAAY,IACX,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,KAAK,KACd,KAAK,CAAC,WAAW,IAEpB,KAAK,CAAC,IAAI,CACE,CAChB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { MenuItem } from \"@itwin/itwinui-react\";\nimport { WidgetActionDropdownContext } from \"./MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\n\ninterface ActionButtonProps {\n title?: string;\n icon: React.JSX.Element;\n onClick?: () => void;\n menuProps?: React.ComponentProps<typeof MenuItem>;\n buttonProps?: React.ComponentProps<typeof TabBarButton>;\n}\n\n/** @internal */\nexport function ActionButton(props: ActionButtonProps) {\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem icon={props.icon} onClick={props.onClick} {...props.menuProps}>\n {props.title}\n </MenuItem>\n );\n }\n return (\n <TabBarButton\n onClick={props.onClick}\n title={props.title}\n {...props.buttonProps}\n >\n {props.icon}\n </TabBarButton>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAS7C;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAM1B,sHAAsH;IACtH;QACE,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,+CAA+C;IACxC,eAAe,CACpB,IAAY,EACZ,OAAyC;QAEzC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;YACxB,mDAAmD;YACnD,MAAM,IAAI,OAAO,CACf,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAChC,wCAAwC,IAAI,yBAAyB,CACtE,CAAC;SACH;QAED,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;QACxD,uBAAuB;QACvB,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC9B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC5C;IACH,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,QAA8C;QACrE,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;IACxC,CAAC;IAED,0CAA0C;IACnC,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,aAAa;QAClB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,uBAAuB;QACvB,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC9B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC5C;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,eAAe,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { UiError } from \"@itwin/appui-abstract\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** NameToReducerMap used by Reducer Registry\n * @public\n */\nexport interface NameToReducerMap {\n [name: string]: (state: any, action: any) => any;\n}\n\n/** Redux Reducer Registry.\n * Follows the example at http://nicolasgallagher.com/redux-modules-and-code-splitting/\n * Allows for small modules to provide their own reducers so that the they can manage their own state\n * @beta\n */\nexport class ReducerRegistry {\n private _onReducerListChanged:\n | ((reducers: NameToReducerMap) => void)\n | undefined;\n private _reducers: NameToReducerMap;\n\n /** ReducerRegistry constructor that initializes an empty reducer map to be populated by called to registerReducer. */\n constructor() {\n this._reducers = {};\n }\n\n /** Call to register a reducer and its name. */\n public registerReducer(\n name: string,\n reducer: (state: any, action: any) => any\n ) {\n if (this._reducers[name]) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Redux Reducer with matching name of '${name}' is already registered`\n );\n }\n\n this._reducers = { ...this._reducers, [name]: reducer };\n // istanbul ignore else\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n\n /** Supports a single listener which should be the Redux store, see [[StoreManager]].\n * @internal\n */\n public setChangeListener(listener: (reducers: NameToReducerMap) => void) {\n this._onReducerListChanged = listener;\n }\n\n /** Returns map of registered Reducers. */\n public getReducers() {\n return this._reducers;\n }\n\n /** Clear reducers only required for unit testing\n * @internal\n */\n public clearReducers() {\n this._reducers = {};\n // istanbul ignore else\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n}\n\n/** ReducerRegistryInstance singleton instance of Reducer Registry\n * @beta\n */\nexport const ReducerRegistryInstance = new ReducerRegistry();\n"]}
1
+ {"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAS7C;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAM1B,sHAAsH;IACtH;QACE,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,+CAA+C;IACxC,eAAe,CACpB,IAAY,EACZ,OAAyC;QAEzC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YACzB,mDAAmD;YACnD,MAAM,IAAI,OAAO,CACf,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAChC,wCAAwC,IAAI,yBAAyB,CACtE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;QACxD,uBAAuB;QACvB,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,QAA8C;QACrE,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;IACxC,CAAC;IAED,0CAA0C;IACnC,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,aAAa;QAClB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,uBAAuB;QACvB,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,eAAe,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { UiError } from \"@itwin/appui-abstract\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** NameToReducerMap used by Reducer Registry\n * @public\n */\nexport interface NameToReducerMap {\n [name: string]: (state: any, action: any) => any;\n}\n\n/** Redux Reducer Registry.\n * Follows the example at http://nicolasgallagher.com/redux-modules-and-code-splitting/\n * Allows for small modules to provide their own reducers so that the they can manage their own state\n * @beta\n */\nexport class ReducerRegistry {\n private _onReducerListChanged:\n | ((reducers: NameToReducerMap) => void)\n | undefined;\n private _reducers: NameToReducerMap;\n\n /** ReducerRegistry constructor that initializes an empty reducer map to be populated by called to registerReducer. */\n constructor() {\n this._reducers = {};\n }\n\n /** Call to register a reducer and its name. */\n public registerReducer(\n name: string,\n reducer: (state: any, action: any) => any\n ) {\n if (this._reducers[name]) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Redux Reducer with matching name of '${name}' is already registered`\n );\n }\n\n this._reducers = { ...this._reducers, [name]: reducer };\n // istanbul ignore else\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n\n /** Supports a single listener which should be the Redux store, see [[StoreManager]].\n * @internal\n */\n public setChangeListener(listener: (reducers: NameToReducerMap) => void) {\n this._onReducerListChanged = listener;\n }\n\n /** Returns map of registered Reducers. */\n public getReducers() {\n return this._reducers;\n }\n\n /** Clear reducers only required for unit testing\n * @internal\n */\n public clearReducers() {\n this._reducers = {};\n // istanbul ignore else\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n}\n\n/** ReducerRegistryInstance singleton instance of Reducer Registry\n * @beta\n */\nexport const ReducerRegistryInstance = new ReducerRegistry();\n"]}
@@ -40,7 +40,7 @@ const initialState = {
40
40
  defaultViewId: undefined,
41
41
  defaultViewState: undefined,
42
42
  iModelConnection: undefined,
43
- cursorMenuData: undefined,
43
+ cursorMenuData: undefined, // @deprecated in 4.11.x use {@link SessionState.cursorMenuPayload} instead
44
44
  cursorMenuPayload: undefined,
45
45
  };
46
46
  /** An object with a function that creates each SessionStateReducer that can be handled by our reducer.
@@ -1 +1 @@
1
- {"version":3,"file":"SessionState.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/SessionState.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAOH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmC1C;;;GAGG;AACH,MAAM,CAAN,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B,mFAA2D,CAAA;IAC3D,mGAA2E,CAAA;IAC3E,8EAAsD,CAAA;IACtD,8EAAsD,CAAA;IACtD,kFAA0D,CAAA;IAC1D,iGAAyE,CAAA;IACzE,4EAAoD,CAAA;IACpD,mFAA2D,CAAA;IAC3D,4EAAoD,CAAA;AACtD,CAAC,EAVW,oBAAoB,KAApB,oBAAoB,QAU/B;AAmBD,MAAM,qBAAqB,GAAG;IAC5B,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,SAAS;CACa,CAAC;AAEhC,gDAAgD;AAChD,MAAM,YAAY,GAAiB;IACjC,yDAAyD;IACzD,gBAAgB,EAAE,CAAC;IACnB,gHAAgH;IAChH,wBAAwB,EAAE,CAAC,qBAAqB,CAAC;IACjD,uHAAuH;IACvH,oBAAoB,EAAE,qBAAqB,CAAC,EAAE;IAC9C,uGAAuG;IACvG,QAAQ,EAAE,EAAE;IACZ,8BAA8B,EAAE,SAAS;IACzC,aAAa,EAAE,SAAS;IACxB,gBAAgB,EAAE,SAAS;IAC3B,gBAAgB,EAAE,SAAS;IAC3B,cAAc,EAAE,SAAS;IACzB,iBAAiB,EAAE,SAAS;CAC7B,CAAC;AAiBF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iBAAiB;IACf,uBAAuB;IACvB,CAAC,QAAgB,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KAAK,oBAAoB,CAAC,iCAAiC,CAAC,CAAC;YAC3D,OAAO,EAAE,GAAG,KAAK,EAAE,8BAA8B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACrE;QACD,KAAK,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;YAC1C,OAAO,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACpD;QACD,KAAK,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;YAC7C,OAAO,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACvD;QACD,KAAK,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;YAC7C,OAAO,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACvD;QACD,KAAK,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;YAC1C,OAAO;gBACL,GAAG,KAAK;gBACR,iBAAiB,EAAE,MAAM,CAAC,OAA4B;gBACtD,mDAAmD;gBACnD,cAAc,EAAE,MAAM,CAAC,OAAyB;aACjD,CAAC;SACH;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\n// The following definitions are causing extract-api issues on linux so for now just using any until we can figure out the issue.\nimport type { XAndY } from \"@itwin/core-geometry\";\n// import { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport type { CursorMenuItemProps, MenuItemProps } from \"../shared/MenuItem\";\nimport type { ActionsUnion, DeepReadonly } from \"./redux-ts\";\nimport { createAction } from \"./redux-ts\";\n// cSpell:ignore configurableui snapmode toolprompt sessionstate imodelid viewid viewportid rulesetid\n\n/** PresentationSelectionScope holds the id and the localized label for a selection scope supported for a specific iModel.\n * Added to avoid an api-extract error caused by using SelectionScope.\n * @public\n */\nexport interface PresentationSelectionScope {\n id: string;\n label: string;\n}\n\n/** Definition of data added to Redux store to define cursor menu. If menuItems are empty the menu control is not displayed.\n * To close the menu clear the menuItems or pass in undefined as the CursorData.\n * @public\n * @deprecated in 4.11.x use {@link CursorMenuPayload} instead.\n */\nexport interface CursorMenuData {\n position: XAndY;\n childWindowId?: string;\n // eslint-disable-next-line deprecation/deprecation\n items: MenuItemProps[];\n}\n\n/**\n * Definition of data added to Redux store to define cursor menu. If menuItems are empty the menu control is not displayed.\n * To close the menu clear the menuItems or pass in undefined as the CursorData.\n * @public\n */\nexport interface CursorMenuPayload {\n position: XAndY;\n childWindowId?: string;\n items: CursorMenuItemProps[];\n}\n\n/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.\n * Since these are also used as sync ids they should be in lowercase.\n * @public\n */\nexport enum SessionStateActionId {\n SetNumItemsSelected = \"sessionstate:set-num-items-selected\",\n SetAvailableSelectionScopes = \"sessionstate:set-available-selection-scopes\",\n SetSelectionScope = \"sessionstate:set-selection-scope\",\n SetActiveIModelId = \"sessionstate:set-active-imodelid\",\n SetIModelConnection = \"sessionstate:set-imodel-connection\",\n SetDefaultIModelViewportControlId = \"sessionstate:set-default-viewportid\",\n SetDefaultViewId = \"sessionstate:set-default-viewid\",\n SetDefaultViewState = \"sessionstate:set-default-view-state\",\n UpdateCursorMenu = \"sessionstate:update-cursor-menu\",\n}\n\n/** The portion of state managed by the SessionStateReducer.\n * @public\n */\nexport interface SessionState {\n numItemsSelected: number;\n availableSelectionScopes: PresentationSelectionScope[];\n activeSelectionScope: string;\n iModelId: string;\n defaultIModelViewportControlId: string | undefined;\n defaultViewId: string | undefined;\n defaultViewState: any;\n iModelConnection: any;\n // eslint-disable-next-line deprecation/deprecation\n cursorMenuData: CursorMenuData | undefined; // @deprecated in 4.11.x use {@link CursorMenuPayload} instead\n cursorMenuPayload: CursorMenuPayload | undefined;\n}\n\nconst defaultSelectionScope = {\n id: \"element\",\n label: \"Element\",\n} as PresentationSelectionScope;\n\n/** used on first call of SessionStateReducer */\nconst initialState: SessionState = {\n /** number of selected items in Presentation Selection */\n numItemsSelected: 0,\n /** initialize to only support \"Element\" scope, this will be overwritten when iModelConnection is established */\n availableSelectionScopes: [defaultSelectionScope],\n /** initialize to active selection scope to \"Element\", this will be overwritten when iModelConnection is established */\n activeSelectionScope: defaultSelectionScope.id,\n /** set to iModelId if an iModel is active else it is an empty string, so initialize to empty string */\n iModelId: \"\",\n defaultIModelViewportControlId: undefined,\n defaultViewId: undefined,\n defaultViewState: undefined,\n iModelConnection: undefined,\n cursorMenuData: undefined, // @deprecated in 4.11.x use {@link SessionState.cursorMenuPayload} instead\n cursorMenuPayload: undefined,\n};\n\n/** An interface that allows redux connected object to dispatch changes to the SessionState reducer.\n * @beta\n */\nexport interface SessionStateActionsProps {\n setActiveIModelId: typeof SessionStateActions.setActiveIModelId;\n setAvailableSelectionScopes: typeof SessionStateActions.setAvailableSelectionScopes;\n setDefaultIModelViewportControlId: typeof SessionStateActions.setDefaultIModelViewportControlId;\n setDefaultViewId: typeof SessionStateActions.setDefaultViewId;\n setDefaultViewState: typeof SessionStateActions.setDefaultViewState;\n setIModelConnection: typeof SessionStateActions.setIModelConnection;\n setNumItemsSelected: typeof SessionStateActions.setNumItemsSelected;\n setSelectionScope: typeof SessionStateActions.setSelectionScope;\n updateCursorMenu: typeof SessionStateActions.updateCursorMenu;\n}\n\n/** An object with a function that creates each SessionStateReducer that can be handled by our reducer.\n * @public\n */\nexport const SessionStateActions = {\n setActiveIModelId:\n // istanbul ignore next\n (iModelId: string) =>\n createAction(SessionStateActionId.SetActiveIModelId, iModelId),\n setAvailableSelectionScopes:\n // istanbul ignore next\n (availableSelectionScopes: PresentationSelectionScope[]) =>\n createAction(\n SessionStateActionId.SetAvailableSelectionScopes,\n availableSelectionScopes\n ),\n setDefaultIModelViewportControlId: (iModelViewportControlId: string) =>\n createAction(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId\n ),\n setDefaultViewId: (viewId: string) =>\n createAction(SessionStateActionId.SetDefaultViewId, viewId),\n setDefaultViewState:\n // istanbul ignore next\n (viewState: any) =>\n createAction(SessionStateActionId.SetDefaultViewState, viewState),\n setNumItemsSelected: (numSelected: number) =>\n createAction(SessionStateActionId.SetNumItemsSelected, numSelected),\n setIModelConnection:\n // istanbul ignore next\n (iModelConnection: any) =>\n createAction(SessionStateActionId.SetIModelConnection, iModelConnection),\n setSelectionScope:\n // istanbul ignore next\n (activeSelectionScope: string) =>\n createAction(\n SessionStateActionId.SetSelectionScope,\n activeSelectionScope\n ),\n updateCursorMenu:\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n (cursorMenuData: CursorMenuData | CursorMenuPayload) =>\n createAction(SessionStateActionId.UpdateCursorMenu, cursorMenuData),\n};\n\n/** Object that contains available actions that modify SessionState. Parent control's props should\n * extend from SessionStateActionsProps before using this in Redux 'connect' function.\n * @beta\n */\n// ...SessionStateActionsProps\nexport const sessionStateMapDispatchToProps = { ...SessionStateActions };\n\n/** Union of SessionState Redux actions\n * @public\n */\nexport type SessionStateActionsUnion = ActionsUnion<typeof SessionStateActions>;\n\n/** Handles actions to update SessionState.\n * @public\n */\nexport function SessionStateReducer(\n state: SessionState = initialState,\n action: SessionStateActionsUnion\n): DeepReadonly<SessionState> {\n switch (action.type) {\n case SessionStateActionId.SetNumItemsSelected: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, numItemsSelected: action.payload };\n else return { ...state, numItemsSelected: 0 };\n }\n case SessionStateActionId.SetAvailableSelectionScopes: {\n const payloadArray: PresentationSelectionScope[] = [];\n action.payload.forEach((scope) => payloadArray.push(scope));\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, availableSelectionScopes: payloadArray };\n else\n return { ...state, availableSelectionScopes: [defaultSelectionScope] };\n }\n case SessionStateActionId.SetSelectionScope: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, activeSelectionScope: action.payload };\n else return { ...state, activeSelectionScope: defaultSelectionScope.id };\n }\n case SessionStateActionId.SetActiveIModelId: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, iModelId: action.payload };\n else return { ...state, iModelId: \"\" };\n }\n case SessionStateActionId.SetDefaultIModelViewportControlId: {\n return { ...state, defaultIModelViewportControlId: action.payload };\n }\n case SessionStateActionId.SetDefaultViewId: {\n return { ...state, defaultViewId: action.payload };\n }\n case SessionStateActionId.SetDefaultViewState: {\n return { ...state, defaultViewState: action.payload };\n }\n case SessionStateActionId.SetIModelConnection: {\n return { ...state, iModelConnection: action.payload };\n }\n case SessionStateActionId.UpdateCursorMenu: {\n return {\n ...state,\n cursorMenuPayload: action.payload as CursorMenuPayload,\n // eslint-disable-next-line deprecation/deprecation\n cursorMenuData: action.payload as CursorMenuData,\n };\n }\n }\n\n return state;\n}\n"]}
1
+ {"version":3,"file":"SessionState.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/SessionState.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAOH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmC1C;;;GAGG;AACH,MAAM,CAAN,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B,mFAA2D,CAAA;IAC3D,mGAA2E,CAAA;IAC3E,8EAAsD,CAAA;IACtD,8EAAsD,CAAA;IACtD,kFAA0D,CAAA;IAC1D,iGAAyE,CAAA;IACzE,4EAAoD,CAAA;IACpD,mFAA2D,CAAA;IAC3D,4EAAoD,CAAA;AACtD,CAAC,EAVW,oBAAoB,KAApB,oBAAoB,QAU/B;AAmBD,MAAM,qBAAqB,GAAG;IAC5B,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,SAAS;CACa,CAAC;AAEhC,gDAAgD;AAChD,MAAM,YAAY,GAAiB;IACjC,yDAAyD;IACzD,gBAAgB,EAAE,CAAC;IACnB,gHAAgH;IAChH,wB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,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\n// The following definitions are causing extract-api issues on linux so for now just using any until we can figure out the issue.\nimport type { XAndY } from \"@itwin/core-geometry\";\n// import { IModelConnection, ViewState } from \"@itwin/core-frontend\";\nimport type { CursorMenuItemProps, MenuItemProps } from \"../shared/MenuItem\";\nimport type { ActionsUnion, DeepReadonly } from \"./redux-ts\";\nimport { createAction } from \"./redux-ts\";\n// cSpell:ignore configurableui snapmode toolprompt sessionstate imodelid viewid viewportid rulesetid\n\n/** PresentationSelectionScope holds the id and the localized label for a selection scope supported for a specific iModel.\n * Added to avoid an api-extract error caused by using SelectionScope.\n * @public\n */\nexport interface PresentationSelectionScope {\n id: string;\n label: string;\n}\n\n/** Definition of data added to Redux store to define cursor menu. If menuItems are empty the menu control is not displayed.\n * To close the menu clear the menuItems or pass in undefined as the CursorData.\n * @public\n * @deprecated in 4.11.x use {@link CursorMenuPayload} instead.\n */\nexport interface CursorMenuData {\n position: XAndY;\n childWindowId?: string;\n // eslint-disable-next-line deprecation/deprecation\n items: MenuItemProps[];\n}\n\n/**\n * Definition of data added to Redux store to define cursor menu. If menuItems are empty the menu control is not displayed.\n * To close the menu clear the menuItems or pass in undefined as the CursorData.\n * @public\n */\nexport interface CursorMenuPayload {\n position: XAndY;\n childWindowId?: string;\n items: CursorMenuItemProps[];\n}\n\n/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.\n * Since these are also used as sync ids they should be in lowercase.\n * @public\n */\nexport enum SessionStateActionId {\n SetNumItemsSelected = \"sessionstate:set-num-items-selected\",\n SetAvailableSelectionScopes = \"sessionstate:set-available-selection-scopes\",\n SetSelectionScope = \"sessionstate:set-selection-scope\",\n SetActiveIModelId = \"sessionstate:set-active-imodelid\",\n SetIModelConnection = \"sessionstate:set-imodel-connection\",\n SetDefaultIModelViewportControlId = \"sessionstate:set-default-viewportid\",\n SetDefaultViewId = \"sessionstate:set-default-viewid\",\n SetDefaultViewState = \"sessionstate:set-default-view-state\",\n UpdateCursorMenu = \"sessionstate:update-cursor-menu\",\n}\n\n/** The portion of state managed by the SessionStateReducer.\n * @public\n */\nexport interface SessionState {\n numItemsSelected: number;\n availableSelectionScopes: PresentationSelectionScope[];\n activeSelectionScope: string;\n iModelId: string;\n defaultIModelViewportControlId: string | undefined;\n defaultViewId: string | undefined;\n defaultViewState: any;\n iModelConnection: any;\n // eslint-disable-next-line deprecation/deprecation\n cursorMenuData: CursorMenuData | undefined; // @deprecated in 4.11.x use {@link CursorMenuPayload} instead\n cursorMenuPayload: CursorMenuPayload | undefined;\n}\n\nconst defaultSelectionScope = {\n id: \"element\",\n label: \"Element\",\n} as PresentationSelectionScope;\n\n/** used on first call of SessionStateReducer */\nconst initialState: SessionState = {\n /** number of selected items in Presentation Selection */\n numItemsSelected: 0,\n /** initialize to only support \"Element\" scope, this will be overwritten when iModelConnection is established */\n availableSelectionScopes: [defaultSelectionScope],\n /** initialize to active selection scope to \"Element\", this will be overwritten when iModelConnection is established */\n activeSelectionScope: defaultSelectionScope.id,\n /** set to iModelId if an iModel is active else it is an empty string, so initialize to empty string */\n iModelId: \"\",\n defaultIModelViewportControlId: undefined,\n defaultViewId: undefined,\n defaultViewState: undefined,\n iModelConnection: undefined,\n cursorMenuData: undefined, // @deprecated in 4.11.x use {@link SessionState.cursorMenuPayload} instead\n cursorMenuPayload: undefined,\n};\n\n/** An interface that allows redux connected object to dispatch changes to the SessionState reducer.\n * @beta\n */\nexport interface SessionStateActionsProps {\n setActiveIModelId: typeof SessionStateActions.setActiveIModelId;\n setAvailableSelectionScopes: typeof SessionStateActions.setAvailableSelectionScopes;\n setDefaultIModelViewportControlId: typeof SessionStateActions.setDefaultIModelViewportControlId;\n setDefaultViewId: typeof SessionStateActions.setDefaultViewId;\n setDefaultViewState: typeof SessionStateActions.setDefaultViewState;\n setIModelConnection: typeof SessionStateActions.setIModelConnection;\n setNumItemsSelected: typeof SessionStateActions.setNumItemsSelected;\n setSelectionScope: typeof SessionStateActions.setSelectionScope;\n updateCursorMenu: typeof SessionStateActions.updateCursorMenu;\n}\n\n/** An object with a function that creates each SessionStateReducer that can be handled by our reducer.\n * @public\n */\nexport const SessionStateActions = {\n setActiveIModelId:\n // istanbul ignore next\n (iModelId: string) =>\n createAction(SessionStateActionId.SetActiveIModelId, iModelId),\n setAvailableSelectionScopes:\n // istanbul ignore next\n (availableSelectionScopes: PresentationSelectionScope[]) =>\n createAction(\n SessionStateActionId.SetAvailableSelectionScopes,\n availableSelectionScopes\n ),\n setDefaultIModelViewportControlId: (iModelViewportControlId: string) =>\n createAction(\n SessionStateActionId.SetDefaultIModelViewportControlId,\n iModelViewportControlId\n ),\n setDefaultViewId: (viewId: string) =>\n createAction(SessionStateActionId.SetDefaultViewId, viewId),\n setDefaultViewState:\n // istanbul ignore next\n (viewState: any) =>\n createAction(SessionStateActionId.SetDefaultViewState, viewState),\n setNumItemsSelected: (numSelected: number) =>\n createAction(SessionStateActionId.SetNumItemsSelected, numSelected),\n setIModelConnection:\n // istanbul ignore next\n (iModelConnection: any) =>\n createAction(SessionStateActionId.SetIModelConnection, iModelConnection),\n setSelectionScope:\n // istanbul ignore next\n (activeSelectionScope: string) =>\n createAction(\n SessionStateActionId.SetSelectionScope,\n activeSelectionScope\n ),\n updateCursorMenu:\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n (cursorMenuData: CursorMenuData | CursorMenuPayload) =>\n createAction(SessionStateActionId.UpdateCursorMenu, cursorMenuData),\n};\n\n/** Object that contains available actions that modify SessionState. Parent control's props should\n * extend from SessionStateActionsProps before using this in Redux 'connect' function.\n * @beta\n */\n// ...SessionStateActionsProps\nexport const sessionStateMapDispatchToProps = { ...SessionStateActions };\n\n/** Union of SessionState Redux actions\n * @public\n */\nexport type SessionStateActionsUnion = ActionsUnion<typeof SessionStateActions>;\n\n/** Handles actions to update SessionState.\n * @public\n */\nexport function SessionStateReducer(\n state: SessionState = initialState,\n action: SessionStateActionsUnion\n): DeepReadonly<SessionState> {\n switch (action.type) {\n case SessionStateActionId.SetNumItemsSelected: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, numItemsSelected: action.payload };\n else return { ...state, numItemsSelected: 0 };\n }\n case SessionStateActionId.SetAvailableSelectionScopes: {\n const payloadArray: PresentationSelectionScope[] = [];\n action.payload.forEach((scope) => payloadArray.push(scope));\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, availableSelectionScopes: payloadArray };\n else\n return { ...state, availableSelectionScopes: [defaultSelectionScope] };\n }\n case SessionStateActionId.SetSelectionScope: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, activeSelectionScope: action.payload };\n else return { ...state, activeSelectionScope: defaultSelectionScope.id };\n }\n case SessionStateActionId.SetActiveIModelId: {\n // istanbul ignore else\n if (undefined !== action.payload)\n return { ...state, iModelId: action.payload };\n else return { ...state, iModelId: \"\" };\n }\n case SessionStateActionId.SetDefaultIModelViewportControlId: {\n return { ...state, defaultIModelViewportControlId: action.payload };\n }\n case SessionStateActionId.SetDefaultViewId: {\n return { ...state, defaultViewId: action.payload };\n }\n case SessionStateActionId.SetDefaultViewState: {\n return { ...state, defaultViewState: action.payload };\n }\n case SessionStateActionId.SetIModelConnection: {\n return { ...state, iModelConnection: action.payload };\n }\n case SessionStateActionId.UpdateCursorMenu: {\n return {\n ...state,\n cursorMenuPayload: action.payload as CursorMenuPayload,\n // eslint-disable-next-line deprecation/deprecation\n cursorMenuData: action.payload as CursorMenuData,\n };\n }\n }\n\n return state;\n}\n"]}
@@ -16,7 +16,7 @@ import { ReducerRegistryInstance } from "./ReducerRegistry";
16
16
  * and/or extensions are loaded.
17
17
  * @public
18
18
  */
19
- class StateManager {
19
+ export class StateManager {
20
20
  /**
21
21
  * StateManager construct.
22
22
  * @param defaultReducers Default set of Reducers used by the current application. If this object does not contain the [[FrameworkReducer]] it will automatically be added.
@@ -95,5 +95,4 @@ class StateManager {
95
95
  }
96
96
  }
97
97
  StateManager._LOG_CATEGORY = "StateManager";
98
- export { StateManager };
99
98
  //# sourceMappingURL=StateManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/StateManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAKH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAU5D;;;;;GAKG;AACH,MAAa,YAAY;IAOvB;;;OAGG;IACH,YAAY,eAAkC;QAC5C,IAAI,eAAe,EAAE;YACnB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAC1C,kEAAkE;YAClE,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,gBAAgB,CAAC;gBAC1D,IAAI,CAAC,gBAAgB,GAAG;oBACtB,GAAG,eAAe;oBAClB,cAAc,EAAE,gBAAgB;iBACjC,CAAC;SACL;aAAM;YACL,IAAI,CAAC,gBAAgB,GAAG,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;SAC9D;QAED,MAAM,6BAA6B,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC;QAC5E,IAAI,WAAW,GAAQ,IAAI,CAAC,gCAAgC,CAC1D,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CACtC,6BAAgD,EAChD,eAAkC;QAElC,MAAM,WAAW,GAAG;YAClB,GAAG,eAAe;YAClB,GAAG,6BAA6B;SACjC,CAAC;QAEF,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,UAAU;QACtB,YAAY,CAAC,eAAe,GAAG,SAAS,CAAC;IAC3C,CAAC;;AAzGc,0BAAa,GAAG,cAAc,CAAC;SADnC,YAAY","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\n// cSpell:ignore DEVTOOLS\n\nimport type { ReducersMapObject, Store } from \"redux\";\nimport { combineReducers, createStore } from \"redux\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { FrameworkState } from \"./FrameworkState\";\nimport { FrameworkReducer } from \"./FrameworkState\";\nimport type { NameToReducerMap } from \"./ReducerRegistry\";\nimport { ReducerRegistryInstance } from \"./ReducerRegistry\";\n\n/** Generic 'root' state for the appui-react package. Since this state contains common values needed by many applications\n * it is automatically added to the Redux store when using [[StateManager]].\n * @beta\n */\nexport interface FrameworkRootState {\n frameworkState: FrameworkState;\n}\n\n/**\n * Centralized state management class using Redux actions, reducers and store. This class monitors the ReducerRegistry and will\n * automatically update the store when a new reducer is registered. This allows the store to be incrementally constructed as modules\n * and/or extensions are loaded.\n * @public\n */\nexport class StateManager {\n private static _LOG_CATEGORY = \"StateManager\";\n private _store: Store<any>;\n private _defaultReducers: NameToReducerMap;\n\n private static _singletonStore: Store<any> | undefined;\n\n /**\n * StateManager construct.\n * @param defaultReducers Default set of Reducers used by the current application. If this object does not contain the [[FrameworkReducer]] it will automatically be added.\n */\n constructor(defaultReducers?: NameToReducerMap) {\n if (defaultReducers) {\n this._defaultReducers = defaultReducers;\n const keys = Object.keys(defaultReducers);\n // ensure frameworkState is included in the set of defaultReducers\n if (-1 === keys.findIndex((key) => key === \"frameworkState\"))\n this._defaultReducers = {\n ...defaultReducers,\n frameworkState: FrameworkReducer,\n };\n } else {\n this._defaultReducers = { frameworkState: FrameworkReducer };\n }\n\n const dynamicallyRegisteredReducers = ReducerRegistryInstance.getReducers();\n let allReducers: any = this.combineDynamicAndDefaultReducers(\n dynamicallyRegisteredReducers,\n this._defaultReducers\n );\n\n // create the Redux Store.\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n this._store = createStore(\n allReducers,\n (window as any).__REDUX_DEVTOOLS_EXTENSION__ &&\n (window as any).__REDUX_DEVTOOLS_EXTENSION__()\n );\n\n ReducerRegistryInstance.setChangeListener((newDynamicReducers) => {\n allReducers = this.combineDynamicAndDefaultReducers(\n newDynamicReducers,\n this._defaultReducers\n );\n this._store.replaceReducer(allReducers);\n });\n StateManager._singletonStore = this._store;\n }\n\n /** Method to test if the StateManager has been initialized.\n * @param suppressErrorLog If true and the StateManager is not initialized a log message will be output.\n */\n\n public static isInitialized(suppressErrorLog = false): boolean {\n if (!StateManager._singletonStore) {\n if (!suppressErrorLog)\n Logger.logError(\n StateManager._LOG_CATEGORY,\n \"Accessing store before it is created.\"\n );\n return false;\n } else {\n return true;\n }\n }\n\n /** Return the current Redux store. Useful when using connect method to connect a Ui Component to the store. */\n public static get store(): Store<any> {\n if (StateManager.isInitialized()) {\n return StateManager._singletonStore!;\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n StateManager._LOG_CATEGORY,\n `Redux Store has not been initialized`\n );\n }\n }\n\n /** Return the current state from the Redux store. */\n public static get state(): any {\n if (StateManager.isInitialized()) {\n return StateManager._singletonStore!.getState();\n } else {\n return undefined;\n }\n }\n\n private combineDynamicAndDefaultReducers(\n dynamicallyRegisteredReducers: ReducersMapObject,\n defaultReducers: ReducersMapObject\n ) {\n const allReducers = {\n ...defaultReducers,\n ...dynamicallyRegisteredReducers,\n };\n\n return combineReducers(allReducers);\n }\n\n /** To be used only in unit test\n * @internal\n */\n public static clearStore() {\n StateManager._singletonStore = undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/StateManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAKH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAU5D;;;;;GAKG;AACH,MAAM,OAAO,YAAY;IAOvB;;;OAGG;IACH,YAAY,eAAkC;QAC5C,IAAI,eAAe,EAAE,CAAC;YACpB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAC1C,kEAAkE;YAClE,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,gBAAgB,CAAC;gBAC1D,IAAI,CAAC,gBAAgB,GAAG;oBACtB,GAAG,eAAe;oBAClB,cAAc,EAAE,gBAAgB;iBACjC,CAAC;QACN,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,GAAG,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;QAC/D,CAAC;QAED,MAAM,6BAA6B,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC;QAC5E,IAAI,WAAW,GAAQ,IAAI,CAAC,gCAAgC,CAC1D,6BAA6B,EAC7B,IAAI,CAAC,gBAAgB,CACtB,CAAC;QAEF,0BAA0B;QAC1B,uBAAuB;QACvB,mDA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EAChD,eAAkC;QAElC,MAAM,WAAW,GAAG;YAClB,GAAG,eAAe;YAClB,GAAG,6BAA6B;SACjC,CAAC;QAEF,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,UAAU;QACtB,YAAY,CAAC,eAAe,GAAG,SAAS,CAAC;IAC3C,CAAC;;AAzGc,0BAAa,GAAG,cAAc,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\n// cSpell:ignore DEVTOOLS\n\nimport type { ReducersMapObject, Store } from \"redux\";\nimport { combineReducers, createStore } from \"redux\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport { UiError } from \"@itwin/appui-abstract\";\nimport type { FrameworkState } from \"./FrameworkState\";\nimport { FrameworkReducer } from \"./FrameworkState\";\nimport type { NameToReducerMap } from \"./ReducerRegistry\";\nimport { ReducerRegistryInstance } from \"./ReducerRegistry\";\n\n/** Generic 'root' state for the appui-react package. Since this state contains common values needed by many applications\n * it is automatically added to the Redux store when using [[StateManager]].\n * @beta\n */\nexport interface FrameworkRootState {\n frameworkState: FrameworkState;\n}\n\n/**\n * Centralized state management class using Redux actions, reducers and store. This class monitors the ReducerRegistry and will\n * automatically update the store when a new reducer is registered. This allows the store to be incrementally constructed as modules\n * and/or extensions are loaded.\n * @public\n */\nexport class StateManager {\n private static _LOG_CATEGORY = \"StateManager\";\n private _store: Store<any>;\n private _defaultReducers: NameToReducerMap;\n\n private static _singletonStore: Store<any> | undefined;\n\n /**\n * StateManager construct.\n * @param defaultReducers Default set of Reducers used by the current application. If this object does not contain the [[FrameworkReducer]] it will automatically be added.\n */\n constructor(defaultReducers?: NameToReducerMap) {\n if (defaultReducers) {\n this._defaultReducers = defaultReducers;\n const keys = Object.keys(defaultReducers);\n // ensure frameworkState is included in the set of defaultReducers\n if (-1 === keys.findIndex((key) => key === \"frameworkState\"))\n this._defaultReducers = {\n ...defaultReducers,\n frameworkState: FrameworkReducer,\n };\n } else {\n this._defaultReducers = { frameworkState: FrameworkReducer };\n }\n\n const dynamicallyRegisteredReducers = ReducerRegistryInstance.getReducers();\n let allReducers: any = this.combineDynamicAndDefaultReducers(\n dynamicallyRegisteredReducers,\n this._defaultReducers\n );\n\n // create the Redux Store.\n // istanbul ignore next\n // eslint-disable-next-line deprecation/deprecation\n this._store = createStore(\n allReducers,\n (window as any).__REDUX_DEVTOOLS_EXTENSION__ &&\n (window as any).__REDUX_DEVTOOLS_EXTENSION__()\n );\n\n ReducerRegistryInstance.setChangeListener((newDynamicReducers) => {\n allReducers = this.combineDynamicAndDefaultReducers(\n newDynamicReducers,\n this._defaultReducers\n );\n this._store.replaceReducer(allReducers);\n });\n StateManager._singletonStore = this._store;\n }\n\n /** Method to test if the StateManager has been initialized.\n * @param suppressErrorLog If true and the StateManager is not initialized a log message will be output.\n */\n\n public static isInitialized(suppressErrorLog = false): boolean {\n if (!StateManager._singletonStore) {\n if (!suppressErrorLog)\n Logger.logError(\n StateManager._LOG_CATEGORY,\n \"Accessing store before it is created.\"\n );\n return false;\n } else {\n return true;\n }\n }\n\n /** Return the current Redux store. Useful when using connect method to connect a Ui Component to the store. */\n public static get store(): Store<any> {\n if (StateManager.isInitialized()) {\n return StateManager._singletonStore!;\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n StateManager._LOG_CATEGORY,\n `Redux Store has not been initialized`\n );\n }\n }\n\n /** Return the current state from the Redux store. */\n public static get state(): any {\n if (StateManager.isInitialized()) {\n return StateManager._singletonStore!.getState();\n } else {\n return undefined;\n }\n }\n\n private combineDynamicAndDefaultReducers(\n dynamicallyRegisteredReducers: ReducersMapObject,\n defaultReducers: ReducersMapObject\n ) {\n const allReducers = {\n ...defaultReducers,\n ...dynamicallyRegisteredReducers,\n };\n\n return combineReducers(allReducers);\n }\n\n /** To be used only in unit test\n * @internal\n */\n public static clearStore() {\n StateManager._singletonStore = undefined;\n }\n}\n"]}
@@ -47,9 +47,9 @@ const iModelAndViewMapStateToProps = (mapStateToProps) => {
47
47
  return {};
48
48
  const props = {
49
49
  ...ownProps,
50
- iModelConnection: frameworkState.sessionState.iModelConnection,
51
- iModel: frameworkState.sessionState.iModelConnection,
52
- imodel: frameworkState.sessionState.iModelConnection,
50
+ iModelConnection: frameworkState.sessionState.iModelConnection, // this prop is required by Unified Selection (TODO: standardize on use)
51
+ iModel: frameworkState.sessionState.iModelConnection, // this prop is needed by many components
52
+ imodel: frameworkState.sessionState.iModelConnection, // this prop is needed by ViewportProps
53
53
  viewState: frameworkState.sessionState.defaultViewState,
54
54
  };
55
55
  if (mapStateToProps)
@@ -1 +1 @@
1
- {"version":3,"file":"connectIModel.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/connectIModel.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,oBAAoB,GAAG,CAAC,eAAoB,EAAE,EAAE;IACpD,OAAO,CAAC,KAAU,EAAE,QAAa,EAAE,EAAE;QACnC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,8CAA8C;QAE3G,0BAA0B;QAC1B,IAAI,CAAC,cAAc,EAAE;YACnB,IAAI,eAAe;gBAAE,OAAO,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;YAC7D,OAAO,EAAE,CAAC;SACX;QAED,MAAM,UAAU,GAAG;YACjB,gBAAgB,EAAE,cAAc,CAAC,YAAY,CAAC,gBAAgB;YAC9D,MAAM,EAAE,cAAc,CAAC,YAAY,CAAC,gBAAgB;YACpD,MAAM,EAAE,cAAc,CAAC,YAAY,CAAC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,eAAe,CAAC,EAC7C,kBAAkB,CACnB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module State\n */\n\nimport { connect } from \"react-redux\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** Private function that will map store's iModelConnection to the 'iModelConnection', 'iModel', and 'imodel' properties of props. This\n * is not ideal but it is a result of not having standard prop name for an iModelConnection.\n */\nconst iModeMapStateToProps = (mapStateToProps: any) => {\n return (state: any, ownProps: any) => {\n const frameworkState = state[UiFramework.frameworkStateKey]; // since app sets up key, don't hard-code name\n\n /* istanbul ignore next */\n if (!frameworkState) {\n if (mapStateToProps) return mapStateToProps(state, ownProps);\n return {};\n }\n\n const storeProps = {\n iModelConnection: frameworkState.sessionState.iModelConnection,\n imodel: frameworkState.sessionState.iModelConnection,\n iModel: frameworkState.sessionState.iModelConnection,\n };\n\n // istanbul ignore else\n if (mapStateToProps) {\n return {\n ...storeProps,\n ...mapStateToProps(state, ownProps),\n };\n }\n\n // istanbul ignore next\n return storeProps;\n };\n};\n\n/** Function that will map store's iModelConnection and defaultViewState to the props 'iModelConnection', 'iModel', 'imodel',\n * and 'viewState' property of props\n */\nconst iModelAndViewMapStateToProps = (mapStateToProps: any) => {\n // istanbul ignore next\n return (state: any, ownProps: any) => {\n const frameworkState = state[UiFramework.frameworkStateKey]; // since app sets up key, don't hard-code name\n\n /* istanbul ignore next */\n if (!frameworkState) return {};\n\n const props = {\n ...ownProps,\n iModelConnection: frameworkState.sessionState.iModelConnection, // this prop is required by Unified Selection (TODO: standardize on use)\n iModel: frameworkState.sessionState.iModelConnection, // this prop is needed by many components\n imodel: frameworkState.sessionState.iModelConnection, // this prop is needed by ViewportProps\n viewState: frameworkState.sessionState.defaultViewState,\n };\n if (mapStateToProps) return mapStateToProps(state, props);\n\n return props;\n };\n};\n\n/** Function that will connect a component to the IModelConnection data in the Redux store.\n * @param mapStateToProps optional user function that, if defined, will be executed to provide additional properties from store.\n * @param mapDispatchToProps data passed to Redux connect function.\n * @public\n */\nexport const connectIModelConnection = (\n mapStateToProps?: any,\n mapDispatchToProps?: any\n) => {\n return connect(iModeMapStateToProps(mapStateToProps), mapDispatchToProps);\n};\n\n/** Function that will connect a component to the IModelConnection data in the Redux store\n * @param mapStateToProps optional user function that, if defined, will be executed to provide additional properties from store.\n * @param mapDispatchToProps data passed to Redux connect function.\n * @beta\n *\n * @example\n * // connect component for both getting and setting ImodelConnection data from Redux store.\n * import { connectIModelConnection, sessionStateMapDispatchToProps, SessionStateActionsProps } from \"@itwin/appui-react\";\n *\n * export interface ComponentProps extends SessionStateActionsProps {\n * myData: string;\n * }\n *\n * export const ConnectControl = connectIModelConnection(null, sessionStateMapDispatchToProps)(ComponentClass);\n *\n * // this then allows connected control to update the store using a call like shown below.\n * this.props.setNumItemsSelected(30);\n *\n */\nexport const connectIModelConnectionAndViewState = (\n mapStateToProps?: any,\n mapDispatchToProps?: any\n) => {\n return connect(\n iModelAndViewMapStateToProps(mapStateToProps),\n mapDispatchToProps\n );\n};\n"]}
1
+ {"version":3,"file":"connectIModel.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/connectIModel.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,oBAAoB,GAAG,CAAC,eAAoB,EAAE,EAAE;IACpD,OAAO,CAAC,KAAU,EAAE,QAAa,EAAE,EAAE;QACnC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,8CAA8C;QAE3G,0BAA0B;QAC1B,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,IAAI,eAA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IG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,eAAqB,EACrB,kBAAwB,EACxB,EAAE;IACF,OAAO,OAAO,CAAC,oBAAoB,CAAC,eAAe,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,eAAqB,EACrB,kBAAwB,EACxB,EAAE;IACF,OAAO,OAAO,CACZ,4BAA4B,CAAC,eAAe,CAAC,EAC7C,kBAAkB,CACnB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module State\n */\n\nimport { connect } from \"react-redux\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** Private function that will map store's iModelConnection to the 'iModelConnection', 'iModel', and 'imodel' properties of props. This\n * is not ideal but it is a result of not having standard prop name for an iModelConnection.\n */\nconst iModeMapStateToProps = (mapStateToProps: any) => {\n return (state: any, ownProps: any) => {\n const frameworkState = state[UiFramework.frameworkStateKey]; // since app sets up key, don't hard-code name\n\n /* istanbul ignore next */\n if (!frameworkState) {\n if (mapStateToProps) return mapStateToProps(state, ownProps);\n return {};\n }\n\n const storeProps = {\n iModelConnection: frameworkState.sessionState.iModelConnection,\n imodel: frameworkState.sessionState.iModelConnection,\n iModel: frameworkState.sessionState.iModelConnection,\n };\n\n // istanbul ignore else\n if (mapStateToProps) {\n return {\n ...storeProps,\n ...mapStateToProps(state, ownProps),\n };\n }\n\n // istanbul ignore next\n return storeProps;\n };\n};\n\n/** Function that will map store's iModelConnection and defaultViewState to the props 'iModelConnection', 'iModel', 'imodel',\n * and 'viewState' property of props\n */\nconst iModelAndViewMapStateToProps = (mapStateToProps: any) => {\n // istanbul ignore next\n return (state: any, ownProps: any) => {\n const frameworkState = state[UiFramework.frameworkStateKey]; // since app sets up key, don't hard-code name\n\n /* istanbul ignore next */\n if (!frameworkState) return {};\n\n const props = {\n ...ownProps,\n iModelConnection: frameworkState.sessionState.iModelConnection, // this prop is required by Unified Selection (TODO: standardize on use)\n iModel: frameworkState.sessionState.iModelConnection, // this prop is needed by many components\n imodel: frameworkState.sessionState.iModelConnection, // this prop is needed by ViewportProps\n viewState: frameworkState.sessionState.defaultViewState,\n };\n if (mapStateToProps) return mapStateToProps(state, props);\n\n return props;\n };\n};\n\n/** Function that will connect a component to the IModelConnection data in the Redux store.\n * @param mapStateToProps optional user function that, if defined, will be executed to provide additional properties from store.\n * @param mapDispatchToProps data passed to Redux connect function.\n * @public\n */\nexport const connectIModelConnection = (\n mapStateToProps?: any,\n mapDispatchToProps?: any\n) => {\n return connect(iModeMapStateToProps(mapStateToProps), mapDispatchToProps);\n};\n\n/** Function that will connect a component to the IModelConnection data in the Redux store\n * @param mapStateToProps optional user function that, if defined, will be executed to provide additional properties from store.\n * @param mapDispatchToProps data passed to Redux connect function.\n * @beta\n *\n * @example\n * // connect component for both getting and setting ImodelConnection data from Redux store.\n * import { connectIModelConnection, sessionStateMapDispatchToProps, SessionStateActionsProps } from \"@itwin/appui-react\";\n *\n * export interface ComponentProps extends SessionStateActionsProps {\n * myData: string;\n * }\n *\n * export const ConnectControl = connectIModelConnection(null, sessionStateMapDispatchToProps)(ComponentClass);\n *\n * // this then allows connected control to update the store using a call like shown below.\n * this.props.setNumItemsSelected(30);\n *\n */\nexport const connectIModelConnectionAndViewState = (\n mapStateToProps?: any,\n mapDispatchToProps?: any\n) => {\n return connect(\n iModelAndViewMapStateToProps(mapStateToProps),\n mapDispatchToProps\n );\n};\n"]}
@@ -65,19 +65,18 @@ class SubCategoryOverrideProvider {
65
65
  * Interface for class that handles Hide, Isolate, and Emphasize Actions
66
66
  * @public
67
67
  */
68
- class HideIsolateEmphasizeActionHandler {
68
+ export class HideIsolateEmphasizeActionHandler {
69
69
  /** String Id sent to allow UI to refresh its display state. */
70
70
  static get hideIsolateEmphasizeUiSyncId() {
71
71
  return "selection-context-emphasize-elements-changed";
72
72
  }
73
73
  }
74
74
  HideIsolateEmphasizeActionHandler.emphasizeElementsChanged = new BeEvent();
75
- export { HideIsolateEmphasizeActionHandler };
76
75
  /** Provides helper functions for doing commands on logical selection like categories and subjects.
77
76
  * @public
78
77
  */
79
78
  // istanbul ignore next
80
- class HideIsolateEmphasizeManager extends HideIsolateEmphasizeActionHandler {
79
+ export class HideIsolateEmphasizeManager extends HideIsolateEmphasizeActionHandler {
81
80
  /** Returns true if there is only a category hilited. */
82
81
  static categorySelected(vp) {
83
82
  const subcategories = vp.iModel.hilited.subcategories;
@@ -557,5 +556,4 @@ class HideIsolateEmphasizeManager extends HideIsolateEmphasizeActionHandler {
557
556
  }
558
557
  HideIsolateEmphasizeManager._overrideCategoryIds = new Map();
559
558
  HideIsolateEmphasizeManager._overrideModelIds = new Map();
560
- export { HideIsolateEmphasizeManager };
561
559
  //# sourceMappingURL=HideIsolateEmphasizeManager.js.map