@itwin/appui-react 4.9.0-dev.1 → 4.10.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/README.md +1 -1
- package/lib/cjs/appui-react/UiFramework.js +4 -7
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +2 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts +2 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/Calculator.d.ts +1 -1
- package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts +1 -1
- package/lib/cjs/appui-react/accudraw/MenuButton.d.ts +1 -1
- package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts +1 -1
- package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.js +7 -7
- package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +4 -4
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +8 -9
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +10 -10
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts +2 -2
- package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.scss +15 -1
- package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
- package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/TimeTracker.js +1 -2
- package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +9 -12
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts +2 -2
- package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/DefaultViewOverlay.js +3 -4
- package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +3 -3
- package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.js +1 -2
- package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.d.ts +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.js +4 -7
- package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +1 -2
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentViewManager.js +2 -2
- package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/Pane.d.ts +1 -1
- package/lib/cjs/appui-react/content/split-pane/Pane.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts +1 -1
- package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js +10 -12
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +5 -5
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +5 -5
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -6
- package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -3
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +2 -2
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +6 -6
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +4 -4
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.js +5 -5
- package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +44 -45
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +3 -3
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +6 -6
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +2 -3
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
- package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
- package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +8 -13
- package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
- package/lib/cjs/appui-react/layout/_prefix.scss +33 -0
- package/lib/cjs/appui-react/layout/_safearea.scss +26 -0
- package/lib/cjs/appui-react/layout/_scrollbar.scss +20 -0
- package/lib/cjs/appui-react/layout/_target.scss +10 -0
- package/lib/cjs/appui-react/layout/_widgetopacity.scss +13 -0
- package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts +42 -0
- package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Backstage.js +53 -0
- package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Backstage.scss +90 -0
- package/lib/cjs/appui-react/layout/backstage/Item.d.ts +38 -0
- package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Item.js +33 -0
- package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Item.scss +103 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.d.ts +13 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.js +24 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.scss +10 -0
- package/lib/cjs/appui-react/layout/backstage/_variables.scss +32 -0
- package/lib/cjs/appui-react/layout/base/DragManager.d.ts +183 -0
- package/lib/cjs/appui-react/layout/base/DragManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/DragManager.js +496 -0
- package/lib/cjs/appui-react/layout/base/DragManager.js.map +1 -0
- package/lib/cjs/appui-react/layout/base/Ellipsis.d.ts +11 -0
- package/lib/cjs/appui-react/layout/base/Ellipsis.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/Ellipsis.js +25 -0
- package/lib/cjs/appui-react/layout/base/Ellipsis.js.map +1 -0
- package/lib/cjs/appui-react/layout/base/Ellipsis.scss +20 -0
- package/lib/cjs/appui-react/layout/base/LayoutStore.d.ts +19 -0
- package/lib/cjs/appui-react/layout/base/LayoutStore.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/LayoutStore.js +38 -0
- package/lib/cjs/appui-react/layout/base/LayoutStore.js.map +1 -0
- package/lib/cjs/appui-react/layout/base/NineZone.d.ts +80 -0
- package/lib/cjs/appui-react/layout/base/NineZone.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/NineZone.js +174 -0
- package/lib/cjs/appui-react/layout/base/NineZone.js.map +1 -0
- package/lib/cjs/appui-react/layout/base/SafeAreaInsets.d.ts +18 -0
- package/lib/cjs/appui-react/layout/base/SafeAreaInsets.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/SafeAreaInsets.js +36 -0
- package/lib/cjs/appui-react/layout/base/SafeAreaInsets.js.map +1 -0
- package/lib/cjs/appui-react/layout/base/usePointerCaptor.d.ts +15 -0
- package/lib/cjs/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/base/usePointerCaptor.js +106 -0
- package/lib/cjs/appui-react/layout/base/usePointerCaptor.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Footer.d.ts +33 -0
- package/lib/cjs/appui-react/layout/footer/Footer.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Footer.js +30 -0
- package/lib/cjs/appui-react/layout/footer/Footer.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Footer.scss +61 -0
- package/lib/cjs/appui-react/layout/footer/Indicator.d.ts +23 -0
- package/lib/cjs/appui-react/layout/footer/Indicator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Indicator.js +23 -0
- package/lib/cjs/appui-react/layout/footer/Indicator.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Indicator.scss +39 -0
- package/lib/cjs/appui-react/layout/footer/Popup.d.ts +12 -0
- package/lib/cjs/appui-react/layout/footer/Popup.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Popup.js +25 -0
- package/lib/cjs/appui-react/layout/footer/Popup.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/Popup.scss +19 -0
- package/lib/cjs/appui-react/layout/footer/_variables.scss +43 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Button.d.ts +23 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Button.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Button.js +25 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Button.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Button.scss +23 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts +22 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js +26 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.scss +14 -0
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts +21 -0
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js +25 -0
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.scss +30 -0
- package/lib/cjs/appui-react/layout/footer/dialog/_variables.scss +8 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Dialog.d.ts +29 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Dialog.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Dialog.js +32 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Dialog.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Dialog.scss +64 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Indicator.d.ts +29 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Indicator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Indicator.js +33 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Indicator.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Indicator.scss +106 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Message.d.ts +22 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Message.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Message.js +26 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Message.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Message.scss +41 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Tab.d.ts +24 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Tab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Tab.js +26 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Tab.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/message-center/Tab.scss +60 -0
- package/lib/cjs/appui-react/layout/footer/message-center/_variables.scss +5 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Indicator.d.ts +27 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Indicator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Indicator.js +29 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Indicator.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Indicator.scss +44 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts +24 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js +29 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.scss +22 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts +26 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js +28 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.scss +48 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts +26 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js +29 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.scss +18 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Indicator.d.ts +27 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Indicator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Indicator.js +30 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Indicator.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Indicator.scss +80 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts +24 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js +31 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.scss +30 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts +20 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js +24 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.scss +13 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts +13 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +24 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.scss +13 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts +20 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js +26 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.scss +20 -0
- package/lib/cjs/appui-react/layout/outline/PanelOutline.d.ts +10 -0
- package/lib/cjs/appui-react/layout/outline/PanelOutline.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/outline/PanelOutline.js +69 -0
- package/lib/cjs/appui-react/layout/outline/PanelOutline.js.map +1 -0
- package/lib/cjs/appui-react/layout/outline/PanelOutline.scss +72 -0
- package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts +13 -0
- package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/outline/SectionOutline.js +73 -0
- package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -0
- package/lib/cjs/appui-react/layout/outline/SectionOutline.scss +47 -0
- package/lib/cjs/appui-react/layout/outline/TabOutline.d.ts +8 -0
- package/lib/cjs/appui-react/layout/outline/TabOutline.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/outline/TabOutline.js +42 -0
- package/lib/cjs/appui-react/layout/outline/TabOutline.js.map +1 -0
- package/lib/cjs/appui-react/layout/outline/TabOutline.scss +18 -0
- package/lib/cjs/appui-react/layout/outline/WidgetOutline.d.ts +8 -0
- package/lib/cjs/appui-react/layout/outline/WidgetOutline.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/outline/WidgetOutline.js +42 -0
- package/lib/cjs/appui-react/layout/outline/WidgetOutline.js.map +1 -0
- package/lib/cjs/appui-react/layout/outline/WidgetOutline.scss +16 -0
- package/lib/cjs/appui-react/layout/outline/_variables.scss +7 -0
- package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts +42 -0
- package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/popup/Tooltip.js +73 -0
- package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -0
- package/lib/cjs/appui-react/layout/popup/Tooltip.scss +24 -0
- package/lib/cjs/appui-react/layout/state/DropTargetState.d.ts +67 -0
- package/lib/cjs/appui-react/layout/state/DropTargetState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/DropTargetState.js +50 -0
- package/lib/cjs/appui-react/layout/state/DropTargetState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts +274 -0
- package/lib/cjs/appui-react/layout/state/NineZoneAction.d.ts.map +1 -0
- package/lib/{esm/appui-react/safearea/SafeAreaHelpers.js → cjs/appui-react/layout/state/NineZoneAction.js} +4 -6
- package/lib/cjs/appui-react/layout/state/NineZoneAction.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/NineZoneState.d.ts +24 -0
- package/lib/cjs/appui-react/layout/state/NineZoneState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/NineZoneState.js +40 -0
- package/lib/cjs/appui-react/layout/state/NineZoneState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.d.ts +8 -0
- package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.js +812 -0
- package/lib/cjs/appui-react/layout/state/NineZoneStateReducer.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/PanelState.d.ts +44 -0
- package/lib/cjs/appui-react/layout/state/PanelState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/PanelState.js +22 -0
- package/lib/cjs/appui-react/layout/state/PanelState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/SavedTabState.d.ts +24 -0
- package/lib/cjs/appui-react/layout/state/SavedTabState.d.ts.map +1 -0
- package/lib/cjs/appui-react/{safearea/SafeAreaHelpers.js → layout/state/SavedTabState.js} +2 -8
- package/lib/cjs/appui-react/layout/state/SavedTabState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/TabLocation.d.ts +35 -0
- package/lib/cjs/appui-react/layout/state/TabLocation.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/TabLocation.js +60 -0
- package/lib/cjs/appui-react/layout/state/TabLocation.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/TabState.d.ts +34 -0
- package/lib/cjs/appui-react/layout/state/TabState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/TabState.js +10 -0
- package/lib/cjs/appui-react/layout/state/TabState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/ToolSettingsState.d.ts +18 -0
- package/lib/cjs/appui-react/layout/state/ToolSettingsState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/ToolSettingsState.js +10 -0
- package/lib/cjs/appui-react/layout/state/ToolSettingsState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetLocation.d.ts +32 -0
- package/lib/cjs/appui-react/layout/state/WidgetLocation.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetLocation.js +57 -0
- package/lib/cjs/appui-react/layout/state/WidgetLocation.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetRestoreState.d.ts +23 -0
- package/lib/cjs/appui-react/layout/state/WidgetRestoreState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetRestoreState.js +21 -0
- package/lib/cjs/appui-react/layout/state/WidgetRestoreState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetState.d.ts +48 -0
- package/lib/cjs/appui-react/layout/state/WidgetState.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/WidgetState.js +10 -0
- package/lib/cjs/appui-react/layout/state/WidgetState.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/activateDroppedTab.d.ts +5 -0
- package/lib/cjs/appui-react/layout/state/activateDroppedTab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/activateDroppedTab.js +38 -0
- package/lib/cjs/appui-react/layout/state/activateDroppedTab.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts +39 -0
- package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js +99 -0
- package/lib/cjs/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts +26 -0
- package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js +107 -0
- package/lib/cjs/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.d.ts +41 -0
- package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.js +196 -0
- package/lib/cjs/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/ToolSettingsStateHelpers.d.ts +14 -0
- package/lib/cjs/appui-react/layout/state/internal/ToolSettingsStateHelpers.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/ToolSettingsStateHelpers.js +60 -0
- package/lib/cjs/appui-react/layout/state/internal/ToolSettingsStateHelpers.js.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.d.ts +48 -0
- package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js +319 -0
- package/lib/cjs/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/MergeTarget.d.ts +13 -0
- package/lib/cjs/appui-react/layout/target/MergeTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/MergeTarget.js +47 -0
- package/lib/cjs/appui-react/layout/target/MergeTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/MergeTarget.scss +17 -0
- package/lib/cjs/appui-react/layout/target/PanelTarget.d.ts +13 -0
- package/lib/cjs/appui-react/layout/target/PanelTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/PanelTarget.js +45 -0
- package/lib/cjs/appui-react/layout/target/PanelTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/PanelTarget.scss +27 -0
- package/lib/cjs/appui-react/layout/target/PanelTargets.d.ts +8 -0
- package/lib/cjs/appui-react/layout/target/PanelTargets.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/PanelTargets.js +67 -0
- package/lib/cjs/appui-react/layout/target/PanelTargets.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/PanelTargets.scss +50 -0
- package/lib/cjs/appui-react/layout/target/SectionTarget.d.ts +17 -0
- package/lib/cjs/appui-react/layout/target/SectionTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/SectionTarget.js +67 -0
- package/lib/cjs/appui-react/layout/target/SectionTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/SectionTarget.scss +50 -0
- package/lib/cjs/appui-react/layout/target/SectionTargets.d.ts +13 -0
- package/lib/cjs/appui-react/layout/target/SectionTargets.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/SectionTargets.js +26 -0
- package/lib/cjs/appui-react/layout/target/SectionTargets.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/SectionTargets.scss +13 -0
- package/lib/cjs/appui-react/layout/target/TabTarget.d.ts +8 -0
- package/lib/cjs/appui-react/layout/target/TabTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/TabTarget.js +63 -0
- package/lib/cjs/appui-react/layout/target/TabTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/TabTarget.scss +30 -0
- package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts +14 -0
- package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/TargetContainer.js +20 -0
- package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/TargetContainer.scss +17 -0
- package/lib/cjs/appui-react/layout/target/TitleBarTarget.d.ts +8 -0
- package/lib/cjs/appui-react/layout/target/TitleBarTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/TitleBarTarget.js +52 -0
- package/lib/cjs/appui-react/layout/target/TitleBarTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/TitleBarTarget.scss +17 -0
- package/lib/cjs/appui-react/layout/target/WidgetTarget.d.ts +8 -0
- package/lib/cjs/appui-react/layout/target/WidgetTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/WidgetTarget.js +25 -0
- package/lib/cjs/appui-react/layout/target/WidgetTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/WidgetTarget.scss +11 -0
- package/lib/cjs/appui-react/layout/target/_variables.scss +64 -0
- package/lib/cjs/appui-react/layout/target/useAllowedPanelTarget.d.ts +5 -0
- package/lib/cjs/appui-react/layout/target/useAllowedPanelTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/useAllowedPanelTarget.js +24 -0
- package/lib/cjs/appui-react/layout/target/useAllowedPanelTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/useAllowedSideTarget.d.ts +9 -0
- package/lib/cjs/appui-react/layout/target/useAllowedSideTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/useAllowedSideTarget.js +56 -0
- package/lib/cjs/appui-react/layout/target/useAllowedSideTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/target/useAllowedWidgetTarget.d.ts +6 -0
- package/lib/cjs/appui-react/layout/target/useAllowedWidgetTarget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/target/useAllowedWidgetTarget.js +33 -0
- package/lib/cjs/appui-react/layout/target/useAllowedWidgetTarget.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts +50 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.js +265 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.scss +48 -0
- package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts +17 -0
- package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Handle.js +45 -0
- package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Handle.scss +23 -0
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts +20 -0
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.js +30 -0
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.scss +28 -0
- package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts +21 -0
- package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Panel.js +23 -0
- package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Panel.scss +11 -0
- package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts +18 -0
- package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Setting.js +26 -0
- package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Setting.scss +22 -0
- package/lib/cjs/appui-react/layout/widget/Button.d.ts +7 -0
- package/lib/cjs/appui-react/layout/widget/Button.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Button.js +17 -0
- package/lib/cjs/appui-react/layout/widget/Button.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Buttons.d.ts +12 -0
- package/lib/cjs/appui-react/layout/widget/Buttons.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Buttons.js +85 -0
- package/lib/cjs/appui-react/layout/widget/Buttons.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Buttons.scss +10 -0
- package/lib/cjs/appui-react/layout/widget/Content.d.ts +19 -0
- package/lib/cjs/appui-react/layout/widget/Content.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Content.js +36 -0
- package/lib/cjs/appui-react/layout/widget/Content.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Content.scss +13 -0
- package/lib/cjs/appui-react/layout/widget/ContentContainer.d.ts +12 -0
- package/lib/cjs/appui-react/layout/widget/ContentContainer.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentContainer.js +39 -0
- package/lib/cjs/appui-react/layout/widget/ContentContainer.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentContainer.scss +24 -0
- package/lib/cjs/appui-react/layout/widget/ContentManager.d.ts +30 -0
- package/lib/cjs/appui-react/layout/widget/ContentManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentManager.js +44 -0
- package/lib/cjs/appui-react/layout/widget/ContentManager.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentRenderer.d.ts +20 -0
- package/lib/cjs/appui-react/layout/widget/ContentRenderer.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentRenderer.js +81 -0
- package/lib/cjs/appui-react/layout/widget/ContentRenderer.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ContentRenderer.scss +18 -0
- package/lib/cjs/appui-react/layout/widget/Dock.d.ts +7 -0
- package/lib/cjs/appui-react/layout/widget/Dock.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Dock.js +26 -0
- package/lib/cjs/appui-react/layout/widget/Dock.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingTab.d.ts +10 -0
- package/lib/cjs/appui-react/layout/widget/FloatingTab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingTab.js +68 -0
- package/lib/cjs/appui-react/layout/widget/FloatingTab.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingTab.scss +35 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidget.d.ts +33 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidget.js +276 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidget.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidget.scss +140 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidgets.d.ts +9 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidgets.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidgets.js +27 -0
- package/lib/cjs/appui-react/layout/widget/FloatingWidgets.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Menu.d.ts +16 -0
- package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Menu.js +23 -0
- package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Menu.scss +14 -0
- package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts +13 -0
- package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/MenuTab.js +56 -0
- package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/MenuTab.scss +58 -0
- package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts +30 -0
- package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/NavigationArea.js +26 -0
- package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/NavigationArea.scss +55 -0
- package/lib/cjs/appui-react/layout/widget/Overflow.d.ts +20 -0
- package/lib/cjs/appui-react/layout/widget/Overflow.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Overflow.js +60 -0
- package/lib/cjs/appui-react/layout/widget/Overflow.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Overflow.scss +59 -0
- package/lib/cjs/appui-react/layout/widget/PanelWidget.d.ts +22 -0
- package/lib/cjs/appui-react/layout/widget/PanelWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PanelWidget.js +154 -0
- package/lib/cjs/appui-react/layout/widget/PanelWidget.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PanelWidget.scss +62 -0
- package/lib/cjs/appui-react/layout/widget/PinToggle.d.ts +7 -0
- package/lib/cjs/appui-react/layout/widget/PinToggle.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PinToggle.js +34 -0
- package/lib/cjs/appui-react/layout/widget/PinToggle.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PopoutToggle.d.ts +9 -0
- package/lib/cjs/appui-react/layout/widget/PopoutToggle.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PopoutToggle.js +39 -0
- package/lib/cjs/appui-react/layout/widget/PopoutToggle.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PreviewHorizontalPanelAlign.d.ts +29 -0
- package/lib/cjs/appui-react/layout/widget/PreviewHorizontalPanelAlign.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PreviewHorizontalPanelAlign.js +120 -0
- package/lib/cjs/appui-react/layout/widget/PreviewHorizontalPanelAlign.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PreviewMaximizeToggle.d.ts +30 -0
- package/lib/cjs/appui-react/layout/widget/PreviewMaximizeToggle.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/PreviewMaximizeToggle.js +65 -0
- package/lib/cjs/appui-react/layout/widget/PreviewMaximizeToggle.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/SendBack.d.ts +41 -0
- package/lib/cjs/appui-react/layout/widget/SendBack.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/SendBack.js +111 -0
- package/lib/cjs/appui-react/layout/widget/SendBack.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Tab.d.ts +44 -0
- package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Tab.js +252 -0
- package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Tab.scss +82 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.d.ts +18 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.js +127 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.scss +30 -0
- package/lib/cjs/appui-react/layout/widget/Tabs.d.ts +24 -0
- package/lib/cjs/appui-react/layout/widget/Tabs.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Tabs.js +88 -0
- package/lib/cjs/appui-react/layout/widget/Tabs.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Tabs.scss +10 -0
- package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts +32 -0
- package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ToolsArea.js +32 -0
- package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/ToolsArea.scss +49 -0
- package/lib/cjs/appui-react/layout/widget/Widget.d.ts +38 -0
- package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Widget.js +150 -0
- package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/Widget.scss +12 -0
- package/lib/cjs/appui-react/layout/widget/_variables.scss +46 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +24 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/App.js +33 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/App.scss +79 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +20 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.js +27 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.scss +9 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts +28 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.js +44 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.scss +52 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts +20 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js +26 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.scss +46 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Icon.d.ts +25 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Icon.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Icon.js +29 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Icon.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/Icon.scss +49 -0
- package/lib/cjs/appui-react/layout/widget/tools/button/_variables.scss +38 -0
- package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.d.ts +6 -0
- package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.js +20 -0
- package/lib/cjs/appui-react/layout/widget/useIsToolSettingsTab.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/AppContent.d.ts +11 -0
- package/lib/cjs/appui-react/layout/widget-panels/AppContent.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/AppContent.js +80 -0
- package/lib/cjs/appui-react/layout/widget-panels/AppContent.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/CenterContent.d.ts +10 -0
- package/lib/cjs/appui-react/layout/widget-panels/CenterContent.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/CenterContent.js +23 -0
- package/lib/cjs/appui-react/layout/widget-panels/CenterContent.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/CenterContent.scss +7 -0
- package/lib/cjs/appui-react/layout/widget-panels/Content.d.ts +21 -0
- package/lib/cjs/appui-react/layout/widget-panels/Content.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Content.js +21 -0
- package/lib/cjs/appui-react/layout/widget-panels/Content.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Content.scss +37 -0
- package/lib/cjs/appui-react/layout/widget-panels/CursorOverlay.d.ts +14 -0
- package/lib/cjs/appui-react/layout/widget-panels/CursorOverlay.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/CursorOverlay.js +34 -0
- package/lib/cjs/appui-react/layout/widget-panels/CursorOverlay.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/CursorOverlay.scss +26 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts +17 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.js +63 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.scss +37 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts +15 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.js +209 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.scss +138 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panel.d.ts +37 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panel.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panel.js +124 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panel.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panel.scss +327 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelSections.d.ts +7 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelSections.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelSections.js +118 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelSections.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelTypes.d.ts +15 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelTypes.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelTypes.js +3 -0
- package/lib/cjs/appui-react/layout/widget-panels/PanelTypes.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panels.d.ts +24 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panels.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panels.js +48 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panels.js.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Panels.scss +70 -0
- package/lib/cjs/appui-react/layout/widget-panels/_variables.scss +6 -0
- package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.d.ts +13 -0
- package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.d.ts.map +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js +171 -0
- package/lib/cjs/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -0
- package/lib/cjs/appui-react/messages/HollowIcon.d.ts +2 -2
- package/lib/cjs/appui-react/messages/HollowIcon.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageLabel.d.ts +2 -2
- package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.js +2 -4
- package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageRenderer.js +5 -7
- package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
- package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.js +4 -4
- package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -2
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +18 -17
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.d.ts +3 -3
- package/lib/cjs/appui-react/pickers/ListPicker.scss +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.js +5 -6
- package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/cjs/appui-react/popup/CardPopup.d.ts +2 -2
- package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +1 -1
- package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts +2 -2
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +1 -2
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +2 -2
- package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
- package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/PopupManager.js +5 -6
- package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts +2 -2
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +1 -1
- package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +1 -1
- package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts +30 -3
- package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
- package/lib/cjs/appui-react/preview/PreviewFeatures.js +4 -1
- package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -1
- package/lib/cjs/appui-react/preview/widget-action-dropdown/Button.d.ts +17 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/Button.d.ts.map +1 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/Button.js +24 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/Button.js.map +1 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.d.ts +13 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.d.ts.map +1 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.js +68 -0
- package/lib/cjs/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -0
- package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts +2 -2
- package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +3 -1
- package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +2 -2
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts +2 -2
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +2 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts +2 -2
- package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +2 -2
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +2 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +14 -19
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Field.js +3 -3
- package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Field.scss +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.d.ts +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.js +1 -2
- package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.scss +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.js +4 -4
- package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/OverflowPanel.d.ts +1 -1
- package/lib/cjs/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Popup.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Popup.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Popup.js +2 -2
- package/lib/cjs/appui-react/statusbar/Popup.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.scss +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +7 -7
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.js +7 -10
- package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts +3 -3
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +7 -7
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Button.js +2 -2
- package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts +3 -3
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +3 -3
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +2 -2
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/MessageCenter.js +12 -8
- package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.d.ts +3 -3
- package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.js +9 -8
- package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts +3 -3
- package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionCount.js +5 -5
- package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +4 -4
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.js +4 -4
- package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.scss +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.js +12 -11
- package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +23 -18
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts +1 -0
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.js +3 -2
- package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.scss +9 -0
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts +2 -2
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +6 -4
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -4
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +10 -17
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -2
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +20 -22
- package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +9 -10
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +8 -14
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
- package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +4 -4
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
- package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.d.ts +2 -2
- package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.js +19 -19
- package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/FloatingWidget.d.ts +2 -2
- package/lib/cjs/appui-react/widget-panels/FloatingWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/FloatingWidget.js +2 -2
- package/lib/cjs/appui-react/widget-panels/FloatingWidget.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +9 -7
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.js +54 -43
- package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.scss +6 -2
- package/lib/cjs/appui-react/widget-panels/FrontstageContent.d.ts +5 -2
- package/lib/cjs/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts +5 -2
- package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts +2 -2
- package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Tab.d.ts +3 -3
- package/lib/cjs/appui-react/widget-panels/Tab.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Tab.js +6 -6
- package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +6 -6
- package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js +24 -29
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Toolbars.d.ts +2 -2
- package/lib/cjs/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Toolbars.js +2 -3
- package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useTransientState.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useTransientState.js +6 -2
- package/lib/cjs/appui-react/widget-panels/useTransientState.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +9 -6
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js +3 -3
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts +3 -3
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +6 -6
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +3 -3
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -5
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetHost.js +2 -3
- package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/cjs/appui-react/widgets/useWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/useWidget.js +14 -13
- package/lib/cjs/appui-react/widgets/useWidget.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +4 -7
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +2 -2
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -2
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts +2 -2
- package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/Calculator.d.ts +1 -1
- package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts +1 -1
- package/lib/esm/appui-react/accudraw/MenuButton.d.ts +1 -1
- package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts +1 -1
- package/lib/esm/appui-react/accudraw/SquareButton.d.ts +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.js +6 -6
- package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +4 -4
- package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js +6 -7
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +9 -9
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts +2 -2
- package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.scss +15 -1
- package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
- package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
- package/lib/esm/appui-react/configurableui/TimeTracker.js +1 -2
- package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts +1 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js +9 -12
- package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts +2 -2
- package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
- package/lib/esm/appui-react/content/DefaultViewOverlay.js +3 -4
- package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +3 -3
- package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.js +1 -2
- package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/esm/appui-react/content/IModelViewport.d.ts +1 -1
- package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/esm/appui-react/content/IModelViewport.js +4 -7
- package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.js +1 -2
- package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentViewManager.js +2 -2
- package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/esm/appui-react/content/split-pane/Pane.d.ts +1 -1
- package/lib/esm/appui-react/content/split-pane/Pane.d.ts.map +1 -1
- package/lib/esm/appui-react/content/split-pane/Resizer.d.ts +1 -1
- package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.js +10 -12
- package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +5 -5
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +5 -5
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.js +3 -6
- package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -3
- package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +2 -2
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +5 -5
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -4
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.js +3 -3
- package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +22 -23
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +3 -3
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.js +5 -5
- package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +2 -3
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
- package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
- package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useSolarDataProvider.js +8 -13
- package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
- package/lib/esm/appui-react/layout/_prefix.scss +33 -0
- package/lib/esm/appui-react/layout/_safearea.scss +26 -0
- package/lib/esm/appui-react/layout/_scrollbar.scss +20 -0
- package/lib/esm/appui-react/layout/_target.scss +10 -0
- package/lib/esm/appui-react/layout/_widgetopacity.scss +13 -0
- package/lib/esm/appui-react/layout/backstage/Backstage.d.ts +42 -0
- package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Backstage.js +50 -0
- package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Backstage.scss +90 -0
- package/lib/esm/appui-react/layout/backstage/Item.d.ts +38 -0
- package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Item.js +29 -0
- package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Item.scss +103 -0
- package/lib/esm/appui-react/layout/backstage/Separator.d.ts +13 -0
- package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Separator.js +20 -0
- package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -0
- package/lib/esm/appui-react/layout/backstage/Separator.scss +10 -0
- package/lib/esm/appui-react/layout/backstage/_variables.scss +32 -0
- package/lib/esm/appui-react/layout/base/DragManager.d.ts +183 -0
- package/lib/esm/appui-react/layout/base/DragManager.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/DragManager.js +477 -0
- package/lib/esm/appui-react/layout/base/DragManager.js.map +1 -0
- package/lib/esm/appui-react/layout/base/Ellipsis.d.ts +11 -0
- package/lib/esm/appui-react/layout/base/Ellipsis.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/Ellipsis.js +21 -0
- package/lib/esm/appui-react/layout/base/Ellipsis.js.map +1 -0
- package/lib/esm/appui-react/layout/base/Ellipsis.scss +20 -0
- package/lib/esm/appui-react/layout/base/LayoutStore.d.ts +19 -0
- package/lib/esm/appui-react/layout/base/LayoutStore.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/LayoutStore.js +32 -0
- package/lib/esm/appui-react/layout/base/LayoutStore.js.map +1 -0
- package/lib/esm/appui-react/layout/base/NineZone.d.ts +80 -0
- package/lib/esm/appui-react/layout/base/NineZone.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/NineZone.js +165 -0
- package/lib/esm/appui-react/layout/base/NineZone.js.map +1 -0
- package/lib/esm/appui-react/layout/base/SafeAreaInsets.d.ts +18 -0
- package/lib/esm/appui-react/layout/base/SafeAreaInsets.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/SafeAreaInsets.js +33 -0
- package/lib/esm/appui-react/layout/base/SafeAreaInsets.js.map +1 -0
- package/lib/esm/appui-react/layout/base/usePointerCaptor.d.ts +15 -0
- package/lib/esm/appui-react/layout/base/usePointerCaptor.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/base/usePointerCaptor.js +102 -0
- package/lib/esm/appui-react/layout/base/usePointerCaptor.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/Footer.d.ts +33 -0
- package/lib/esm/appui-react/layout/footer/Footer.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/Footer.js +26 -0
- package/lib/esm/appui-react/layout/footer/Footer.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/Footer.scss +61 -0
- package/lib/esm/appui-react/layout/footer/Indicator.d.ts +23 -0
- package/lib/esm/appui-react/layout/footer/Indicator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/Indicator.js +20 -0
- package/lib/esm/appui-react/layout/footer/Indicator.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/Indicator.scss +39 -0
- package/lib/esm/appui-react/layout/footer/Popup.d.ts +12 -0
- package/lib/esm/appui-react/layout/footer/Popup.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/Popup.js +21 -0
- package/lib/esm/appui-react/layout/footer/Popup.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/Popup.scss +19 -0
- package/lib/esm/appui-react/layout/footer/_variables.scss +43 -0
- package/lib/esm/appui-react/layout/footer/dialog/Button.d.ts +23 -0
- package/lib/esm/appui-react/layout/footer/dialog/Button.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/Button.js +21 -0
- package/lib/esm/appui-react/layout/footer/dialog/Button.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/Button.scss +23 -0
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts +22 -0
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.js +22 -0
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.scss +14 -0
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts +21 -0
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js +21 -0
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.scss +30 -0
- package/lib/esm/appui-react/layout/footer/dialog/_variables.scss +8 -0
- package/lib/esm/appui-react/layout/footer/message-center/Dialog.d.ts +29 -0
- package/lib/esm/appui-react/layout/footer/message-center/Dialog.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Dialog.js +28 -0
- package/lib/esm/appui-react/layout/footer/message-center/Dialog.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Dialog.scss +64 -0
- package/lib/esm/appui-react/layout/footer/message-center/Indicator.d.ts +29 -0
- package/lib/esm/appui-react/layout/footer/message-center/Indicator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Indicator.js +29 -0
- package/lib/esm/appui-react/layout/footer/message-center/Indicator.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Indicator.scss +106 -0
- package/lib/esm/appui-react/layout/footer/message-center/Message.d.ts +22 -0
- package/lib/esm/appui-react/layout/footer/message-center/Message.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Message.js +22 -0
- package/lib/esm/appui-react/layout/footer/message-center/Message.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Message.scss +41 -0
- package/lib/esm/appui-react/layout/footer/message-center/Tab.d.ts +24 -0
- package/lib/esm/appui-react/layout/footer/message-center/Tab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Tab.js +22 -0
- package/lib/esm/appui-react/layout/footer/message-center/Tab.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/message-center/Tab.scss +60 -0
- package/lib/esm/appui-react/layout/footer/message-center/_variables.scss +5 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Indicator.d.ts +27 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Indicator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Indicator.js +25 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Indicator.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Indicator.scss +44 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts +24 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js +25 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.scss +22 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts +26 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js +24 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.scss +48 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts +26 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js +25 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.scss +18 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Indicator.d.ts +27 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Indicator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Indicator.js +26 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Indicator.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Indicator.scss +80 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts +24 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js +27 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.scss +30 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts +20 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js +20 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.scss +13 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts +13 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +20 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.scss +13 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts +20 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js +22 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.scss +20 -0
- package/lib/esm/appui-react/layout/outline/PanelOutline.d.ts +10 -0
- package/lib/esm/appui-react/layout/outline/PanelOutline.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/outline/PanelOutline.js +64 -0
- package/lib/esm/appui-react/layout/outline/PanelOutline.js.map +1 -0
- package/lib/esm/appui-react/layout/outline/PanelOutline.scss +72 -0
- package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts +13 -0
- package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/outline/SectionOutline.js +69 -0
- package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -0
- package/lib/esm/appui-react/layout/outline/SectionOutline.scss +47 -0
- package/lib/esm/appui-react/layout/outline/TabOutline.d.ts +8 -0
- package/lib/esm/appui-react/layout/outline/TabOutline.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/outline/TabOutline.js +38 -0
- package/lib/esm/appui-react/layout/outline/TabOutline.js.map +1 -0
- package/lib/esm/appui-react/layout/outline/TabOutline.scss +18 -0
- package/lib/esm/appui-react/layout/outline/WidgetOutline.d.ts +8 -0
- package/lib/esm/appui-react/layout/outline/WidgetOutline.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/outline/WidgetOutline.js +38 -0
- package/lib/esm/appui-react/layout/outline/WidgetOutline.js.map +1 -0
- package/lib/esm/appui-react/layout/outline/WidgetOutline.scss +16 -0
- package/lib/esm/appui-react/layout/outline/_variables.scss +7 -0
- package/lib/esm/appui-react/layout/popup/Tooltip.d.ts +42 -0
- package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/popup/Tooltip.js +69 -0
- package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -0
- package/lib/esm/appui-react/layout/popup/Tooltip.scss +24 -0
- package/lib/esm/appui-react/layout/state/DropTargetState.d.ts +67 -0
- package/lib/esm/appui-react/layout/state/DropTargetState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/DropTargetState.js +40 -0
- package/lib/esm/appui-react/layout/state/DropTargetState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts +274 -0
- package/lib/esm/appui-react/layout/state/NineZoneAction.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneAction.js +9 -0
- package/lib/esm/appui-react/layout/state/NineZoneAction.js.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneState.d.ts +24 -0
- package/lib/esm/appui-react/layout/state/NineZoneState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneState.js +36 -0
- package/lib/esm/appui-react/layout/state/NineZoneState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneStateReducer.d.ts +8 -0
- package/lib/esm/appui-react/layout/state/NineZoneStateReducer.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/NineZoneStateReducer.js +808 -0
- package/lib/esm/appui-react/layout/state/NineZoneStateReducer.js.map +1 -0
- package/lib/esm/appui-react/layout/state/PanelState.d.ts +44 -0
- package/lib/esm/appui-react/layout/state/PanelState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/PanelState.js +17 -0
- package/lib/esm/appui-react/layout/state/PanelState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/SavedTabState.d.ts +24 -0
- package/lib/esm/appui-react/layout/state/SavedTabState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/SavedTabState.js +9 -0
- package/lib/esm/appui-react/layout/state/SavedTabState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/TabLocation.d.ts +35 -0
- package/lib/esm/appui-react/layout/state/TabLocation.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/TabLocation.js +53 -0
- package/lib/esm/appui-react/layout/state/TabLocation.js.map +1 -0
- package/lib/esm/appui-react/layout/state/TabState.d.ts +34 -0
- package/lib/esm/appui-react/layout/state/TabState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/TabState.js +9 -0
- package/lib/esm/appui-react/layout/state/TabState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/ToolSettingsState.d.ts +18 -0
- package/lib/esm/appui-react/layout/state/ToolSettingsState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/ToolSettingsState.js +9 -0
- package/lib/esm/appui-react/layout/state/ToolSettingsState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetLocation.d.ts +32 -0
- package/lib/esm/appui-react/layout/state/WidgetLocation.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetLocation.js +50 -0
- package/lib/esm/appui-react/layout/state/WidgetLocation.js.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetRestoreState.d.ts +23 -0
- package/lib/esm/appui-react/layout/state/WidgetRestoreState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetRestoreState.js +16 -0
- package/lib/esm/appui-react/layout/state/WidgetRestoreState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetState.d.ts +48 -0
- package/lib/esm/appui-react/layout/state/WidgetState.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/WidgetState.js +9 -0
- package/lib/esm/appui-react/layout/state/WidgetState.js.map +1 -0
- package/lib/esm/appui-react/layout/state/activateDroppedTab.d.ts +5 -0
- package/lib/esm/appui-react/layout/state/activateDroppedTab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/activateDroppedTab.js +34 -0
- package/lib/esm/appui-react/layout/state/activateDroppedTab.js.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts +39 -0
- package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js +88 -0
- package/lib/esm/appui-react/layout/state/internal/NineZoneStateHelpers.js.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts +26 -0
- package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js +96 -0
- package/lib/esm/appui-react/layout/state/internal/PanelStateHelpers.js.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.d.ts +41 -0
- package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.js +183 -0
- package/lib/esm/appui-react/layout/state/internal/TabStateHelpers.js.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/ToolSettingsStateHelpers.d.ts +14 -0
- package/lib/esm/appui-react/layout/state/internal/ToolSettingsStateHelpers.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/ToolSettingsStateHelpers.js +55 -0
- package/lib/esm/appui-react/layout/state/internal/ToolSettingsStateHelpers.js.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.d.ts +48 -0
- package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js +298 -0
- package/lib/esm/appui-react/layout/state/internal/WidgetStateHelpers.js.map +1 -0
- package/lib/esm/appui-react/layout/target/MergeTarget.d.ts +13 -0
- package/lib/esm/appui-react/layout/target/MergeTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/MergeTarget.js +43 -0
- package/lib/esm/appui-react/layout/target/MergeTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/MergeTarget.scss +17 -0
- package/lib/esm/appui-react/layout/target/PanelTarget.d.ts +13 -0
- package/lib/esm/appui-react/layout/target/PanelTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/PanelTarget.js +41 -0
- package/lib/esm/appui-react/layout/target/PanelTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/PanelTarget.scss +27 -0
- package/lib/esm/appui-react/layout/target/PanelTargets.d.ts +8 -0
- package/lib/esm/appui-react/layout/target/PanelTargets.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/PanelTargets.js +63 -0
- package/lib/esm/appui-react/layout/target/PanelTargets.js.map +1 -0
- package/lib/esm/appui-react/layout/target/PanelTargets.scss +50 -0
- package/lib/esm/appui-react/layout/target/SectionTarget.d.ts +17 -0
- package/lib/esm/appui-react/layout/target/SectionTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/SectionTarget.js +61 -0
- package/lib/esm/appui-react/layout/target/SectionTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/SectionTarget.scss +50 -0
- package/lib/esm/appui-react/layout/target/SectionTargets.d.ts +13 -0
- package/lib/esm/appui-react/layout/target/SectionTargets.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/SectionTargets.js +22 -0
- package/lib/esm/appui-react/layout/target/SectionTargets.js.map +1 -0
- package/lib/esm/appui-react/layout/target/SectionTargets.scss +13 -0
- package/lib/esm/appui-react/layout/target/TabTarget.d.ts +8 -0
- package/lib/esm/appui-react/layout/target/TabTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/TabTarget.js +59 -0
- package/lib/esm/appui-react/layout/target/TabTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/TabTarget.scss +30 -0
- package/lib/esm/appui-react/layout/target/TargetContainer.d.ts +14 -0
- package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/TargetContainer.js +16 -0
- package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -0
- package/lib/esm/appui-react/layout/target/TargetContainer.scss +17 -0
- package/lib/esm/appui-react/layout/target/TitleBarTarget.d.ts +8 -0
- package/lib/esm/appui-react/layout/target/TitleBarTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/TitleBarTarget.js +48 -0
- package/lib/esm/appui-react/layout/target/TitleBarTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/TitleBarTarget.scss +17 -0
- package/lib/esm/appui-react/layout/target/WidgetTarget.d.ts +8 -0
- package/lib/esm/appui-react/layout/target/WidgetTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/WidgetTarget.js +21 -0
- package/lib/esm/appui-react/layout/target/WidgetTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/WidgetTarget.scss +11 -0
- package/lib/esm/appui-react/layout/target/_variables.scss +64 -0
- package/lib/esm/appui-react/layout/target/useAllowedPanelTarget.d.ts +5 -0
- package/lib/esm/appui-react/layout/target/useAllowedPanelTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/useAllowedPanelTarget.js +20 -0
- package/lib/esm/appui-react/layout/target/useAllowedPanelTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/useAllowedSideTarget.d.ts +9 -0
- package/lib/esm/appui-react/layout/target/useAllowedSideTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/useAllowedSideTarget.js +51 -0
- package/lib/esm/appui-react/layout/target/useAllowedSideTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/target/useAllowedWidgetTarget.d.ts +6 -0
- package/lib/esm/appui-react/layout/target/useAllowedWidgetTarget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/target/useAllowedWidgetTarget.js +29 -0
- package/lib/esm/appui-react/layout/target/useAllowedWidgetTarget.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts +50 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.js +255 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.scss +48 -0
- package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts +17 -0
- package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Handle.js +41 -0
- package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Handle.scss +23 -0
- package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts +20 -0
- package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Overflow.js +27 -0
- package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Overflow.scss +28 -0
- package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts +21 -0
- package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Panel.js +19 -0
- package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Panel.scss +11 -0
- package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts +18 -0
- package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Setting.js +22 -0
- package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Setting.scss +22 -0
- package/lib/esm/appui-react/layout/widget/Button.d.ts +7 -0
- package/lib/esm/appui-react/layout/widget/Button.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Button.js +14 -0
- package/lib/esm/appui-react/layout/widget/Button.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Buttons.d.ts +12 -0
- package/lib/esm/appui-react/layout/widget/Buttons.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Buttons.js +79 -0
- package/lib/esm/appui-react/layout/widget/Buttons.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Buttons.scss +10 -0
- package/lib/esm/appui-react/layout/widget/Content.d.ts +19 -0
- package/lib/esm/appui-react/layout/widget/Content.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Content.js +32 -0
- package/lib/esm/appui-react/layout/widget/Content.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Content.scss +13 -0
- package/lib/esm/appui-react/layout/widget/ContentContainer.d.ts +12 -0
- package/lib/esm/appui-react/layout/widget/ContentContainer.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentContainer.js +35 -0
- package/lib/esm/appui-react/layout/widget/ContentContainer.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentContainer.scss +24 -0
- package/lib/esm/appui-react/layout/widget/ContentManager.d.ts +30 -0
- package/lib/esm/appui-react/layout/widget/ContentManager.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentManager.js +40 -0
- package/lib/esm/appui-react/layout/widget/ContentManager.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentRenderer.d.ts +20 -0
- package/lib/esm/appui-react/layout/widget/ContentRenderer.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentRenderer.js +75 -0
- package/lib/esm/appui-react/layout/widget/ContentRenderer.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/ContentRenderer.scss +18 -0
- package/lib/esm/appui-react/layout/widget/Dock.d.ts +7 -0
- package/lib/esm/appui-react/layout/widget/Dock.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Dock.js +22 -0
- package/lib/esm/appui-react/layout/widget/Dock.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingTab.d.ts +10 -0
- package/lib/esm/appui-react/layout/widget/FloatingTab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingTab.js +64 -0
- package/lib/esm/appui-react/layout/widget/FloatingTab.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingTab.scss +35 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidget.d.ts +33 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidget.js +268 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidget.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidget.scss +140 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidgets.d.ts +9 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidgets.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidgets.js +23 -0
- package/lib/esm/appui-react/layout/widget/FloatingWidgets.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Menu.d.ts +16 -0
- package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Menu.js +19 -0
- package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Menu.scss +14 -0
- package/lib/esm/appui-react/layout/widget/MenuTab.d.ts +13 -0
- package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/MenuTab.js +52 -0
- package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/MenuTab.scss +58 -0
- package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts +30 -0
- package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/NavigationArea.js +22 -0
- package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/NavigationArea.scss +55 -0
- package/lib/esm/appui-react/layout/widget/Overflow.d.ts +20 -0
- package/lib/esm/appui-react/layout/widget/Overflow.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Overflow.js +56 -0
- package/lib/esm/appui-react/layout/widget/Overflow.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Overflow.scss +59 -0
- package/lib/esm/appui-react/layout/widget/PanelWidget.d.ts +22 -0
- package/lib/esm/appui-react/layout/widget/PanelWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/PanelWidget.js +149 -0
- package/lib/esm/appui-react/layout/widget/PanelWidget.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/PanelWidget.scss +62 -0
- package/lib/esm/appui-react/layout/widget/PinToggle.d.ts +7 -0
- package/lib/esm/appui-react/layout/widget/PinToggle.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/PinToggle.js +30 -0
- package/lib/esm/appui-react/layout/widget/PinToggle.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/PopoutToggle.d.ts +9 -0
- package/lib/esm/appui-react/layout/widget/PopoutToggle.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/PopoutToggle.js +34 -0
- package/lib/esm/appui-react/layout/widget/PopoutToggle.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/PreviewHorizontalPanelAlign.d.ts +29 -0
- package/lib/esm/appui-react/layout/widget/PreviewHorizontalPanelAlign.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/PreviewHorizontalPanelAlign.js +113 -0
- package/lib/esm/appui-react/layout/widget/PreviewHorizontalPanelAlign.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/PreviewMaximizeToggle.d.ts +30 -0
- package/lib/esm/appui-react/layout/widget/PreviewMaximizeToggle.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/PreviewMaximizeToggle.js +58 -0
- package/lib/esm/appui-react/layout/widget/PreviewMaximizeToggle.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/SendBack.d.ts +41 -0
- package/lib/esm/appui-react/layout/widget/SendBack.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/SendBack.js +104 -0
- package/lib/esm/appui-react/layout/widget/SendBack.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Tab.d.ts +44 -0
- package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Tab.js +246 -0
- package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Tab.scss +82 -0
- package/lib/esm/appui-react/layout/widget/TabBar.d.ts +18 -0
- package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/TabBar.js +122 -0
- package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/TabBar.scss +30 -0
- package/lib/esm/appui-react/layout/widget/Tabs.d.ts +24 -0
- package/lib/esm/appui-react/layout/widget/Tabs.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Tabs.js +83 -0
- package/lib/esm/appui-react/layout/widget/Tabs.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Tabs.scss +10 -0
- package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts +32 -0
- package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/ToolsArea.js +28 -0
- package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/ToolsArea.scss +49 -0
- package/lib/esm/appui-react/layout/widget/Widget.d.ts +38 -0
- package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/Widget.js +144 -0
- package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/Widget.scss +12 -0
- package/lib/esm/appui-react/layout/widget/_variables.scss +46 -0
- package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +24 -0
- package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/App.js +29 -0
- package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/App.scss +79 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +20 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Back.js +23 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Back.scss +9 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts +28 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Button.js +40 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Button.scss +52 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts +20 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js +22 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.scss +46 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Icon.d.ts +25 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Icon.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Icon.js +25 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Icon.js.map +1 -0
- package/lib/esm/appui-react/layout/widget/tools/button/Icon.scss +49 -0
- package/lib/esm/appui-react/layout/widget/tools/button/_variables.scss +38 -0
- package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.d.ts +6 -0
- package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.js +16 -0
- package/lib/esm/appui-react/layout/widget/useIsToolSettingsTab.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/AppContent.d.ts +11 -0
- package/lib/esm/appui-react/layout/widget-panels/AppContent.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/AppContent.js +75 -0
- package/lib/esm/appui-react/layout/widget-panels/AppContent.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/CenterContent.d.ts +10 -0
- package/lib/esm/appui-react/layout/widget-panels/CenterContent.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/CenterContent.js +19 -0
- package/lib/esm/appui-react/layout/widget-panels/CenterContent.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/CenterContent.scss +7 -0
- package/lib/esm/appui-react/layout/widget-panels/Content.d.ts +21 -0
- package/lib/esm/appui-react/layout/widget-panels/Content.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Content.js +18 -0
- package/lib/esm/appui-react/layout/widget-panels/Content.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Content.scss +37 -0
- package/lib/esm/appui-react/layout/widget-panels/CursorOverlay.d.ts +14 -0
- package/lib/esm/appui-react/layout/widget-panels/CursorOverlay.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/CursorOverlay.js +29 -0
- package/lib/esm/appui-react/layout/widget-panels/CursorOverlay.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/CursorOverlay.scss +26 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts +17 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.js +58 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.scss +37 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts +15 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.js +203 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.scss +138 -0
- package/lib/esm/appui-react/layout/widget-panels/Panel.d.ts +37 -0
- package/lib/esm/appui-react/layout/widget-panels/Panel.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Panel.js +118 -0
- package/lib/esm/appui-react/layout/widget-panels/Panel.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Panel.scss +327 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelSections.d.ts +7 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelSections.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelSections.js +114 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelSections.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelTypes.d.ts +15 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelTypes.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelTypes.js +2 -0
- package/lib/esm/appui-react/layout/widget-panels/PanelTypes.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Panels.d.ts +24 -0
- package/lib/esm/appui-react/layout/widget-panels/Panels.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Panels.js +44 -0
- package/lib/esm/appui-react/layout/widget-panels/Panels.js.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Panels.scss +70 -0
- package/lib/esm/appui-react/layout/widget-panels/_variables.scss +6 -0
- package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.d.ts +13 -0
- package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.d.ts.map +1 -0
- package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js +167 -0
- package/lib/esm/appui-react/layout/widget-panels/useAnimatePanel.js.map +1 -0
- package/lib/esm/appui-react/messages/HollowIcon.d.ts +2 -2
- package/lib/esm/appui-react/messages/HollowIcon.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageLabel.d.ts +2 -2
- package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.js +2 -4
- package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageRenderer.js +5 -7
- package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
- package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.js +2 -2
- package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -2
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +16 -15
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.d.ts +3 -3
- package/lib/esm/appui-react/pickers/ListPicker.scss +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.d.ts +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.js +5 -6
- package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/esm/appui-react/popup/CardPopup.d.ts +2 -2
- package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +1 -1
- package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts +2 -2
- package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.js +1 -2
- package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +2 -2
- package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
- package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/PopupManager.js +4 -5
- package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.d.ts +2 -2
- package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +1 -1
- package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +1 -1
- package/lib/esm/appui-react/preview/PreviewFeatures.d.ts +30 -3
- package/lib/esm/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
- package/lib/esm/appui-react/preview/PreviewFeatures.js +4 -1
- package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -1
- package/lib/esm/appui-react/preview/widget-action-dropdown/Button.d.ts +17 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/Button.d.ts.map +1 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/Button.js +20 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/Button.js.map +1 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.d.ts +13 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.d.ts.map +1 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.js +63 -0
- package/lib/esm/appui-react/preview/widget-action-dropdown/MoreButton.js.map +1 -0
- package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts +2 -2
- package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
- package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +3 -1
- package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js +2 -2
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts +2 -2
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +2 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts +2 -2
- package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +2 -2
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +2 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js +14 -19
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Field.js +2 -2
- package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Field.scss +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.d.ts +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.js +1 -2
- package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.scss +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.js +3 -3
- package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/esm/appui-react/statusbar/OverflowPanel.d.ts +1 -1
- package/lib/esm/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Popup.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Popup.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Popup.js +1 -1
- package/lib/esm/appui-react/statusbar/Popup.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.scss +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts +7 -7
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.js +7 -10
- package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts +3 -3
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js +6 -6
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Button.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Button.js +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts +3 -3
- package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.js +2 -2
- package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/MessageCenter.js +7 -3
- package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.d.ts +3 -3
- package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.js +9 -8
- package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionCount.d.ts +3 -3
- package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionCount.js +4 -4
- package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +4 -4
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.js +3 -3
- package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.scss +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.js +11 -10
- package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +14 -9
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.d.ts +1 -0
- package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.js +3 -2
- package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.scss +9 -0
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts +2 -2
- package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js +6 -4
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -4
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js +10 -17
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -2
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +20 -22
- package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +9 -10
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +8 -14
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
- package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +4 -4
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
- package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.d.ts +2 -2
- package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.js +17 -17
- package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/FloatingWidget.d.ts +2 -2
- package/lib/esm/appui-react/widget-panels/FloatingWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/FloatingWidget.js +1 -1
- package/lib/esm/appui-react/widget-panels/FloatingWidget.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +9 -7
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.js +47 -36
- package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.scss +6 -2
- package/lib/esm/appui-react/widget-panels/FrontstageContent.d.ts +5 -2
- package/lib/esm/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts +5 -2
- package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.d.ts +2 -2
- package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Tab.d.ts +3 -3
- package/lib/esm/appui-react/widget-panels/Tab.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Tab.js +5 -5
- package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +6 -6
- package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.js +21 -26
- package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Toolbars.d.ts +2 -2
- package/lib/esm/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Toolbars.js +2 -3
- package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/useTransientState.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/useTransientState.js +6 -2
- package/lib/esm/appui-react/widget-panels/useTransientState.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +5 -2
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +2 -2
- package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.js +2 -2
- package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts +2 -2
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts +2 -2
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts +3 -3
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +5 -5
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +2 -2
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +2 -2
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +2 -2
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +4 -5
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetHost.js +2 -3
- package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/esm/appui-react/widgets/useWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/useWidget.js +4 -3
- package/lib/esm/appui-react/widgets/useWidget.js.map +1 -1
- package/package.json +13 -14
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Widget
|
|
3
3
|
*/
|
|
4
|
-
import * as React from "react";
|
|
5
4
|
import type { CommonProps } from "@itwin/core-react";
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
/** Properties for the [[NavigationAidHost]] React component
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -16,7 +16,7 @@ export interface NavigationAidHostProps {
|
|
|
16
16
|
* NavigationAidHost is a component that hosts a NavigationAid that is specific to the active content control.
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export declare function NavigationAidHost(props: NavigationAidHostProps): JSX.Element;
|
|
19
|
+
export declare function NavigationAidHost(props: NavigationAidHostProps): React.JSX.Element;
|
|
20
20
|
/** Properties for the [[NavigationWidgetComposer]] React components
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
@@ -35,5 +35,5 @@ export interface NavigationWidgetComposerProps extends CommonProps {
|
|
|
35
35
|
* and typically holds tools to visually navigate, orient, and zoom to specific content.
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
|
-
export declare function NavigationWidgetComposer(props: NavigationWidgetComposerProps): JSX.Element;
|
|
38
|
+
export declare function NavigationWidgetComposer(props: NavigationWidgetComposerProps): React.JSX.Element;
|
|
39
39
|
//# sourceMappingURL=NavigationWidgetComposer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/NavigationWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"NavigationWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/NavigationWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoC/B;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,qBAoG9D;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,gCAAgC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,8MAA8M;IAC9M,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,qBAwC5E"}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.NavigationWidgetComposer = exports.NavigationAidHost = void 0;
|
|
11
|
-
const React = require("react");
|
|
12
|
-
const imodel_components_react_1 = require("@itwin/imodel-components-react");
|
|
13
11
|
const core_react_1 = require("@itwin/core-react");
|
|
14
|
-
const
|
|
12
|
+
const imodel_components_react_1 = require("@itwin/imodel-components-react");
|
|
13
|
+
const React = require("react");
|
|
14
|
+
const NavigationArea_1 = require("../layout/widget/NavigationArea");
|
|
15
15
|
const UiFramework_1 = require("../UiFramework");
|
|
16
16
|
function createNavigationAidControl(activeContentControl, navigationAidId, activeViewport) {
|
|
17
17
|
// istanbul ignore else
|
|
@@ -33,7 +33,7 @@ function createNavigationAidControl(activeContentControl, navigationAidId, activ
|
|
|
33
33
|
*/
|
|
34
34
|
function NavigationAidHost(props) {
|
|
35
35
|
const [activeContentControl, setActiveContentControl] = React.useState(() => UiFramework_1.UiFramework.content.getActiveContentControl());
|
|
36
|
-
const [activeContentViewport, setActiveContentViewport] = React.useState(() => /* istanbul ignore next */ activeContentControl
|
|
36
|
+
const [activeContentViewport, setActiveContentViewport] = React.useState(() => /* istanbul ignore next */ activeContentControl?.viewport);
|
|
37
37
|
const [navigationAidId, setNavigationAidId] = React.useState(() => activeContentControl
|
|
38
38
|
? activeContentControl.navigationAidControl
|
|
39
39
|
: /* istanbul ignore next */ "");
|
|
@@ -107,12 +107,12 @@ function NavigationWidgetComposer(props) {
|
|
|
107
107
|
/* istanbul ignore next */
|
|
108
108
|
const navigationAid = hideNavigationAid
|
|
109
109
|
? undefined
|
|
110
|
-
: navigationAidHost
|
|
110
|
+
: navigationAidHost ?? React.createElement(NavigationAidHost, null);
|
|
111
111
|
return (React.createElement(core_react_1.WidgetOpacityContext.Provider, { value: {
|
|
112
112
|
onElementRef: handleChildRef,
|
|
113
113
|
proximityScale,
|
|
114
114
|
} },
|
|
115
|
-
React.createElement(
|
|
115
|
+
React.createElement(NavigationArea_1.NavigationArea, { navigationAid: navigationAid, horizontalToolbar: horizontalToolbar, verticalToolbar: verticalToolbar, ...otherProps, onMouseEnter: UiFramework_1.UiFramework.visibility.handleWidgetMouseEnter })));
|
|
116
116
|
}
|
|
117
117
|
exports.NavigationWidgetComposer = NavigationWidgetComposer;
|
|
118
118
|
//# sourceMappingURL=NavigationWidgetComposer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/NavigationWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;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GAAG,IAC3B,oBAAoB,IAAI,oBAAoB,CAAC,SAAS,CACnD,CACP,CAAC;AACJ,CAAC;AApGD,8CAoGC;AAgBD;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,KAAoC;IAC3E,MAAM,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,GAAG,UAAU,EACd,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,6BAAgB,EAAE,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,UAAoC,EAAE,EAAE;QACvC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IACF,MAAM,cAAc,GAAG,IAAA,gCAAmB,EACxC,UAAU,EACV,yBAAW,CAAC,UAAU,CAAC,iBAAiB,CACzC,CAAC;IACF,0BAA0B;IAC1B,MAAM,aAAa,GAAG,iBAAiB;QACrC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,oBAAC,iBAAiB,OAAG,CAAC;IAE/C,OAAO,CACL,oBAAC,iCAAoB,CAAC,QAAQ,IAC5B,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,cAAc;SACf;QAED,oBAAC,mCAAc,IACb,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,KAC5B,UAAU,EACd,YAAY,EAAE,yBAAW,CAAC,UAAU,CAAC,sBAAsB,GAC3D,CAC4B,CACjC,CAAC;AACJ,CAAC;AAxCD,4DAwCC","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 type { ScreenViewport } from \"@itwin/core-frontend\";\nimport type { ViewClassFullNameChangedEventArgs } from \"@itwin/imodel-components-react\";\nimport { ViewportComponentEvents } from \"@itwin/imodel-components-react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport {\n useProximityToMouse,\n useWidgetOpacityContext,\n WidgetElementSet,\n WidgetOpacityContext,\n} from \"@itwin/core-react\";\nimport { NavigationArea } from \"@itwin/appui-layout-react\";\nimport type {\n ContentControl,\n ContentControlActivatedEventArgs,\n} from \"../content/ContentControl\";\nimport type { NavigationAidControl } from \"../navigationaids/NavigationAidControl\";\nimport { UiFramework } from \"../UiFramework\";\n\nfunction createNavigationAidControl(\n activeContentControl: ContentControl | undefined,\n navigationAidId: string,\n activeViewport: ScreenViewport | undefined\n): NavigationAidControl | undefined {\n // istanbul ignore else\n if (\n !activeContentControl ||\n !navigationAidId ||\n activeViewport !== activeContentControl.viewport\n )\n return undefined;\n\n const viewport = activeContentControl.viewport;\n const imodel = viewport\n ? viewport.iModel\n : /* istanbul ignore next */ UiFramework.getIModelConnection();\n const navigationAidControl = UiFramework.controls.create(\n navigationAidId,\n navigationAidId,\n { imodel, viewport }\n ) as NavigationAidControl;\n\n navigationAidControl.initialize();\n return navigationAidControl;\n}\n\n/** Properties for the [[NavigationAidHost]] React component\n * @public\n */\nexport interface NavigationAidHostProps {\n /** Navigation Aid Host minimum width. Defaults to \"64px\". */\n minWidth?: string;\n /** Navigation Aid Host minimum height. Defaults to \"64px\". */\n minHeight?: string;\n}\n\n/**\n * NavigationAidHost is a component that hosts a NavigationAid that is specific to the active content control.\n * @public\n */\nexport function NavigationAidHost(props: NavigationAidHostProps) {\n const [activeContentControl, setActiveContentControl] = React.useState(() =>\n UiFramework.content.getActiveContentControl()\n );\n const [activeContentViewport, setActiveContentViewport] = React.useState(\n () => /* istanbul ignore next */ activeContentControl?.viewport\n );\n const [navigationAidId, setNavigationAidId] = React.useState(() =>\n activeContentControl\n ? activeContentControl.navigationAidControl\n : /* istanbul ignore next */ \"\"\n );\n\n React.useEffect(() => {\n // istanbul ignore next\n const handleContentControlActivated = (\n args: ContentControlActivatedEventArgs\n ) => {\n setActiveContentControl(args.activeContentControl);\n setActiveContentViewport(args.activeContentControl.viewport);\n setNavigationAidId(args.activeContentControl.navigationAidControl);\n };\n\n UiFramework.frontstages.onContentControlActivatedEvent.addListener(\n handleContentControlActivated\n );\n return () => {\n UiFramework.frontstages.onContentControlActivatedEvent.removeListener(\n handleContentControlActivated\n );\n };\n }, []);\n\n const [activeViewClass, setActiveViewClass] = React.useState(() => {\n const content = UiFramework.content.getActiveContentControl();\n if (content && content.viewport) return content.viewport.view.classFullName;\n return \"\";\n });\n\n React.useEffect(() => {\n // istanbul ignore next\n const handleViewClassFullNameChange = (\n args: ViewClassFullNameChangedEventArgs\n ) => {\n setActiveViewClass(args.newName);\n };\n\n ViewportComponentEvents.onViewClassFullNameChangedEvent.addListener(\n handleViewClassFullNameChange\n );\n return () => {\n ViewportComponentEvents.onViewClassFullNameChangedEvent.removeListener(\n handleViewClassFullNameChange\n );\n };\n }, [activeViewClass]);\n\n const navigationAidControl = React.useMemo(\n () =>\n createNavigationAidControl(\n activeContentControl,\n navigationAidId,\n activeContentViewport\n ),\n [activeContentControl, navigationAidId, activeContentViewport]\n );\n\n const ref = React.useRef<HTMLDivElement>(null);\n\n const isInitialMount = React.useRef(true);\n const { onElementRef, proximityScale } = useWidgetOpacityContext();\n\n React.useEffect(() => {\n // istanbul ignore else\n if (isInitialMount.current) {\n isInitialMount.current = false;\n onElementRef(ref);\n }\n }, [onElementRef]);\n\n const divStyle: React.CSSProperties = {\n minWidth: props.minWidth\n ? /* istanbul ignore next */ props.minWidth\n : \"64px\",\n minHeight: props.minHeight\n ? /* istanbul ignore next */ props.minHeight\n : \"64px\",\n };\n\n // istanbul ignore else\n if (UiFramework.visibility.useProximityOpacity && !UiFramework.isMobile()) {\n const navigationAidOpacity = 0.3 * proximityScale + 0.7;\n divStyle.opacity = `${navigationAidOpacity}`;\n }\n\n return (\n <div style={divStyle} ref={ref}>\n {navigationAidControl && navigationAidControl.reactNode}\n </div>\n );\n}\n\n/** Properties for the [[NavigationWidgetComposer]] React components\n * @public\n */\nexport interface NavigationWidgetComposerProps extends CommonProps {\n /** Optional Horizontal Toolbar */\n horizontalToolbar?: React.ReactNode;\n /** Optional Vertical Toolbar */\n verticalToolbar?: React.ReactNode;\n /** Optional Navigation Aid host. If not specified a default host is provided which will use registered Navigation Aids and the active content control to determine which if any Navigation Aid to display. */\n navigationAidHost?: React.ReactNode;\n /** If true no navigation aid will be shown. Defaults to false. */\n hideNavigationAid?: boolean;\n}\n\n/**\n * Component that Composes a NavigationWidget typically using toolbars generated via [[ToolbarComposer]] class. The Navigation widget is shown in the top right of the content area\n * and typically holds tools to visually navigate, orient, and zoom to specific content.\n * @public\n */\nexport function NavigationWidgetComposer(props: NavigationWidgetComposerProps) {\n const {\n navigationAidHost,\n horizontalToolbar,\n verticalToolbar,\n hideNavigationAid,\n ...otherProps\n } = props;\n const [elementSet] = React.useState(new WidgetElementSet());\n const handleChildRef = React.useCallback(\n (elementRef: React.RefObject<Element>) => {\n elementSet.add(elementRef);\n },\n [elementSet]\n );\n const proximityScale = useProximityToMouse(\n elementSet,\n UiFramework.visibility.snapWidgetOpacity\n );\n /* istanbul ignore next */\n const navigationAid = hideNavigationAid\n ? undefined\n : navigationAidHost ?? <NavigationAidHost />;\n\n return (\n <WidgetOpacityContext.Provider\n value={{\n onElementRef: handleChildRef,\n proximityScale,\n }}\n >\n <NavigationArea\n navigationAid={navigationAid}\n horizontalToolbar={horizontalToolbar}\n verticalToolbar={verticalToolbar}\n {...otherProps}\n onMouseEnter={UiFramework.visibility.handleWidgetMouseEnter}\n />\n </WidgetOpacityContext.Provider>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"NavigationWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/NavigationWidgetComposer.tsx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AC3B,oBAAoB,IAAI,oBAAoB,CAAC,SAAS,CACnD,CACP,CAAC;AACJ,CAAC;AApGD,8CAoGC;AAgBD;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,KAAoC;IAC3E,MAAM,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,GAAG,UAAU,EACd,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,6BAAgB,EAAE,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,UAAoC,EAAE,EAAE;QACvC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IACF,MAAM,cAAc,GAAG,IAAA,gCAAmB,EACxC,UAAU,EACV,yBAAW,CAAC,UAAU,CAAC,iBAAiB,CACzC,CAAC;IACF,0BAA0B;IAC1B,MAAM,aAAa,GAAG,iBAAiB;QACrC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,iBAAiB,IAAI,oBAAC,iBAAiB,OAAG,CAAC;IAE/C,OAAO,CACL,oBAAC,iCAAoB,CAAC,QAAQ,IAC5B,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,cAAc;SACf;QAED,oBAAC,+BAAc,IACb,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,KAC5B,UAAU,EACd,YAAY,EAAE,yBAAW,CAAC,UAAU,CAAC,sBAAsB,GAC3D,CAC4B,CACjC,CAAC;AACJ,CAAC;AAxCD,4DAwCC","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 type { ScreenViewport } from \"@itwin/core-frontend\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport {\n useProximityToMouse,\n useWidgetOpacityContext,\n WidgetElementSet,\n WidgetOpacityContext,\n} from \"@itwin/core-react\";\nimport type { ViewClassFullNameChangedEventArgs } from \"@itwin/imodel-components-react\";\nimport { ViewportComponentEvents } from \"@itwin/imodel-components-react\";\nimport * as React from \"react\";\nimport type {\n ContentControl,\n ContentControlActivatedEventArgs,\n} from \"../content/ContentControl\";\nimport { NavigationArea } from \"../layout/widget/NavigationArea\";\nimport type { NavigationAidControl } from \"../navigationaids/NavigationAidControl\";\nimport { UiFramework } from \"../UiFramework\";\n\nfunction createNavigationAidControl(\n activeContentControl: ContentControl | undefined,\n navigationAidId: string,\n activeViewport: ScreenViewport | undefined\n): NavigationAidControl | undefined {\n // istanbul ignore else\n if (\n !activeContentControl ||\n !navigationAidId ||\n activeViewport !== activeContentControl.viewport\n )\n return undefined;\n\n const viewport = activeContentControl.viewport;\n const imodel = viewport\n ? viewport.iModel\n : /* istanbul ignore next */ UiFramework.getIModelConnection();\n const navigationAidControl = UiFramework.controls.create(\n navigationAidId,\n navigationAidId,\n { imodel, viewport }\n ) as NavigationAidControl;\n\n navigationAidControl.initialize();\n return navigationAidControl;\n}\n\n/** Properties for the [[NavigationAidHost]] React component\n * @public\n */\nexport interface NavigationAidHostProps {\n /** Navigation Aid Host minimum width. Defaults to \"64px\". */\n minWidth?: string;\n /** Navigation Aid Host minimum height. Defaults to \"64px\". */\n minHeight?: string;\n}\n\n/**\n * NavigationAidHost is a component that hosts a NavigationAid that is specific to the active content control.\n * @public\n */\nexport function NavigationAidHost(props: NavigationAidHostProps) {\n const [activeContentControl, setActiveContentControl] = React.useState(() =>\n UiFramework.content.getActiveContentControl()\n );\n const [activeContentViewport, setActiveContentViewport] = React.useState(\n () => /* istanbul ignore next */ activeContentControl?.viewport\n );\n const [navigationAidId, setNavigationAidId] = React.useState(() =>\n activeContentControl\n ? activeContentControl.navigationAidControl\n : /* istanbul ignore next */ \"\"\n );\n\n React.useEffect(() => {\n // istanbul ignore next\n const handleContentControlActivated = (\n args: ContentControlActivatedEventArgs\n ) => {\n setActiveContentControl(args.activeContentControl);\n setActiveContentViewport(args.activeContentControl.viewport);\n setNavigationAidId(args.activeContentControl.navigationAidControl);\n };\n\n UiFramework.frontstages.onContentControlActivatedEvent.addListener(\n handleContentControlActivated\n );\n return () => {\n UiFramework.frontstages.onContentControlActivatedEvent.removeListener(\n handleContentControlActivated\n );\n };\n }, []);\n\n const [activeViewClass, setActiveViewClass] = React.useState(() => {\n const content = UiFramework.content.getActiveContentControl();\n if (content && content.viewport) return content.viewport.view.classFullName;\n return \"\";\n });\n\n React.useEffect(() => {\n // istanbul ignore next\n const handleViewClassFullNameChange = (\n args: ViewClassFullNameChangedEventArgs\n ) => {\n setActiveViewClass(args.newName);\n };\n\n ViewportComponentEvents.onViewClassFullNameChangedEvent.addListener(\n handleViewClassFullNameChange\n );\n return () => {\n ViewportComponentEvents.onViewClassFullNameChangedEvent.removeListener(\n handleViewClassFullNameChange\n );\n };\n }, [activeViewClass]);\n\n const navigationAidControl = React.useMemo(\n () =>\n createNavigationAidControl(\n activeContentControl,\n navigationAidId,\n activeContentViewport\n ),\n [activeContentControl, navigationAidId, activeContentViewport]\n );\n\n const ref = React.useRef<HTMLDivElement>(null);\n\n const isInitialMount = React.useRef(true);\n const { onElementRef, proximityScale } = useWidgetOpacityContext();\n\n React.useEffect(() => {\n // istanbul ignore else\n if (isInitialMount.current) {\n isInitialMount.current = false;\n onElementRef(ref);\n }\n }, [onElementRef]);\n\n const divStyle: React.CSSProperties = {\n minWidth: props.minWidth\n ? /* istanbul ignore next */ props.minWidth\n : \"64px\",\n minHeight: props.minHeight\n ? /* istanbul ignore next */ props.minHeight\n : \"64px\",\n };\n\n // istanbul ignore else\n if (UiFramework.visibility.useProximityOpacity && !UiFramework.isMobile()) {\n const navigationAidOpacity = 0.3 * proximityScale + 0.7;\n divStyle.opacity = `${navigationAidOpacity}`;\n }\n\n return (\n <div style={divStyle} ref={ref}>\n {navigationAidControl && navigationAidControl.reactNode}\n </div>\n );\n}\n\n/** Properties for the [[NavigationWidgetComposer]] React components\n * @public\n */\nexport interface NavigationWidgetComposerProps extends CommonProps {\n /** Optional Horizontal Toolbar */\n horizontalToolbar?: React.ReactNode;\n /** Optional Vertical Toolbar */\n verticalToolbar?: React.ReactNode;\n /** Optional Navigation Aid host. If not specified a default host is provided which will use registered Navigation Aids and the active content control to determine which if any Navigation Aid to display. */\n navigationAidHost?: React.ReactNode;\n /** If true no navigation aid will be shown. Defaults to false. */\n hideNavigationAid?: boolean;\n}\n\n/**\n * Component that Composes a NavigationWidget typically using toolbars generated via [[ToolbarComposer]] class. The Navigation widget is shown in the top right of the content area\n * and typically holds tools to visually navigate, orient, and zoom to specific content.\n * @public\n */\nexport function NavigationWidgetComposer(props: NavigationWidgetComposerProps) {\n const {\n navigationAidHost,\n horizontalToolbar,\n verticalToolbar,\n hideNavigationAid,\n ...otherProps\n } = props;\n const [elementSet] = React.useState(new WidgetElementSet());\n const handleChildRef = React.useCallback(\n (elementRef: React.RefObject<Element>) => {\n elementSet.add(elementRef);\n },\n [elementSet]\n );\n const proximityScale = useProximityToMouse(\n elementSet,\n UiFramework.visibility.snapWidgetOpacity\n );\n /* istanbul ignore next */\n const navigationAid = hideNavigationAid\n ? undefined\n : navigationAidHost ?? <NavigationAidHost />;\n\n return (\n <WidgetOpacityContext.Provider\n value={{\n onElementRef: handleChildRef,\n proximityScale,\n }}\n >\n <NavigationArea\n navigationAid={navigationAid}\n horizontalToolbar={horizontalToolbar}\n verticalToolbar={verticalToolbar}\n {...otherProps}\n onMouseEnter={UiFramework.visibility.handleWidgetMouseEnter}\n />\n </WidgetOpacityContext.Provider>\n );\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Widget
|
|
3
3
|
*/
|
|
4
|
-
import * as React from "react";
|
|
5
4
|
import type { CommonProps } from "@itwin/core-react";
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
/** Properties for the [[ToolbarComposer]] React components
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -20,5 +20,5 @@ export interface ToolWidgetComposerProps extends CommonProps {
|
|
|
20
20
|
* selected items. The vertical toolbar typically contains a more fixed list of tools.
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
export declare function ToolWidgetComposer(props: ToolWidgetComposerProps): JSX.Element;
|
|
23
|
+
export declare function ToolWidgetComposer(props: ToolWidgetComposerProps): React.JSX.Element;
|
|
24
24
|
//# sourceMappingURL=ToolWidgetComposer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,iIAAiI;IACjI,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,gCAAgC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBA+BhE"}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.ToolWidgetComposer = void 0;
|
|
11
|
-
const React = require("react");
|
|
12
11
|
const core_react_1 = require("@itwin/core-react");
|
|
13
|
-
const
|
|
12
|
+
const React = require("react");
|
|
13
|
+
const ToolsArea_1 = require("../layout/widget/ToolsArea");
|
|
14
14
|
const UiFramework_1 = require("../UiFramework");
|
|
15
15
|
/**
|
|
16
16
|
* ToolWidget component that supports use of ToolbarComposer-based Toolbars. The ToolWidget is shown in the top left of the content area
|
|
@@ -29,7 +29,7 @@ function ToolWidgetComposer(props) {
|
|
|
29
29
|
onElementRef: handleChildRef,
|
|
30
30
|
proximityScale,
|
|
31
31
|
} },
|
|
32
|
-
React.createElement(
|
|
32
|
+
React.createElement(ToolsArea_1.ToolsArea, { button: cornerItem, horizontalToolbar: horizontalToolbar, verticalToolbar: verticalToolbar, ...otherProps, onMouseEnter: UiFramework_1.UiFramework.visibility.handleWidgetMouseEnter })));
|
|
33
33
|
}
|
|
34
34
|
exports.ToolWidgetComposer = ToolWidgetComposer;
|
|
35
35
|
//# sourceMappingURL=ToolWidgetComposer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"ToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,kDAI2B;AAC3B,+BAA+B;AAC/B,0DAAuD;AACvD,gDAA6C;AAc7C;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,GAAG,UAAU,EAAE,GACrE,KAAK,CAAC;IACR,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,6BAAgB,EAAE,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,CAAC,UAAoC,EAAE,EAAE;QACvC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IACF,MAAM,cAAc,GAAG,IAAA,gCAAmB,EACxC,UAAU,EACV,yBAAW,CAAC,UAAU,CAAC,iBAAiB,CACzC,CAAC;IAEF,OAAO,CACL,oBAAC,iCAAoB,CAAC,QAAQ,IAC5B,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,cAAc;SACf;QAED,oBAAC,qBAAS,IACR,MAAM,EAAE,UAAU,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,KAC5B,UAAU,EACd,YAAY,EAAE,yBAAW,CAAC,UAAU,CAAC,sBAAsB,GAC3D,CAC4B,CACjC,CAAC;AACJ,CAAC;AA/BD,gDA+BC","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 type { CommonProps } from \"@itwin/core-react\";\nimport {\n useProximityToMouse,\n WidgetElementSet,\n WidgetOpacityContext,\n} from \"@itwin/core-react\";\nimport * as React from \"react\";\nimport { ToolsArea } from \"../layout/widget/ToolsArea\";\nimport { UiFramework } from \"../UiFramework\";\n\n/** Properties for the [[ToolbarComposer]] React components\n * @public\n */\nexport interface ToolWidgetComposerProps extends CommonProps {\n /** Optional Corner Item which for most stages is the [[BackstageAppButton]] used to toggle the display of the backstage menu. */\n cornerItem?: React.ReactNode;\n /** Optional Horizontal Toolbar */\n horizontalToolbar?: React.ReactNode;\n /** Optional Vertical Toolbar */\n verticalToolbar?: React.ReactNode;\n}\n\n/**\n * ToolWidget component that supports use of ToolbarComposer-based Toolbars. The ToolWidget is shown in the top left of the content area\n * and typically holds tools to manipulate or interrogate content. The horizontal toolbar often includes context specific tools based on\n * selected items. The vertical toolbar typically contains a more fixed list of tools.\n * @public\n */\nexport function ToolWidgetComposer(props: ToolWidgetComposerProps) {\n const { cornerItem, horizontalToolbar, verticalToolbar, ...otherProps } =\n props;\n const [elementSet] = React.useState(new WidgetElementSet());\n const handleChildRef = React.useCallback(\n (elementRef: React.RefObject<Element>) => {\n elementSet.add(elementRef);\n },\n [elementSet]\n );\n const proximityScale = useProximityToMouse(\n elementSet,\n UiFramework.visibility.snapWidgetOpacity\n );\n\n return (\n <WidgetOpacityContext.Provider\n value={{\n onElementRef: handleChildRef,\n proximityScale,\n }}\n >\n <ToolsArea\n button={cornerItem}\n horizontalToolbar={horizontalToolbar}\n verticalToolbar={verticalToolbar}\n {...otherProps}\n onMouseEnter={UiFramework.visibility.handleWidgetMouseEnter}\n />\n </WidgetOpacityContext.Provider>\n );\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Widget
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
/**
|
|
6
6
|
* Props for [[ViewToolWidgetComposer]].
|
|
7
7
|
* @public
|
|
@@ -23,5 +23,5 @@ export interface ViewToolWidgetComposerProps {
|
|
|
23
23
|
* ```
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
|
-
export declare function ViewToolWidgetComposer(props: ViewToolWidgetComposerProps): JSX.Element;
|
|
26
|
+
export declare function ViewToolWidgetComposer(props: ViewToolWidgetComposerProps): React.JSX.Element;
|
|
27
27
|
//# sourceMappingURL=ViewToolWidgetComposer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ViewToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"ViewToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ViewToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,qBAyBxE"}
|
|
@@ -71,8 +71,7 @@ class WidgetDef {
|
|
|
71
71
|
return !!canFloat;
|
|
72
72
|
}
|
|
73
73
|
get isFloatingStateWindowResizable() {
|
|
74
|
-
|
|
75
|
-
const canFloat = (_a = this.initialConfig) === null || _a === void 0 ? void 0 : _a.canFloat;
|
|
74
|
+
const canFloat = this.initialConfig?.canFloat;
|
|
76
75
|
if (typeof canFloat === "object") {
|
|
77
76
|
return canFloat.isResizable === undefined ? true : canFloat.isResizable;
|
|
78
77
|
}
|
|
@@ -283,7 +282,7 @@ class WidgetDef {
|
|
|
283
282
|
}
|
|
284
283
|
setWidgetState(newState) {
|
|
285
284
|
const frontstageDef = UiFramework_1.UiFramework.frontstages.activeFrontstageDef;
|
|
286
|
-
const state = frontstageDef
|
|
285
|
+
const state = frontstageDef?.nineZoneState;
|
|
287
286
|
if (!state || this.isStatusBar)
|
|
288
287
|
return;
|
|
289
288
|
if (!frontstageDef.findWidgetDef(this.id))
|
|
@@ -401,7 +400,7 @@ class WidgetDef {
|
|
|
401
400
|
*/
|
|
402
401
|
show() {
|
|
403
402
|
const frontstageDef = UiFramework_1.UiFramework.frontstages.activeFrontstageDef;
|
|
404
|
-
const state = frontstageDef
|
|
403
|
+
const state = frontstageDef?.nineZoneState;
|
|
405
404
|
if (!state)
|
|
406
405
|
return;
|
|
407
406
|
if (!frontstageDef.findWidgetDef(this.id))
|
|
@@ -416,7 +415,7 @@ class WidgetDef {
|
|
|
416
415
|
*/
|
|
417
416
|
expand() {
|
|
418
417
|
const frontstageDef = UiFramework_1.UiFramework.frontstages.activeFrontstageDef;
|
|
419
|
-
const state = frontstageDef
|
|
418
|
+
const state = frontstageDef?.nineZoneState;
|
|
420
419
|
if (!state)
|
|
421
420
|
return;
|
|
422
421
|
if (!frontstageDef.findWidgetDef(this.id))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDef.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH,0DAAyD;AAGzD,mFAGiD;AACjD,gDAA6C;AAC7C,sDAAmD;AAGnD,kDAA+C;AAE/C,+CAA4C;AAC5C,0EAAuE;AACvE,qFAAkF;AAUlF;;GAEG;AACH,mDAAmD;AACnD,MAAa,uBAAwB,SAAQ,wBAAoC;CAAG;AAApF,0DAAoF;AAYpF;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,uDAAU,CAAA;IACV,yDAAW,CAAA;IACX,2DAAY,CAAA;IACZ,qDAAS,CAAA;AACX,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,gFAAgF;AAEhF;;GAEG;AACH,MAAa,SAAS;IA6BpB,IAAW,KAAK;QACd,MAAM,aAAa,GAAG,yBAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;QAClE,IAAI,aAAa,IAAI,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YACzD,MAAM,YAAY,GAAG,aAAa,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAC/D,uBAAuB;YACvB,IAAI,SAAS,KAAK,YAAY;gBAAE,OAAO,YAAY,CAAC;SACrD;QACD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;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I,CAAC,aAAa;gBACpB,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;YACvD,IAAI,IAAI,CAAC,sBAAsB;gBAAE,OAAO,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;YACzE,MAAM,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,IAAI;QACT,MAAM,aAAa,GAAG,yBAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;QAClE,MAAM,KAAK,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,aAAa,CAAC;QAC3C,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE,OAAO;QAElD,aAAa,CAAC,QAAQ,CAAC;YACrB,IAAI,EAAE,iBAAiB;YACvB,EAAE,EAAE,IAAI,CAAC,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACI,MAAM;QACX,MAAM,aAAa,GAAG,yBAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC;QAClE,MAAM,KAAK,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,aAAa,CAAC;QAC3C,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE,OAAO;QAElD,aAAa,CAAC,QAAQ,CAAC;YACrB,IAAI,EAAE,mBAAmB;YACzB,EAAE,EAAE,IAAI,CAAC,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;;AA5ec,cAAI,GAAG,CAAC,AAAJ,CAAK;AADb,8BAAS","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 type * as React from \"react\";\nimport type {\n BadgeType,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport type { ConfigurableUiControlConstructor } from \"../configurableui/ConfigurableUiControl\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\nimport { UiFramework } from \"../UiFramework\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { WidgetControl } from \"./WidgetControl\";\nimport type { IconSpec, SizeProps } from \"@itwin/core-react\";\nimport { IconHelper } from \"@itwin/core-react\";\nimport type { WidgetConfig } from \"./WidgetConfig\";\nimport { WidgetState } from \"./WidgetState\";\nimport { StagePanelLocation } from \"../stagepanels/StagePanelLocation\";\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\n\n/** Widget State Changed Event Args interface.\n * @public\n */\nexport interface WidgetStateChangedEventArgs {\n widgetDef: WidgetDef;\n widgetState: WidgetState;\n}\n\n/** Widget State Changed Event class.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> {}\n\n/** @internal */\nexport interface WidgetChangedEventArgs {\n widgetDef: WidgetDef;\n}\n\n/** @internal */\nexport interface WidgetEventArgs {\n widgetDef: WidgetDef;\n}\n\n/** Widget type enum.\n * @public\n */\nexport enum WidgetType {\n Tool,\n Navigation,\n Rectangular,\n ToolSettings,\n StatusBar,\n}\n\n// -----------------------------------------------------------------------------\n\n/** A Widget Definition in the 9-Zone Layout system.\n * @public\n */\nexport class WidgetDef {\n private static _sId = 0;\n private _label: string | ConditionalStringValue | StringGetter = \"\";\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\n private _widgetReactNode: React.ReactNode;\n private _widgetControl!: WidgetControl;\n private _defaultState: WidgetState = WidgetState.Closed;\n private _id: string;\n private _classId: string | ConfigurableUiControlConstructor | undefined =\n undefined;\n private _priority: number = 0;\n private _stateChanged: boolean = false;\n private _widgetType: WidgetType = WidgetType.Rectangular;\n private _applicationData?: any;\n private _icon?: IconSpec;\n private _internalData?: Map<string, any>;\n private _badge?: BadgeType;\n private _saveTransientState?: () => void;\n private _restoreTransientState?: () => boolean;\n private _preferredPanelSize: \"fit-content\" | undefined;\n private _defaultFloatingSize: SizeProps | undefined;\n private _canPopout?: boolean;\n private _floatingContainerId?: string;\n private _defaultFloatingPosition: XAndY | undefined;\n\n private _hideWithUiWhenFloating?: boolean;\n private _allowedPanelTargets?: ReadonlyArray<StagePanelLocation>;\n private _initialConfig?: WidgetConfig;\n\n public get state(): WidgetState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (frontstageDef && frontstageDef.findWidgetDef(this.id)) {\n const currentState = frontstageDef.getWidgetCurrentState(this);\n // istanbul ignore else\n if (undefined !== currentState) return currentState;\n }\n return this.defaultState;\n }\n\n public get id(): string {\n return this._id;\n }\n public get classId(): string | ConfigurableUiControlConstructor | undefined {\n return this._classId;\n }\n public get priority(): number {\n return this._priority;\n }\n\n public get isFloatingStateSupported(): boolean {\n if (!this.initialConfig) return true;\n\n const allowedPanels = this.initialConfig.allowedPanels;\n if (allowedPanels && allowedPanels.length === 0) {\n return true;\n }\n\n const canFloat = this.initialConfig.canFloat;\n if (canFloat === undefined) return true;\n return !!canFloat;\n }\n\n public get isFloatingStateWindowResizable(): boolean {\n const canFloat = this.initialConfig?.canFloat;\n if (typeof canFloat === \"object\") {\n return canFloat.isResizable === undefined ? true : canFloat.isResizable;\n }\n\n return true;\n }\n\n public get isToolSettings(): boolean {\n return this._widgetType === WidgetType.ToolSettings;\n }\n public get isStatusBar(): boolean {\n return this._widgetType === WidgetType.StatusBar;\n }\n public get stateChanged(): boolean {\n return this._stateChanged;\n }\n public get applicationData(): any | undefined {\n return this._applicationData;\n }\n public get isFloating(): boolean {\n return this.state === WidgetState.Floating;\n }\n public get iconSpec(): IconSpec {\n return this._icon === IconHelper.reactIconKey\n ? IconHelper.getIconReactNode(this._icon, this._internalData)\n : this._icon;\n }\n public set iconSpec(spec: IconSpec) {\n this._icon = this._internalData\n ? IconHelper.getIconData(spec, this._internalData)\n : spec;\n }\n public get badgeType(): BadgeType | undefined {\n return this._badge;\n }\n public get initialConfig(): WidgetConfig | undefined {\n return this._initialConfig;\n }\n\n public get widgetType(): WidgetType {\n return this._widgetType;\n }\n public set widgetType(type: WidgetType) {\n this._widgetType = type;\n }\n\n /** @internal */\n public get defaultFloatingPosition() {\n return this._defaultFloatingPosition;\n }\n public set defaultFloatingPosition(position: XAndY | undefined) {\n this._defaultFloatingPosition = position;\n }\n\n /** @internal */\n public get defaultFloatingSize() {\n return this._defaultFloatingSize;\n }\n public set defaultFloatingSize(size: SizeProps | undefined) {\n this._defaultFloatingSize = size;\n }\n\n /** @internal */\n public get defaultState() {\n return this._defaultState;\n }\n\n constructor() {\n WidgetDef._sId++;\n this._id = `Widget-${WidgetDef._sId}`;\n }\n\n /** @internal */\n public static create(\n config: WidgetConfig,\n type: WidgetType = WidgetType.Rectangular\n ) {\n const def = new WidgetDef();\n def.initializeFromConfig(config, type);\n return def;\n }\n\n private initializeFromConfig(config: WidgetConfig, type: WidgetType) {\n this._widgetType = type;\n this._initialConfig = config;\n this._id = config.id;\n\n if (config.label) this._label = config.label;\n else if (config.labelKey)\n this._label = UiFramework.localization.getLocalizedString(\n config.labelKey\n );\n else if (type === WidgetType.ToolSettings) this._label = \"Tool Settings\";\n\n this.setCanPopout(config.canPopout);\n\n const canFloat = config.canFloat;\n if (typeof canFloat === \"object\") {\n this.setFloatingContainerId(canFloat.containerId);\n this.defaultFloatingPosition = canFloat.defaultPosition;\n this._hideWithUiWhenFloating = !!canFloat.hideWithUi;\n this._defaultFloatingSize = canFloat.defaultSize;\n }\n\n if (\"allowedPanels\" in config) {\n this.allowedPanelTargets = config.allowedPanels;\n } else if (type === WidgetType.ToolSettings)\n this.allowedPanelTargets = [\n StagePanelLocation.Bottom,\n StagePanelLocation.Left,\n StagePanelLocation.Right,\n ];\n\n if (config.priority !== undefined) this._priority = config.priority;\n\n if (config.tooltip) this.setTooltip(config.tooltip);\n else if (config.tooltipKey)\n this._tooltip = UiFramework.localization.getLocalizedString(\n config.tooltipKey\n );\n\n if (config.defaultState !== undefined) {\n this._defaultState = config.defaultState;\n }\n\n if (\n config.allowedPanels &&\n config.allowedPanels.length === 0 &&\n config.defaultState === WidgetState.Open\n ) {\n this._defaultState = WidgetState.Floating;\n }\n\n this._widgetReactNode = config.content;\n this._icon = config.icon;\n\n // istanbul ignore next\n if (config.icon !== undefined && this._icon === undefined)\n this._icon = config.icon;\n\n if (config.badge !== undefined) this._badge = config.badge;\n\n this._preferredPanelSize = config.preferredPanelSize;\n }\n\n /** @alpha */\n public get preferredPanelSize() {\n return this._preferredPanelSize;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param labelSpec A string or a function to get the string.\n */\n public setLabel(labelSpec: string | ConditionalStringValue | StringGetter) {\n this._label = labelSpec; // TODO: handle ConditionalStringValue\n\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const label = PropsHelper.getStringFromSpec(labelSpec);\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_SET_LABEL\",\n id: this.id,\n label,\n });\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\n this._tooltip = v;\n }\n\n public get widgetControl(): WidgetControl | undefined {\n return this._widgetControl;\n }\n\n public getWidgetControl(\n type: ConfigurableUiControlType\n ): WidgetControl | undefined {\n if (!this._widgetControl && this.classId) {\n let usedClassId: string = \"\";\n\n if (typeof this.classId === \"string\") {\n // istanbul ignore else\n if (this.classId)\n this._widgetControl = UiFramework.controls.create(\n this.classId,\n this.id,\n this.applicationData\n ) as WidgetControl;\n usedClassId = this.classId;\n } else {\n const info = new ConfigurableCreateInfo(\n this.classId.name,\n this.id,\n this.id\n );\n usedClassId = this.classId.name;\n this._widgetControl = new this.classId(\n info,\n this.applicationData\n ) as WidgetControl;\n }\n\n // istanbul ignore else\n if (this._widgetControl) {\n if (this._widgetControl.getType() !== type) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`\n );\n }\n\n this._widgetControl.widgetDef = this;\n this._widgetControl.initialize();\n }\n }\n\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\n if (!this._widgetControl && this.isStatusBar) {\n const info = new ConfigurableCreateInfo(\n \"StatusBarWidgetComposerControl\",\n StatusBarWidgetComposerControl.controlId,\n StatusBarWidgetComposerControl.controlId\n );\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\n this._widgetControl.widgetDef = this;\n this._widgetControl.initialize();\n }\n\n return this._widgetControl;\n }\n\n public get reactNode(): React.ReactNode {\n if (!this._widgetReactNode) {\n const widgetControl = this.getWidgetControl(\n ConfigurableUiControlType.Widget\n );\n\n // istanbul ignore else\n if (widgetControl && widgetControl.reactNode)\n this._widgetReactNode = widgetControl.reactNode;\n }\n\n return this._widgetReactNode;\n }\n\n public set reactNode(node: React.ReactNode) {\n this._widgetReactNode = node;\n }\n\n public setWidgetState(newState: WidgetState): void {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state || this.isStatusBar) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n switch (newState) {\n case WidgetState.Closed: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_CLOSE\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Floating: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_FLOAT\",\n id: this.id,\n position: this._defaultFloatingPosition,\n });\n break;\n }\n case WidgetState.Hidden: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_HIDE\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Open: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_OPEN\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Unloaded: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_UNLOAD\",\n id: this.id,\n });\n break;\n }\n }\n }\n\n /** @internal */\n public handleWidgetStateChanged(newState: WidgetState) {\n this._stateChanged = true;\n UiFramework.frontstages.onWidgetStateChangedEvent.emit({\n widgetDef: this,\n widgetState: newState,\n });\n this.onWidgetStateChanged();\n }\n\n public setCanPopout(value: boolean | undefined) {\n this._canPopout = value;\n }\n\n public get canPopout(): boolean | undefined {\n return this._canPopout;\n }\n\n public setFloatingContainerId(value: string | undefined) {\n this._floatingContainerId = value;\n }\n\n public get floatingContainerId(): string | undefined {\n return this._floatingContainerId;\n }\n\n public canOpen(): boolean {\n return this.isFloating || this.isActive;\n }\n\n public get isVisible(): boolean {\n return (\n WidgetState.Hidden !== this.state && WidgetState.Unloaded !== this.state\n );\n }\n\n public get activeState(): WidgetState {\n return this.state;\n }\n\n public get isActive(): boolean {\n return WidgetState.Open === this.activeState;\n }\n\n public set hideWithUiWhenFloating(hide: boolean | undefined) {\n this._hideWithUiWhenFloating = !!hide;\n }\n\n public get hideWithUiWhenFloating(): boolean {\n return !!this._hideWithUiWhenFloating;\n }\n\n public get allowedPanelTargets():\n | ReadonlyArray<StagePanelLocation>\n | undefined {\n return this._allowedPanelTargets;\n }\n\n public set allowedPanelTargets(\n targets: ReadonlyArray<StagePanelLocation> | undefined\n ) {\n this._allowedPanelTargets = targets;\n }\n\n public onWidgetStateChanged(): void {\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\n }\n\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\n public saveTransientState(): void {\n this.widgetControl && this.widgetControl.saveTransientState();\n this._saveTransientState && this._saveTransientState();\n }\n\n /** Overwrite to restore transient DOM state.\n * @note Return true if the state is restored or the Widget will remount.\n */\n public restoreTransientState(): boolean {\n let result = true;\n if (this.widgetControl || this._restoreTransientState) {\n let result1 = false,\n result2 = false;\n if (this.widgetControl)\n result1 = this.widgetControl.restoreTransientState();\n if (this._restoreTransientState) result2 = this._restoreTransientState();\n result = !(result1 || result2);\n }\n return result;\n }\n\n /** Opens the widget and makes it visible to the user.\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\n * @public\n */\n public show() {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_SHOW\",\n id: this.id,\n });\n }\n\n /** Opens the widget and expands it to fill full size of the stage panel.\n * @public\n */\n public expand() {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_EXPAND\",\n id: this.id,\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"WidgetDef.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAQH,0DAAyD;AAGzD,mFAGiD;AACjD,gDAA6C;AAC7C,sDAAmD;AAGnD,kDAA+C;AAE/C,+CAA4C;AAC5C,0EAAuE;AACvE,qFAAkF;AAUlF;;GAEG;AACH,mDAAmD;AACnD,MAAa,uBAAwB,SAAQ,wBAAoC;CAAG;AAApF,0DAAoF;AAYpF;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,uDAAU,CAAA;IACV,yDAAW,CAAA;IACX,2DA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AC;QAClE,MAAM,KAAK,GAAG,aAAa,EAAE,aAAa,CAAC;QAC3C,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE,OAAO;QAElD,aAAa,CAAC,QAAQ,CAAC;YACrB,IAAI,EAAE,mBAAmB;YACzB,EAAE,EAAE,IAAI,CAAC,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;;AA5ec,cAAI,GAAG,CAAC,AAAJ,CAAK;AADb,8BAAS","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 type * as React from \"react\";\nimport type {\n BadgeType,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { UiError, UiEvent } from \"@itwin/appui-abstract\";\nimport type { XAndY } from \"@itwin/core-geometry\";\nimport type { ConfigurableUiControlConstructor } from \"../configurableui/ConfigurableUiControl\";\nimport {\n ConfigurableCreateInfo,\n ConfigurableUiControlType,\n} from \"../configurableui/ConfigurableUiControl\";\nimport { UiFramework } from \"../UiFramework\";\nimport { PropsHelper } from \"../utils/PropsHelper\";\nimport type { WidgetControl } from \"./WidgetControl\";\nimport type { IconSpec, SizeProps } from \"@itwin/core-react\";\nimport { IconHelper } from \"@itwin/core-react\";\nimport type { WidgetConfig } from \"./WidgetConfig\";\nimport { WidgetState } from \"./WidgetState\";\nimport { StagePanelLocation } from \"../stagepanels/StagePanelLocation\";\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\n\n/** Widget State Changed Event Args interface.\n * @public\n */\nexport interface WidgetStateChangedEventArgs {\n widgetDef: WidgetDef;\n widgetState: WidgetState;\n}\n\n/** Widget State Changed Event class.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> {}\n\n/** @internal */\nexport interface WidgetChangedEventArgs {\n widgetDef: WidgetDef;\n}\n\n/** @internal */\nexport interface WidgetEventArgs {\n widgetDef: WidgetDef;\n}\n\n/** Widget type enum.\n * @public\n */\nexport enum WidgetType {\n Tool,\n Navigation,\n Rectangular,\n ToolSettings,\n StatusBar,\n}\n\n// -----------------------------------------------------------------------------\n\n/** A Widget Definition in the 9-Zone Layout system.\n * @public\n */\nexport class WidgetDef {\n private static _sId = 0;\n private _label: string | ConditionalStringValue | StringGetter = \"\";\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\n private _widgetReactNode: React.ReactNode;\n private _widgetControl!: WidgetControl;\n private _defaultState: WidgetState = WidgetState.Closed;\n private _id: string;\n private _classId: string | ConfigurableUiControlConstructor | undefined =\n undefined;\n private _priority: number = 0;\n private _stateChanged: boolean = false;\n private _widgetType: WidgetType = WidgetType.Rectangular;\n private _applicationData?: any;\n private _icon?: IconSpec;\n private _internalData?: Map<string, any>;\n private _badge?: BadgeType;\n private _saveTransientState?: () => void;\n private _restoreTransientState?: () => boolean;\n private _preferredPanelSize: \"fit-content\" | undefined;\n private _defaultFloatingSize: SizeProps | undefined;\n private _canPopout?: boolean;\n private _floatingContainerId?: string;\n private _defaultFloatingPosition: XAndY | undefined;\n\n private _hideWithUiWhenFloating?: boolean;\n private _allowedPanelTargets?: ReadonlyArray<StagePanelLocation>;\n private _initialConfig?: WidgetConfig;\n\n public get state(): WidgetState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (frontstageDef && frontstageDef.findWidgetDef(this.id)) {\n const currentState = frontstageDef.getWidgetCurrentState(this);\n // istanbul ignore else\n if (undefined !== currentState) return currentState;\n }\n return this.defaultState;\n }\n\n public get id(): string {\n return this._id;\n }\n public get classId(): string | ConfigurableUiControlConstructor | undefined {\n return this._classId;\n }\n public get priority(): number {\n return this._priority;\n }\n\n public get isFloatingStateSupported(): boolean {\n if (!this.initialConfig) return true;\n\n const allowedPanels = this.initialConfig.allowedPanels;\n if (allowedPanels && allowedPanels.length === 0) {\n return true;\n }\n\n const canFloat = this.initialConfig.canFloat;\n if (canFloat === undefined) return true;\n return !!canFloat;\n }\n\n public get isFloatingStateWindowResizable(): boolean {\n const canFloat = this.initialConfig?.canFloat;\n if (typeof canFloat === \"object\") {\n return canFloat.isResizable === undefined ? true : canFloat.isResizable;\n }\n\n return true;\n }\n\n public get isToolSettings(): boolean {\n return this._widgetType === WidgetType.ToolSettings;\n }\n public get isStatusBar(): boolean {\n return this._widgetType === WidgetType.StatusBar;\n }\n public get stateChanged(): boolean {\n return this._stateChanged;\n }\n public get applicationData(): any | undefined {\n return this._applicationData;\n }\n public get isFloating(): boolean {\n return this.state === WidgetState.Floating;\n }\n public get iconSpec(): IconSpec {\n return this._icon === IconHelper.reactIconKey\n ? IconHelper.getIconReactNode(this._icon, this._internalData)\n : this._icon;\n }\n public set iconSpec(spec: IconSpec) {\n this._icon = this._internalData\n ? IconHelper.getIconData(spec, this._internalData)\n : spec;\n }\n public get badgeType(): BadgeType | undefined {\n return this._badge;\n }\n public get initialConfig(): WidgetConfig | undefined {\n return this._initialConfig;\n }\n\n public get widgetType(): WidgetType {\n return this._widgetType;\n }\n public set widgetType(type: WidgetType) {\n this._widgetType = type;\n }\n\n /** @internal */\n public get defaultFloatingPosition() {\n return this._defaultFloatingPosition;\n }\n public set defaultFloatingPosition(position: XAndY | undefined) {\n this._defaultFloatingPosition = position;\n }\n\n /** @internal */\n public get defaultFloatingSize() {\n return this._defaultFloatingSize;\n }\n public set defaultFloatingSize(size: SizeProps | undefined) {\n this._defaultFloatingSize = size;\n }\n\n /** @internal */\n public get defaultState() {\n return this._defaultState;\n }\n\n constructor() {\n WidgetDef._sId++;\n this._id = `Widget-${WidgetDef._sId}`;\n }\n\n /** @internal */\n public static create(\n config: WidgetConfig,\n type: WidgetType = WidgetType.Rectangular\n ) {\n const def = new WidgetDef();\n def.initializeFromConfig(config, type);\n return def;\n }\n\n private initializeFromConfig(config: WidgetConfig, type: WidgetType) {\n this._widgetType = type;\n this._initialConfig = config;\n this._id = config.id;\n\n if (config.label) this._label = config.label;\n else if (config.labelKey)\n this._label = UiFramework.localization.getLocalizedString(\n config.labelKey\n );\n else if (type === WidgetType.ToolSettings) this._label = \"Tool Settings\";\n\n this.setCanPopout(config.canPopout);\n\n const canFloat = config.canFloat;\n if (typeof canFloat === \"object\") {\n this.setFloatingContainerId(canFloat.containerId);\n this.defaultFloatingPosition = canFloat.defaultPosition;\n this._hideWithUiWhenFloating = !!canFloat.hideWithUi;\n this._defaultFloatingSize = canFloat.defaultSize;\n }\n\n if (\"allowedPanels\" in config) {\n this.allowedPanelTargets = config.allowedPanels;\n } else if (type === WidgetType.ToolSettings)\n this.allowedPanelTargets = [\n StagePanelLocation.Bottom,\n StagePanelLocation.Left,\n StagePanelLocation.Right,\n ];\n\n if (config.priority !== undefined) this._priority = config.priority;\n\n if (config.tooltip) this.setTooltip(config.tooltip);\n else if (config.tooltipKey)\n this._tooltip = UiFramework.localization.getLocalizedString(\n config.tooltipKey\n );\n\n if (config.defaultState !== undefined) {\n this._defaultState = config.defaultState;\n }\n\n if (\n config.allowedPanels &&\n config.allowedPanels.length === 0 &&\n config.defaultState === WidgetState.Open\n ) {\n this._defaultState = WidgetState.Floating;\n }\n\n this._widgetReactNode = config.content;\n this._icon = config.icon;\n\n // istanbul ignore next\n if (config.icon !== undefined && this._icon === undefined)\n this._icon = config.icon;\n\n if (config.badge !== undefined) this._badge = config.badge;\n\n this._preferredPanelSize = config.preferredPanelSize;\n }\n\n /** @alpha */\n public get preferredPanelSize() {\n return this._preferredPanelSize;\n }\n\n /** Get the label string */\n public get label(): string {\n return PropsHelper.getStringFromSpec(this._label);\n }\n\n /** Set the label.\n * @param labelSpec A string or a function to get the string.\n */\n public setLabel(labelSpec: string | ConditionalStringValue | StringGetter) {\n this._label = labelSpec; // TODO: handle ConditionalStringValue\n\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const label = PropsHelper.getStringFromSpec(labelSpec);\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_SET_LABEL\",\n id: this.id,\n label,\n });\n }\n\n /** Get the tooltip string */\n public get tooltip(): string {\n return PropsHelper.getStringFromSpec(this._tooltip);\n }\n\n /** Set the tooltip.\n * @param v A string or a function to get the string.\n */\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\n this._tooltip = v;\n }\n\n public get widgetControl(): WidgetControl | undefined {\n return this._widgetControl;\n }\n\n public getWidgetControl(\n type: ConfigurableUiControlType\n ): WidgetControl | undefined {\n if (!this._widgetControl && this.classId) {\n let usedClassId: string = \"\";\n\n if (typeof this.classId === \"string\") {\n // istanbul ignore else\n if (this.classId)\n this._widgetControl = UiFramework.controls.create(\n this.classId,\n this.id,\n this.applicationData\n ) as WidgetControl;\n usedClassId = this.classId;\n } else {\n const info = new ConfigurableCreateInfo(\n this.classId.name,\n this.id,\n this.id\n );\n usedClassId = this.classId.name;\n this._widgetControl = new this.classId(\n info,\n this.applicationData\n ) as WidgetControl;\n }\n\n // istanbul ignore else\n if (this._widgetControl) {\n if (this._widgetControl.getType() !== type) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`\n );\n }\n\n this._widgetControl.widgetDef = this;\n this._widgetControl.initialize();\n }\n }\n\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\n if (!this._widgetControl && this.isStatusBar) {\n const info = new ConfigurableCreateInfo(\n \"StatusBarWidgetComposerControl\",\n StatusBarWidgetComposerControl.controlId,\n StatusBarWidgetComposerControl.controlId\n );\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\n this._widgetControl.widgetDef = this;\n this._widgetControl.initialize();\n }\n\n return this._widgetControl;\n }\n\n public get reactNode(): React.ReactNode {\n if (!this._widgetReactNode) {\n const widgetControl = this.getWidgetControl(\n ConfigurableUiControlType.Widget\n );\n\n // istanbul ignore else\n if (widgetControl && widgetControl.reactNode)\n this._widgetReactNode = widgetControl.reactNode;\n }\n\n return this._widgetReactNode;\n }\n\n public set reactNode(node: React.ReactNode) {\n this._widgetReactNode = node;\n }\n\n public setWidgetState(newState: WidgetState): void {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state || this.isStatusBar) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n switch (newState) {\n case WidgetState.Closed: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_CLOSE\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Floating: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_FLOAT\",\n id: this.id,\n position: this._defaultFloatingPosition,\n });\n break;\n }\n case WidgetState.Hidden: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_HIDE\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Open: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_OPEN\",\n id: this.id,\n });\n break;\n }\n case WidgetState.Unloaded: {\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_UNLOAD\",\n id: this.id,\n });\n break;\n }\n }\n }\n\n /** @internal */\n public handleWidgetStateChanged(newState: WidgetState) {\n this._stateChanged = true;\n UiFramework.frontstages.onWidgetStateChangedEvent.emit({\n widgetDef: this,\n widgetState: newState,\n });\n this.onWidgetStateChanged();\n }\n\n public setCanPopout(value: boolean | undefined) {\n this._canPopout = value;\n }\n\n public get canPopout(): boolean | undefined {\n return this._canPopout;\n }\n\n public setFloatingContainerId(value: string | undefined) {\n this._floatingContainerId = value;\n }\n\n public get floatingContainerId(): string | undefined {\n return this._floatingContainerId;\n }\n\n public canOpen(): boolean {\n return this.isFloating || this.isActive;\n }\n\n public get isVisible(): boolean {\n return (\n WidgetState.Hidden !== this.state && WidgetState.Unloaded !== this.state\n );\n }\n\n public get activeState(): WidgetState {\n return this.state;\n }\n\n public get isActive(): boolean {\n return WidgetState.Open === this.activeState;\n }\n\n public set hideWithUiWhenFloating(hide: boolean | undefined) {\n this._hideWithUiWhenFloating = !!hide;\n }\n\n public get hideWithUiWhenFloating(): boolean {\n return !!this._hideWithUiWhenFloating;\n }\n\n public get allowedPanelTargets():\n | ReadonlyArray<StagePanelLocation>\n | undefined {\n return this._allowedPanelTargets;\n }\n\n public set allowedPanelTargets(\n targets: ReadonlyArray<StagePanelLocation> | undefined\n ) {\n this._allowedPanelTargets = targets;\n }\n\n public onWidgetStateChanged(): void {\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\n }\n\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\n public saveTransientState(): void {\n this.widgetControl && this.widgetControl.saveTransientState();\n this._saveTransientState && this._saveTransientState();\n }\n\n /** Overwrite to restore transient DOM state.\n * @note Return true if the state is restored or the Widget will remount.\n */\n public restoreTransientState(): boolean {\n let result = true;\n if (this.widgetControl || this._restoreTransientState) {\n let result1 = false,\n result2 = false;\n if (this.widgetControl)\n result1 = this.widgetControl.restoreTransientState();\n if (this._restoreTransientState) result2 = this._restoreTransientState();\n result = !(result1 || result2);\n }\n return result;\n }\n\n /** Opens the widget and makes it visible to the user.\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\n * @public\n */\n public show() {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_SHOW\",\n id: this.id,\n });\n }\n\n /** Opens the widget and expands it to fill full size of the stage panel.\n * @public\n */\n public expand() {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return;\n if (!frontstageDef.findWidgetDef(this.id)) return;\n\n frontstageDef.dispatch({\n type: \"WIDGET_TAB_EXPAND\",\n id: this.id,\n });\n }\n}\n"]}
|
|
@@ -55,7 +55,6 @@ class WidgetHost {
|
|
|
55
55
|
* @internal
|
|
56
56
|
*/
|
|
57
57
|
updateDynamicWidgetDefs(stageId, stageUsage, location, section, allStageWidgetDefs) {
|
|
58
|
-
var _a;
|
|
59
58
|
// get widgetDefs not already in allStageWidgetDefs and add them
|
|
60
59
|
const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {
|
|
61
60
|
return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);
|
|
@@ -64,9 +63,9 @@ class WidgetHost {
|
|
|
64
63
|
let dynamicWidgetDefs;
|
|
65
64
|
if (section !== undefined) {
|
|
66
65
|
dynamicWidgetDefs =
|
|
67
|
-
|
|
66
|
+
UiFramework_1.UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, section) ?? [];
|
|
68
67
|
}
|
|
69
|
-
const uniqueDynamicWidgetDefs = dynamicWidgetDefs
|
|
68
|
+
const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {
|
|
70
69
|
return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);
|
|
71
70
|
});
|
|
72
71
|
// Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAIH,gDAA6C;AAG7C;;;GAGG;AACH,MAAa,UAAU;IAKrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAI1C,CAAC;IAEhB;;OAEG;IACI,YAAY,CAAC,SAAoB;QACtC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,gCAAgC;IAChC,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED,kCAAkC;IAClC,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,kBAAkB;QACvB,IAAI,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SAC3B;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;OAGG;IACI,aAAa,CAAC,EAAU;QAC7B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACI,uBAAuB,CAC5B,OAAe,EACf,UAAkB,EAClB,QAA4B,EAC5B,OAAsC,EACtC,kBAA+B
|
|
1
|
+
{"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAIH,gDAA6C;AAG7C;;;GAGG;AACH,MAAa,UAAU;IAKrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAI1C,CAAC;IAEhB;;OAEG;IACI,YAAY,CAAC,SAAoB;QACtC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,gCAAgC;IAChC,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED,kCAAkC;IAClC,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,kBAAkB;QACvB,IAAI,IAA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CAAC;YACpD,IAAI,CAAC,kBAAkB,GAAG,CAAC,GAAG,uBAAuB,CAAC,CAAC;SACxD;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,wBAAwB;IAChB,cAAc;QACpB,IAAI,gBAAgB,GAAG,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,kBAAkB;YACzB,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;;YACjE,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAEjD,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEzD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;CACF;AAjGD,gCAiGC","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 type { StagePanelLocation } from \"../stagepanels/StagePanelLocation\";\nimport type { StagePanelSection } from \"../stagepanels/StagePanelSection\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { WidgetDef } from \"./WidgetDef\";\n\n/**\n * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.\n * @public\n */\nexport class WidgetHost {\n private _widgetDefs: WidgetDef[] = new Array<WidgetDef>();\n private _dynamicWidgetDefs: ReadonlyArray<WidgetDef> | undefined;\n private _sortedWidgetDefs: ReadonlyArray<WidgetDef> = [];\n\n /** Constructor for WidgetHost.\n */\n constructor() {}\n\n /** Adds a WidgetDef to the list of Widgets.\n * @param widgetDef Definition of the Widget to add\n */\n public addWidgetDef(widgetDef: WidgetDef) {\n this._widgetDefs.push(widgetDef);\n this.sortWidgetDefs();\n }\n\n /** Gets the list of Widgets. */\n public get widgetDefs(): ReadonlyArray<WidgetDef> {\n return this._sortedWidgetDefs;\n }\n\n /** Gets the number of Widgets. */\n public get widgetCount(): number {\n return this.widgetDefs.length;\n }\n\n /** If there is only one Widget in the Panel, gets the single WidgetDef.\n * @returns The single WidgetDef if there is only one Widget; otherwise, undefined is returned.\n */\n public getSingleWidgetDef(): WidgetDef | undefined {\n if (this.widgetCount === 1) {\n return this.widgetDefs[0];\n }\n return undefined;\n }\n\n /** Finds a WidgetDef with a given Id.\n * @param id Id of the WidgetDef to find\n * @returns The WidgetDef if found; otherwise, undefined is returned.\n */\n public findWidgetDef(id: string): WidgetDef | undefined {\n return this.widgetDefs.find((widgetDef: WidgetDef) => widgetDef.id === id);\n }\n\n /** Updates the WidgetHost with dynamic widgets\n * @internal\n */\n public updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ): void {\n // get widgetDefs not already in allStageWidgetDefs and add them\n const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n allStageWidgetDefs.push(...uniqueWidgets);\n\n let dynamicWidgetDefs: readonly WidgetDef[] | undefined;\n if (section !== undefined) {\n dynamicWidgetDefs =\n UiFramework.widgetManager.getWidgetDefs(\n stageId,\n stageUsage,\n location,\n section\n ) ?? [];\n }\n\n const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n // Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be\n // defined, the following is needed to combining middle and end panel section widgets into a single set of widgets\n if (uniqueDynamicWidgetDefs) {\n allStageWidgetDefs.push(...uniqueDynamicWidgetDefs);\n this._dynamicWidgetDefs = [...uniqueDynamicWidgetDefs];\n }\n this.sortWidgetDefs();\n }\n\n /** Sorts all widgets */\n private sortWidgetDefs(): void {\n let sortedWidgetDefs = [];\n if (this._dynamicWidgetDefs)\n sortedWidgetDefs = this._widgetDefs.concat(this._dynamicWidgetDefs);\n else sortedWidgetDefs = this._widgetDefs.slice();\n\n sortedWidgetDefs.sort((a, b) => a.priority - b.priority);\n\n this._sortedWidgetDefs = sortedWidgetDefs;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/useWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/useWidget.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,SAAS;IA0CrB,0BAA0B;;IAE1B,sEAAsE;;IAEtE;;OAEG;4BAbW,KAAK,WAAW,EAAE,YAAY,QAAQ,CAAC;EAgBxD"}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.useWidget = void 0;
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const appui_layout_react_1 = require("@itwin/appui-layout-react");
|
|
10
8
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
9
|
+
const React = require("react");
|
|
11
10
|
const FrontstageDef_1 = require("../frontstage/FrontstageDef");
|
|
12
11
|
const InternalFrontstageManager_1 = require("../frontstage/InternalFrontstageManager");
|
|
12
|
+
const TabLocation_1 = require("../layout/state/TabLocation");
|
|
13
|
+
const ContentRenderer_1 = require("../layout/widget/ContentRenderer");
|
|
13
14
|
const Content_1 = require("../widget-panels/Content");
|
|
14
15
|
/** Hook that returns information about the Widget in the current context.
|
|
15
16
|
* @returns object that contains the WidgetLocation, WidgetState, and
|
|
@@ -17,27 +18,27 @@ const Content_1 = require("../widget-panels/Content");
|
|
|
17
18
|
* @alpha
|
|
18
19
|
*/
|
|
19
20
|
function useWidget() {
|
|
20
|
-
const tabId =
|
|
21
|
+
const tabId = React.useContext(ContentRenderer_1.TabIdContext);
|
|
21
22
|
(0, core_bentley_1.assert)(!!tabId);
|
|
22
23
|
const frontstage = (0, FrontstageDef_1.useActiveFrontstageDef)();
|
|
23
24
|
(0, core_bentley_1.assert)(!!frontstage);
|
|
24
25
|
const widgetDef = (0, Content_1.useWidgetDef)();
|
|
25
26
|
(0, core_bentley_1.assert)(!!widgetDef);
|
|
26
|
-
const [widgetLocation, setWidgetLocation] =
|
|
27
|
-
const [state, setState] =
|
|
28
|
-
|
|
27
|
+
const [widgetLocation, setWidgetLocation] = React.useState(findLocation(tabId, frontstage));
|
|
28
|
+
const [state, setState] = React.useState(widgetDef.state);
|
|
29
|
+
React.useEffect(() => {
|
|
29
30
|
return InternalFrontstageManager_1.InternalFrontstageManager.onFrontstageNineZoneStateChangedEvent.addListener(() => {
|
|
30
31
|
if (widgetDef)
|
|
31
32
|
return setState(widgetDef.state);
|
|
32
33
|
});
|
|
33
34
|
}, [frontstage, widgetDef]);
|
|
34
|
-
|
|
35
|
+
React.useEffect(() => {
|
|
35
36
|
return InternalFrontstageManager_1.InternalFrontstageManager.onFrontstageNineZoneStateChangedEvent.addListener(() => {
|
|
36
37
|
setWidgetLocation(findLocation(tabId, frontstage));
|
|
37
38
|
});
|
|
38
39
|
}, [frontstage, tabId]);
|
|
39
|
-
const setWidgetState =
|
|
40
|
-
widgetDef
|
|
40
|
+
const setWidgetState = React.useCallback((widgetState) => {
|
|
41
|
+
widgetDef?.setWidgetState(widgetState);
|
|
41
42
|
}, [widgetDef]);
|
|
42
43
|
return {
|
|
43
44
|
/** State of the Widget */
|
|
@@ -53,15 +54,15 @@ function useWidget() {
|
|
|
53
54
|
exports.useWidget = useWidget;
|
|
54
55
|
function findLocation(locationTabId, frontstage) {
|
|
55
56
|
(0, core_bentley_1.assert)(!!frontstage.nineZoneState);
|
|
56
|
-
const tabLocation = (0,
|
|
57
|
+
const tabLocation = (0, TabLocation_1.getTabLocation)(frontstage.nineZoneState, locationTabId);
|
|
57
58
|
if (tabLocation) {
|
|
58
|
-
if ((0,
|
|
59
|
+
if ((0, TabLocation_1.isFloatingTabLocation)(tabLocation)) {
|
|
59
60
|
return "floating";
|
|
60
61
|
}
|
|
61
|
-
if ((0,
|
|
62
|
+
if ((0, TabLocation_1.isPopoutTabLocation)(tabLocation)) {
|
|
62
63
|
return "popout";
|
|
63
64
|
}
|
|
64
|
-
if ((0,
|
|
65
|
+
if ((0, TabLocation_1.isPanelTabLocation)(tabLocation)) {
|
|
65
66
|
return "docked";
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/useWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,
|
|
1
|
+
{"version":3,"file":"useWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/useWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,sDAA6C;AAC7C,+BAA+B;AAE/B,+DAAqE;AACrE,uFAAoF;AACpF,6DAKqC;AACrC,sEAAgE;AAChE,sDAAwD;AAGxD;;;;GAIG;AACH,SAAgB,SAAS;IACvB,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,8BAAY,CAAC,CAAC;IAC7C,IAAA,qBAAM,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAEhB,MAAM,UAAU,GAAG,IAAA,sCAAsB,GAAE,CAAC;IAE5C,IAAA,qBAAM,EAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAErB,MAAM,SAAS,GAAG,IAAA,sBAAY,GAAE,CAAC;IAEjC,IAAA,qBAAM,EAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEpB,MAAM,CAAC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AC,CAAC;IAE5E,IAAI,WAAW,EAAE;QACf,IAAI,IAAA,mCAAqB,EAAC,WAAW,CAAC,EAAE;YACtC,OAAO,UAAU,CAAC;SACnB;QAED,IAAI,IAAA,iCAAmB,EAAC,WAAW,CAAC,EAAE;YACpC,OAAO,QAAQ,CAAC;SACjB;QAED,IAAI,IAAA,gCAAkB,EAAC,WAAW,CAAC,EAAE;YACnC,OAAO,QAAQ,CAAC;SACjB;KACF;IAED,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport { assert } from \"@itwin/core-bentley\";\nimport * as React from \"react\";\nimport type { FrontstageDef } from \"../frontstage/FrontstageDef\";\nimport { useActiveFrontstageDef } from \"../frontstage/FrontstageDef\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport {\n getTabLocation,\n isFloatingTabLocation,\n isPanelTabLocation,\n isPopoutTabLocation,\n} from \"../layout/state/TabLocation\";\nimport { TabIdContext } from \"../layout/widget/ContentRenderer\";\nimport { useWidgetDef } from \"../widget-panels/Content\";\nimport type { WidgetState } from \"./WidgetState\";\n\n/** Hook that returns information about the Widget in the current context.\n * @returns object that contains the WidgetLocation, WidgetState, and\n * the ability to set the state of the widget.\n * @alpha\n */\nexport function useWidget() {\n const tabId = React.useContext(TabIdContext);\n assert(!!tabId);\n\n const frontstage = useActiveFrontstageDef();\n\n assert(!!frontstage);\n\n const widgetDef = useWidgetDef();\n\n assert(!!widgetDef);\n\n const [widgetLocation, setWidgetLocation] = React.useState<\n \"docked\" | \"floating\" | \"popout\"\n >(findLocation(tabId, frontstage));\n\n const [state, setState] = React.useState(widgetDef.state);\n\n React.useEffect(() => {\n return InternalFrontstageManager.onFrontstageNineZoneStateChangedEvent.addListener(\n () => {\n if (widgetDef) return setState(widgetDef.state);\n }\n );\n }, [frontstage, widgetDef]);\n\n React.useEffect(() => {\n return InternalFrontstageManager.onFrontstageNineZoneStateChangedEvent.addListener(\n () => {\n setWidgetLocation(findLocation(tabId, frontstage));\n }\n );\n }, [frontstage, tabId]);\n\n const setWidgetState = React.useCallback(\n (widgetState: Omit<WidgetState, WidgetState.Floating>) => {\n widgetDef?.setWidgetState(widgetState as WidgetState);\n },\n [widgetDef]\n );\n\n return {\n /** State of the Widget */\n state,\n /** Where the widget is located (\"docked\" | \"popout\" | \"floating\"). */\n widgetLocation,\n /** Set widget to different state\n * @param WidgetState that you want to set the widget to.\n */\n setState: setWidgetState,\n };\n}\n\nfunction findLocation(locationTabId: string, frontstage: FrontstageDef) {\n assert(!!frontstage.nineZoneState);\n const tabLocation = getTabLocation(frontstage.nineZoneState, locationTabId);\n\n if (tabLocation) {\n if (isFloatingTabLocation(tabLocation)) {\n return \"floating\";\n }\n\n if (isPopoutTabLocation(tabLocation)) {\n return \"popout\";\n }\n\n if (isPanelTabLocation(tabLocation)) {\n return \"docked\";\n }\n }\n\n return \"floating\";\n}\n"]}
|