@itwin/appui-react 4.0.0-dev.3 → 4.0.0-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1397) hide show
  1. package/CHANGELOG.md +119 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +33 -2
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +30 -5
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/_variables.scss +2 -2
  7. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -2
  8. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +4 -9
  9. package/lib/cjs/appui-react/backstage/Backstage.d.ts +62 -0
  10. package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -0
  11. package/lib/cjs/appui-react/backstage/Backstage.js +89 -0
  12. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -0
  13. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  14. package/lib/cjs/appui-react/backstage/BackstageComposer.js +2 -2
  15. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  16. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +3 -3
  17. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  18. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +43 -0
  19. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -0
  20. package/lib/cjs/appui-react/backstage/BackstageItem.js +37 -0
  21. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -0
  22. package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts +49 -0
  23. package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts.map +1 -0
  24. package/lib/cjs/appui-react/backstage/BackstageItemProps.js +22 -0
  25. package/lib/cjs/appui-react/backstage/BackstageItemProps.js.map +1 -0
  26. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +19 -0
  27. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -0
  28. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +59 -0
  29. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -0
  30. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  31. package/lib/cjs/appui-react/backstage/BackstageManager.js +2 -0
  32. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  33. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts +32 -0
  34. package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts.map +1 -0
  35. package/lib/cjs/appui-react/backstage/CommandLaunch.js +87 -0
  36. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -0
  37. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts +34 -0
  38. package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -0
  39. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js +93 -0
  40. package/lib/cjs/appui-react/backstage/FrontstageLaunch.js.map +1 -0
  41. package/lib/cjs/appui-react/backstage/Separator.d.ts +16 -0
  42. package/lib/cjs/appui-react/backstage/Separator.d.ts.map +1 -0
  43. package/lib/cjs/appui-react/backstage/Separator.js +28 -0
  44. package/lib/cjs/appui-react/backstage/Separator.js.map +1 -0
  45. package/lib/cjs/appui-react/backstage/TaskLaunch.d.ts +35 -0
  46. package/lib/cjs/appui-react/backstage/TaskLaunch.d.ts.map +1 -0
  47. package/lib/cjs/appui-react/backstage/TaskLaunch.js +101 -0
  48. package/lib/cjs/appui-react/backstage/TaskLaunch.js.map +1 -0
  49. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  50. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  51. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -1
  52. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  53. package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  54. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +9 -6
  55. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  56. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +4 -1
  58. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  59. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts +21 -1
  60. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  61. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +28 -2
  62. package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  63. package/lib/cjs/appui-react/configurableui/configurableui.scss +7 -5
  64. package/lib/cjs/appui-react/configurableui/state.d.ts +7 -0
  65. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  66. package/lib/cjs/appui-react/configurableui/state.js +9 -0
  67. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  68. package/lib/cjs/appui-react/content/ContentGroup.d.ts +9 -2
  69. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  70. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  71. package/lib/cjs/appui-react/content/ContentLayout.d.ts +4 -0
  72. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  73. package/lib/cjs/appui-react/content/ContentLayout.js +2 -2
  74. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  75. package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +5 -4
  76. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  78. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +0 -2
  79. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  80. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  81. package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts +22 -0
  82. package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -0
  83. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js +33 -0
  84. package/lib/cjs/appui-react/dragdrop/ZoneTargets.js.map +1 -0
  85. package/lib/cjs/appui-react/feedback/ElementTooltip.js +2 -1
  86. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  87. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts +0 -2
  88. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  90. package/lib/cjs/appui-react/feedback/ValidationTextbox.scss +4 -4
  91. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +159 -0
  92. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  93. package/lib/cjs/appui-react/frontstage/Frontstage.js +470 -0
  94. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  95. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +147 -0
  96. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -0
  97. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +668 -0
  98. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -0
  99. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -1
  100. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  101. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +74 -19
  102. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  103. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +305 -91
  104. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  105. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +10 -4
  106. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  107. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +47 -21
  108. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  109. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +11 -3
  110. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  111. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  112. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +0 -2
  113. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  114. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +1 -2
  115. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  116. package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +4 -1
  117. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +4 -2
  119. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  120. package/lib/cjs/appui-react/frontstage/StageUsage.d.ts +15 -0
  121. package/lib/cjs/appui-react/frontstage/StageUsage.d.ts.map +1 -0
  122. package/lib/cjs/appui-react/frontstage/StageUsage.js +17 -0
  123. package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -0
  124. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +15 -4
  125. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +27 -44
  127. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  128. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
  129. package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  130. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +38 -0
  131. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -0
  132. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +57 -0
  133. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -0
  134. package/lib/cjs/appui-react/imodel-components/Common.d.ts +26 -0
  135. package/lib/cjs/appui-react/imodel-components/Common.d.ts.map +1 -0
  136. package/lib/cjs/appui-react/imodel-components/Common.js +25 -0
  137. package/lib/cjs/appui-react/imodel-components/Common.js.map +1 -0
  138. package/lib/cjs/appui-react/imodel-components/VisibilityTreeBase.scss +53 -0
  139. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +72 -0
  140. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -0
  141. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +149 -0
  142. package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -0
  143. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +52 -0
  144. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -0
  145. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js +71 -0
  146. package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -0
  147. package/lib/cjs/appui-react/imodel-components/category-tree/Categories.json +102 -0
  148. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +72 -0
  149. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -0
  150. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js +109 -0
  151. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -0
  152. package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.scss +9 -0
  153. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +64 -0
  154. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -0
  155. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +201 -0
  156. package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -0
  157. package/lib/cjs/appui-react/imodel-components/models-tree/Hierarchy.GroupedByClass.json +392 -0
  158. package/lib/cjs/appui-react/imodel-components/models-tree/Hierarchy.json +387 -0
  159. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +85 -0
  160. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -0
  161. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js +130 -0
  162. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -0
  163. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.scss +9 -0
  164. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +239 -0
  165. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +104 -0
  166. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -0
  167. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +482 -0
  168. package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -0
  169. package/lib/cjs/appui-react/imodel-components/models-tree/Utils.d.ts +10 -0
  170. package/lib/cjs/appui-react/imodel-components/models-tree/Utils.d.ts.map +1 -0
  171. package/lib/cjs/appui-react/imodel-components/models-tree/Utils.js +23 -0
  172. package/lib/cjs/appui-react/imodel-components/models-tree/Utils.js.map +1 -0
  173. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialBreakdown.GroupedByClass.json +79 -0
  174. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialBreakdown.json +79 -0
  175. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +36 -0
  176. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -0
  177. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +44 -0
  178. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -0
  179. package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.scss +9 -0
  180. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +80 -0
  181. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -0
  182. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +239 -0
  183. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -0
  184. package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.scss +11 -0
  185. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts +36 -1
  186. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/messages/ActivityMessage.js +38 -25
  188. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  189. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts +20 -0
  190. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -0
  191. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js +44 -0
  192. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js.map +1 -0
  193. package/lib/cjs/appui-react/messages/ActivityMessagePopup.scss +15 -0
  194. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  195. package/lib/cjs/appui-react/messages/MessageManager.js +3 -2
  196. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  197. package/lib/cjs/appui-react/messages/Pointer.js +2 -1
  198. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  199. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts +22 -0
  200. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -0
  201. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js +76 -0
  202. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js.map +1 -0
  203. package/lib/cjs/appui-react/messages/StatusMessageRenderer.scss +28 -0
  204. package/lib/cjs/appui-react/messages/StatusMessagesContainer.d.ts +25 -0
  205. package/lib/cjs/appui-react/messages/StatusMessagesContainer.d.ts.map +1 -0
  206. package/lib/cjs/appui-react/messages/StatusMessagesContainer.js +68 -0
  207. package/lib/cjs/appui-react/messages/StatusMessagesContainer.js.map +1 -0
  208. package/lib/cjs/appui-react/messages/StatusMessagesContainer.scss +53 -0
  209. package/lib/cjs/appui-react/messages/StickyMessage.d.ts +23 -0
  210. package/lib/cjs/appui-react/messages/StickyMessage.d.ts.map +1 -0
  211. package/lib/cjs/appui-react/messages/StickyMessage.js +39 -0
  212. package/lib/cjs/appui-react/messages/StickyMessage.js.map +1 -0
  213. package/lib/cjs/appui-react/messages/StickyMessage.scss +22 -0
  214. package/lib/cjs/appui-react/messages/ToastMessage.d.ts +23 -0
  215. package/lib/cjs/appui-react/messages/ToastMessage.d.ts.map +1 -0
  216. package/lib/cjs/appui-react/messages/ToastMessage.js +31 -0
  217. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -0
  218. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  219. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js +0 -1
  220. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  221. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js +0 -1
  223. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  224. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  225. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +0 -1
  226. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  227. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +9 -13
  228. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  229. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +7 -6
  230. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  231. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +35 -3
  232. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/pickers/ListPicker.js +143 -9
  234. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  235. package/lib/cjs/appui-react/pickers/ListPicker.scss +17 -15
  236. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/pickers/ViewSelector.js +1 -0
  238. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  239. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +0 -2
  240. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  241. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  242. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
  243. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +65 -3
  244. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  245. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +20 -3
  246. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  247. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts +7 -8
  248. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
  249. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +3 -9
  250. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  251. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.d.ts +18 -0
  252. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.d.ts.map +1 -0
  253. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js +57 -0
  254. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js.map +1 -0
  255. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +12 -0
  257. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  258. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +13 -6
  259. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +12 -0
  260. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  261. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +26 -26
  262. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  263. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.scss +9 -8
  264. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +7 -0
  265. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +19 -0
  267. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  268. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +2 -0
  269. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  270. package/lib/cjs/appui-react/shared/CustomItemDef.js +18 -0
  271. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  272. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -0
  273. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  275. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +3 -0
  276. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  277. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  278. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +8 -0
  279. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  280. package/lib/cjs/appui-react/shared/ItemDefBase.js +16 -2
  281. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  282. package/lib/cjs/appui-react/shared/ItemProps.d.ts +17 -0
  283. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  285. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts +62 -0
  286. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -0
  287. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +122 -0
  288. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -0
  289. package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.scss +42 -0
  290. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +142 -0
  291. package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -0
  292. package/lib/cjs/appui-react/stagepanels/StagePanel.js +155 -0
  293. package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -0
  294. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -10
  295. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js +1 -0
  297. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  298. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +30 -10
  299. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  300. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +112 -53
  301. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  302. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +28 -0
  303. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -0
  304. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +46 -0
  305. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -0
  306. package/lib/cjs/appui-react/stagepanels/StagePanelHeader.scss +26 -0
  307. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
  308. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
  309. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js +16 -0
  310. package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
  311. package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
  312. package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
  313. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js +16 -0
  314. package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -0
  315. package/lib/cjs/appui-react/statusbar/Indicator.js +4 -2
  316. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  317. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +2 -1
  318. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  319. package/lib/cjs/appui-react/statusbar/Overflow.d.ts +1 -1
  320. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  321. package/lib/cjs/appui-react/statusbar/Overflow.js +3 -2
  322. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  323. package/lib/cjs/appui-react/statusbar/Separator.d.ts +0 -1
  324. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  325. package/lib/cjs/appui-react/statusbar/Separator.js +3 -4
  326. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  327. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +17 -1
  328. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  329. package/lib/cjs/appui-react/statusbar/StatusBar.js +55 -6
  330. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  331. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  332. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -12
  333. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  334. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +52 -2
  335. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  336. package/lib/cjs/appui-react/statusbar/StatusBarItem.js +33 -2
  337. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  338. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
  339. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  340. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
  341. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  342. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +11 -0
  343. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -0
  344. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +19 -0
  345. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -0
  346. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts +20 -1
  347. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  348. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  349. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +1 -1
  350. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  351. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +1 -1
  352. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  353. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  354. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  355. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -1
  356. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  357. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.d.ts +10 -0
  358. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.d.ts.map +1 -0
  359. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js +26 -0
  360. package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -0
  361. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.d.ts +11 -0
  362. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.d.ts.map +1 -0
  363. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js +27 -0
  364. package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js.map +1 -0
  365. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts +21 -3
  366. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  367. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +47 -39
  368. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  369. package/lib/cjs/appui-react/statusfields/ConditionalField.d.ts +45 -0
  370. package/lib/cjs/appui-react/statusfields/ConditionalField.d.ts.map +1 -0
  371. package/lib/cjs/appui-react/statusfields/ConditionalField.js +57 -0
  372. package/lib/cjs/appui-react/statusfields/ConditionalField.js.map +1 -0
  373. package/lib/cjs/appui-react/statusfields/FooterModeField.d.ts +19 -0
  374. package/lib/cjs/appui-react/statusfields/FooterModeField.d.ts.map +1 -0
  375. package/lib/cjs/appui-react/statusfields/FooterModeField.js +28 -0
  376. package/lib/cjs/appui-react/statusfields/FooterModeField.js.map +1 -0
  377. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +44 -0
  378. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -0
  379. package/lib/cjs/appui-react/statusfields/Indicator.js +46 -0
  380. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -0
  381. package/lib/cjs/appui-react/statusfields/Indicator.scss +183 -0
  382. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts +16 -5
  383. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/statusfields/MessageCenter.js +38 -10
  385. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  386. package/lib/cjs/appui-react/statusfields/PromptField.d.ts +31 -0
  387. package/lib/cjs/appui-react/statusfields/PromptField.d.ts.map +1 -0
  388. package/lib/cjs/appui-react/statusfields/PromptField.js +52 -0
  389. package/lib/cjs/appui-react/statusfields/PromptField.js.map +1 -0
  390. package/lib/cjs/appui-react/statusfields/PromptField.scss +42 -0
  391. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts +2 -2
  392. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  393. package/lib/cjs/appui-react/statusfields/SectionsField.js +13 -10
  394. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  395. package/lib/cjs/appui-react/statusfields/SectionsField.scss +6 -5
  396. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +2 -2
  397. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  398. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +5 -1
  399. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  400. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +2 -2
  401. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  402. package/lib/cjs/appui-react/statusfields/SelectionScope.js +9 -4
  403. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  404. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +7 -5
  405. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -2
  406. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/statusfields/SnapMode.js +3 -2
  408. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  409. package/lib/cjs/appui-react/statusfields/StatusFieldProps.d.ts +23 -0
  410. package/lib/cjs/appui-react/statusfields/StatusFieldProps.d.ts.map +1 -0
  411. package/lib/cjs/appui-react/statusfields/StatusFieldProps.js +3 -0
  412. package/lib/cjs/appui-react/statusfields/StatusFieldProps.js.map +1 -0
  413. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +4 -3
  414. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  415. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +10 -2
  416. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  417. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +3 -3
  418. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  419. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +4 -1
  420. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  421. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +22 -9
  422. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +6 -5
  423. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  424. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +38 -22
  425. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  426. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +22 -10
  427. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +44 -0
  428. package/lib/cjs/appui-react/syncui/BooleanListener.d.ts.map +1 -0
  429. package/lib/cjs/appui-react/syncui/BooleanListener.js +70 -0
  430. package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -0
  431. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +27 -4
  432. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  433. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +38 -4
  434. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  435. package/lib/cjs/appui-react/toolbar/ActionButtonItem.d.ts +18 -0
  436. package/lib/cjs/appui-react/toolbar/ActionButtonItem.d.ts.map +1 -0
  437. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js +31 -0
  438. package/lib/cjs/appui-react/toolbar/ActionButtonItem.js.map +1 -0
  439. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts +40 -0
  440. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -0
  441. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +104 -0
  442. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -0
  443. package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts +79 -0
  444. package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -0
  445. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +329 -0
  446. package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -0
  447. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +93 -2
  448. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  449. package/lib/cjs/appui-react/toolbar/GroupItem.js +393 -2
  450. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  451. package/lib/cjs/appui-react/toolbar/PopupButton.d.ts +58 -0
  452. package/lib/cjs/appui-react/toolbar/PopupButton.d.ts.map +1 -0
  453. package/lib/cjs/appui-react/toolbar/PopupButton.js +154 -0
  454. package/lib/cjs/appui-react/toolbar/PopupButton.js.map +1 -0
  455. package/lib/cjs/appui-react/toolbar/PopupButton.scss +9 -0
  456. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts +31 -0
  457. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts.map +1 -0
  458. package/lib/cjs/appui-react/toolbar/ToolButton.js +100 -0
  459. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -0
  460. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +55 -0
  461. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -0
  462. package/lib/cjs/appui-react/toolbar/Toolbar.js +240 -0
  463. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -0
  464. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  465. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +27 -3
  466. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  467. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +2 -1
  468. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +16 -2
  470. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  471. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +53 -0
  472. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
  473. package/lib/cjs/appui-react/toolbar/ToolbarItem.js +41 -0
  474. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -0
  475. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
  476. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
  477. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +28 -0
  478. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
  479. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  480. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -1
  481. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  482. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +7 -0
  483. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  484. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +43 -1
  485. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  486. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +22 -0
  487. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts.map +1 -0
  488. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +54 -0
  489. package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -0
  490. package/lib/cjs/appui-react/tools/ToolSettingsTools.js +1 -1
  491. package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
  492. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
  493. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
  494. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js +20 -0
  495. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
  496. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
  497. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
  498. package/lib/{esm/appui-react/safearea/SafeAreaHelpers.js → cjs/appui-react/ui-items-provider/ProviderItem.js} +4 -6
  499. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
  500. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  501. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -1
  502. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  503. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +1 -0
  504. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  505. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +11 -1
  506. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  507. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  508. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  509. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  510. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
  511. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  512. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  513. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +21 -6
  514. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  515. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +0 -1
  516. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  517. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +20 -6
  518. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  519. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
  520. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
  521. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +19 -0
  522. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
  523. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
  524. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
  525. package/lib/cjs/appui-react/{safearea/SafeAreaHelpers.js → ui-items-provider/UiItemsProvider.js} +2 -8
  526. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
  527. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  528. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js +3 -1
  529. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  530. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
  531. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +5 -1
  532. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  533. package/lib/cjs/appui-react/uistate/AppUiSettings.js +6 -0
  534. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  535. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  536. package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  537. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +62 -0
  538. package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  539. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  540. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  541. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -7
  542. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  543. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  544. package/lib/cjs/appui-react/widget-panels/Content.js +4 -6
  545. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  546. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +19 -20
  547. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  548. package/lib/cjs/appui-react/widget-panels/Frontstage.js +217 -108
  549. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  550. package/lib/cjs/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
  551. package/lib/cjs/appui-react/widget-panels/FrontstageContent.js +3 -3
  552. package/lib/cjs/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  553. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  554. package/lib/cjs/appui-react/widget-panels/StatusBar.js +9 -6
  555. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  556. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +7 -7
  557. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  558. package/lib/cjs/appui-react/widget-panels/ToolSettings.scss +2 -3
  559. package/lib/cjs/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
  560. package/lib/cjs/appui-react/widget-panels/Toolbars.js +12 -5
  561. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  562. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
  563. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +8 -6
  564. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  565. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  566. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +5 -3
  567. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  568. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  569. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  570. package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  571. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.d.ts +35 -0
  572. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.d.ts.map +1 -0
  573. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js +65 -0
  574. package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js.map +1 -0
  575. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts +56 -0
  576. package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -0
  577. package/lib/cjs/appui-react/widgets/NavigationWidget.js +155 -0
  578. package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -0
  579. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  580. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -1
  581. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  582. package/lib/cjs/appui-react/widgets/ReviewToolWidget.d.ts +33 -0
  583. package/lib/cjs/appui-react/widgets/ReviewToolWidget.d.ts.map +1 -0
  584. package/lib/cjs/appui-react/widgets/ReviewToolWidget.js +74 -0
  585. package/lib/cjs/appui-react/widgets/ReviewToolWidget.js.map +1 -0
  586. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  587. package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
  588. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  589. package/lib/cjs/appui-react/widgets/ToolSettingsContent.d.ts +19 -0
  590. package/lib/cjs/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
  591. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +40 -1
  592. package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  593. package/lib/cjs/appui-react/widgets/ToolSettingsContent.scss +61 -0
  594. package/lib/cjs/appui-react/widgets/ToolWidget.d.ts +47 -0
  595. package/lib/cjs/appui-react/widgets/ToolWidget.d.ts.map +1 -0
  596. package/lib/cjs/appui-react/widgets/ToolWidget.js +90 -0
  597. package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -0
  598. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +26 -0
  599. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -0
  600. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +55 -0
  601. package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -0
  602. package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  603. package/lib/cjs/appui-react/widgets/Widget.d.ts +15 -0
  604. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -0
  605. package/lib/cjs/appui-react/widgets/Widget.js +26 -0
  606. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -0
  607. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts +4 -19
  608. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
  609. package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -1
  610. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  611. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +70 -11
  612. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  613. package/lib/cjs/appui-react/widgets/WidgetDef.js +117 -59
  614. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  615. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts +2 -1
  616. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  617. package/lib/cjs/appui-react/widgets/WidgetHost.js +94 -4
  618. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  619. package/lib/cjs/appui-react/widgets/WidgetManager.d.ts +5 -3
  620. package/lib/cjs/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  621. package/lib/cjs/appui-react/widgets/WidgetManager.js +54 -17
  622. package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
  623. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts +33 -0
  624. package/lib/cjs/appui-react/widgets/WidgetProps.d.ts.map +1 -0
  625. package/lib/cjs/appui-react/widgets/WidgetProps.js +10 -0
  626. package/lib/cjs/appui-react/widgets/WidgetProps.js.map +1 -0
  627. package/lib/cjs/appui-react/widgets/WidgetStack.d.ts +135 -0
  628. package/lib/cjs/appui-react/widgets/WidgetStack.d.ts.map +1 -0
  629. package/lib/cjs/appui-react/widgets/WidgetStack.js +138 -0
  630. package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -0
  631. package/lib/cjs/appui-react/widgets/WidgetState.d.ts +13 -0
  632. package/lib/cjs/appui-react/widgets/WidgetState.d.ts.map +1 -0
  633. package/lib/cjs/appui-react/widgets/WidgetState.js +16 -0
  634. package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -0
  635. package/lib/cjs/appui-react/workflow/Task.d.ts +48 -0
  636. package/lib/cjs/appui-react/workflow/Task.d.ts.map +1 -0
  637. package/lib/cjs/appui-react/workflow/Task.js +73 -0
  638. package/lib/cjs/appui-react/workflow/Task.js.map +1 -0
  639. package/lib/cjs/appui-react/workflow/Workflow.d.ts +153 -0
  640. package/lib/cjs/appui-react/workflow/Workflow.d.ts.map +1 -0
  641. package/lib/cjs/appui-react/workflow/Workflow.js +238 -0
  642. package/lib/cjs/appui-react/workflow/Workflow.js.map +1 -0
  643. package/lib/cjs/appui-react/zones/FrameworkZone.d.ts +44 -0
  644. package/lib/cjs/appui-react/zones/FrameworkZone.d.ts.map +1 -0
  645. package/lib/cjs/appui-react/zones/FrameworkZone.js +53 -0
  646. package/lib/cjs/appui-react/zones/FrameworkZone.js.map +1 -0
  647. package/lib/cjs/appui-react/zones/Outline.d.ts +14 -0
  648. package/lib/cjs/appui-react/zones/Outline.d.ts.map +1 -0
  649. package/lib/cjs/appui-react/zones/Outline.js +22 -0
  650. package/lib/cjs/appui-react/zones/Outline.js.map +1 -0
  651. package/lib/cjs/appui-react/zones/StatusBarZone.d.ts +28 -0
  652. package/lib/cjs/appui-react/zones/StatusBarZone.d.ts.map +1 -0
  653. package/lib/cjs/appui-react/zones/StatusBarZone.js +33 -0
  654. package/lib/cjs/appui-react/zones/StatusBarZone.js.map +1 -0
  655. package/lib/cjs/appui-react/zones/Zone.d.ts +88 -0
  656. package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -0
  657. package/lib/cjs/appui-react/zones/Zone.js +158 -0
  658. package/lib/cjs/appui-react/zones/Zone.js.map +1 -0
  659. package/lib/cjs/appui-react/zones/ZoneDef.d.ts +57 -0
  660. package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -0
  661. package/lib/cjs/appui-react/zones/ZoneDef.js +92 -0
  662. package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -0
  663. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.d.ts +1 -1
  664. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -0
  665. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.js +6 -5
  666. package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -0
  667. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.d.ts +0 -0
  668. package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -0
  669. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.js +3 -3
  670. package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.js.map +1 -0
  671. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.d.ts +0 -0
  672. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -0
  673. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.js +1 -1
  674. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -0
  675. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.d.ts +54 -0
  676. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -0
  677. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js +96 -0
  678. package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -0
  679. package/lib/{esm/appui-react → cjs/appui-react/zones}/toolsettings/ToolUiProvider.d.ts +2 -2
  680. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -0
  681. package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolUiProvider.js +1 -1
  682. package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -0
  683. package/lib/cjs/appui-react.d.ts +84 -9
  684. package/lib/cjs/appui-react.d.ts.map +1 -1
  685. package/lib/cjs/appui-react.js +84 -9
  686. package/lib/cjs/appui-react.js.map +1 -1
  687. package/lib/esm/appui-react/UiFramework.d.ts +33 -2
  688. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  689. package/lib/esm/appui-react/UiFramework.js +28 -4
  690. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  691. package/lib/esm/appui-react/_variables.scss +2 -2
  692. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -2
  693. package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +4 -9
  694. package/lib/esm/appui-react/backstage/Backstage.d.ts +62 -0
  695. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -0
  696. package/lib/esm/appui-react/backstage/Backstage.js +84 -0
  697. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -0
  698. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  699. package/lib/esm/appui-react/backstage/BackstageComposer.js +2 -2
  700. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  701. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -2
  702. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  703. package/lib/esm/appui-react/backstage/BackstageItem.d.ts +43 -0
  704. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -0
  705. package/lib/esm/appui-react/backstage/BackstageItem.js +32 -0
  706. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -0
  707. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +49 -0
  708. package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts.map +1 -0
  709. package/lib/esm/appui-react/backstage/BackstageItemProps.js +18 -0
  710. package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -0
  711. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +19 -0
  712. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -0
  713. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +55 -0
  714. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -0
  715. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  716. package/lib/esm/appui-react/backstage/BackstageManager.js +2 -0
  717. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  718. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +32 -0
  719. package/lib/esm/appui-react/backstage/CommandLaunch.d.ts.map +1 -0
  720. package/lib/esm/appui-react/backstage/CommandLaunch.js +83 -0
  721. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -0
  722. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +34 -0
  723. package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -0
  724. package/lib/esm/appui-react/backstage/FrontstageLaunch.js +89 -0
  725. package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -0
  726. package/lib/esm/appui-react/backstage/Separator.d.ts +16 -0
  727. package/lib/esm/appui-react/backstage/Separator.d.ts.map +1 -0
  728. package/lib/esm/appui-react/backstage/Separator.js +24 -0
  729. package/lib/esm/appui-react/backstage/Separator.js.map +1 -0
  730. package/lib/esm/appui-react/backstage/TaskLaunch.d.ts +35 -0
  731. package/lib/esm/appui-react/backstage/TaskLaunch.d.ts.map +1 -0
  732. package/lib/esm/appui-react/backstage/TaskLaunch.js +97 -0
  733. package/lib/esm/appui-react/backstage/TaskLaunch.js.map +1 -0
  734. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  735. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  736. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -1
  737. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  738. package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
  739. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +9 -6
  740. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  741. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  742. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +4 -1
  743. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  744. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts +21 -1
  745. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
  746. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +28 -2
  747. package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
  748. package/lib/esm/appui-react/configurableui/configurableui.scss +7 -5
  749. package/lib/esm/appui-react/configurableui/state.d.ts +7 -0
  750. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  751. package/lib/esm/appui-react/configurableui/state.js +9 -0
  752. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  753. package/lib/esm/appui-react/content/ContentGroup.d.ts +9 -2
  754. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  755. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  756. package/lib/esm/appui-react/content/ContentLayout.d.ts +4 -0
  757. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  758. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  759. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  760. package/lib/esm/appui-react/content/DefaultViewOverlay.scss +5 -4
  761. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  762. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  763. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +0 -2
  764. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  765. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  766. package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts +22 -0
  767. package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -0
  768. package/lib/esm/appui-react/dragdrop/ZoneTargets.js +29 -0
  769. package/lib/esm/appui-react/dragdrop/ZoneTargets.js.map +1 -0
  770. package/lib/esm/appui-react/feedback/ElementTooltip.js +2 -1
  771. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  772. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts +0 -2
  773. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  774. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  775. package/lib/esm/appui-react/feedback/ValidationTextbox.scss +4 -4
  776. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +159 -0
  777. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  778. package/lib/esm/appui-react/frontstage/Frontstage.js +462 -0
  779. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  780. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +147 -0
  781. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -0
  782. package/lib/esm/appui-react/frontstage/FrontstageComposer.js +662 -0
  783. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -0
  784. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -1
  785. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  786. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +74 -19
  787. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  788. package/lib/esm/appui-react/frontstage/FrontstageDef.js +302 -85
  789. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  790. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +10 -4
  791. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  792. package/lib/esm/appui-react/frontstage/FrontstageManager.js +31 -5
  793. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  794. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +11 -3
  795. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  796. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  797. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +0 -2
  798. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  799. package/lib/esm/appui-react/frontstage/ModalFrontstage.js +1 -2
  800. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  801. package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +4 -1
  802. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  803. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +4 -2
  804. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  805. package/lib/esm/appui-react/frontstage/StageUsage.d.ts +15 -0
  806. package/lib/esm/appui-react/frontstage/StageUsage.d.ts.map +1 -0
  807. package/lib/esm/appui-react/frontstage/StageUsage.js +14 -0
  808. package/lib/esm/appui-react/frontstage/StageUsage.js.map +1 -0
  809. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +15 -4
  810. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  811. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +27 -44
  812. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  813. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
  814. package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
  815. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +38 -0
  816. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -0
  817. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +51 -0
  818. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -0
  819. package/lib/esm/appui-react/imodel-components/Common.d.ts +26 -0
  820. package/lib/esm/appui-react/imodel-components/Common.d.ts.map +1 -0
  821. package/lib/esm/appui-react/imodel-components/Common.js +22 -0
  822. package/lib/esm/appui-react/imodel-components/Common.js.map +1 -0
  823. package/lib/esm/appui-react/imodel-components/VisibilityTreeBase.scss +53 -0
  824. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +72 -0
  825. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -0
  826. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +145 -0
  827. package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -0
  828. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +52 -0
  829. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -0
  830. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js +63 -0
  831. package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -0
  832. package/lib/esm/appui-react/imodel-components/category-tree/Categories.json +102 -0
  833. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +72 -0
  834. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -0
  835. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js +103 -0
  836. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -0
  837. package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.scss +9 -0
  838. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +64 -0
  839. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -0
  840. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +195 -0
  841. package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -0
  842. package/lib/esm/appui-react/imodel-components/models-tree/Hierarchy.GroupedByClass.json +392 -0
  843. package/lib/esm/appui-react/imodel-components/models-tree/Hierarchy.json +387 -0
  844. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +85 -0
  845. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -0
  846. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js +126 -0
  847. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -0
  848. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.scss +9 -0
  849. package/lib/esm/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +239 -0
  850. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +104 -0
  851. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -0
  852. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +477 -0
  853. package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -0
  854. package/lib/esm/appui-react/imodel-components/models-tree/Utils.d.ts +10 -0
  855. package/lib/esm/appui-react/imodel-components/models-tree/Utils.d.ts.map +1 -0
  856. package/lib/esm/appui-react/imodel-components/models-tree/Utils.js +19 -0
  857. package/lib/esm/appui-react/imodel-components/models-tree/Utils.js.map +1 -0
  858. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialBreakdown.GroupedByClass.json +79 -0
  859. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialBreakdown.json +79 -0
  860. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +36 -0
  861. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -0
  862. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +40 -0
  863. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -0
  864. package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.scss +9 -0
  865. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +80 -0
  866. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -0
  867. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +235 -0
  868. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -0
  869. package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.scss +11 -0
  870. package/lib/esm/appui-react/messages/ActivityMessage.d.ts +36 -1
  871. package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  872. package/lib/esm/appui-react/messages/ActivityMessage.js +34 -24
  873. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  874. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts +20 -0
  875. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -0
  876. package/lib/esm/appui-react/messages/ActivityMessagePopup.js +40 -0
  877. package/lib/esm/appui-react/messages/ActivityMessagePopup.js.map +1 -0
  878. package/lib/esm/appui-react/messages/ActivityMessagePopup.scss +15 -0
  879. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  880. package/lib/esm/appui-react/messages/MessageManager.js +3 -2
  881. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  882. package/lib/esm/appui-react/messages/Pointer.js +2 -1
  883. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  884. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts +22 -0
  885. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -0
  886. package/lib/esm/appui-react/messages/StatusMessageRenderer.js +72 -0
  887. package/lib/esm/appui-react/messages/StatusMessageRenderer.js.map +1 -0
  888. package/lib/esm/appui-react/messages/StatusMessageRenderer.scss +28 -0
  889. package/lib/esm/appui-react/messages/StatusMessagesContainer.d.ts +25 -0
  890. package/lib/esm/appui-react/messages/StatusMessagesContainer.d.ts.map +1 -0
  891. package/lib/esm/appui-react/messages/StatusMessagesContainer.js +64 -0
  892. package/lib/esm/appui-react/messages/StatusMessagesContainer.js.map +1 -0
  893. package/lib/esm/appui-react/messages/StatusMessagesContainer.scss +53 -0
  894. package/lib/esm/appui-react/messages/StickyMessage.d.ts +23 -0
  895. package/lib/esm/appui-react/messages/StickyMessage.d.ts.map +1 -0
  896. package/lib/esm/appui-react/messages/StickyMessage.js +35 -0
  897. package/lib/esm/appui-react/messages/StickyMessage.js.map +1 -0
  898. package/lib/esm/appui-react/messages/StickyMessage.scss +22 -0
  899. package/lib/esm/appui-react/messages/ToastMessage.d.ts +23 -0
  900. package/lib/esm/appui-react/messages/ToastMessage.d.ts.map +1 -0
  901. package/lib/esm/appui-react/messages/ToastMessage.js +27 -0
  902. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -0
  903. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  904. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js +0 -1
  905. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  906. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  907. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js +0 -1
  908. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  909. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  910. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +0 -1
  911. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  912. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +9 -13
  913. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  914. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +9 -8
  915. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  916. package/lib/esm/appui-react/pickers/ListPicker.d.ts +35 -3
  917. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  918. package/lib/esm/appui-react/pickers/ListPicker.js +142 -9
  919. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  920. package/lib/esm/appui-react/pickers/ListPicker.scss +17 -15
  921. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  922. package/lib/esm/appui-react/pickers/ViewSelector.js +1 -0
  923. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  924. package/lib/esm/appui-react/popup/PositionPopup.d.ts +0 -2
  925. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  926. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  927. package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
  928. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +65 -3
  929. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  930. package/lib/esm/appui-react/safearea/SafeAreaContext.js +18 -2
  931. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  932. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts +7 -8
  933. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
  934. package/lib/esm/appui-react/safearea/SafeAreaInsets.js +3 -9
  935. package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -1
  936. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.d.ts +18 -0
  937. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.d.ts.map +1 -0
  938. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js +53 -0
  939. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js.map +1 -0
  940. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  941. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +12 -0
  942. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  943. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +13 -6
  944. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +12 -0
  945. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  946. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +26 -26
  947. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  948. package/lib/esm/appui-react/settings/ui/UiSettingsPage.scss +9 -8
  949. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +7 -0
  950. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  951. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +19 -0
  952. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  953. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +2 -0
  954. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  955. package/lib/esm/appui-react/shared/CustomItemDef.js +18 -0
  956. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  957. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -0
  958. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  959. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  960. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +3 -0
  961. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  962. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  963. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +8 -0
  964. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  965. package/lib/esm/appui-react/shared/ItemDefBase.js +16 -2
  966. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  967. package/lib/esm/appui-react/shared/ItemProps.d.ts +17 -0
  968. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  969. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  970. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts +62 -0
  971. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -0
  972. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +117 -0
  973. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -0
  974. package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.scss +42 -0
  975. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +142 -0
  976. package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -0
  977. package/lib/esm/appui-react/stagepanels/StagePanel.js +149 -0
  978. package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -0
  979. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -10
  980. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  981. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js +1 -0
  982. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  983. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +30 -10
  984. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  985. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +108 -50
  986. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  987. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +28 -0
  988. package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -0
  989. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +42 -0
  990. package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -0
  991. package/lib/esm/appui-react/stagepanels/StagePanelHeader.scss +26 -0
  992. package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
  993. package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
  994. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js +13 -0
  995. package/lib/esm/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
  996. package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
  997. package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
  998. package/lib/esm/appui-react/stagepanels/StagePanelSection.js +13 -0
  999. package/lib/esm/appui-react/stagepanels/StagePanelSection.js.map +1 -0
  1000. package/lib/esm/appui-react/statusbar/Indicator.js +4 -2
  1001. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1002. package/lib/esm/appui-react/statusbar/LabelIndicator.js +2 -1
  1003. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1004. package/lib/esm/appui-react/statusbar/Overflow.d.ts +1 -1
  1005. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1006. package/lib/esm/appui-react/statusbar/Overflow.js +3 -2
  1007. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1008. package/lib/esm/appui-react/statusbar/Separator.d.ts +0 -1
  1009. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1010. package/lib/esm/appui-react/statusbar/Separator.js +3 -4
  1011. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1012. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +17 -1
  1013. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1014. package/lib/esm/appui-react/statusbar/StatusBar.js +55 -6
  1015. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1016. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1017. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +21 -16
  1018. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1019. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +52 -2
  1020. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/statusbar/StatusBarItem.js +29 -1
  1022. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  1023. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
  1024. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
  1026. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  1027. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +11 -0
  1028. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -0
  1029. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +15 -0
  1030. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -0
  1031. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts +20 -1
  1032. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  1033. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  1034. package/lib/esm/appui-react/statusbar/dialog/Dialog.js +1 -1
  1035. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1036. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +1 -1
  1037. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1038. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  1039. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  1040. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -1
  1041. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  1042. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.d.ts +10 -0
  1043. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.d.ts.map +1 -0
  1044. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js +22 -0
  1045. package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -0
  1046. package/lib/esm/appui-react/statusbar/withStatusFieldProps.d.ts +11 -0
  1047. package/lib/esm/appui-react/statusbar/withStatusFieldProps.d.ts.map +1 -0
  1048. package/lib/esm/appui-react/statusbar/withStatusFieldProps.js +23 -0
  1049. package/lib/esm/appui-react/statusbar/withStatusFieldProps.js.map +1 -0
  1050. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts +21 -3
  1051. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1052. package/lib/esm/appui-react/statusfields/ActivityCenter.js +47 -39
  1053. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1054. package/lib/esm/appui-react/statusfields/ConditionalField.d.ts +45 -0
  1055. package/lib/esm/appui-react/statusfields/ConditionalField.d.ts.map +1 -0
  1056. package/lib/esm/appui-react/statusfields/ConditionalField.js +53 -0
  1057. package/lib/esm/appui-react/statusfields/ConditionalField.js.map +1 -0
  1058. package/lib/esm/appui-react/statusfields/FooterModeField.d.ts +19 -0
  1059. package/lib/esm/appui-react/statusfields/FooterModeField.d.ts.map +1 -0
  1060. package/lib/esm/appui-react/statusfields/FooterModeField.js +24 -0
  1061. package/lib/esm/appui-react/statusfields/FooterModeField.js.map +1 -0
  1062. package/lib/esm/appui-react/statusfields/Indicator.d.ts +44 -0
  1063. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -0
  1064. package/lib/esm/appui-react/statusfields/Indicator.js +42 -0
  1065. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -0
  1066. package/lib/esm/appui-react/statusfields/Indicator.scss +183 -0
  1067. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts +16 -5
  1068. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  1069. package/lib/esm/appui-react/statusfields/MessageCenter.js +38 -10
  1070. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  1071. package/lib/esm/appui-react/statusfields/PromptField.d.ts +31 -0
  1072. package/lib/esm/appui-react/statusfields/PromptField.d.ts.map +1 -0
  1073. package/lib/esm/appui-react/statusfields/PromptField.js +49 -0
  1074. package/lib/esm/appui-react/statusfields/PromptField.js.map +1 -0
  1075. package/lib/esm/appui-react/statusfields/PromptField.scss +42 -0
  1076. package/lib/esm/appui-react/statusfields/SectionsField.d.ts +2 -2
  1077. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1078. package/lib/esm/appui-react/statusfields/SectionsField.js +13 -10
  1079. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1080. package/lib/esm/appui-react/statusfields/SectionsField.scss +6 -5
  1081. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +2 -2
  1082. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1083. package/lib/esm/appui-react/statusfields/SelectionInfo.js +5 -1
  1084. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1085. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +2 -2
  1086. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1087. package/lib/esm/appui-react/statusfields/SelectionScope.js +9 -4
  1088. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/SelectionScope.scss +7 -5
  1090. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -2
  1091. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/statusfields/SnapMode.js +3 -2
  1093. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1094. package/lib/esm/appui-react/statusfields/StatusFieldProps.d.ts +23 -0
  1095. package/lib/esm/appui-react/statusfields/StatusFieldProps.d.ts.map +1 -0
  1096. package/lib/esm/appui-react/statusfields/StatusFieldProps.js +2 -0
  1097. package/lib/esm/appui-react/statusfields/StatusFieldProps.js.map +1 -0
  1098. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +4 -3
  1099. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1100. package/lib/esm/appui-react/statusfields/ViewAttributes.js +10 -2
  1101. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1102. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +3 -3
  1103. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1104. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +4 -1
  1105. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1106. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +22 -9
  1107. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +6 -5
  1108. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1109. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +39 -23
  1110. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1111. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +22 -10
  1112. package/lib/esm/appui-react/syncui/BooleanListener.d.ts +44 -0
  1113. package/lib/esm/appui-react/syncui/BooleanListener.d.ts.map +1 -0
  1114. package/lib/esm/appui-react/syncui/BooleanListener.js +66 -0
  1115. package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -0
  1116. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +27 -4
  1117. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1118. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +38 -4
  1119. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1120. package/lib/esm/appui-react/toolbar/ActionButtonItem.d.ts +18 -0
  1121. package/lib/esm/appui-react/toolbar/ActionButtonItem.d.ts.map +1 -0
  1122. package/lib/esm/appui-react/toolbar/ActionButtonItem.js +27 -0
  1123. package/lib/esm/appui-react/toolbar/ActionButtonItem.js.map +1 -0
  1124. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts +40 -0
  1125. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -0
  1126. package/lib/esm/appui-react/toolbar/ActionItemButton.js +100 -0
  1127. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -0
  1128. package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts +79 -0
  1129. package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -0
  1130. package/lib/esm/appui-react/toolbar/GroupButtonItem.js +324 -0
  1131. package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -0
  1132. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +93 -2
  1133. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1134. package/lib/esm/appui-react/toolbar/GroupItem.js +388 -1
  1135. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/PopupButton.d.ts +58 -0
  1137. package/lib/esm/appui-react/toolbar/PopupButton.d.ts.map +1 -0
  1138. package/lib/esm/appui-react/toolbar/PopupButton.js +150 -0
  1139. package/lib/esm/appui-react/toolbar/PopupButton.js.map +1 -0
  1140. package/lib/esm/appui-react/toolbar/PopupButton.scss +9 -0
  1141. package/lib/esm/appui-react/toolbar/ToolButton.d.ts +31 -0
  1142. package/lib/esm/appui-react/toolbar/ToolButton.d.ts.map +1 -0
  1143. package/lib/esm/appui-react/toolbar/ToolButton.js +96 -0
  1144. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -0
  1145. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +55 -0
  1146. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -0
  1147. package/lib/esm/appui-react/toolbar/Toolbar.js +236 -0
  1148. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -0
  1149. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +26 -2
  1151. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  1152. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +2 -1
  1153. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1154. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +16 -2
  1155. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1156. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +53 -0
  1157. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
  1158. package/lib/esm/appui-react/toolbar/ToolbarItem.js +35 -0
  1159. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -0
  1160. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
  1161. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
  1162. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +25 -0
  1163. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
  1164. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  1165. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -1
  1166. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  1167. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +7 -0
  1168. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1169. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +44 -2
  1170. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1171. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +22 -0
  1172. package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts.map +1 -0
  1173. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +50 -0
  1174. package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -0
  1175. package/lib/esm/appui-react/tools/ToolSettingsTools.js +1 -1
  1176. package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
  1177. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
  1178. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
  1179. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js +16 -0
  1180. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
  1181. package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
  1182. package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
  1183. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js +9 -0
  1184. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
  1185. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1186. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -1
  1187. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1188. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +1 -0
  1189. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1190. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +11 -1
  1191. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1192. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1193. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1194. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1195. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
  1196. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1197. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1198. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +21 -6
  1199. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1200. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +0 -1
  1201. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1202. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +20 -6
  1203. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1204. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
  1205. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
  1206. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +15 -0
  1207. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
  1208. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
  1209. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
  1210. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js +9 -0
  1211. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
  1212. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  1213. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js +3 -1
  1214. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  1215. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
  1216. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +5 -1
  1217. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1218. package/lib/esm/appui-react/uistate/AppUiSettings.js +6 -0
  1219. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1220. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
  1221. package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
  1222. package/lib/esm/appui-react/uistate/UserSettingsStorage.js +58 -0
  1223. package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -0
  1224. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1225. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  1226. package/lib/esm/appui-react/utils/UiShowHideManager.js +8 -7
  1227. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  1228. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  1229. package/lib/esm/appui-react/widget-panels/Content.js +3 -5
  1230. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  1231. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +19 -20
  1232. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1233. package/lib/esm/appui-react/widget-panels/Frontstage.js +216 -106
  1234. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1235. package/lib/esm/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
  1236. package/lib/esm/appui-react/widget-panels/FrontstageContent.js +2 -2
  1237. package/lib/esm/appui-react/widget-panels/FrontstageContent.js.map +1 -1
  1238. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1239. package/lib/esm/appui-react/widget-panels/StatusBar.js +8 -5
  1240. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1241. package/lib/esm/appui-react/widget-panels/ToolSettings.js +7 -7
  1242. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  1243. package/lib/esm/appui-react/widget-panels/ToolSettings.scss +2 -3
  1244. package/lib/esm/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
  1245. package/lib/esm/appui-react/widget-panels/Toolbars.js +11 -4
  1246. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  1247. package/lib/esm/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
  1248. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +9 -7
  1249. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  1250. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1251. package/lib/esm/appui-react/widgets/BackstageAppButton.js +5 -3
  1252. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1253. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1254. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1255. package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
  1256. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.d.ts +35 -0
  1257. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.d.ts.map +1 -0
  1258. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js +61 -0
  1259. package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js.map +1 -0
  1260. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts +56 -0
  1261. package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -0
  1262. package/lib/esm/appui-react/widgets/NavigationWidget.js +150 -0
  1263. package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -0
  1264. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1265. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -1
  1266. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1267. package/lib/esm/appui-react/widgets/ReviewToolWidget.d.ts +33 -0
  1268. package/lib/esm/appui-react/widgets/ReviewToolWidget.d.ts.map +1 -0
  1269. package/lib/esm/appui-react/widgets/ReviewToolWidget.js +70 -0
  1270. package/lib/esm/appui-react/widgets/ReviewToolWidget.js.map +1 -0
  1271. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  1272. package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
  1273. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  1274. package/lib/esm/appui-react/widgets/ToolSettingsContent.d.ts +19 -0
  1275. package/lib/esm/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
  1276. package/lib/esm/appui-react/widgets/ToolSettingsContent.js +38 -0
  1277. package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
  1278. package/lib/esm/appui-react/widgets/ToolSettingsContent.scss +61 -0
  1279. package/lib/esm/appui-react/widgets/ToolWidget.d.ts +47 -0
  1280. package/lib/esm/appui-react/widgets/ToolWidget.d.ts.map +1 -0
  1281. package/lib/esm/appui-react/widgets/ToolWidget.js +85 -0
  1282. package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -0
  1283. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +26 -0
  1284. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -0
  1285. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +51 -0
  1286. package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -0
  1287. package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
  1288. package/lib/esm/appui-react/widgets/Widget.d.ts +15 -0
  1289. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -0
  1290. package/lib/esm/appui-react/widgets/Widget.js +22 -0
  1291. package/lib/esm/appui-react/widgets/Widget.js.map +1 -0
  1292. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts +4 -19
  1293. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
  1294. package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -1
  1295. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  1296. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +70 -11
  1297. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1298. package/lib/esm/appui-react/widgets/WidgetDef.js +117 -59
  1299. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1300. package/lib/esm/appui-react/widgets/WidgetHost.d.ts +2 -1
  1301. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  1302. package/lib/esm/appui-react/widgets/WidgetHost.js +94 -4
  1303. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  1304. package/lib/esm/appui-react/widgets/WidgetManager.d.ts +5 -3
  1305. package/lib/esm/appui-react/widgets/WidgetManager.d.ts.map +1 -1
  1306. package/lib/esm/appui-react/widgets/WidgetManager.js +55 -18
  1307. package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
  1308. package/lib/esm/appui-react/widgets/WidgetProps.d.ts +33 -0
  1309. package/lib/esm/appui-react/widgets/WidgetProps.d.ts.map +1 -0
  1310. package/lib/esm/appui-react/widgets/WidgetProps.js +9 -0
  1311. package/lib/esm/appui-react/widgets/WidgetProps.js.map +1 -0
  1312. package/lib/esm/appui-react/widgets/WidgetStack.d.ts +135 -0
  1313. package/lib/esm/appui-react/widgets/WidgetStack.d.ts.map +1 -0
  1314. package/lib/esm/appui-react/widgets/WidgetStack.js +131 -0
  1315. package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -0
  1316. package/lib/esm/appui-react/widgets/WidgetState.d.ts +13 -0
  1317. package/lib/esm/appui-react/widgets/WidgetState.d.ts.map +1 -0
  1318. package/lib/esm/appui-react/widgets/WidgetState.js +13 -0
  1319. package/lib/esm/appui-react/widgets/WidgetState.js.map +1 -0
  1320. package/lib/esm/appui-react/workflow/Task.d.ts +48 -0
  1321. package/lib/esm/appui-react/workflow/Task.d.ts.map +1 -0
  1322. package/lib/esm/appui-react/workflow/Task.js +68 -0
  1323. package/lib/esm/appui-react/workflow/Task.js.map +1 -0
  1324. package/lib/esm/appui-react/workflow/Workflow.d.ts +153 -0
  1325. package/lib/esm/appui-react/workflow/Workflow.d.ts.map +1 -0
  1326. package/lib/esm/appui-react/workflow/Workflow.js +231 -0
  1327. package/lib/esm/appui-react/workflow/Workflow.js.map +1 -0
  1328. package/lib/esm/appui-react/zones/FrameworkZone.d.ts +44 -0
  1329. package/lib/esm/appui-react/zones/FrameworkZone.d.ts.map +1 -0
  1330. package/lib/esm/appui-react/zones/FrameworkZone.js +47 -0
  1331. package/lib/esm/appui-react/zones/FrameworkZone.js.map +1 -0
  1332. package/lib/esm/appui-react/zones/Outline.d.ts +14 -0
  1333. package/lib/esm/appui-react/zones/Outline.d.ts.map +1 -0
  1334. package/lib/esm/appui-react/zones/Outline.js +18 -0
  1335. package/lib/esm/appui-react/zones/Outline.js.map +1 -0
  1336. package/lib/esm/appui-react/zones/StatusBarZone.d.ts +28 -0
  1337. package/lib/esm/appui-react/zones/StatusBarZone.d.ts.map +1 -0
  1338. package/lib/esm/appui-react/zones/StatusBarZone.js +29 -0
  1339. package/lib/esm/appui-react/zones/StatusBarZone.js.map +1 -0
  1340. package/lib/esm/appui-react/zones/Zone.d.ts +88 -0
  1341. package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -0
  1342. package/lib/esm/appui-react/zones/Zone.js +152 -0
  1343. package/lib/esm/appui-react/zones/Zone.js.map +1 -0
  1344. package/lib/esm/appui-react/zones/ZoneDef.d.ts +57 -0
  1345. package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -0
  1346. package/lib/esm/appui-react/zones/ZoneDef.js +88 -0
  1347. package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -0
  1348. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.d.ts +1 -1
  1349. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -0
  1350. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.js +6 -5
  1351. package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -0
  1352. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.d.ts +0 -0
  1353. package/lib/esm/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -0
  1354. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.js +3 -3
  1355. package/lib/esm/appui-react/zones/toolsettings/ToolInformation.js.map +1 -0
  1356. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.d.ts +0 -0
  1357. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -0
  1358. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.js +1 -1
  1359. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -0
  1360. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.d.ts +54 -0
  1361. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -0
  1362. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js +92 -0
  1363. package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -0
  1364. package/lib/{cjs/appui-react → esm/appui-react/zones}/toolsettings/ToolUiProvider.d.ts +2 -2
  1365. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -0
  1366. package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolUiProvider.js +1 -1
  1367. package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -0
  1368. package/lib/esm/appui-react.d.ts +84 -9
  1369. package/lib/esm/appui-react.d.ts.map +1 -1
  1370. package/lib/esm/appui-react.js +84 -9
  1371. package/lib/esm/appui-react.js.map +1 -1
  1372. package/lib/public/locales/en/UiFramework.json +2 -0
  1373. package/package.json +55 -45
  1374. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
  1375. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
  1376. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
  1377. package/lib/cjs/appui-react/statusbar/Separator.scss +0 -14
  1378. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +0 -1
  1379. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +0 -1
  1380. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts.map +0 -1
  1381. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +0 -1
  1382. package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
  1383. package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
  1384. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts.map +0 -1
  1385. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +0 -1
  1386. package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
  1387. package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
  1388. package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
  1389. package/lib/esm/appui-react/statusbar/Separator.scss +0 -14
  1390. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +0 -1
  1391. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +0 -1
  1392. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts.map +0 -1
  1393. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +0 -1
  1394. package/lib/esm/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
  1395. package/lib/esm/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
  1396. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts.map +0 -1
  1397. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +0 -1
@@ -9,10 +9,12 @@ import { UiError, UiEvent, WidgetState } from "@itwin/appui-abstract";
9
9
  import { ConfigurableCreateInfo, ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl";
10
10
  import { ConfigurableUiManager } from "../configurableui/ConfigurableUiManager";
11
11
  import { FrontstageManager } from "../frontstage/FrontstageManager";
12
+ import { SyncUiEventDispatcher } from "../syncui/SyncUiEventDispatcher";
12
13
  import { UiFramework } from "../UiFramework";
13
14
  import { PropsHelper } from "../utils/PropsHelper";
14
15
  import { StatusBarWidgetComposerControl } from "./StatusBarWidgetComposerControl";
15
16
  import { IconHelper } from "@itwin/core-react";
17
+ /* eslint-disable deprecation/deprecation */
16
18
  const widgetStateNameMap = new Map([
17
19
  [WidgetState.Closed, "Closed"],
18
20
  [WidgetState.Floating, "Floating"],
@@ -32,24 +34,33 @@ export var WidgetType;
32
34
  (function (WidgetType) {
33
35
  WidgetType[WidgetType["Tool"] = 0] = "Tool";
34
36
  WidgetType[WidgetType["Navigation"] = 1] = "Navigation";
35
- WidgetType[WidgetType["Rectangular"] = 2] = "Rectangular";
36
- WidgetType[WidgetType["ToolSettings"] = 3] = "ToolSettings";
37
- WidgetType[WidgetType["StatusBar"] = 4] = "StatusBar";
37
+ /** @deprecated in 3.6. */
38
+ WidgetType[WidgetType["FreeFrom"] = 2] = "FreeFrom";
39
+ WidgetType[WidgetType["Rectangular"] = 3] = "Rectangular";
40
+ WidgetType[WidgetType["ToolSettings"] = 4] = "ToolSettings";
41
+ WidgetType[WidgetType["StatusBar"] = 5] = "StatusBar";
38
42
  })(WidgetType || (WidgetType = {}));
39
43
  // -----------------------------------------------------------------------------
40
44
  /** A Widget Definition in the 9-Zone Layout system.
41
45
  * @public
42
46
  */
43
47
  export class WidgetDef {
44
- constructor() {
48
+ /** @internal */
49
+ constructor(widgetProps) {
45
50
  this._label = "";
46
51
  this._tooltip = "";
47
52
  this._defaultState = WidgetState.Unloaded;
53
+ this._state = WidgetState.Unloaded;
48
54
  this._classId = undefined;
49
55
  this._priority = 0;
56
+ this._isFreeform = false;
50
57
  this._isFloatingStateSupported = false;
51
58
  this._isFloatingStateWindowResizable = true;
59
+ this._isToolSettings = false;
60
+ this._isStatusBar = false;
52
61
  this._stateChanged = false;
62
+ this._fillZone = false;
63
+ this._syncEventIds = [];
53
64
  this._widgetType = WidgetType.Rectangular;
54
65
  this._defaultTabLocation = {
55
66
  side: "left",
@@ -57,10 +68,24 @@ export class WidgetDef {
57
68
  widgetId: "",
58
69
  widgetIndex: 0,
59
70
  };
71
+ this._handleSyncUiEvent = (args) => {
72
+ if ((this.syncEventIds.length > 0) && this.syncEventIds.some((value) => args.eventIds.has(value.toLowerCase()))) { // eslint-disable-line deprecation/deprecation
73
+ // istanbul ignore else
74
+ if (this.stateFunc) { // eslint-disable-line deprecation/deprecation
75
+ let newState = this.state;
76
+ newState = this.stateFunc(newState); // eslint-disable-line deprecation/deprecation
77
+ this.setWidgetState(newState);
78
+ }
79
+ }
80
+ };
60
81
  WidgetDef._sId++;
61
82
  this._id = `Widget-${WidgetDef._sId}`;
83
+ if (widgetProps)
84
+ WidgetDef.initializeFromWidgetProps(widgetProps, this); // eslint-disable-line deprecation/deprecation
62
85
  }
63
86
  get state() {
87
+ if ("1" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation
88
+ return this._state;
64
89
  const frontstageDef = FrontstageManager.activeFrontstageDef;
65
90
  if (frontstageDef && frontstageDef.findWidgetDef(this.id)) {
66
91
  const currentState = frontstageDef.getWidgetCurrentState(this);
@@ -73,17 +98,25 @@ export class WidgetDef {
73
98
  get id() { return this._id; }
74
99
  get classId() { return this._classId; }
75
100
  get priority() { return this._priority; }
101
+ /** @deprecated in 3.6. */
102
+ get isFreeform() { return this._isFreeform; }
76
103
  get isFloatingStateSupported() { return this._isFloatingStateSupported; }
77
104
  get isFloatingStateWindowResizable() { return this._isFloatingStateWindowResizable; }
78
- get isToolSettings() { return this._widgetType === WidgetType.ToolSettings; }
79
- get isStatusBar() { return this._widgetType === WidgetType.StatusBar; }
105
+ get isToolSettings() { return this._isToolSettings; }
106
+ get isStatusBar() { return this._isStatusBar; }
80
107
  get stateChanged() { return this._stateChanged; }
108
+ /** @deprecated in 3.6. UI1.0 is deprecated. */
109
+ get fillZone() { return this._fillZone; }
110
+ /** @deprecated in 3.6. */
111
+ get syncEventIds() { return this._syncEventIds; }
112
+ /** @deprecated in 3.6. */
113
+ get stateFunc() { return this._stateFunc; } // eslint-disable-line deprecation/deprecation
81
114
  get applicationData() { return this._applicationData; }
82
115
  get isFloating() { return this.state === WidgetState.Floating; }
83
116
  get iconSpec() { return this._iconSpec === IconHelper.reactIconKey ? IconHelper.getIconReactNode(this._iconSpec, this._internalData) : this._iconSpec; }
84
117
  set iconSpec(spec) { this._iconSpec = this._internalData ? IconHelper.getIconData(spec, this._internalData) : spec; }
85
118
  get badgeType() { return this._badgeType; }
86
- get initialConfig() { return this._initialConfig; }
119
+ get initialProps() { return this._initialProps; } // eslint-disable-line deprecation/deprecation
87
120
  get widgetType() { return this._widgetType; }
88
121
  set widgetType(type) { this._widgetType = type; }
89
122
  /** @internal */
@@ -102,60 +135,83 @@ export class WidgetDef {
102
135
  /** @internal */
103
136
  get popoutBounds() { return this._popoutBounds; }
104
137
  set popoutBounds(bounds) { this._popoutBounds = bounds; }
105
- /** @internal */
106
- static create(config, type = WidgetType.Rectangular) {
107
- const def = new WidgetDef();
108
- def.initializeFromConfig(config, type);
109
- return def;
110
- }
111
- initializeFromConfig(config, type) {
112
- this._widgetType = type;
113
- this._initialConfig = config;
114
- this._id = config.id;
115
- if (config.label)
116
- this.setLabel(config.label);
117
- else if (config.labelKey)
118
- this._label = UiFramework.localization.getLocalizedString(config.labelKey);
119
- this.setCanPopout(config.canPopout);
120
- this.setFloatingContainerId(config.floatingContainerId);
121
- this.defaultFloatingPosition = config.defaultFloatingPosition ? config.defaultFloatingPosition : undefined;
122
- this._hideWithUiWhenFloating = !!config.hideWithUiWhenFloating;
123
- this.allowedPanelTargets = config.allowedPanelTargets;
124
- if (config.priority !== undefined)
125
- this._priority = config.priority;
126
- if (config.tooltip)
127
- this.setTooltip(config.tooltip);
128
- else if (config.tooltipKey)
129
- this._tooltip = UiFramework.localization.getLocalizedString(config.tooltipKey);
130
- if (config.control !== undefined)
131
- this._classId = config.control;
132
- else if (config.classId !== undefined)
133
- this._classId = config.classId;
134
- if (config.defaultState !== undefined) {
135
- this._defaultState = config.defaultState;
138
+ /** @deprecated in 3.5. */
139
+ static initializeFromWidgetProps(widgetProps, me) {
140
+ me._initialProps = widgetProps;
141
+ if (widgetProps.id !== undefined)
142
+ me._id = widgetProps.id;
143
+ if (widgetProps.label)
144
+ me.setLabel(widgetProps.label);
145
+ else if (widgetProps.labelKey)
146
+ me._label = UiFramework.localization.getLocalizedString(widgetProps.labelKey);
147
+ me.setCanPopout(widgetProps.canPopout);
148
+ me.setFloatingContainerId(widgetProps.floatingContainerId);
149
+ me.defaultFloatingPosition = widgetProps.defaultFloatingPosition ? widgetProps.defaultFloatingPosition : undefined;
150
+ me._hideWithUiWhenFloating = !!widgetProps.hideWithUiWhenFloating;
151
+ me.allowedPanelTargets = widgetProps.allowedPanelTargets;
152
+ if (widgetProps.priority !== undefined)
153
+ me._priority = widgetProps.priority;
154
+ if (widgetProps.tooltip)
155
+ me.setTooltip(widgetProps.tooltip);
156
+ else if (widgetProps.tooltipKey)
157
+ me._tooltip = UiFramework.localization.getLocalizedString(widgetProps.tooltipKey);
158
+ if (widgetProps.control !== undefined)
159
+ me._classId = widgetProps.control;
160
+ else if (widgetProps.classId !== undefined)
161
+ me._classId = widgetProps.classId;
162
+ if (widgetProps.defaultState !== undefined) {
163
+ me._defaultState = widgetProps.defaultState;
164
+ // istanbul ignore next
165
+ if ("1" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation
166
+ me._state = widgetProps.defaultState === WidgetState.Floating ? WidgetState.Open : widgetProps.defaultState;
167
+ }
168
+ if (widgetProps.isFreeform !== undefined) { // eslint-disable-line deprecation/deprecation
169
+ me._isFreeform = widgetProps.isFreeform; // eslint-disable-line deprecation/deprecation
170
+ me._widgetType = me.isFreeform ? WidgetType.FreeFrom : WidgetType.Rectangular; // eslint-disable-line deprecation/deprecation
136
171
  }
137
- if (config.isFloatingStateSupported !== undefined)
138
- this._isFloatingStateSupported = config.isFloatingStateSupported;
139
- if (config.isFloatingStateWindowResizable !== undefined)
140
- this._isFloatingStateWindowResizable = config.isFloatingStateWindowResizable;
141
- if (config.applicationData !== undefined)
142
- this._applicationData = config.applicationData;
143
- if (config.element !== undefined)
144
- this._widgetReactNode = config.element;
145
- if (config.iconSpec !== undefined)
146
- this._iconSpec = config.iconSpec;
147
- if (config.internalData)
148
- this._internalData = config.internalData;
172
+ if (widgetProps.isFloatingStateSupported !== undefined)
173
+ me._isFloatingStateSupported = widgetProps.isFloatingStateSupported;
174
+ if (widgetProps.isFloatingStateWindowResizable !== undefined)
175
+ me._isFloatingStateWindowResizable = widgetProps.isFloatingStateWindowResizable;
176
+ if (widgetProps.isToolSettings !== undefined)
177
+ me._isToolSettings = widgetProps.isToolSettings;
178
+ if (widgetProps.isStatusBar !== undefined)
179
+ me._isStatusBar = widgetProps.isStatusBar;
180
+ if (widgetProps.fillZone !== undefined)
181
+ me._fillZone = widgetProps.fillZone;
182
+ if (widgetProps.applicationData !== undefined)
183
+ me._applicationData = widgetProps.applicationData;
184
+ if (widgetProps.element !== undefined)
185
+ me._widgetReactNode = widgetProps.element;
186
+ if (widgetProps.iconSpec !== undefined)
187
+ me._iconSpec = widgetProps.iconSpec;
188
+ if (widgetProps.internalData)
189
+ me._internalData = widgetProps.internalData;
149
190
  // istanbul ignore next
150
- if (config.icon !== undefined && this._iconSpec === undefined)
151
- this._iconSpec = config.icon;
152
- if (config.badgeType !== undefined)
153
- this._badgeType = config.badgeType;
154
- this._preferredPanelSize = config.preferredPanelSize;
155
- this._defaultFloatingSize = config.defaultFloatingSize;
156
- this._onWidgetStateChanged = config.onWidgetStateChanged;
157
- this._saveTransientState = config.saveTransientState;
158
- this._restoreTransientState = config.restoreTransientState;
191
+ if (widgetProps.icon !== undefined && me._iconSpec === undefined)
192
+ me._iconSpec = widgetProps.icon;
193
+ if (widgetProps.badgeType !== undefined)
194
+ me._badgeType = widgetProps.badgeType;
195
+ me._preferredPanelSize = widgetProps.preferredPanelSize;
196
+ me._defaultFloatingSize = widgetProps.defaultFloatingSize;
197
+ me._onWidgetStateChanged = widgetProps.onWidgetStateChanged;
198
+ me._saveTransientState = widgetProps.saveTransientState;
199
+ me._restoreTransientState = widgetProps.restoreTransientState;
200
+ me.setUpSyncSupport(widgetProps); // eslint-disable-line deprecation/deprecation
201
+ }
202
+ /** @deprecated in 3.5. */
203
+ static createWidgetPropsFromAbstractProps(abstractWidgetProps) {
204
+ const widgetProps = abstractWidgetProps; // eslint-disable-line deprecation/deprecation
205
+ widgetProps.element = abstractWidgetProps.getWidgetContent();
206
+ return widgetProps;
207
+ }
208
+ /** @deprecated in 3.5. */
209
+ setUpSyncSupport(props) {
210
+ if (props.stateFunc && props.syncEventIds && props.syncEventIds.length > 0) { // eslint-disable-line deprecation/deprecation
211
+ this._syncEventIds = props.syncEventIds;
212
+ this._stateFunc = props.stateFunc; // eslint-disable-line deprecation/deprecation
213
+ SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);
214
+ }
159
215
  }
160
216
  /** @alpha */
161
217
  get preferredPanelSize() {
@@ -234,6 +290,8 @@ export class WidgetDef {
234
290
  setWidgetState(newState) {
235
291
  if (this.state === newState)
236
292
  return;
293
+ if ("1" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation
294
+ this._state = newState;
237
295
  this._stateChanged = true;
238
296
  FrontstageManager.onWidgetStateChangedEvent.emit({ widgetDef: this, widgetState: newState });
239
297
  this.onWidgetStateChanged();
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetDef.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAA+D,OAAO,EAAE,OAAO,EAAE,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;IAChE,CAAC;IAED;;OAEG;IACI,MAAM;QACX,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;;AAnWc,cAAI,GAAG,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Widget\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { BadgeType, ConditionalStringValue, PointProps, StringGetter, UiError, UiEvent, WidgetState } from \"@itwin/appui-abstract\";\r\nimport { FloatingWidgetState, PanelSide } from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { ConfigurableUiManager } from \"../configurableui/ConfigurableUiManager\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { WidgetControl } from \"./WidgetControl\";\r\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\r\nimport { IconHelper, IconSpec, Rectangle, SizeProps } from \"@itwin/core-react\";\r\nimport { WidgetConfig } from \"./WidgetConfig\";\r\n\r\nconst widgetStateNameMap = new Map<WidgetState, string>([\r\n [WidgetState.Closed, \"Closed\"],\r\n [WidgetState.Floating, \"Floating\"],\r\n [WidgetState.Hidden, \"Hidden\"],\r\n [WidgetState.Open, \"Open\"],\r\n [WidgetState.Unloaded, \"Unloaded\"],\r\n]);\r\n\r\n/** Widget State Changed Event Args interface.\r\n * @public\r\n */\r\nexport interface WidgetStateChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n widgetState: WidgetState;\r\n}\r\n\r\n/** Widget State Changed Event class.\r\n * @public\r\n */\r\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> { }\r\n\r\n/** @internal */\r\nexport interface WidgetChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** @internal */\r\nexport interface WidgetEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** Widget type enum.\r\n * @public\r\n */\r\nexport enum WidgetType {\r\n Tool,\r\n Navigation,\r\n Rectangular,\r\n ToolSettings,\r\n StatusBar,\r\n}\r\n\r\n/** @internal */\r\nexport interface TabLocation {\r\n widgetId: string;\r\n widgetIndex: number;\r\n side: PanelSide;\r\n tabIndex: number;\r\n floatingWidget?: FloatingWidgetState;\r\n}\r\n\r\n// -----------------------------------------------------------------------------\r\n\r\n/** A Widget Definition in the 9-Zone Layout system.\r\n * @public\r\n */\r\nexport class WidgetDef {\r\n private static _sId = 0;\r\n private _label: string | ConditionalStringValue | StringGetter = \"\";\r\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\r\n private _widgetReactNode: React.ReactNode;\r\n private _widgetControl!: WidgetControl;\r\n private _defaultState: WidgetState = WidgetState.Unloaded;\r\n private _id: string;\r\n private _classId: string | ConfigurableUiControlConstructor | undefined = undefined;\r\n private _priority: number = 0;\r\n private _isFloatingStateSupported: boolean = false;\r\n private _isFloatingStateWindowResizable: boolean = true;\r\n private _stateChanged: boolean = false;\r\n private _widgetType: WidgetType = WidgetType.Rectangular;\r\n private _applicationData?: any;\r\n private _iconSpec?: string | ConditionalStringValue | React.ReactNode;\r\n private _internalData?: Map<string, any>;\r\n private _badgeType?: BadgeType;\r\n private _onWidgetStateChanged?: () => void;\r\n private _saveTransientState?: () => void;\r\n private _restoreTransientState?: () => boolean;\r\n private _preferredPanelSize: \"fit-content\" | undefined;\r\n private _defaultFloatingSize: SizeProps | undefined;\r\n private _canPopout?: boolean;\r\n private _floatingContainerId?: string;\r\n private _defaultFloatingPosition: PointProps | undefined;\r\n\r\n private _hideWithUiWhenFloating?: boolean;\r\n private _allowedPanelTargets?: ReadonlyArray<\"left\" | \"right\" | \"bottom\" | \"top\">;\r\n private _initialConfig?: WidgetConfig;\r\n\r\n private _tabLocation?: TabLocation;\r\n private _defaultTabLocation: TabLocation = {\r\n side: \"left\",\r\n tabIndex: 0,\r\n widgetId: \"\",\r\n widgetIndex: 0,\r\n };\r\n private _popoutBounds?: Rectangle;\r\n\r\n public get state(): WidgetState {\r\n const frontstageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontstageDef && frontstageDef.findWidgetDef(this.id)) {\r\n const currentState = frontstageDef.getWidgetCurrentState(this);\r\n // istanbul ignore else\r\n if (undefined !== currentState)\r\n return currentState;\r\n }\r\n return this.defaultState;\r\n }\r\n\r\n public get id(): string { return this._id; }\r\n public get classId(): string | ConfigurableUiControlConstructor | undefined { return this._classId; }\r\n public get priority(): number { return this._priority; }\r\n public get isFloatingStateSupported(): boolean { return this._isFloatingStateSupported; }\r\n public get isFloatingStateWindowResizable(): boolean { return this._isFloatingStateWindowResizable; }\r\n public get isToolSettings(): boolean { return this._widgetType === WidgetType.ToolSettings; }\r\n public get isStatusBar(): boolean { return this._widgetType === WidgetType.StatusBar; }\r\n public get stateChanged(): boolean { return this._stateChanged; }\r\n public get applicationData(): any | undefined { return this._applicationData; }\r\n public get isFloating(): boolean { return this.state === WidgetState.Floating; }\r\n public get iconSpec(): IconSpec { return this._iconSpec === IconHelper.reactIconKey ? IconHelper.getIconReactNode(this._iconSpec, this._internalData) : this._iconSpec; }\r\n public set iconSpec(spec: IconSpec) { this._iconSpec = this._internalData ? IconHelper.getIconData(spec, this._internalData) : spec; }\r\n public get badgeType(): BadgeType | undefined { return this._badgeType; }\r\n public get initialConfig(): WidgetConfig | undefined { return this._initialConfig; }\r\n\r\n public get widgetType(): WidgetType { return this._widgetType; }\r\n public set widgetType(type: WidgetType) { this._widgetType = type; }\r\n\r\n /** @internal */\r\n public get tabLocation() { return this._tabLocation; }\r\n public set tabLocation(tabLocation: TabLocation | undefined) { this._tabLocation = tabLocation; }\r\n\r\n /** @internal */\r\n public get defaultTabLocation() { return this._defaultTabLocation; }\r\n\r\n /** @internal */\r\n public get defaultFloatingPosition() { return this._defaultFloatingPosition; }\r\n public set defaultFloatingPosition(position: PointProps | undefined) { this._defaultFloatingPosition = position; }\r\n\r\n /** @internal */\r\n public get defaultFloatingSize() { return this._defaultFloatingSize; }\r\n public set defaultFloatingSize(size: SizeProps | undefined) { this._defaultFloatingSize = size; }\r\n\r\n /** @internal */\r\n public get defaultState() { return this._defaultState; }\r\n\r\n /** @internal */\r\n public get popoutBounds() { return this._popoutBounds; }\r\n public set popoutBounds(bounds: Rectangle | undefined) { this._popoutBounds = bounds; }\r\n\r\n constructor() {\r\n WidgetDef._sId++;\r\n this._id = `Widget-${WidgetDef._sId}`;\r\n }\r\n\r\n /** @internal */\r\n public static create(config: WidgetConfig, type: WidgetType = WidgetType.Rectangular) {\r\n const def = new WidgetDef();\r\n def.initializeFromConfig(config, type);\r\n return def;\r\n }\r\n\r\n private initializeFromConfig(config: WidgetConfig, type: WidgetType) {\r\n this._widgetType = type;\r\n this._initialConfig = config;\r\n this._id = config.id;\r\n\r\n if (config.label)\r\n this.setLabel(config.label);\r\n else if (config.labelKey)\r\n this._label = UiFramework.localization.getLocalizedString(config.labelKey);\r\n\r\n this.setCanPopout(config.canPopout);\r\n this.setFloatingContainerId(config.floatingContainerId);\r\n this.defaultFloatingPosition = config.defaultFloatingPosition ? config.defaultFloatingPosition as PointProps : undefined;\r\n\r\n this._hideWithUiWhenFloating = !!config.hideWithUiWhenFloating;\r\n\r\n this.allowedPanelTargets = config.allowedPanelTargets;\r\n\r\n if (config.priority !== undefined)\r\n this._priority = config.priority;\r\n\r\n if (config.tooltip)\r\n this.setTooltip(config.tooltip);\r\n else if (config.tooltipKey)\r\n this._tooltip = UiFramework.localization.getLocalizedString(config.tooltipKey);\r\n\r\n if (config.control !== undefined)\r\n this._classId = config.control;\r\n else if (config.classId !== undefined)\r\n this._classId = config.classId;\r\n\r\n if (config.defaultState !== undefined) {\r\n this._defaultState = config.defaultState;\r\n }\r\n\r\n if (config.isFloatingStateSupported !== undefined)\r\n this._isFloatingStateSupported = config.isFloatingStateSupported;\r\n if (config.isFloatingStateWindowResizable !== undefined)\r\n this._isFloatingStateWindowResizable = config.isFloatingStateWindowResizable;\r\n\r\n if (config.applicationData !== undefined)\r\n this._applicationData = config.applicationData;\r\n\r\n if (config.element !== undefined)\r\n this._widgetReactNode = config.element;\r\n\r\n if (config.iconSpec !== undefined)\r\n this._iconSpec = config.iconSpec;\r\n if (config.internalData)\r\n this._internalData = config.internalData;\r\n // istanbul ignore next\r\n if (config.icon !== undefined && this._iconSpec === undefined)\r\n this._iconSpec = config.icon;\r\n\r\n if (config.badgeType !== undefined)\r\n this._badgeType = config.badgeType;\r\n\r\n this._preferredPanelSize = config.preferredPanelSize;\r\n this._defaultFloatingSize = config.defaultFloatingSize;\r\n this._onWidgetStateChanged = config.onWidgetStateChanged;\r\n this._saveTransientState = config.saveTransientState;\r\n this._restoreTransientState = config.restoreTransientState;\r\n }\r\n\r\n /** @alpha */\r\n public get preferredPanelSize() {\r\n return this._preferredPanelSize;\r\n }\r\n\r\n /** Get the label string */\r\n public get label(): string {\r\n return PropsHelper.getStringFromSpec(this._label);\r\n }\r\n\r\n /** Set the label.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setLabel(v: string | ConditionalStringValue | StringGetter) {\r\n if (this._label === v)\r\n return;\r\n this._label = v;\r\n FrontstageManager.onWidgetLabelChangedEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Get the tooltip string */\r\n public get tooltip(): string {\r\n return PropsHelper.getStringFromSpec(this._tooltip);\r\n }\r\n\r\n /** Set the tooltip.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\r\n this._tooltip = v;\r\n }\r\n\r\n public get widgetControl(): WidgetControl | undefined {\r\n return this._widgetControl;\r\n }\r\n\r\n public getWidgetControl(type: ConfigurableUiControlType): WidgetControl | undefined {\r\n if (!this._widgetControl && this.classId) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof this.classId === \"string\") {\r\n // istanbul ignore else\r\n if (this.classId)\r\n this._widgetControl = ConfigurableUiManager.createControl(this.classId, this.id, this.applicationData) as WidgetControl;\r\n usedClassId = this.classId;\r\n } else {\r\n const info = new ConfigurableCreateInfo(this.classId.name, this.id, this.id);\r\n usedClassId = this.classId.name;\r\n this._widgetControl = new this.classId(info, this.applicationData) as WidgetControl;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this._widgetControl) {\r\n if (this._widgetControl.getType() !== type) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`);\r\n }\r\n\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n }\r\n\r\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\r\n if (!this._widgetControl && this.isStatusBar) {\r\n const info = new ConfigurableCreateInfo(\"StatusBarWidgetComposerControl\", StatusBarWidgetComposerControl.controlId, StatusBarWidgetComposerControl.controlId);\r\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n\r\n return this._widgetControl;\r\n }\r\n\r\n public get reactNode(): React.ReactNode {\r\n if (!this._widgetReactNode) {\r\n const widgetControl = this.getWidgetControl(ConfigurableUiControlType.Widget);\r\n\r\n // istanbul ignore else\r\n if (widgetControl && widgetControl.reactNode)\r\n this._widgetReactNode = widgetControl.reactNode;\r\n }\r\n\r\n return this._widgetReactNode;\r\n }\r\n\r\n public set reactNode(node: React.ReactNode) {\r\n this._widgetReactNode = node;\r\n }\r\n\r\n public setWidgetState(newState: WidgetState): void {\r\n if (this.state === newState)\r\n return;\r\n this._stateChanged = true;\r\n FrontstageManager.onWidgetStateChangedEvent.emit({ widgetDef: this, widgetState: newState });\r\n this.onWidgetStateChanged();\r\n }\r\n\r\n public setCanPopout(value: boolean | undefined) {\r\n this._canPopout = value;\r\n }\r\n\r\n public get canPopout(): boolean | undefined {\r\n return (this._canPopout);\r\n }\r\n\r\n public setFloatingContainerId(value: string | undefined) {\r\n this._floatingContainerId = value;\r\n }\r\n\r\n public get floatingContainerId(): string | undefined {\r\n return (this._floatingContainerId);\r\n }\r\n\r\n public canOpen(): boolean {\r\n return (this.isFloating || this.isActive);\r\n }\r\n\r\n public get isVisible(): boolean {\r\n return WidgetState.Hidden !== this.state;\r\n }\r\n\r\n public get activeState(): WidgetState {\r\n return this.state;\r\n }\r\n\r\n public get isActive(): boolean {\r\n return WidgetState.Open === this.activeState;\r\n }\r\n\r\n public set hideWithUiWhenFloating(hide: boolean | undefined) {\r\n this._hideWithUiWhenFloating = !!hide;\r\n }\r\n\r\n public get hideWithUiWhenFloating(): boolean {\r\n return !!this._hideWithUiWhenFloating;\r\n }\r\n\r\n public get allowedPanelTargets(): ReadonlyArray<\"left\" | \"right\" | \"bottom\" | \"top\"> | undefined {\r\n return this._allowedPanelTargets;\r\n }\r\n\r\n public set allowedPanelTargets(targets: ReadonlyArray<\"left\" | \"right\" | \"bottom\" | \"top\"> | undefined) {\r\n\r\n this._allowedPanelTargets = (targets && targets?.length > 0) ? targets : undefined;\r\n }\r\n\r\n public onWidgetStateChanged(): void {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.widgetControl && UiFramework.postTelemetry(`Widget ${this.widgetControl.classId} state set to ${widgetStateNameMap.get(this.state)}`, \"35402486-9839-441E-A5C7-46D546142D11\");\r\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\r\n // istanbul ignore next\r\n this._onWidgetStateChanged && this._onWidgetStateChanged();\r\n }\r\n\r\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\r\n public saveTransientState(): void {\r\n this.widgetControl && this.widgetControl.saveTransientState();\r\n this._saveTransientState && this._saveTransientState();\r\n }\r\n\r\n /** Overwrite to restore transient DOM state.\r\n * @note Return true if the state is restored or the Widget will remount.\r\n */\r\n public restoreTransientState(): boolean {\r\n let result = true;\r\n if (this.widgetControl || this._restoreTransientState) {\r\n let result1 = false, result2 = false;\r\n if (this.widgetControl)\r\n result1 = this.widgetControl.restoreTransientState();\r\n if (this._restoreTransientState)\r\n result2 = this._restoreTransientState();\r\n result = !(result1 || result2);\r\n }\r\n return result;\r\n }\r\n\r\n /** Opens the widget and makes it visible to the user.\r\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\r\n * @alpha\r\n */\r\n public show() {\r\n FrontstageManager.onWidgetShowEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Opens the widget and expands it to fill full size of the stage panel.\r\n * @alpha\r\n */\r\n public expand() {\r\n FrontstageManager.onWidgetExpandEvent.emit({ widgetDef: this });\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"WidgetDef.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetDef.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAAoF,OAAO,EAAE,OAAO,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzK,OAAO,EAAE,sBAAsB,EAAoC,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC9I,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAkC,MAAM,mBAAmB,CAAC;AAE/E,4CAA4C;AAE5C,MAAM,kBAAkB,GAAG,IAAI,GAA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kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,sCAAsC,CAAC,CAAC;QACnL,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;QAChE,uBAAuB;QACvB,IAAI,CAAC,qBAAqB,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC7D,CAAC;IAED,kEAAkE;IAC3D,kBAAkB;QACvB,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,kBAAkB,EAAE,CAAC;QAC9D,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACzD,CAAC;IAED;;OAEG;IACI,qBAAqB;QAC1B,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,sBAAsB,EAAE;YACrD,IAAI,OAAO,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC;YACrC,IAAI,IAAI,CAAC,aAAa;gBACpB,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;YACvD,IAAI,IAAI,CAAC,sBAAsB;gBAC7B,OAAO,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC1C,MAAM,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACI,IAAI;QACT,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACI,MAAM;QACX,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;;AAtac,cAAI,GAAG,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Widget\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { AbstractWidgetProps, BadgeType, ConditionalStringValue, PointProps, StringGetter, UiError, UiEvent, UiSyncEventArgs, WidgetState } from \"@itwin/appui-abstract\";\r\nimport { Direction, FloatingWidgetState, PanelSide } from \"@itwin/appui-layout-react\";\r\nimport { ConfigurableCreateInfo, ConfigurableUiControlConstructor, ConfigurableUiControlType } from \"../configurableui/ConfigurableUiControl\";\r\nimport { ConfigurableUiManager } from \"../configurableui/ConfigurableUiManager\";\r\nimport { FrontstageManager } from \"../frontstage/FrontstageManager\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { ItemList } from \"../shared/ItemMap\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { PropsHelper } from \"../utils/PropsHelper\";\r\nimport { WidgetControl } from \"./WidgetControl\";\r\nimport { WidgetProps } from \"./WidgetProps\";\r\nimport { StatusBarWidgetComposerControl } from \"./StatusBarWidgetComposerControl\";\r\nimport { IconHelper, IconSpec, Rectangle, SizeProps } from \"@itwin/core-react\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nconst widgetStateNameMap = new Map<WidgetState, string>([\r\n [WidgetState.Closed, \"Closed\"],\r\n [WidgetState.Floating, \"Floating\"],\r\n [WidgetState.Hidden, \"Hidden\"],\r\n [WidgetState.Open, \"Open\"],\r\n [WidgetState.Unloaded, \"Unloaded\"],\r\n]);\r\n\r\n/** Widget State Changed Event Args interface.\r\n * @public\r\n */\r\nexport interface WidgetStateChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n widgetState: WidgetState;\r\n}\r\n\r\n/** Widget State Changed Event class.\r\n * @public\r\n */\r\nexport class WidgetStateChangedEvent extends UiEvent<WidgetStateChangedEventArgs> { }\r\n\r\n/** @internal */\r\nexport interface WidgetChangedEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** @internal */\r\nexport interface WidgetEventArgs {\r\n widgetDef: WidgetDef;\r\n}\r\n\r\n/** Widget type enum.\r\n * @public\r\n */\r\nexport enum WidgetType {\r\n Tool,\r\n Navigation,\r\n /** @deprecated in 3.6. */\r\n FreeFrom,\r\n Rectangular,\r\n ToolSettings,\r\n StatusBar,\r\n}\r\n\r\n/** Properties for a Toolbar Widget.\r\n * @deprecated in 3.5.\r\n * @public\r\n */\r\nexport interface ToolbarWidgetProps extends WidgetProps { // eslint-disable-line deprecation/deprecation\r\n horizontalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n verticalDirection?: Direction; // eslint-disable-line deprecation/deprecation\r\n\r\n horizontalItems?: ItemList;\r\n verticalItems?: ItemList;\r\n}\r\n\r\n/** Properties for a Tool Widget.\r\n * @deprecated in 3.5.\r\n * @public\r\n */\r\nexport interface ToolWidgetProps extends ToolbarWidgetProps { // eslint-disable-line deprecation/deprecation\r\n appButton?: CommandItemDef;\r\n}\r\n\r\n/** Properties for a Navigation Widget.\r\n * @deprecated in 3.5.\r\n * @public\r\n */\r\nexport interface NavigationWidgetProps extends ToolbarWidgetProps { // eslint-disable-line deprecation/deprecation\r\n navigationAidId?: string;\r\n}\r\n\r\n/** Union of all Widget properties.\r\n * @deprecated in 3.5.\r\n * @public\r\n */\r\nexport type AnyWidgetProps = WidgetProps | ToolWidgetProps | NavigationWidgetProps; // eslint-disable-line deprecation/deprecation\r\n\r\n/** Prototype for WidgetDef StateFunc (UI 1.0 only deprecate ???)\r\n * @deprecated in 3.5. Used in UI1.0 only.\r\n * @public\r\n */\r\nexport type WidgetStateFunc = (state: Readonly<WidgetState>) => WidgetState;\r\n\r\n/** @internal */\r\nexport interface TabLocation {\r\n widgetId: string;\r\n widgetIndex: number;\r\n side: PanelSide;\r\n tabIndex: number;\r\n floatingWidget?: FloatingWidgetState;\r\n}\r\n\r\n// -----------------------------------------------------------------------------\r\n\r\n/** A Widget Definition in the 9-Zone Layout system.\r\n * @public\r\n */\r\nexport class WidgetDef {\r\n private static _sId = 0;\r\n private _label: string | ConditionalStringValue | StringGetter = \"\";\r\n private _tooltip: string | ConditionalStringValue | StringGetter = \"\";\r\n private _widgetReactNode: React.ReactNode;\r\n private _widgetControl!: WidgetControl;\r\n private _defaultState: WidgetState = WidgetState.Unloaded;\r\n private _state: WidgetState = WidgetState.Unloaded;\r\n private _id: string;\r\n private _classId: string | ConfigurableUiControlConstructor | undefined = undefined;\r\n private _priority: number = 0;\r\n private _isFreeform: boolean = false;\r\n private _isFloatingStateSupported: boolean = false;\r\n private _isFloatingStateWindowResizable: boolean = true;\r\n private _isToolSettings: boolean = false;\r\n private _isStatusBar: boolean = false;\r\n private _stateChanged: boolean = false;\r\n private _fillZone: boolean = false;\r\n private _syncEventIds: string[] = [];\r\n private _stateFunc?: WidgetStateFunc; // eslint-disable-line deprecation/deprecation\r\n private _widgetType: WidgetType = WidgetType.Rectangular;\r\n private _applicationData?: any;\r\n private _iconSpec?: string | ConditionalStringValue | React.ReactNode;\r\n private _internalData?: Map<string, any>;\r\n private _badgeType?: BadgeType;\r\n private _onWidgetStateChanged?: () => void;\r\n private _saveTransientState?: () => void;\r\n private _restoreTransientState?: () => boolean;\r\n private _preferredPanelSize: \"fit-content\" | undefined;\r\n private _defaultFloatingSize: SizeProps | undefined;\r\n private _canPopout?: boolean;\r\n private _floatingContainerId?: string;\r\n private _defaultFloatingPosition: PointProps | undefined;\r\n\r\n private _hideWithUiWhenFloating?: boolean;\r\n private _allowedPanelTargets?: ReadonlyArray<\"left\"|\"right\"|\"bottom\"|\"top\">;\r\n private _initialProps?: WidgetProps; // eslint-disable-line deprecation/deprecation\r\n\r\n private _tabLocation?: TabLocation;\r\n private _defaultTabLocation: TabLocation = {\r\n side: \"left\",\r\n tabIndex: 0,\r\n widgetId: \"\",\r\n widgetIndex: 0,\r\n };\r\n private _popoutBounds?: Rectangle;\r\n\r\n public get state(): WidgetState {\r\n if (\"1\" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation\r\n return this._state;\r\n\r\n const frontstageDef = FrontstageManager.activeFrontstageDef;\r\n if (frontstageDef && frontstageDef.findWidgetDef(this.id)) {\r\n const currentState = frontstageDef.getWidgetCurrentState(this);\r\n // istanbul ignore else\r\n if (undefined !== currentState)\r\n return currentState;\r\n }\r\n return this.defaultState;\r\n }\r\n\r\n public get id(): string { return this._id; }\r\n public get classId(): string | ConfigurableUiControlConstructor | undefined { return this._classId; }\r\n public get priority(): number { return this._priority; }\r\n /** @deprecated in 3.6. */\r\n public get isFreeform(): boolean { return this._isFreeform; }\r\n public get isFloatingStateSupported(): boolean { return this._isFloatingStateSupported; }\r\n public get isFloatingStateWindowResizable(): boolean { return this._isFloatingStateWindowResizable; }\r\n public get isToolSettings(): boolean { return this._isToolSettings; }\r\n public get isStatusBar(): boolean { return this._isStatusBar; }\r\n public get stateChanged(): boolean { return this._stateChanged; }\r\n /** @deprecated in 3.6. UI1.0 is deprecated. */\r\n public get fillZone(): boolean { return this._fillZone; }\r\n /** @deprecated in 3.6. */\r\n public get syncEventIds(): string[] { return this._syncEventIds; }\r\n /** @deprecated in 3.6. */\r\n public get stateFunc(): WidgetStateFunc | undefined { return this._stateFunc; } // eslint-disable-line deprecation/deprecation\r\n public get applicationData(): any | undefined { return this._applicationData; }\r\n public get isFloating(): boolean { return this.state === WidgetState.Floating; }\r\n public get iconSpec(): IconSpec { return this._iconSpec === IconHelper.reactIconKey ? IconHelper.getIconReactNode(this._iconSpec, this._internalData) : this._iconSpec; }\r\n public set iconSpec(spec: IconSpec) { this._iconSpec = this._internalData ? IconHelper.getIconData(spec, this._internalData) : spec; }\r\n public get badgeType(): BadgeType | undefined { return this._badgeType; }\r\n public get initialProps(): WidgetProps | undefined { return this._initialProps; } // eslint-disable-line deprecation/deprecation\r\n\r\n public get widgetType(): WidgetType { return this._widgetType; }\r\n public set widgetType(type: WidgetType) { this._widgetType = type; }\r\n\r\n /** @internal */\r\n public get tabLocation() { return this._tabLocation; }\r\n public set tabLocation(tabLocation: TabLocation | undefined) { this._tabLocation = tabLocation; }\r\n\r\n /** @internal */\r\n public get defaultTabLocation() { return this._defaultTabLocation; }\r\n\r\n /** @internal */\r\n public get defaultFloatingPosition() { return this._defaultFloatingPosition; }\r\n public set defaultFloatingPosition(position: PointProps | undefined) { this._defaultFloatingPosition = position; }\r\n\r\n /** @internal */\r\n public get defaultFloatingSize() { return this._defaultFloatingSize; }\r\n public set defaultFloatingSize(size: SizeProps | undefined) { this._defaultFloatingSize = size; }\r\n\r\n /** @internal */\r\n public get defaultState() { return this._defaultState; }\r\n\r\n /** @internal */\r\n public get popoutBounds() { return this._popoutBounds; }\r\n public set popoutBounds(bounds: Rectangle | undefined) { this._popoutBounds = bounds; }\r\n\r\n constructor();\r\n\r\n /** @deprecated in 3.5. */\r\n constructor(props: WidgetProps); // eslint-disable-line @typescript-eslint/unified-signatures, deprecation/deprecation\r\n\r\n /** @internal */\r\n constructor(widgetProps?: WidgetProps) { // eslint-disable-line deprecation/deprecation\r\n WidgetDef._sId++;\r\n this._id = `Widget-${WidgetDef._sId}`;\r\n\r\n if (widgetProps)\r\n WidgetDef.initializeFromWidgetProps(widgetProps, this); // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n /** @deprecated in 3.5. */\r\n public static initializeFromWidgetProps(widgetProps: WidgetProps, me: WidgetDef) { // eslint-disable-line deprecation/deprecation\r\n me._initialProps = widgetProps;\r\n\r\n if (widgetProps.id !== undefined)\r\n me._id = widgetProps.id;\r\n\r\n if (widgetProps.label)\r\n me.setLabel(widgetProps.label);\r\n else if (widgetProps.labelKey)\r\n me._label = UiFramework.localization.getLocalizedString(widgetProps.labelKey);\r\n\r\n me.setCanPopout(widgetProps.canPopout);\r\n me.setFloatingContainerId(widgetProps.floatingContainerId);\r\n me.defaultFloatingPosition = widgetProps.defaultFloatingPosition ? widgetProps.defaultFloatingPosition as PointProps : undefined;\r\n\r\n me._hideWithUiWhenFloating = !!widgetProps.hideWithUiWhenFloating;\r\n\r\n me.allowedPanelTargets = widgetProps.allowedPanelTargets;\r\n\r\n if (widgetProps.priority !== undefined)\r\n me._priority = widgetProps.priority;\r\n\r\n if (widgetProps.tooltip)\r\n me.setTooltip(widgetProps.tooltip);\r\n else if (widgetProps.tooltipKey)\r\n me._tooltip = UiFramework.localization.getLocalizedString(widgetProps.tooltipKey);\r\n\r\n if (widgetProps.control !== undefined)\r\n me._classId = widgetProps.control;\r\n else if (widgetProps.classId !== undefined)\r\n me._classId = widgetProps.classId;\r\n\r\n if (widgetProps.defaultState !== undefined) {\r\n me._defaultState = widgetProps.defaultState;\r\n // istanbul ignore next\r\n if (\"1\" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation\r\n me._state = widgetProps.defaultState === WidgetState.Floating ? WidgetState.Open : widgetProps.defaultState;\r\n }\r\n\r\n if (widgetProps.isFreeform !== undefined) { // eslint-disable-line deprecation/deprecation\r\n me._isFreeform = widgetProps.isFreeform; // eslint-disable-line deprecation/deprecation\r\n me._widgetType = me.isFreeform ? WidgetType.FreeFrom : WidgetType.Rectangular; // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n if (widgetProps.isFloatingStateSupported !== undefined)\r\n me._isFloatingStateSupported = widgetProps.isFloatingStateSupported;\r\n if (widgetProps.isFloatingStateWindowResizable !== undefined)\r\n me._isFloatingStateWindowResizable = widgetProps.isFloatingStateWindowResizable;\r\n if (widgetProps.isToolSettings !== undefined)\r\n me._isToolSettings = widgetProps.isToolSettings;\r\n if (widgetProps.isStatusBar !== undefined)\r\n me._isStatusBar = widgetProps.isStatusBar;\r\n if (widgetProps.fillZone !== undefined)\r\n me._fillZone = widgetProps.fillZone;\r\n\r\n if (widgetProps.applicationData !== undefined)\r\n me._applicationData = widgetProps.applicationData;\r\n\r\n if (widgetProps.element !== undefined)\r\n me._widgetReactNode = widgetProps.element;\r\n\r\n if (widgetProps.iconSpec !== undefined)\r\n me._iconSpec = widgetProps.iconSpec;\r\n if (widgetProps.internalData)\r\n me._internalData = widgetProps.internalData;\r\n // istanbul ignore next\r\n if (widgetProps.icon !== undefined && me._iconSpec === undefined)\r\n me._iconSpec = widgetProps.icon;\r\n\r\n if (widgetProps.badgeType !== undefined)\r\n me._badgeType = widgetProps.badgeType;\r\n\r\n me._preferredPanelSize = widgetProps.preferredPanelSize;\r\n me._defaultFloatingSize = widgetProps.defaultFloatingSize;\r\n me._onWidgetStateChanged = widgetProps.onWidgetStateChanged;\r\n me._saveTransientState = widgetProps.saveTransientState;\r\n me._restoreTransientState = widgetProps.restoreTransientState;\r\n\r\n me.setUpSyncSupport(widgetProps); // eslint-disable-line deprecation/deprecation\r\n }\r\n\r\n /** @deprecated in 3.5. */\r\n public static createWidgetPropsFromAbstractProps(abstractWidgetProps: AbstractWidgetProps): WidgetProps { // eslint-disable-line deprecation/deprecation\r\n const widgetProps: WidgetProps = abstractWidgetProps; // eslint-disable-line deprecation/deprecation\r\n widgetProps.element = abstractWidgetProps.getWidgetContent();\r\n return widgetProps;\r\n }\r\n\r\n /** @deprecated in 3.5. */\r\n public setUpSyncSupport(props: WidgetProps) { // eslint-disable-line deprecation/deprecation\r\n if (props.stateFunc && props.syncEventIds && props.syncEventIds.length > 0) { // eslint-disable-line deprecation/deprecation\r\n this._syncEventIds = props.syncEventIds;\r\n this._stateFunc = props.stateFunc; // eslint-disable-line deprecation/deprecation\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n }\r\n\r\n private _handleSyncUiEvent = (args: UiSyncEventArgs): void => {\r\n if ((this.syncEventIds.length > 0) && this.syncEventIds.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) { // eslint-disable-line deprecation/deprecation\r\n // istanbul ignore else\r\n if (this.stateFunc) { // eslint-disable-line deprecation/deprecation\r\n let newState = this.state;\r\n newState = this.stateFunc(newState); // eslint-disable-line deprecation/deprecation\r\n this.setWidgetState(newState);\r\n }\r\n }\r\n };\r\n\r\n /** @alpha */\r\n public get preferredPanelSize() {\r\n return this._preferredPanelSize;\r\n }\r\n\r\n /** Get the label string */\r\n public get label(): string {\r\n return PropsHelper.getStringFromSpec(this._label);\r\n }\r\n\r\n /** Set the label.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setLabel(v: string | ConditionalStringValue | StringGetter) {\r\n if (this._label === v)\r\n return;\r\n this._label = v;\r\n FrontstageManager.onWidgetLabelChangedEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Get the tooltip string */\r\n public get tooltip(): string {\r\n return PropsHelper.getStringFromSpec(this._tooltip);\r\n }\r\n\r\n /** Set the tooltip.\r\n * @param v A string or a function to get the string.\r\n */\r\n public setTooltip(v: string | ConditionalStringValue | StringGetter) {\r\n this._tooltip = v;\r\n }\r\n\r\n public get widgetControl(): WidgetControl | undefined {\r\n return this._widgetControl;\r\n }\r\n\r\n public getWidgetControl(type: ConfigurableUiControlType): WidgetControl | undefined {\r\n if (!this._widgetControl && this.classId) {\r\n let usedClassId: string = \"\";\r\n\r\n if (typeof this.classId === \"string\") {\r\n // istanbul ignore else\r\n if (this.classId)\r\n this._widgetControl = ConfigurableUiManager.createControl(this.classId, this.id, this.applicationData) as WidgetControl;\r\n usedClassId = this.classId;\r\n } else {\r\n const info = new ConfigurableCreateInfo(this.classId.name, this.id, this.id);\r\n usedClassId = this.classId.name;\r\n this._widgetControl = new this.classId(info, this.applicationData) as WidgetControl;\r\n }\r\n\r\n // istanbul ignore else\r\n if (this._widgetControl) {\r\n if (this._widgetControl.getType() !== type) {\r\n throw new UiError(UiFramework.loggerCategory(this), `getWidgetControl: '${usedClassId}' is NOT a ${type}; it is a ${this._widgetControl.getType()}`);\r\n }\r\n\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n }\r\n\r\n // istanbul ignore next - To avoid breaking API changes, if a WidgetControl is not specified for a status bar use Default one.\r\n if (!this._widgetControl && this.isStatusBar) {\r\n const info = new ConfigurableCreateInfo(\"StatusBarWidgetComposerControl\", StatusBarWidgetComposerControl.controlId, StatusBarWidgetComposerControl.controlId);\r\n this._widgetControl = new StatusBarWidgetComposerControl(info, undefined);\r\n this._widgetControl.widgetDef = this;\r\n this._widgetControl.initialize();\r\n }\r\n\r\n return this._widgetControl;\r\n }\r\n\r\n public get reactNode(): React.ReactNode {\r\n if (!this._widgetReactNode) {\r\n const widgetControl = this.getWidgetControl(ConfigurableUiControlType.Widget);\r\n\r\n // istanbul ignore else\r\n if (widgetControl && widgetControl.reactNode)\r\n this._widgetReactNode = widgetControl.reactNode;\r\n }\r\n\r\n return this._widgetReactNode;\r\n }\r\n\r\n public set reactNode(node: React.ReactNode) {\r\n this._widgetReactNode = node;\r\n }\r\n\r\n public setWidgetState(newState: WidgetState): void {\r\n if (this.state === newState)\r\n return;\r\n if (\"1\" === UiFramework.uiVersion) // eslint-disable-line deprecation/deprecation\r\n this._state = newState;\r\n this._stateChanged = true;\r\n FrontstageManager.onWidgetStateChangedEvent.emit({ widgetDef: this, widgetState: newState });\r\n this.onWidgetStateChanged();\r\n }\r\n\r\n public setCanPopout(value: boolean | undefined) {\r\n this._canPopout = value;\r\n }\r\n\r\n public get canPopout(): boolean | undefined {\r\n return (this._canPopout);\r\n }\r\n\r\n public setFloatingContainerId(value: string | undefined) {\r\n this._floatingContainerId = value;\r\n }\r\n\r\n public get floatingContainerId(): string | undefined {\r\n return (this._floatingContainerId);\r\n }\r\n\r\n public canOpen(): boolean {\r\n return (this.isFloating || this.isActive);\r\n }\r\n\r\n public get isVisible(): boolean {\r\n return WidgetState.Hidden !== this.state;\r\n }\r\n\r\n public get activeState(): WidgetState {\r\n return this.state;\r\n }\r\n\r\n public get isActive(): boolean {\r\n return WidgetState.Open === this.activeState;\r\n }\r\n\r\n public set hideWithUiWhenFloating(hide: boolean | undefined) {\r\n this._hideWithUiWhenFloating = !!hide;\r\n }\r\n\r\n public get hideWithUiWhenFloating(): boolean {\r\n return !!this._hideWithUiWhenFloating;\r\n }\r\n\r\n public get allowedPanelTargets(): ReadonlyArray<\"left\"|\"right\"|\"bottom\"|\"top\"> | undefined {\r\n return this._allowedPanelTargets;\r\n }\r\n\r\n public set allowedPanelTargets(targets: ReadonlyArray<\"left\"|\"right\"|\"bottom\"|\"top\"> | undefined) {\r\n\r\n this._allowedPanelTargets = (targets && targets?.length > 0) ? targets : undefined;\r\n }\r\n\r\n public onWidgetStateChanged(): void {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.widgetControl && UiFramework.postTelemetry(`Widget ${this.widgetControl.classId} state set to ${widgetStateNameMap.get(this.state)}`, \"35402486-9839-441E-A5C7-46D546142D11\");\r\n this.widgetControl && this.widgetControl.onWidgetStateChanged();\r\n // istanbul ignore next\r\n this._onWidgetStateChanged && this._onWidgetStateChanged();\r\n }\r\n\r\n /** Overwrite to save transient DOM state (i.e. scroll offset). */\r\n public saveTransientState(): void {\r\n this.widgetControl && this.widgetControl.saveTransientState();\r\n this._saveTransientState && this._saveTransientState();\r\n }\r\n\r\n /** Overwrite to restore transient DOM state.\r\n * @note Return true if the state is restored or the Widget will remount.\r\n */\r\n public restoreTransientState(): boolean {\r\n let result = true;\r\n if (this.widgetControl || this._restoreTransientState) {\r\n let result1 = false, result2 = false;\r\n if (this.widgetControl)\r\n result1 = this.widgetControl.restoreTransientState();\r\n if (this._restoreTransientState)\r\n result2 = this._restoreTransientState();\r\n result = !(result1 || result2);\r\n }\r\n return result;\r\n }\r\n\r\n /** Opens the widget and makes it visible to the user.\r\n * I.e. opens the stage panel or brings the floating widget to front of the screen.\r\n * @alpha\r\n */\r\n public show() {\r\n FrontstageManager.onWidgetShowEvent.emit({ widgetDef: this });\r\n }\r\n\r\n /** Opens the widget and expands it to fill full size of the stage panel.\r\n * @alpha\r\n */\r\n public expand() {\r\n FrontstageManager.onWidgetExpandEvent.emit({ widgetDef: this });\r\n }\r\n}\r\n"]}
@@ -2,6 +2,7 @@
2
2
  * @module Widget
3
3
  */
4
4
  import { StagePanelLocation, StagePanelSection } from "@itwin/appui-abstract";
5
+ import { ZoneLocation } from "../zones/Zone";
5
6
  import { WidgetDef } from "./WidgetDef";
6
7
  /**
7
8
  * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.
@@ -34,7 +35,7 @@ export declare class WidgetHost {
34
35
  /** Updates the WidgetHost with dynamic widgets
35
36
  * @internal
36
37
  */
37
- updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: StagePanelLocation, section: StagePanelSection | undefined, allStageWidgetDefs: WidgetDef[]): void;
38
+ updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: ZoneLocation | StagePanelLocation, section: StagePanelSection | undefined, allStageWidgetDefs: WidgetDef[], frontstageApplicationData?: any): void;
38
39
  /** Sorts all widgets */
39
40
  private sortWidgetDefs;
40
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetHost.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,qBAAa,UAAU;IAErB,OAAO,CAAC,WAAW,CAAuC;IAC1D,OAAO,CAAC,kBAAkB,CAAuC;IACjE,OAAO,CAAC,iBAAiB,CAAgC;IAEzD;OACG;;IAGH;;OAEG;IACI,YAAY,CAAC,SAAS,EAAE,SAAS;IAKxC,gCAAgC;IAChC,IAAW,UAAU,IAAI,aAAa,CAAC,SAAS,CAAC,CAEhD;IAED,kCAAkC;IAClC,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;OAEG;IACI,kBAAkB,IAAI,SAAS,GAAG,SAAS;IAOlD;;;OAGG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAIvD;;OAEG;IACI,u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2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
+ /* eslint-disable deprecation/deprecation */
5
6
  /** @packageDocumentation
6
7
  * @module Widget
7
8
  */
9
+ import { StagePanelLocation, StagePanelSection } from "@itwin/appui-abstract";
8
10
  import { UiFramework } from "../UiFramework";
11
+ import { ZoneLocation } from "../zones/Zone";
9
12
  /**
10
13
  * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.
11
14
  * @public
@@ -51,16 +54,103 @@ export class WidgetHost {
51
54
  /** Updates the WidgetHost with dynamic widgets
52
55
  * @internal
53
56
  */
54
- updateDynamicWidgetDefs(stageId, stageUsage, location, section, allStageWidgetDefs) {
55
- var _a;
57
+ updateDynamicWidgetDefs(stageId, stageUsage, location, section, allStageWidgetDefs, frontstageApplicationData) {
58
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
56
59
  // get widgetDefs not already in allStageWidgetDefs and add them
57
60
  const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {
58
61
  return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);
59
62
  });
60
63
  allStageWidgetDefs.push(...uniqueWidgets);
61
64
  let dynamicWidgetDefs;
62
- if (section !== undefined) {
63
- dynamicWidgetDefs = (_a = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, section)) !== null && _a !== void 0 ? _a : [];
65
+ if (UiFramework.uiVersion === "1") {
66
+ // istanbul ignore next
67
+ if (location in ZoneLocation) {
68
+ switch (location) {
69
+ case ZoneLocation.CenterLeft:
70
+ {
71
+ const middleDynamicWidgetDefs = (_a = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterLeft, section, frontstageApplicationData)) !== null && _a !== void 0 ? _a : [];
72
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs];
73
+ }
74
+ break;
75
+ case ZoneLocation.BottomLeft:
76
+ {
77
+ const bottomDynamicWidgetDefs = (_b = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomLeft, section, frontstageApplicationData)) !== null && _b !== void 0 ? _b : [];
78
+ dynamicWidgetDefs = [...bottomDynamicWidgetDefs];
79
+ }
80
+ break;
81
+ case ZoneLocation.CenterRight:
82
+ {
83
+ const middleDynamicWidgetDefs = (_c = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterRight, section, frontstageApplicationData)) !== null && _c !== void 0 ? _c : [];
84
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs];
85
+ }
86
+ break; // added to BottomRight
87
+ case ZoneLocation.BottomRight:
88
+ {
89
+ const bottomDynamicWidgetDefs = (_d = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomRight, section, frontstageApplicationData)) !== null && _d !== void 0 ? _d : [];
90
+ dynamicWidgetDefs = [...bottomDynamicWidgetDefs];
91
+ }
92
+ break;
93
+ }
94
+ }
95
+ else if ((location in StagePanelLocation) && undefined !== section) {
96
+ switch (section) {
97
+ case StagePanelSection.Start: {
98
+ dynamicWidgetDefs = (_e = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, frontstageApplicationData)) !== null && _e !== void 0 ? _e : [];
99
+ break;
100
+ }
101
+ case StagePanelSection.Middle:
102
+ const middleDynamicWidgetDefs = (_f = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Middle, frontstageApplicationData)) !== null && _f !== void 0 ? _f : [];
103
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs];
104
+ break; // added to BottomLeft
105
+ case StagePanelSection.End: {
106
+ const bottomDynamicWidgetDefs = (_g = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, frontstageApplicationData)) !== null && _g !== void 0 ? _g : [];
107
+ dynamicWidgetDefs = [...bottomDynamicWidgetDefs];
108
+ break;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ else {
114
+ if (location in ZoneLocation) {
115
+ switch (location) {
116
+ case ZoneLocation.CenterLeft:
117
+ break; // added to BottomLeft
118
+ case ZoneLocation.BottomLeft:
119
+ {
120
+ const middleDynamicWidgetDefs = (_h = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterLeft, section, frontstageApplicationData)) !== null && _h !== void 0 ? _h : [];
121
+ const bottomDynamicWidgetDefs = (_j = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomLeft, section, frontstageApplicationData)) !== null && _j !== void 0 ? _j : [];
122
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];
123
+ }
124
+ break;
125
+ case ZoneLocation.CenterRight:
126
+ break; // added to BottomRight
127
+ case ZoneLocation.BottomRight:
128
+ {
129
+ const middleDynamicWidgetDefs = (_k = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterRight, section, frontstageApplicationData)) !== null && _k !== void 0 ? _k : [];
130
+ const bottomDynamicWidgetDefs = (_l = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomRight, section, frontstageApplicationData)) !== null && _l !== void 0 ? _l : [];
131
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];
132
+ }
133
+ break;
134
+ }
135
+ }
136
+ else
137
+ // istanbul ignore else
138
+ if ((location in StagePanelLocation) && undefined !== section) {
139
+ switch (section) {
140
+ case StagePanelSection.Start: {
141
+ dynamicWidgetDefs = (_m = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, frontstageApplicationData)) !== null && _m !== void 0 ? _m : [];
142
+ break;
143
+ }
144
+ case StagePanelSection.Middle:
145
+ break; // added to BottomLeft
146
+ case StagePanelSection.End: {
147
+ const middleDynamicWidgetDefs = (_o = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Middle, frontstageApplicationData)) !== null && _o !== void 0 ? _o : [];
148
+ const bottomDynamicWidgetDefs = (_p = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, frontstageApplicationData)) !== null && _p !== void 0 ? _p : [];
149
+ dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];
150
+ break;
151
+ }
152
+ }
153
+ }
64
154
  }
65
155
  const uniqueDynamicWidgetDefs = dynamicWidgetDefs === null || dynamicWidgetDefs === void 0 ? void 0 : dynamicWidgetDefs.filter((widgetDef) => {
66
156
  return ((!allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id)));
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;GAGG;AACH,MAAM,OAAO,UAAU;IAMrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAIzC,CAAC;IAEjB;;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;;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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;;YAEpE,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAE9C,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","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Widget\r\n */\r\n\r\nimport { StagePanelLocation, StagePanelSection } from \"@itwin/appui-abstract\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { WidgetDef } from \"./WidgetDef\";\r\n\r\n/**\r\n * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.\r\n * @public\r\n */\r\nexport class WidgetHost {\r\n\r\n private _widgetDefs: WidgetDef[] = new Array<WidgetDef>();\r\n private _dynamicWidgetDefs: ReadonlyArray<WidgetDef> | undefined;\r\n private _sortedWidgetDefs: ReadonlyArray<WidgetDef> = [];\r\n\r\n /** Constructor for WidgetHost.\r\n */\r\n constructor() { }\r\n\r\n /** Adds a WidgetDef to the list of Widgets.\r\n * @param widgetDef Definition of the Widget to add\r\n */\r\n public addWidgetDef(widgetDef: WidgetDef) {\r\n this._widgetDefs.push(widgetDef);\r\n this.sortWidgetDefs();\r\n }\r\n\r\n /** Gets the list of Widgets. */\r\n public get widgetDefs(): ReadonlyArray<WidgetDef> {\r\n return this._sortedWidgetDefs;\r\n }\r\n\r\n /** Gets the number of Widgets. */\r\n public get widgetCount(): number {\r\n return this.widgetDefs.length;\r\n }\r\n\r\n /** If there is only one Widget in the Panel, gets the single WidgetDef.\r\n * @returns The single WidgetDef if there is only one Widget; otherwise, undefined is returned.\r\n */\r\n public getSingleWidgetDef(): WidgetDef | undefined {\r\n if (this.widgetCount === 1) {\r\n return this.widgetDefs[0];\r\n }\r\n return undefined;\r\n }\r\n\r\n /** Finds a WidgetDef with a given Id.\r\n * @param id Id of the WidgetDef to find\r\n * @returns The WidgetDef if found; otherwise, undefined is returned.\r\n */\r\n public findWidgetDef(id: string): WidgetDef | undefined {\r\n return this.widgetDefs.find((widgetDef: WidgetDef) => widgetDef.id === id);\r\n }\r\n\r\n /** Updates the WidgetHost with dynamic widgets\r\n * @internal\r\n */\r\n public updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: StagePanelLocation, section: StagePanelSection | undefined,\r\n allStageWidgetDefs: WidgetDef[]): void {\r\n // get widgetDefs not already in allStageWidgetDefs and add them\r\n const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {\r\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\r\n });\r\n\r\n allStageWidgetDefs.push(...uniqueWidgets);\r\n\r\n let dynamicWidgetDefs: readonly WidgetDef[] | undefined;\r\n if (section !== undefined) {\r\n dynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, section) ?? [];\r\n }\r\n\r\n const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {\r\n return ((!allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id)));\r\n });\r\n\r\n // Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be\r\n // defined, the following is needed to combining middle and end panel section widgets into a single set of widgets\r\n if (uniqueDynamicWidgetDefs) {\r\n allStageWidgetDefs.push(...uniqueDynamicWidgetDefs);\r\n this._dynamicWidgetDefs = [...uniqueDynamicWidgetDefs];\r\n }\r\n this.sortWidgetDefs();\r\n }\r\n\r\n /** Sorts all widgets */\r\n private sortWidgetDefs(): void {\r\n let sortedWidgetDefs = [];\r\n if (this._dynamicWidgetDefs)\r\n sortedWidgetDefs = this._widgetDefs.concat(this._dynamicWidgetDefs);\r\n else\r\n sortedWidgetDefs = this._widgetDefs.slice();\r\n\r\n sortedWidgetDefs.sort((a, b) => a.priority - b.priority);\r\n\r\n this._sortedWidgetDefs = sortedWidgetDefs;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C;;;GAGG;AACH,MAAM,OAAO,UAAU;IAMrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAIzC,CAAC;IAEjB;;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,UAA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BAAiB,uBAAjB,iBAAiB,CAAE,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE;YACtE,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;QAEH,oHAAoH;QACpH,kHAAkH;QAClH,IAAI,uBAAuB,EAAE;YAC3B,kBAAkB,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,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;;YAEpE,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAE9C,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","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Widget\r\n */\r\n\r\nimport { StagePanelLocation, StagePanelSection } from \"@itwin/appui-abstract\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ZoneLocation } from \"../zones/Zone\";\r\nimport { WidgetDef } from \"./WidgetDef\";\r\n\r\n/**\r\n * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.\r\n * @public\r\n */\r\nexport class WidgetHost {\r\n\r\n private _widgetDefs: WidgetDef[] = new Array<WidgetDef>();\r\n private _dynamicWidgetDefs: ReadonlyArray<WidgetDef> | undefined;\r\n private _sortedWidgetDefs: ReadonlyArray<WidgetDef> = [];\r\n\r\n /** Constructor for WidgetHost.\r\n */\r\n constructor() { }\r\n\r\n /** Adds a WidgetDef to the list of Widgets.\r\n * @param widgetDef Definition of the Widget to add\r\n */\r\n public addWidgetDef(widgetDef: WidgetDef) {\r\n this._widgetDefs.push(widgetDef);\r\n this.sortWidgetDefs();\r\n }\r\n\r\n /** Gets the list of Widgets. */\r\n public get widgetDefs(): ReadonlyArray<WidgetDef> {\r\n return this._sortedWidgetDefs;\r\n }\r\n\r\n /** Gets the number of Widgets. */\r\n public get widgetCount(): number {\r\n return this.widgetDefs.length;\r\n }\r\n\r\n /** If there is only one Widget in the Panel, gets the single WidgetDef.\r\n * @returns The single WidgetDef if there is only one Widget; otherwise, undefined is returned.\r\n */\r\n public getSingleWidgetDef(): WidgetDef | undefined {\r\n if (this.widgetCount === 1) {\r\n return this.widgetDefs[0];\r\n }\r\n return undefined;\r\n }\r\n\r\n /** Finds a WidgetDef with a given Id.\r\n * @param id Id of the WidgetDef to find\r\n * @returns The WidgetDef if found; otherwise, undefined is returned.\r\n */\r\n public findWidgetDef(id: string): WidgetDef | undefined {\r\n return this.widgetDefs.find((widgetDef: WidgetDef) => widgetDef.id === id);\r\n }\r\n\r\n /** Updates the WidgetHost with dynamic widgets\r\n * @internal\r\n */\r\n public updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: ZoneLocation | StagePanelLocation, section: StagePanelSection | undefined,\r\n allStageWidgetDefs: WidgetDef[], frontstageApplicationData?: any\r\n ): void {\r\n // get widgetDefs not already in allStageWidgetDefs and add them\r\n const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {\r\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\r\n });\r\n\r\n allStageWidgetDefs.push(...uniqueWidgets);\r\n\r\n let dynamicWidgetDefs: readonly WidgetDef[] | undefined;\r\n\r\n if (UiFramework.uiVersion === \"1\") {\r\n // istanbul ignore next\r\n if (location in ZoneLocation) {\r\n switch (location) {\r\n case ZoneLocation.CenterLeft:\r\n {\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterLeft, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs];\r\n }\r\n break;\r\n case ZoneLocation.BottomLeft:\r\n {\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomLeft, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...bottomDynamicWidgetDefs];\r\n }\r\n break;\r\n case ZoneLocation.CenterRight:\r\n {\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterRight, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs];\r\n }\r\n break; // added to BottomRight\r\n case ZoneLocation.BottomRight:\r\n {\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomRight, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...bottomDynamicWidgetDefs];\r\n }\r\n break;\r\n }\r\n } else if ((location in StagePanelLocation) && undefined !== section) {\r\n switch (section) {\r\n case StagePanelSection.Start: {\r\n dynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, frontstageApplicationData) ?? [];\r\n break;\r\n }\r\n case StagePanelSection.Middle:\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Middle, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs];\r\n break; // added to BottomLeft\r\n case StagePanelSection.End: {\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...bottomDynamicWidgetDefs];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n } else {\r\n if (location in ZoneLocation) {\r\n switch (location) {\r\n case ZoneLocation.CenterLeft:\r\n break; // added to BottomLeft\r\n case ZoneLocation.BottomLeft:\r\n {\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterLeft, section, frontstageApplicationData) ?? [];\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomLeft, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];\r\n }\r\n break;\r\n case ZoneLocation.CenterRight:\r\n break; // added to BottomRight\r\n case ZoneLocation.BottomRight:\r\n {\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.CenterRight, section, frontstageApplicationData) ?? [];\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, ZoneLocation.BottomRight, section, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];\r\n }\r\n break;\r\n }\r\n } else\r\n // istanbul ignore else\r\n if ((location in StagePanelLocation) && undefined !== section) {\r\n switch (section) {\r\n case StagePanelSection.Start: {\r\n dynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Start, frontstageApplicationData) ?? [];\r\n break;\r\n }\r\n case StagePanelSection.Middle:\r\n break; // added to BottomLeft\r\n case StagePanelSection.End: {\r\n const middleDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.Middle, frontstageApplicationData) ?? [];\r\n const bottomDynamicWidgetDefs = UiFramework.widgetManager.getWidgetDefs(stageId, stageUsage, location, StagePanelSection.End, frontstageApplicationData) ?? [];\r\n dynamicWidgetDefs = [...middleDynamicWidgetDefs, ...bottomDynamicWidgetDefs];\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {\r\n return ((!allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id)));\r\n });\r\n\r\n // Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be\r\n // defined, the following is needed to combining middle and end panel section widgets into a single set of widgets\r\n if (uniqueDynamicWidgetDefs) {\r\n allStageWidgetDefs.push(...uniqueDynamicWidgetDefs);\r\n this._dynamicWidgetDefs = [...uniqueDynamicWidgetDefs];\r\n }\r\n this.sortWidgetDefs();\r\n }\r\n\r\n /** Sorts all widgets */\r\n private sortWidgetDefs(): void {\r\n let sortedWidgetDefs = [];\r\n if (this._dynamicWidgetDefs)\r\n sortedWidgetDefs = this._widgetDefs.concat(this._dynamicWidgetDefs);\r\n else\r\n sortedWidgetDefs = this._widgetDefs.slice();\r\n\r\n sortedWidgetDefs.sort((a, b) => a.priority - b.priority);\r\n\r\n this._sortedWidgetDefs = sortedWidgetDefs;\r\n }\r\n}\r\n"]}