@itwin/appui-react 3.5.0-dev.5 → 3.5.0-dev.52

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 (341) hide show
  1. package/CHANGELOG.md +53 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +1 -0
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +1 -1
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/backstage/Backstage.d.ts +3 -0
  7. package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -1
  8. package/lib/cjs/appui-react/backstage/Backstage.js +3 -1
  9. package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -1
  10. package/lib/cjs/appui-react/backstage/CommandLaunch.js +1 -1
  11. package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -1
  12. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +1 -0
  13. package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  14. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +1 -1
  15. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  16. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  17. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  18. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  19. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  20. package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  21. package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  22. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +2 -0
  23. package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  24. package/lib/cjs/appui-react/frontstage/FrontstageManager.js +4 -0
  25. package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
  26. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +13 -3
  27. package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +15 -7
  29. package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  30. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts +1 -0
  31. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  32. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  33. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts +2 -0
  34. package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -1
  35. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js +1 -0
  36. package/lib/cjs/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  37. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts +1 -0
  38. package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  40. package/lib/cjs/appui-react/messages/StickyMessage.d.ts +1 -0
  41. package/lib/cjs/appui-react/messages/StickyMessage.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/messages/StickyMessage.js.map +1 -1
  43. package/lib/cjs/appui-react/messages/ToastMessage.d.ts +1 -0
  44. package/lib/cjs/appui-react/messages/ToastMessage.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -1
  46. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +1 -0
  47. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  48. package/lib/cjs/appui-react/pickers/ListPicker.js +4 -2
  49. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  50. package/lib/cjs/appui-react/pickers/ListPicker.scss +2 -1
  51. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +1 -0
  52. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  53. package/lib/cjs/appui-react/safearea/SafeAreaContext.js +2 -1
  54. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  55. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts +13 -0
  56. package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -0
  57. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +16 -0
  58. package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -0
  59. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js +2 -1
  60. package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  61. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -1
  62. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  63. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +26 -0
  64. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -0
  65. package/lib/cjs/appui-react/statusbar/Indicator.js +38 -0
  66. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -0
  67. package/lib/cjs/appui-react/statusbar/Indicator.scss +110 -0
  68. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +24 -0
  69. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -0
  70. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +29 -0
  71. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -0
  72. package/lib/cjs/appui-react/statusbar/LabelIndicator.scss +43 -0
  73. package/lib/cjs/appui-react/statusbar/Separator.d.ts +10 -0
  74. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -0
  75. package/lib/cjs/appui-react/statusbar/Separator.js +21 -0
  76. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -0
  77. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +2 -1
  78. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  79. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts +21 -0
  80. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -0
  81. package/lib/cjs/appui-react/statusbar/dialog/Button.js +20 -0
  82. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -0
  83. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts +30 -0
  84. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -0
  85. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +31 -0
  86. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -0
  87. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts +19 -0
  88. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -0
  89. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +20 -0
  90. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -0
  91. package/lib/cjs/appui-react/statusfields/Indicator.d.ts +1 -0
  92. package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/statusfields/Indicator.js +1 -0
  94. package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -1
  95. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/statusfields/MessageCenter.js +2 -5
  97. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  98. package/lib/cjs/appui-react/statusfields/PromptField.js +2 -1
  99. package/lib/cjs/appui-react/statusfields/PromptField.js.map +1 -1
  100. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  101. package/lib/cjs/appui-react/statusfields/SectionsField.js +4 -2
  102. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  103. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +2 -1
  104. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  105. package/lib/cjs/appui-react/statusfields/SelectionScope.js +2 -1
  106. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  107. package/lib/cjs/appui-react/statusfields/SnapMode.js +2 -1
  108. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  109. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  110. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +3 -2
  111. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  112. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +0 -1
  113. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  114. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +13 -11
  115. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  116. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +6 -1
  117. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +14 -0
  119. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  120. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts +2 -0
  121. package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  122. package/lib/cjs/appui-react/toolbar/ActionItemButton.js +1 -0
  123. package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -1
  124. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +2 -0
  125. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/toolbar/GroupItem.js +1 -0
  127. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  128. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts +2 -0
  129. package/lib/cjs/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  130. package/lib/cjs/appui-react/toolbar/ToolButton.js +1 -0
  131. package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -1
  132. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +1 -1
  133. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  134. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts +9 -0
  135. package/lib/cjs/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  136. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js +17 -1
  137. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  138. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  139. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
  140. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  141. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -3
  142. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  143. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js +1 -1
  144. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  145. package/lib/cjs/appui-react/uistate/AppUiSettings.js +2 -1
  146. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  147. package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  148. package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -0
  149. package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
  150. package/lib/cjs/appui-react/widget-panels/FloatingWidget.d.ts +7 -0
  151. package/lib/cjs/appui-react/widget-panels/FloatingWidget.d.ts.map +1 -0
  152. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js +19 -0
  153. package/lib/cjs/appui-react/widget-panels/FloatingWidget.js.map +1 -0
  154. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  155. package/lib/cjs/appui-react/widget-panels/Frontstage.js +31 -20
  156. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  157. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +1 -1
  158. package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  159. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +2 -2
  160. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  161. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +1 -1
  162. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  163. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +4 -0
  164. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  165. package/lib/cjs/appui-react/widgets/WidgetDef.js +8 -1
  166. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  167. package/lib/cjs/appui-react.d.ts +5 -0
  168. package/lib/cjs/appui-react.d.ts.map +1 -1
  169. package/lib/cjs/appui-react.js +5 -0
  170. package/lib/cjs/appui-react.js.map +1 -1
  171. package/lib/esm/appui-react/UiFramework.d.ts +1 -0
  172. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  173. package/lib/esm/appui-react/UiFramework.js +1 -1
  174. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  175. package/lib/esm/appui-react/backstage/Backstage.d.ts +3 -0
  176. package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -1
  177. package/lib/esm/appui-react/backstage/Backstage.js +3 -1
  178. package/lib/esm/appui-react/backstage/Backstage.js.map +1 -1
  179. package/lib/esm/appui-react/backstage/CommandLaunch.js +1 -1
  180. package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -1
  181. package/lib/esm/appui-react/childwindow/ChildWindowManager.js +1 -0
  182. package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
  183. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +1 -1
  184. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  185. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  186. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
  187. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  188. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +3 -0
  189. package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -1
  190. package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -1
  191. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +2 -0
  192. package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
  193. package/lib/esm/appui-react/frontstage/FrontstageManager.js +4 -0
  194. package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
  195. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +13 -3
  196. package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -1
  197. package/lib/esm/appui-react/hooks/useFrameworkVersion.js +15 -7
  198. package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -1
  199. package/lib/esm/appui-react/messages/ActivityMessage.d.ts +1 -0
  200. package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  201. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  202. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts +2 -0
  203. package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -1
  204. package/lib/esm/appui-react/messages/ActivityMessagePopup.js +1 -0
  205. package/lib/esm/appui-react/messages/ActivityMessagePopup.js.map +1 -1
  206. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts +1 -0
  207. package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -1
  208. package/lib/esm/appui-react/messages/StatusMessageRenderer.js.map +1 -1
  209. package/lib/esm/appui-react/messages/StickyMessage.d.ts +1 -0
  210. package/lib/esm/appui-react/messages/StickyMessage.d.ts.map +1 -1
  211. package/lib/esm/appui-react/messages/StickyMessage.js.map +1 -1
  212. package/lib/esm/appui-react/messages/ToastMessage.d.ts +1 -0
  213. package/lib/esm/appui-react/messages/ToastMessage.d.ts.map +1 -1
  214. package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -1
  215. package/lib/esm/appui-react/pickers/ListPicker.d.ts +1 -0
  216. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  217. package/lib/esm/appui-react/pickers/ListPicker.js +4 -2
  218. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  219. package/lib/esm/appui-react/pickers/ListPicker.scss +2 -1
  220. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +1 -0
  221. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  222. package/lib/esm/appui-react/safearea/SafeAreaContext.js +2 -1
  223. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  224. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts +13 -0
  225. package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -0
  226. package/lib/esm/appui-react/safearea/SafeAreaInsets.js +13 -0
  227. package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -0
  228. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js +2 -1
  229. package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js.map +1 -1
  230. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -1
  231. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  232. package/lib/esm/appui-react/statusbar/Indicator.d.ts +26 -0
  233. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -0
  234. package/lib/esm/appui-react/statusbar/Indicator.js +34 -0
  235. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -0
  236. package/lib/esm/appui-react/statusbar/Indicator.scss +110 -0
  237. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +24 -0
  238. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -0
  239. package/lib/esm/appui-react/statusbar/LabelIndicator.js +25 -0
  240. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -0
  241. package/lib/esm/appui-react/statusbar/LabelIndicator.scss +43 -0
  242. package/lib/esm/appui-react/statusbar/Separator.d.ts +10 -0
  243. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -0
  244. package/lib/esm/appui-react/statusbar/Separator.js +17 -0
  245. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -0
  246. package/lib/esm/appui-react/statusbar/StatusBarComposer.js +2 -1
  247. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  248. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts +21 -0
  249. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -0
  250. package/lib/esm/appui-react/statusbar/dialog/Button.js +16 -0
  251. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -0
  252. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts +30 -0
  253. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -0
  254. package/lib/esm/appui-react/statusbar/dialog/Dialog.js +27 -0
  255. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -0
  256. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts +19 -0
  257. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -0
  258. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +16 -0
  259. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -0
  260. package/lib/esm/appui-react/statusfields/Indicator.d.ts +1 -0
  261. package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -1
  262. package/lib/esm/appui-react/statusfields/Indicator.js +1 -0
  263. package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -1
  264. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  265. package/lib/esm/appui-react/statusfields/MessageCenter.js +2 -5
  266. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  267. package/lib/esm/appui-react/statusfields/PromptField.js +2 -1
  268. package/lib/esm/appui-react/statusfields/PromptField.js.map +1 -1
  269. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  270. package/lib/esm/appui-react/statusfields/SectionsField.js +5 -3
  271. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  272. package/lib/esm/appui-react/statusfields/SelectionInfo.js +2 -1
  273. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  274. package/lib/esm/appui-react/statusfields/SelectionScope.js +2 -1
  275. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  276. package/lib/esm/appui-react/statusfields/SnapMode.js +2 -1
  277. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  278. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  279. package/lib/esm/appui-react/statusfields/ViewAttributes.js +3 -2
  280. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  281. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +0 -1
  282. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  283. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +15 -13
  284. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  285. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +6 -1
  286. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  287. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +14 -0
  288. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  289. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts +2 -0
  290. package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -1
  291. package/lib/esm/appui-react/toolbar/ActionItemButton.js +1 -0
  292. package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -1
  293. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +2 -0
  294. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  295. package/lib/esm/appui-react/toolbar/GroupItem.js +1 -0
  296. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  297. package/lib/esm/appui-react/toolbar/ToolButton.d.ts +2 -0
  298. package/lib/esm/appui-react/toolbar/ToolButton.d.ts.map +1 -1
  299. package/lib/esm/appui-react/toolbar/ToolButton.js +1 -0
  300. package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -1
  301. package/lib/esm/appui-react/toolbar/ToolbarComposer.js +1 -1
  302. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  303. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts +9 -0
  304. package/lib/esm/appui-react/tools/RestoreLayoutTool.d.ts.map +1 -1
  305. package/lib/esm/appui-react/tools/RestoreLayoutTool.js +15 -0
  306. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  307. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  308. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -3
  309. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  310. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -3
  311. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  312. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js +1 -1
  313. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  314. package/lib/esm/appui-react/uistate/AppUiSettings.js +2 -1
  315. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  316. package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
  317. package/lib/esm/appui-react/utils/UiShowHideManager.js +8 -0
  318. package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
  319. package/lib/esm/appui-react/widget-panels/FloatingWidget.d.ts +7 -0
  320. package/lib/esm/appui-react/widget-panels/FloatingWidget.d.ts.map +1 -0
  321. package/lib/esm/appui-react/widget-panels/FloatingWidget.js +15 -0
  322. package/lib/esm/appui-react/widget-panels/FloatingWidget.js.map +1 -0
  323. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  324. package/lib/esm/appui-react/widget-panels/Frontstage.js +31 -20
  325. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  326. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +1 -1
  327. package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
  328. package/lib/esm/appui-react/widgets/BackstageAppButton.js +2 -2
  329. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  330. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +1 -1
  331. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  332. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +4 -0
  333. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  334. package/lib/esm/appui-react/widgets/WidgetDef.js +8 -1
  335. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  336. package/lib/esm/appui-react.d.ts +5 -0
  337. package/lib/esm/appui-react.d.ts.map +1 -1
  338. package/lib/esm/appui-react.js +5 -0
  339. package/lib/esm/appui-react.js.map +1 -1
  340. package/lib/public/locales/en/UiFramework.json +8 -3
  341. package/package.json +34 -34
@@ -0,0 +1,24 @@
1
+ /** @packageDocumentation
2
+ * @module StatusBar
3
+ */
4
+ /// <reference types="react" />
5
+ import "./LabelIndicator.scss";
6
+ import { StatusBarIndicatorProps } from "./Indicator";
7
+ import { IconSpec } from "@itwin/core-react";
8
+ import { StatusBarLabelSide } from "@itwin/appui-abstract";
9
+ /** Properties of [[StatusBarLabelIndicator]] component.
10
+ * @beta
11
+ */
12
+ export interface StatusBarLabelIndicatorProps extends Omit<StatusBarIndicatorProps, "children"> {
13
+ /** Specification of an icon. */
14
+ iconSpec?: IconSpec;
15
+ /** Indicator label. */
16
+ label?: string;
17
+ /** Side to display label. */
18
+ labelSide?: StatusBarLabelSide;
19
+ }
20
+ /** [[StatusBar]] indicator that shows a label with an icon.
21
+ * @beta
22
+ */
23
+ export declare function StatusBarLabelIndicator(props: StatusBarLabelIndicatorProps): JSX.Element;
24
+ //# sourceMappingURL=LabelIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelIndicator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/LabelIndicator.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,uBAAuB,CAAC;AAG/B,OAAO,EAAsB,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC;IAC7F,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,eAgB1E"}
@@ -0,0 +1,25 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module StatusBar
7
+ */
8
+ import "./LabelIndicator.scss";
9
+ import classnames from "classnames";
10
+ import * as React from "react";
11
+ import { StatusBarIndicator } from "./Indicator";
12
+ import { Icon } from "@itwin/core-react";
13
+ import { StatusBarLabelSide } from "@itwin/appui-abstract";
14
+ /** [[StatusBar]] indicator that shows a label with an icon.
15
+ * @beta
16
+ */
17
+ export function StatusBarLabelIndicator(props) {
18
+ const { className, iconSpec, label, labelSide, ...other } = props;
19
+ const classNames = classnames("uifw-statusbar-labelIndicator", labelSide === StatusBarLabelSide.Right && "uifw-reversed", className);
20
+ return (React.createElement(StatusBarIndicator, { className: classNames, ...other },
21
+ label && React.createElement("span", { className: "uifw-label" }, label),
22
+ iconSpec && React.createElement("div", { className: "uifw-icon" },
23
+ React.createElement(Icon, { iconSpec: iconSpec }))));
24
+ }
25
+ //# sourceMappingURL=LabelIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelIndicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/LabelIndicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAA2B,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAmC;IACzE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAClE,MAAM,UAAU,GAAG,UAAU,CAC3B,+BAA+B,EAC/B,SAAS,KAAK,kBAAkB,CAAC,KAAK,IAAI,eAAe,EACzD,SAAS,CACV,CAAC;IACF,OAAO,CACL,oBAAC,kBAAkB,IACjB,SAAS,EAAE,UAAU,KACjB,KAAK;QAER,KAAK,IAAI,8BAAM,SAAS,EAAC,YAAY,IAAE,KAAK,CAAQ;QACpD,QAAQ,IAAI,6BAAK,SAAS,EAAC,WAAW;YAAC,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAM,CACvD,CACtB,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport \"./LabelIndicator.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { StatusBarIndicator, StatusBarIndicatorProps } from \"./Indicator\";\r\nimport { Icon, IconSpec } from \"@itwin/core-react\";\r\nimport { StatusBarLabelSide } from \"@itwin/appui-abstract\";\r\n\r\n/** Properties of [[StatusBarLabelIndicator]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarLabelIndicatorProps extends Omit<StatusBarIndicatorProps, \"children\"> {\r\n /** Specification of an icon. */\r\n iconSpec?: IconSpec;\r\n /** Indicator label. */\r\n label?: string;\r\n /** Side to display label. */\r\n labelSide?: StatusBarLabelSide;\r\n}\r\n\r\n/** [[StatusBar]] indicator that shows a label with an icon.\r\n * @beta\r\n */\r\nexport function StatusBarLabelIndicator(props: StatusBarLabelIndicatorProps) {\r\n const { className, iconSpec, label, labelSide, ...other } = props;\r\n const classNames = classnames(\r\n \"uifw-statusbar-labelIndicator\",\r\n labelSide === StatusBarLabelSide.Right && \"uifw-reversed\",\r\n className,\r\n );\r\n return (\r\n <StatusBarIndicator\r\n className={classNames}\r\n {...other}\r\n >\r\n {label && <span className=\"uifw-label\">{label}</span>}\r\n {iconSpec && <div className=\"uifw-icon\"><Icon iconSpec={iconSpec} /></div>}\r\n </StatusBarIndicator>\r\n );\r\n}\r\n"]}
@@ -0,0 +1,43 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/appui-layout-react/lib/cjs/appui-layout-react/footer/variables";
6
+ @import "~@itwin/core-react/lib/cjs/core-react/style/breakpoints";
7
+
8
+ .uifw-statusbar-labelIndicator {
9
+ &.uifw-reversed {
10
+ flex-direction: row-reverse;
11
+ }
12
+
13
+ >.uifw-label {
14
+ font-size: $text-font-size;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ white-space: nowrap;
18
+
19
+ @include for-tablet-landscape-down {
20
+ display: none;
21
+ }
22
+ }
23
+
24
+ >.uifw-icon {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ font-size: $icon-size;
29
+ width: $icon-size;
30
+
31
+ /* Medium devices */
32
+ @include for-tablet-landscape-down {
33
+ font-size: $icon-size-medium;
34
+ width: $icon-size-medium;
35
+ }
36
+
37
+ /* Small devices */
38
+ @include for-phone-only {
39
+ font-size: $icon-size-small;
40
+ width: $icon-size-small;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,10 @@
1
+ /** @packageDocumentation
2
+ * @module StatusBar
3
+ */
4
+ /// <reference types="react" />
5
+ import { CommonProps } from "@itwin/core-react";
6
+ /** Component used to separate status fields in a status bar.
7
+ * @public
8
+ */
9
+ export declare function StatusBarSeparator(props: CommonProps): JSX.Element;
10
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Separator.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,eAIpD"}
@@ -0,0 +1,17 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module StatusBar
7
+ */
8
+ import * as React from "react";
9
+ import { FooterSeparator } from "@itwin/appui-layout-react";
10
+ /** Component used to separate status fields in a status bar.
11
+ * @public
12
+ */
13
+ export function StatusBarSeparator(props) {
14
+ return (React.createElement(FooterSeparator, { ...props }) // eslint-disable-line deprecation/deprecation
15
+ );
16
+ }
17
+ //# sourceMappingURL=Separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Separator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAkB;IACnD,OAAO,CACL,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC,8CAA8C;KAC9E,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { FooterSeparator } from \"@itwin/appui-layout-react\";\r\n\r\n/** Component used to separate status fields in a status bar.\r\n * @public\r\n */\r\nexport function StatusBarSeparator(props: CommonProps) {\r\n return (\r\n <FooterSeparator {...props} /> // eslint-disable-line deprecation/deprecation\r\n );\r\n}\r\n"]}
@@ -77,7 +77,8 @@ function useStatusBarItemSyncEffect(itemsManager, syncIdsOfInterest) {
77
77
  /** function to produce a StatusBarItem component from an AbstractStatusBarLabelItem */
78
78
  function generateActionStatusLabelItem(item, isInFooterMode) {
79
79
  const iconPaddingClass = item.labelSide === StatusBarLabelSide.Left ? "nz-icon-padding-right" : "nz-icon-padding-left";
80
- return (React.createElement(FooterIndicator, { isInFooterMode: isInFooterMode },
80
+ return (React.createElement(FooterIndicator // eslint-disable-line deprecation/deprecation
81
+ , { isInFooterMode: isInFooterMode },
81
82
  item.icon && React.createElement(Icon, { iconSpec: item.icon }),
82
83
  item.label && React.createElement("span", { className: iconPaddingClass }, ConditionalStringValue.getValue(item.label))));
83
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBarComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/StatusBarComposer.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACyE,uBAAuB,EAAE,sBAAsB,EAC7H,6BAA6B,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,gBAAgB,GACzH,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAe,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC3I,OAAO,EAAE,eAAe,EAAE,MAA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T,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,cAAc;QAEnB,oBAAC,qBAAqB,IAAC,SAAS,EAAE,aAAa;YAC7C,oBAAC,oBAAoB,IAAC,SAAS,EAAE,aAAa,IAC3C,SAAS,CACW;YACvB,oBAAC,sBAAsB,IAAC,SAAS,EAAE,eAAe;gBAC/C,WAAW;gBACX,YAAY,CACU;YACzB,oBAAC,qBAAqB,IAAC,SAAS,EAAE,cAAc;gBAC7C,UAAU;gBACV,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CACvC;oBACE,oBAAC,iBAAiB,IAChB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,oBAAoB,EAC9B,GAAG,EAAE,SAAS,GACd;oBACD,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,mBAAmB,IAAI,SAAS,CAAC,OAAO;wBACnE,oBAAC,sBAAsB,IACrB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,SAAS,CAAC,OAAO;4BAEzB,6BAAK,SAAS,EAAC,yCAAyC,iBAAa,yCAAyC,IAC3G,aAAa,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,CAChD,CACiB,CAE1B,CACJ,CAEqB,CACF,CACpB,CACP,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport {\r\n AbstractStatusBarActionItem, AbstractStatusBarLabelItem, CommonStatusBarItem, ConditionalBooleanValue, ConditionalStringValue,\r\n isAbstractStatusBarActionItem, isAbstractStatusBarLabelItem, StatusBarItemsManager, StatusBarLabelSide, StatusBarSection, UiSyncEventArgs,\r\n} from \"@itwin/appui-abstract\";\r\nimport { CommonProps, Icon, useRefs, useResizeObserver } from \"@itwin/core-react\";\r\nimport { eqlOverflown, FooterIndicator } from \"@itwin/appui-layout-react\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { Indicator } from \"../statusfields/Indicator\";\r\nimport { StatusBarOverflow } from \"./Overflow\";\r\nimport { StatusBarOverflowPanel } from \"./OverflowPanel\";\r\nimport { StatusBarCenterSection, StatusBarContext, StatusBarLeftSection, StatusBarRightSection, StatusBarSpaceBetween } from \"./StatusBar\";\r\nimport { isStatusBarItem } from \"./StatusBarItem\";\r\nimport { useDefaultStatusBarItems } from \"./useDefaultStatusBarItems\";\r\nimport { useUiItemsProviderStatusBarItems } from \"./useUiItemsProviderStatusBarItems\";\r\n\r\n/** Private function to generate a value that will allow the proper order to be maintained when items are placed in overflow panel */\r\nfunction getCombinedSectionItemPriority(item: CommonStatusBarItem) {\r\n let sectionValue = 0;\r\n if (item.section === StatusBarSection.Center)\r\n sectionValue = 100000;\r\n else if (item.section === StatusBarSection.Context)\r\n sectionValue = 200000;\r\n else if (item.section === StatusBarSection.Right)\r\n sectionValue = 300000;\r\n return sectionValue + item.itemPriority;\r\n}\r\n\r\ninterface DockedStatusBarEntryContextArg {\r\n readonly isOverflown: boolean;\r\n readonly onResize: (w: number) => void;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst DockedStatusBarEntryContext = React.createContext<DockedStatusBarEntryContextArg>(null!);\r\nDockedStatusBarEntryContext.displayName = \"nz:DockedStatusBarEntryContext\";\r\n\r\n/** @internal */\r\nexport function useStatusBarEntry() {\r\n return React.useContext(DockedStatusBarEntryContext);\r\n}\r\n\r\n/** Properties of [[DockedStatusBarItem]] component.\r\n * @internal future\r\n */\r\nexport interface StatusBarItemProps extends CommonProps {\r\n /** Tool setting content. */\r\n children?: React.ReactNode;\r\n itemPriority?: number;\r\n providerId?: string;\r\n section?: string;\r\n}\r\n\r\n/** Used in [[StatusBarComposer]] component to display a statusbar item.\r\n * @internal future\r\n */\r\nexport function DockedStatusBarItem(props: StatusBarItemProps) {\r\n const { onResize } = useStatusBarEntry();\r\n const ref = useResizeObserver<HTMLDivElement>(onResize);\r\n const className = classnames(\r\n \"uifw-statusbar-item-container\",\r\n props.className,\r\n );\r\n return (\r\n <div\r\n data-item-id={props.itemId}\r\n data-item-type=\"status-bar-item\"\r\n data-item-location={props.section}\r\n data-item-priority={props.itemPriority}\r\n data-item-provider-id={props.providerId}\r\n className={className}\r\n ref={ref}\r\n style={props.style}\r\n >\r\n {props.children}\r\n </div>\r\n );\r\n}\r\n\r\ninterface DockedStatusBarEntryProps {\r\n children?: React.ReactNode;\r\n entryKey: string;\r\n getOnResize: (key: string) => (w: number) => void;\r\n}\r\n\r\n/** Wrapper for status bar entries so their size can be used to determine if the status bar container can display them or if they will need to be placed in an overflow panel. */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention, no-shadow\r\nconst DockedStatusBarEntry = React.memo<DockedStatusBarEntryProps>(function DockedStatusbarEntry({ children, entryKey, getOnResize }) {\r\n const onResize = React.useMemo(() => getOnResize(entryKey), [getOnResize, entryKey]);\r\n const entry = React.useMemo<DockedStatusBarEntryContextArg>(() => ({\r\n isOverflown: false,\r\n onResize,\r\n }), [onResize]);\r\n return (\r\n <DockedStatusBarEntryContext.Provider value={entry}>\r\n {children}\r\n </DockedStatusBarEntryContext.Provider>\r\n );\r\n});\r\n\r\n/** Private function to set up sync event monitoring of statusbar items */\r\nfunction useStatusBarItemSyncEffect(itemsManager: StatusBarItemsManager, syncIdsOfInterest: string[]) {\r\n React.useEffect(() => {\r\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\r\n if (0 === syncIdsOfInterest.length)\r\n return;\r\n\r\n // istanbul ignore else\r\n if (syncIdsOfInterest.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // process each item that has interest\r\n itemsManager.refreshAffectedItems(args.eventIds);\r\n }\r\n };\r\n\r\n // Note: that items with conditions have condition run when loaded into the items manager\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\r\n return () => {\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\r\n };\r\n }, [itemsManager, itemsManager.items, syncIdsOfInterest]);\r\n}\r\n\r\n/** function to produce a StatusBarItem component from an AbstractStatusBarLabelItem */\r\nfunction generateActionStatusLabelItem(item: AbstractStatusBarLabelItem, isInFooterMode: boolean): React.ReactNode {\r\n const iconPaddingClass = item.labelSide === StatusBarLabelSide.Left ? \"nz-icon-padding-right\" : \"nz-icon-padding-left\";\r\n return (<FooterIndicator\r\n isInFooterMode={isInFooterMode}\r\n >\r\n {item.icon && <Icon iconSpec={item.icon} />}\r\n {item.label && <span className={iconPaddingClass}>{ConditionalStringValue.getValue(item.label)}</span>}\r\n </FooterIndicator>\r\n );\r\n}\r\n\r\n/** function to produce a StatusBarItem component from an AbstractStatusBarActionItem */\r\nfunction generateActionStatusBarItem(item: AbstractStatusBarActionItem, isInFooterMode: boolean): React.ReactNode {\r\n return <Indicator toolTip={ConditionalStringValue.getValue(item.tooltip)} opened={false} onClick={item.execute} iconSpec={item.icon}\r\n isInFooterMode={isInFooterMode} />;\r\n}\r\n\r\n/** local function to combine items from Stage and from Extensions */\r\nfunction combineItems(stageItems: ReadonlyArray<CommonStatusBarItem>, addonItems: ReadonlyArray<CommonStatusBarItem>) {\r\n const items: CommonStatusBarItem[] = [];\r\n if (stageItems.length) {\r\n // Walk through each and ensure no duplicate ids are added.\r\n stageItems.forEach((srcItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n items.push(srcItem);\r\n }\r\n });\r\n }\r\n if (addonItems.length) {\r\n // Walk through each and ensure no duplicate ids are added.\r\n addonItems.forEach((srcItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n items.push(srcItem);\r\n }\r\n });\r\n }\r\n return items;\r\n}\r\n\r\n/** local function to ensure a width value is defined for a status bar entries. */\r\nfunction verifiedMapEntries<T>(map: Map<string, T | undefined>) {\r\n for (const [, val] of map) {\r\n // istanbul ignore next\r\n if (val === undefined)\r\n return undefined;\r\n }\r\n return map as Map<string, T>;\r\n}\r\n\r\n/** Returns a subset of docked entry keys that exceed given width and should be placed in overflow panel. */\r\nfunction getItemToPlaceInOverflow(width: number, docked: ReadonlyArray<readonly [string, number]>, overflowWidth: number) {\r\n let settingsWidth = 0;\r\n\r\n let i = 0;\r\n for (; i < docked.length; i++) {\r\n const w = docked[i][1];\r\n const newSettingsWidth = settingsWidth + w;\r\n if (newSettingsWidth > width) {\r\n settingsWidth += overflowWidth;\r\n break;\r\n }\r\n settingsWidth = newSettingsWidth;\r\n }\r\n\r\n let j = i;\r\n for (; j > 0; j--) {\r\n if (settingsWidth <= width)\r\n break;\r\n const w = docked[j][1];\r\n settingsWidth -= w;\r\n }\r\n\r\n const overflowItems = new Array<string>();\r\n for (i = j; i < docked.length; i++) {\r\n overflowItems.push(docked[i][0]);\r\n }\r\n return overflowItems;\r\n}\r\n\r\nfunction isItemInOverflow(id: string, overflowItemIds: ReadonlyArray<string> | undefined) {\r\n if (!overflowItemIds || 0 === overflowItemIds.length)\r\n return false;\r\n return !!overflowItemIds.find((value) => value === id);\r\n}\r\n\r\n/** Properties for the [[StatusBarComposer]] React components\r\n * @public\r\n */\r\nexport interface StatusBarComposerProps extends CommonProps {\r\n /** Status Bar items */\r\n items: CommonStatusBarItem[];\r\n\r\n /** CSS class name override for the overall Status Bar */\r\n mainClassName?: string;\r\n /** CSS class name override for the left section */\r\n leftClassName?: string;\r\n /** CSS class name override for the center section */\r\n centerClassName?: string;\r\n /** CSS class name override for the right section */\r\n rightClassName?: string;\r\n}\r\n\r\n/** Component to load components into the [[StatusBar]].\r\n * @public\r\n */\r\nexport function StatusBarComposer(props: StatusBarComposerProps) {\r\n const { className, style, items, mainClassName, leftClassName, centerClassName, rightClassName } = props;\r\n const [defaultItemsManager, setDefaultItemsManager] = React.useState(() => new StatusBarItemsManager(items));\r\n const [isOverflowPanelOpen, setIsOverflowPanelOpen] = React.useState(false);\r\n const containerWidth = React.useRef<number | undefined>(undefined);\r\n\r\n const isInitialMount = React.useRef(true);\r\n React.useEffect(() => {\r\n if (isInitialMount.current)\r\n isInitialMount.current = false;\r\n else {\r\n setDefaultItemsManager(new StatusBarItemsManager(items));\r\n }\r\n }, [items]);\r\n const defaultItems = useDefaultStatusBarItems(defaultItemsManager);\r\n const syncIdsOfInterest = React.useMemo(() => StatusBarItemsManager.getSyncIdsOfInterest(defaultItems), [defaultItems]);\r\n useStatusBarItemSyncEffect(defaultItemsManager, syncIdsOfInterest);\r\n\r\n const statusBarContext = React.useContext(StatusBarContext);\r\n const [addonItemsManager] = React.useState(() => new StatusBarItemsManager());\r\n const addonItems = useUiItemsProviderStatusBarItems(addonItemsManager);\r\n const addonSyncIdsOfInterest = React.useMemo(() => StatusBarItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);\r\n useStatusBarItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);\r\n\r\n const statusBarItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);\r\n const entryWidths = React.useRef(new Map<string, number | undefined>());\r\n const overflowWidth = React.useRef<number | undefined>(undefined);\r\n const [overflown, setOverflown] = React.useState<ReadonlyArray<string>>();\r\n\r\n const calculateOverflow = React.useCallback(() => {\r\n const widths = verifiedMapEntries(entryWidths.current);\r\n if (containerWidth.current === undefined ||\r\n widths === undefined ||\r\n overflowWidth.current === undefined\r\n ) {\r\n setOverflown(new Array<string>());\r\n return;\r\n }\r\n\r\n // Calculate overflow.\r\n const newOverflown = getItemToPlaceInOverflow(containerWidth.current, [...widths.entries()], overflowWidth.current);\r\n if (!eqlOverflown(overflown, newOverflown)) {\r\n setOverflown(newOverflown);\r\n // istanbul ignore next\r\n if (0 === newOverflown.length && isOverflowPanelOpen)\r\n setIsOverflowPanelOpen(false);\r\n }\r\n }, [isOverflowPanelOpen, overflown]);\r\n\r\n const handleOverflowResize = React.useCallback((w: number) => {\r\n const calculate = overflowWidth.current !== w;\r\n overflowWidth.current = w;\r\n calculate && calculateOverflow();\r\n }, [calculateOverflow]);\r\n\r\n const handleEntryResize = React.useCallback((key: string) => (w: number) => {\r\n const oldW = entryWidths.current.get(key);\r\n if ((undefined === oldW) || Math.abs(oldW - w) > 2) {\r\n entryWidths.current.set(key, w);\r\n calculateOverflow();\r\n }\r\n }, [calculateOverflow]);\r\n\r\n const getSectionName = (section: StatusBarSection) => {\r\n switch (section) {\r\n case StatusBarSection.Center:\r\n case StatusBarSection.Stage:\r\n return \"status-bar-center\";\r\n case StatusBarSection.Context:\r\n return \"status-bar-right-start\";\r\n case StatusBarSection.Right:\r\n case StatusBarSection.Selection:\r\n return \"status-bar-right-end\";\r\n case StatusBarSection.Left:\r\n case StatusBarSection.Message:\r\n return \"status-bar-left\";\r\n }\r\n };\r\n\r\n /** generate a wrapped status bar entry that will report its size. */\r\n const getComponent = React.useCallback((item: CommonStatusBarItem, key: string, itemPriority: number,\r\n section: StatusBarSection, providerId?: string): React.ReactNode => {\r\n return (\r\n <DockedStatusBarEntry\r\n key={key}\r\n entryKey={key}\r\n getOnResize={handleEntryResize}\r\n >\r\n <DockedStatusBarItem key={key} itemId={item.id} itemPriority={itemPriority} providerId={providerId} section={getSectionName(section)} >\r\n {isStatusBarItem(item) && item.reactNode}\r\n {// eslint-disable-next-line deprecation/deprecation\r\n isAbstractStatusBarActionItem(item) && generateActionStatusBarItem(item, statusBarContext.isInFooterMode)}\r\n {// eslint-disable-next-line deprecation/deprecation\r\n isAbstractStatusBarLabelItem(item) && generateActionStatusLabelItem(item, statusBarContext.isInFooterMode)}\r\n </DockedStatusBarItem>\r\n </DockedStatusBarEntry>\r\n );\r\n // eslint-disable-next-line deprecation/deprecation\r\n }, [statusBarContext.isInFooterMode, handleEntryResize]);\r\n\r\n const getSectionItems = React.useCallback((section: StatusBarSection): React.ReactNode[] => {\r\n const sectionItems = statusBarItems\r\n .filter((item) => item.section as number === section && !isItemInOverflow(item.id, overflown) && !ConditionalBooleanValue.getValue(item.isHidden))\r\n .sort((a, b) => a.itemPriority - b.itemPriority);\r\n\r\n return sectionItems.map((sectionItem) => (\r\n <React.Fragment key={sectionItem.id}>\r\n {getComponent(sectionItem, sectionItem.id, sectionItem.itemPriority, sectionItem.section, sectionItem.providerId)}\r\n </React.Fragment>\r\n ));\r\n }, [statusBarItems, overflown, getComponent]);\r\n\r\n const getOverflowItems = React.useCallback((): React.ReactNode[] => {\r\n const itemsInOverflow = statusBarItems\r\n .filter((item) => isItemInOverflow(item.id, overflown) && !ConditionalBooleanValue.getValue(item.isHidden))\r\n .sort((a, b) => getCombinedSectionItemPriority(a) - getCombinedSectionItemPriority(b)).reverse();\r\n\r\n return itemsInOverflow.map((item) => (\r\n <React.Fragment key={item.id}>\r\n {getComponent(item, item.id, item.itemPriority, item.section, item.providerId)}\r\n </React.Fragment>\r\n ));\r\n }, [statusBarItems, overflown, getComponent]);\r\n\r\n const handleContainerResize = React.useCallback((w: number) => {\r\n if ((undefined === containerWidth.current) || Math.abs(containerWidth.current - w) > 2) {\r\n containerWidth.current = w;\r\n calculateOverflow();\r\n }\r\n }, [calculateOverflow]);\r\n\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n const targetRef = React.useRef<HTMLDivElement>(null);\r\n const resizeObserverRef = useResizeObserver(handleContainerResize);\r\n // allow both the containerRef and the resize observer function that takes a ref to be processed when the ref is set.\r\n const refs = useRefs(containerRef, resizeObserverRef);\r\n\r\n const onOverflowClick = React.useCallback(() => {\r\n setIsOverflowPanelOpen((prev) => !prev);\r\n }, []);\r\n // istanbul ignore next\r\n const handleOnClose = React.useCallback(() => {\r\n setIsOverflowPanelOpen(false);\r\n }, []);\r\n const leftItems = React.useMemo(() => getSectionItems(StatusBarSection.Left), [getSectionItems]);\r\n const centerItems = React.useMemo(() => getSectionItems(StatusBarSection.Center), [getSectionItems]);\r\n const rightItems = React.useMemo(() => getSectionItems(StatusBarSection.Right), [getSectionItems]);\r\n const contextItems = React.useMemo(() => getSectionItems(StatusBarSection.Context), [getSectionItems]);\r\n const overflowItems = React.useMemo(() => getOverflowItems(), [getOverflowItems]);\r\n\r\n const containerClassName = classnames(\r\n \"uifw-statusbar-docked\",\r\n className,\r\n );\r\n\r\n return (\r\n <div\r\n className={containerClassName}\r\n ref={refs}\r\n style={style}\r\n role=\"presentation\"\r\n >\r\n <StatusBarSpaceBetween className={mainClassName}>\r\n <StatusBarLeftSection className={leftClassName}>\r\n {leftItems}\r\n </StatusBarLeftSection>\r\n <StatusBarCenterSection className={centerClassName}>\r\n {centerItems}\r\n {contextItems}\r\n </StatusBarCenterSection>\r\n <StatusBarRightSection className={rightClassName}>\r\n {rightItems}\r\n {(!overflown || overflown.length > 0) && (\r\n <>\r\n <StatusBarOverflow\r\n onClick={onOverflowClick}\r\n onResize={handleOverflowResize}\r\n ref={targetRef}\r\n />\r\n {overflowItems.length > 0 && isOverflowPanelOpen && targetRef.current &&\r\n <StatusBarOverflowPanel\r\n onClose={handleOnClose}\r\n open={true}\r\n target={targetRef.current}\r\n >\r\n <div className=\"uifw-statusbar-overflow-items-container\" data-testid=\"uifw-statusbar-overflow-items-container\">\r\n {overflowItems.map((overflowEntry) => overflowEntry)}\r\n </div>\r\n </StatusBarOverflowPanel>\r\n }\r\n </>\r\n )}\r\n\r\n </StatusBarRightSection>\r\n </StatusBarSpaceBetween>\r\n </div>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"StatusBarComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/StatusBarComposer.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACyE,uBAAuB,EAAE,sBAAsB,EAC7H,6BAA6B,EAAE,4BAA4B,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;4BAEzB,6BAAK,SAAS,EAAC,yCAAyC,iBAAa,yCAAyC,IAC3G,aAAa,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,CAChD,CACiB,CAE1B,CACJ,CAEqB,CACF,CACpB,CACP,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport {\r\n AbstractStatusBarActionItem, AbstractStatusBarLabelItem, CommonStatusBarItem, ConditionalBooleanValue, ConditionalStringValue,\r\n isAbstractStatusBarActionItem, isAbstractStatusBarLabelItem, StatusBarItemsManager, StatusBarLabelSide, StatusBarSection, UiSyncEventArgs,\r\n} from \"@itwin/appui-abstract\";\r\nimport { CommonProps, Icon, useRefs, useResizeObserver } from \"@itwin/core-react\";\r\nimport { eqlOverflown, FooterIndicator } from \"@itwin/appui-layout-react\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { Indicator } from \"../statusfields/Indicator\";\r\nimport { StatusBarOverflow } from \"./Overflow\";\r\nimport { StatusBarOverflowPanel } from \"./OverflowPanel\";\r\nimport { StatusBarCenterSection, StatusBarContext, StatusBarLeftSection, StatusBarRightSection, StatusBarSpaceBetween } from \"./StatusBar\";\r\nimport { isStatusBarItem } from \"./StatusBarItem\";\r\nimport { useDefaultStatusBarItems } from \"./useDefaultStatusBarItems\";\r\nimport { useUiItemsProviderStatusBarItems } from \"./useUiItemsProviderStatusBarItems\";\r\n\r\n/** Private function to generate a value that will allow the proper order to be maintained when items are placed in overflow panel */\r\nfunction getCombinedSectionItemPriority(item: CommonStatusBarItem) {\r\n let sectionValue = 0;\r\n if (item.section === StatusBarSection.Center)\r\n sectionValue = 100000;\r\n else if (item.section === StatusBarSection.Context)\r\n sectionValue = 200000;\r\n else if (item.section === StatusBarSection.Right)\r\n sectionValue = 300000;\r\n return sectionValue + item.itemPriority;\r\n}\r\n\r\ninterface DockedStatusBarEntryContextArg {\r\n readonly isOverflown: boolean;\r\n readonly onResize: (w: number) => void;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst DockedStatusBarEntryContext = React.createContext<DockedStatusBarEntryContextArg>(null!);\r\nDockedStatusBarEntryContext.displayName = \"nz:DockedStatusBarEntryContext\";\r\n\r\n/** @internal */\r\nexport function useStatusBarEntry() {\r\n return React.useContext(DockedStatusBarEntryContext);\r\n}\r\n\r\n/** Properties of [[DockedStatusBarItem]] component.\r\n * @internal future\r\n */\r\nexport interface StatusBarItemProps extends CommonProps {\r\n /** Tool setting content. */\r\n children?: React.ReactNode;\r\n itemPriority?: number;\r\n providerId?: string;\r\n section?: string;\r\n}\r\n\r\n/** Used in [[StatusBarComposer]] component to display a statusbar item.\r\n * @internal future\r\n */\r\nexport function DockedStatusBarItem(props: StatusBarItemProps) {\r\n const { onResize } = useStatusBarEntry();\r\n const ref = useResizeObserver<HTMLDivElement>(onResize);\r\n const className = classnames(\r\n \"uifw-statusbar-item-container\",\r\n props.className,\r\n );\r\n return (\r\n <div\r\n data-item-id={props.itemId}\r\n data-item-type=\"status-bar-item\"\r\n data-item-location={props.section}\r\n data-item-priority={props.itemPriority}\r\n data-item-provider-id={props.providerId}\r\n className={className}\r\n ref={ref}\r\n style={props.style}\r\n >\r\n {props.children}\r\n </div>\r\n );\r\n}\r\n\r\ninterface DockedStatusBarEntryProps {\r\n children?: React.ReactNode;\r\n entryKey: string;\r\n getOnResize: (key: string) => (w: number) => void;\r\n}\r\n\r\n/** Wrapper for status bar entries so their size can be used to determine if the status bar container can display them or if they will need to be placed in an overflow panel. */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention, no-shadow\r\nconst DockedStatusBarEntry = React.memo<DockedStatusBarEntryProps>(function DockedStatusbarEntry({ children, entryKey, getOnResize }) {\r\n const onResize = React.useMemo(() => getOnResize(entryKey), [getOnResize, entryKey]);\r\n const entry = React.useMemo<DockedStatusBarEntryContextArg>(() => ({\r\n isOverflown: false,\r\n onResize,\r\n }), [onResize]);\r\n return (\r\n <DockedStatusBarEntryContext.Provider value={entry}>\r\n {children}\r\n </DockedStatusBarEntryContext.Provider>\r\n );\r\n});\r\n\r\n/** Private function to set up sync event monitoring of statusbar items */\r\nfunction useStatusBarItemSyncEffect(itemsManager: StatusBarItemsManager, syncIdsOfInterest: string[]) {\r\n React.useEffect(() => {\r\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\r\n if (0 === syncIdsOfInterest.length)\r\n return;\r\n\r\n // istanbul ignore else\r\n if (syncIdsOfInterest.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // process each item that has interest\r\n itemsManager.refreshAffectedItems(args.eventIds);\r\n }\r\n };\r\n\r\n // Note: that items with conditions have condition run when loaded into the items manager\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\r\n return () => {\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\r\n };\r\n }, [itemsManager, itemsManager.items, syncIdsOfInterest]);\r\n}\r\n\r\n/** function to produce a StatusBarItem component from an AbstractStatusBarLabelItem */\r\nfunction generateActionStatusLabelItem(item: AbstractStatusBarLabelItem, isInFooterMode: boolean): React.ReactNode {\r\n const iconPaddingClass = item.labelSide === StatusBarLabelSide.Left ? \"nz-icon-padding-right\" : \"nz-icon-padding-left\";\r\n return (<FooterIndicator // eslint-disable-line deprecation/deprecation\r\n isInFooterMode={isInFooterMode}\r\n >\r\n {item.icon && <Icon iconSpec={item.icon} />}\r\n {item.label && <span className={iconPaddingClass}>{ConditionalStringValue.getValue(item.label)}</span>}\r\n </FooterIndicator>\r\n );\r\n}\r\n\r\n/** function to produce a StatusBarItem component from an AbstractStatusBarActionItem */\r\nfunction generateActionStatusBarItem(item: AbstractStatusBarActionItem, isInFooterMode: boolean): React.ReactNode {\r\n return <Indicator toolTip={ConditionalStringValue.getValue(item.tooltip)} opened={false} onClick={item.execute} iconSpec={item.icon} // eslint-disable-line deprecation/deprecation\r\n isInFooterMode={isInFooterMode} />;\r\n}\r\n\r\n/** local function to combine items from Stage and from Extensions */\r\nfunction combineItems(stageItems: ReadonlyArray<CommonStatusBarItem>, addonItems: ReadonlyArray<CommonStatusBarItem>) {\r\n const items: CommonStatusBarItem[] = [];\r\n if (stageItems.length) {\r\n // Walk through each and ensure no duplicate ids are added.\r\n stageItems.forEach((srcItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n items.push(srcItem);\r\n }\r\n });\r\n }\r\n if (addonItems.length) {\r\n // Walk through each and ensure no duplicate ids are added.\r\n addonItems.forEach((srcItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n items.push(srcItem);\r\n }\r\n });\r\n }\r\n return items;\r\n}\r\n\r\n/** local function to ensure a width value is defined for a status bar entries. */\r\nfunction verifiedMapEntries<T>(map: Map<string, T | undefined>) {\r\n for (const [, val] of map) {\r\n // istanbul ignore next\r\n if (val === undefined)\r\n return undefined;\r\n }\r\n return map as Map<string, T>;\r\n}\r\n\r\n/** Returns a subset of docked entry keys that exceed given width and should be placed in overflow panel. */\r\nfunction getItemToPlaceInOverflow(width: number, docked: ReadonlyArray<readonly [string, number]>, overflowWidth: number) {\r\n let settingsWidth = 0;\r\n\r\n let i = 0;\r\n for (; i < docked.length; i++) {\r\n const w = docked[i][1];\r\n const newSettingsWidth = settingsWidth + w;\r\n if (newSettingsWidth > width) {\r\n settingsWidth += overflowWidth;\r\n break;\r\n }\r\n settingsWidth = newSettingsWidth;\r\n }\r\n\r\n let j = i;\r\n for (; j > 0; j--) {\r\n if (settingsWidth <= width)\r\n break;\r\n const w = docked[j][1];\r\n settingsWidth -= w;\r\n }\r\n\r\n const overflowItems = new Array<string>();\r\n for (i = j; i < docked.length; i++) {\r\n overflowItems.push(docked[i][0]);\r\n }\r\n return overflowItems;\r\n}\r\n\r\nfunction isItemInOverflow(id: string, overflowItemIds: ReadonlyArray<string> | undefined) {\r\n if (!overflowItemIds || 0 === overflowItemIds.length)\r\n return false;\r\n return !!overflowItemIds.find((value) => value === id);\r\n}\r\n\r\n/** Properties for the [[StatusBarComposer]] React components\r\n * @public\r\n */\r\nexport interface StatusBarComposerProps extends CommonProps {\r\n /** Status Bar items */\r\n items: CommonStatusBarItem[];\r\n\r\n /** CSS class name override for the overall Status Bar */\r\n mainClassName?: string;\r\n /** CSS class name override for the left section */\r\n leftClassName?: string;\r\n /** CSS class name override for the center section */\r\n centerClassName?: string;\r\n /** CSS class name override for the right section */\r\n rightClassName?: string;\r\n}\r\n\r\n/** Component to load components into the [[StatusBar]].\r\n * @public\r\n */\r\nexport function StatusBarComposer(props: StatusBarComposerProps) {\r\n const { className, style, items, mainClassName, leftClassName, centerClassName, rightClassName } = props;\r\n const [defaultItemsManager, setDefaultItemsManager] = React.useState(() => new StatusBarItemsManager(items));\r\n const [isOverflowPanelOpen, setIsOverflowPanelOpen] = React.useState(false);\r\n const containerWidth = React.useRef<number | undefined>(undefined);\r\n\r\n const isInitialMount = React.useRef(true);\r\n React.useEffect(() => {\r\n if (isInitialMount.current)\r\n isInitialMount.current = false;\r\n else {\r\n setDefaultItemsManager(new StatusBarItemsManager(items));\r\n }\r\n }, [items]);\r\n const defaultItems = useDefaultStatusBarItems(defaultItemsManager);\r\n const syncIdsOfInterest = React.useMemo(() => StatusBarItemsManager.getSyncIdsOfInterest(defaultItems), [defaultItems]);\r\n useStatusBarItemSyncEffect(defaultItemsManager, syncIdsOfInterest);\r\n\r\n const statusBarContext = React.useContext(StatusBarContext);\r\n const [addonItemsManager] = React.useState(() => new StatusBarItemsManager());\r\n const addonItems = useUiItemsProviderStatusBarItems(addonItemsManager);\r\n const addonSyncIdsOfInterest = React.useMemo(() => StatusBarItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);\r\n useStatusBarItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);\r\n\r\n const statusBarItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);\r\n const entryWidths = React.useRef(new Map<string, number | undefined>());\r\n const overflowWidth = React.useRef<number | undefined>(undefined);\r\n const [overflown, setOverflown] = React.useState<ReadonlyArray<string>>();\r\n\r\n const calculateOverflow = React.useCallback(() => {\r\n const widths = verifiedMapEntries(entryWidths.current);\r\n if (containerWidth.current === undefined ||\r\n widths === undefined ||\r\n overflowWidth.current === undefined\r\n ) {\r\n setOverflown(new Array<string>());\r\n return;\r\n }\r\n\r\n // Calculate overflow.\r\n const newOverflown = getItemToPlaceInOverflow(containerWidth.current, [...widths.entries()], overflowWidth.current);\r\n if (!eqlOverflown(overflown, newOverflown)) {\r\n setOverflown(newOverflown);\r\n // istanbul ignore next\r\n if (0 === newOverflown.length && isOverflowPanelOpen)\r\n setIsOverflowPanelOpen(false);\r\n }\r\n }, [isOverflowPanelOpen, overflown]);\r\n\r\n const handleOverflowResize = React.useCallback((w: number) => {\r\n const calculate = overflowWidth.current !== w;\r\n overflowWidth.current = w;\r\n calculate && calculateOverflow();\r\n }, [calculateOverflow]);\r\n\r\n const handleEntryResize = React.useCallback((key: string) => (w: number) => {\r\n const oldW = entryWidths.current.get(key);\r\n if ((undefined === oldW) || Math.abs(oldW - w) > 2) {\r\n entryWidths.current.set(key, w);\r\n calculateOverflow();\r\n }\r\n }, [calculateOverflow]);\r\n\r\n const getSectionName = (section: StatusBarSection) => {\r\n switch (section) {\r\n case StatusBarSection.Center:\r\n case StatusBarSection.Stage:\r\n return \"status-bar-center\";\r\n case StatusBarSection.Context:\r\n return \"status-bar-right-start\";\r\n case StatusBarSection.Right:\r\n case StatusBarSection.Selection:\r\n return \"status-bar-right-end\";\r\n case StatusBarSection.Left:\r\n case StatusBarSection.Message:\r\n return \"status-bar-left\";\r\n }\r\n };\r\n\r\n /** generate a wrapped status bar entry that will report its size. */\r\n const getComponent = React.useCallback((item: CommonStatusBarItem, key: string, itemPriority: number,\r\n section: StatusBarSection, providerId?: string): React.ReactNode => {\r\n return (\r\n <DockedStatusBarEntry\r\n key={key}\r\n entryKey={key}\r\n getOnResize={handleEntryResize}\r\n >\r\n <DockedStatusBarItem key={key} itemId={item.id} itemPriority={itemPriority} providerId={providerId} section={getSectionName(section)} >\r\n {isStatusBarItem(item) && item.reactNode}\r\n {// eslint-disable-next-line deprecation/deprecation\r\n isAbstractStatusBarActionItem(item) && generateActionStatusBarItem(item, statusBarContext.isInFooterMode)}\r\n {// eslint-disable-next-line deprecation/deprecation\r\n isAbstractStatusBarLabelItem(item) && generateActionStatusLabelItem(item, statusBarContext.isInFooterMode)}\r\n </DockedStatusBarItem>\r\n </DockedStatusBarEntry>\r\n );\r\n // eslint-disable-next-line deprecation/deprecation\r\n }, [statusBarContext.isInFooterMode, handleEntryResize]);\r\n\r\n const getSectionItems = React.useCallback((section: StatusBarSection): React.ReactNode[] => {\r\n const sectionItems = statusBarItems\r\n .filter((item) => item.section as number === section && !isItemInOverflow(item.id, overflown) && !ConditionalBooleanValue.getValue(item.isHidden))\r\n .sort((a, b) => a.itemPriority - b.itemPriority);\r\n\r\n return sectionItems.map((sectionItem) => (\r\n <React.Fragment key={sectionItem.id}>\r\n {getComponent(sectionItem, sectionItem.id, sectionItem.itemPriority, sectionItem.section, sectionItem.providerId)}\r\n </React.Fragment>\r\n ));\r\n }, [statusBarItems, overflown, getComponent]);\r\n\r\n const getOverflowItems = React.useCallback((): React.ReactNode[] => {\r\n const itemsInOverflow = statusBarItems\r\n .filter((item) => isItemInOverflow(item.id, overflown) && !ConditionalBooleanValue.getValue(item.isHidden))\r\n .sort((a, b) => getCombinedSectionItemPriority(a) - getCombinedSectionItemPriority(b)).reverse();\r\n\r\n return itemsInOverflow.map((item) => (\r\n <React.Fragment key={item.id}>\r\n {getComponent(item, item.id, item.itemPriority, item.section, item.providerId)}\r\n </React.Fragment>\r\n ));\r\n }, [statusBarItems, overflown, getComponent]);\r\n\r\n const handleContainerResize = React.useCallback((w: number) => {\r\n if ((undefined === containerWidth.current) || Math.abs(containerWidth.current - w) > 2) {\r\n containerWidth.current = w;\r\n calculateOverflow();\r\n }\r\n }, [calculateOverflow]);\r\n\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n const targetRef = React.useRef<HTMLDivElement>(null);\r\n const resizeObserverRef = useResizeObserver(handleContainerResize);\r\n // allow both the containerRef and the resize observer function that takes a ref to be processed when the ref is set.\r\n const refs = useRefs(containerRef, resizeObserverRef);\r\n\r\n const onOverflowClick = React.useCallback(() => {\r\n setIsOverflowPanelOpen((prev) => !prev);\r\n }, []);\r\n // istanbul ignore next\r\n const handleOnClose = React.useCallback(() => {\r\n setIsOverflowPanelOpen(false);\r\n }, []);\r\n const leftItems = React.useMemo(() => getSectionItems(StatusBarSection.Left), [getSectionItems]);\r\n const centerItems = React.useMemo(() => getSectionItems(StatusBarSection.Center), [getSectionItems]);\r\n const rightItems = React.useMemo(() => getSectionItems(StatusBarSection.Right), [getSectionItems]);\r\n const contextItems = React.useMemo(() => getSectionItems(StatusBarSection.Context), [getSectionItems]);\r\n const overflowItems = React.useMemo(() => getOverflowItems(), [getOverflowItems]);\r\n\r\n const containerClassName = classnames(\r\n \"uifw-statusbar-docked\",\r\n className,\r\n );\r\n\r\n return (\r\n <div\r\n className={containerClassName}\r\n ref={refs}\r\n style={style}\r\n role=\"presentation\"\r\n >\r\n <StatusBarSpaceBetween className={mainClassName}>\r\n <StatusBarLeftSection className={leftClassName}>\r\n {leftItems}\r\n </StatusBarLeftSection>\r\n <StatusBarCenterSection className={centerClassName}>\r\n {centerItems}\r\n {contextItems}\r\n </StatusBarCenterSection>\r\n <StatusBarRightSection className={rightClassName}>\r\n {rightItems}\r\n {(!overflown || overflown.length > 0) && (\r\n <>\r\n <StatusBarOverflow\r\n onClick={onOverflowClick}\r\n onResize={handleOverflowResize}\r\n ref={targetRef}\r\n />\r\n {overflowItems.length > 0 && isOverflowPanelOpen && targetRef.current &&\r\n <StatusBarOverflowPanel\r\n onClose={handleOnClose}\r\n open={true}\r\n target={targetRef.current}\r\n >\r\n <div className=\"uifw-statusbar-overflow-items-container\" data-testid=\"uifw-statusbar-overflow-items-container\">\r\n {overflowItems.map((overflowEntry) => overflowEntry)}\r\n </div>\r\n </StatusBarOverflowPanel>\r\n }\r\n </>\r\n )}\r\n\r\n </StatusBarRightSection>\r\n </StatusBarSpaceBetween>\r\n </div>\r\n );\r\n}\r\n"]}
@@ -0,0 +1,21 @@
1
+ /** @packageDocumentation
2
+ * @module StatusBar
3
+ */
4
+ import * as React from "react";
5
+ import { CommonProps } from "@itwin/core-react";
6
+ /** Properties of [[StatusBarDialogTitleBarButton]] component.
7
+ * @beta
8
+ */
9
+ export interface StatusBarDialogTitleBarButtonProps extends CommonProps {
10
+ /** Button content. */
11
+ children?: React.ReactNode;
12
+ /** Function called when button is clicked. */
13
+ onClick?: () => void;
14
+ /** Button title. */
15
+ title?: string;
16
+ }
17
+ /** Dialog component used in a [[StatusBarDialog]] component.
18
+ * @beta
19
+ */
20
+ export declare function StatusBarDialogTitleBarButton(props: StatusBarDialogTitleBarButtonProps): JSX.Element;
21
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/Button.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,WAAW;IACrE,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;EAEE;AACF,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,kCAAkC,eAItF"}
@@ -0,0 +1,16 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module StatusBar
7
+ */
8
+ import * as React from "react";
9
+ import { TitleBarButton } from "@itwin/appui-layout-react";
10
+ /** Dialog component used in a [[StatusBarDialog]] component.
11
+ * @beta
12
+ */
13
+ export function StatusBarDialogTitleBarButton(props) {
14
+ return (React.createElement(TitleBarButton, { ...props }));
15
+ }
16
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/Button.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAc3D;;EAEE;AACF,MAAM,UAAU,6BAA6B,CAAC,KAAyC;IACrF,OAAO,CACL,oBAAC,cAAc,OAAK,KAAK,GAAI,CAC9B,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { TitleBarButton } from \"@itwin/appui-layout-react\";\r\n\r\n/** Properties of [[StatusBarDialogTitleBarButton]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarDialogTitleBarButtonProps extends CommonProps {\r\n /** Button content. */\r\n children?: React.ReactNode;\r\n /** Function called when button is clicked. */\r\n onClick?: () => void;\r\n /** Button title. */\r\n title?: string;\r\n}\r\n\r\n/** Dialog component used in a [[StatusBarDialog]] component.\r\n* @beta\r\n*/\r\nexport function StatusBarDialogTitleBarButton(props: StatusBarDialogTitleBarButtonProps) {\r\n return (\r\n <TitleBarButton {...props} />\r\n );\r\n}\r\n"]}
@@ -0,0 +1,30 @@
1
+ /** @packageDocumentation
2
+ * @module StatusBar
3
+ */
4
+ import * as React from "react";
5
+ import { CommonProps } from "@itwin/core-react";
6
+ import { StatusBarDialogTitleBar } from "./TitleBar";
7
+ import { StatusBarDialogTitleBarButton } from "./Button";
8
+ /** Properties of [[StatusBarDialog]] component.
9
+ * @beta
10
+ */
11
+ export interface StatusBarDialogProps extends CommonProps {
12
+ /** Dialog content. */
13
+ children?: React.ReactNode;
14
+ /** Dialog title bar. See [[StatusBarDialog.TitleBar]] */
15
+ titleBar?: React.ReactNode;
16
+ }
17
+ /** Dialog component used in a [[StatusBarIndicator]] component.
18
+ * @beta
19
+ */
20
+ export declare function StatusBarDialog(props: StatusBarDialogProps): JSX.Element;
21
+ /** Components used in a [[StatusBarDialog]].
22
+ * @beta
23
+ */
24
+ export declare namespace StatusBarDialog {
25
+ /** Title bar of a [[StatusBarDialog]]. */
26
+ const TitleBar: typeof StatusBarDialogTitleBar;
27
+ /** Title bar button of a [[StatusBarDialog]]. */
28
+ const TitleBarButton: typeof StatusBarDialogTitleBarButton;
29
+ }
30
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/Dialog.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,uBAAuB;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAE1D;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IAC/B,0CAA0C;IACnC,MAAM,QAAQ,gCAA0B,CAAC;IAEhD,iDAAiD;IAC1C,MAAM,cAAc,sCAAgC,CAAC;CAC7D"}
@@ -0,0 +1,27 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module StatusBar
7
+ */
8
+ import * as React from "react";
9
+ import { Dialog } from "@itwin/appui-layout-react";
10
+ import { StatusBarDialogTitleBar } from "./TitleBar";
11
+ import { StatusBarDialogTitleBarButton } from "./Button";
12
+ /** Dialog component used in a [[StatusBarIndicator]] component.
13
+ * @beta
14
+ */
15
+ export function StatusBarDialog(props) {
16
+ return React.createElement(Dialog, { ...props }); // eslint-disable-line deprecation/deprecation
17
+ }
18
+ /** Components used in a [[StatusBarDialog]].
19
+ * @beta
20
+ */
21
+ (function (StatusBarDialog) {
22
+ /** Title bar of a [[StatusBarDialog]]. */
23
+ StatusBarDialog.TitleBar = StatusBarDialogTitleBar;
24
+ /** Title bar button of a [[StatusBarDialog]]. */
25
+ StatusBarDialog.TitleBarButton = StatusBarDialogTitleBarButton;
26
+ })(StatusBarDialog || (StatusBarDialog = {}));
27
+ //# sourceMappingURL=Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/Dialog.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAYzD;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,OAAO,oBAAC,MAAM,OAAK,KAAK,GAAI,CAAC,CAAC,8CAA8C;AAC9E,CAAC;AAED;;GAEG;AACH,WAAiB,eAAe;IAC9B,0CAA0C;IAC7B,wBAAQ,GAAG,uBAAuB,CAAC;IAEhD,iDAAiD;IACpC,8BAAc,GAAG,6BAA6B,CAAC;AAC9D,CAAC,EANgB,eAAe,KAAf,eAAe,QAM/B","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 StatusBar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { Dialog } from \"@itwin/appui-layout-react\";\r\nimport { StatusBarDialogTitleBar } from \"./TitleBar\";\r\nimport { StatusBarDialogTitleBarButton } from \"./Button\";\r\n\r\n/** Properties of [[StatusBarDialog]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarDialogProps extends CommonProps {\r\n /** Dialog content. */\r\n children?: React.ReactNode;\r\n /** Dialog title bar. See [[StatusBarDialog.TitleBar]] */\r\n titleBar?: React.ReactNode;\r\n}\r\n\r\n/** Dialog component used in a [[StatusBarIndicator]] component.\r\n * @beta\r\n */\r\nexport function StatusBarDialog(props: StatusBarDialogProps) {\r\n return <Dialog {...props} />; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Components used in a [[StatusBarDialog]].\r\n * @beta\r\n */\r\nexport namespace StatusBarDialog {\r\n /** Title bar of a [[StatusBarDialog]]. */\r\n export const TitleBar = StatusBarDialogTitleBar;\r\n\r\n /** Title bar button of a [[StatusBarDialog]]. */\r\n export const TitleBarButton = StatusBarDialogTitleBarButton;\r\n}\r\n"]}
@@ -0,0 +1,19 @@
1
+ /** @packageDocumentation
2
+ * @module StatusBar
3
+ */
4
+ import * as React from "react";
5
+ import { CommonProps } from "@itwin/core-react";
6
+ /** Properties of [[StatusBarDialogTitleBar]] component.
7
+ * @beta
8
+ */
9
+ export interface StatusBarDialogTitleBarProps extends CommonProps {
10
+ /** Title bar buttons. */
11
+ children?: React.ReactNode;
12
+ /** Title bar title. */
13
+ title?: string;
14
+ }
15
+ /** Dialog component used in a [[StatusBarDialog]] component.
16
+ * @beta
17
+ */
18
+ export declare function StatusBarDialogTitleBar(props: StatusBarDialogTitleBarProps): JSX.Element;
19
+ //# sourceMappingURL=TitleBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleBar.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/TitleBar.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,WAAW;IAC/D,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;EAEE;AACF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,eAE1E"}
@@ -0,0 +1,16 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module StatusBar
7
+ */
8
+ import * as React from "react";
9
+ import { TitleBar } from "@itwin/appui-layout-react";
10
+ /** Dialog component used in a [[StatusBarDialog]] component.
11
+ * @beta
12
+ */
13
+ export function StatusBarDialogTitleBar(props) {
14
+ return React.createElement(TitleBar, { ...props }); // eslint-disable-line deprecation/deprecation
15
+ }
16
+ //# sourceMappingURL=TitleBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleBar.js","sourceRoot":"","sources":["../../../../../src/appui-react/statusbar/dialog/TitleBar.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAYrD;;EAEE;AACF,MAAM,UAAU,uBAAuB,CAAC,KAAmC;IACzE,OAAO,oBAAC,QAAQ,OAAK,KAAK,GAAI,CAAC,CAAC,8CAA8C;AAChF,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 StatusBar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"@itwin/core-react\";\r\nimport { TitleBar } from \"@itwin/appui-layout-react\";\r\n\r\n/** Properties of [[StatusBarDialogTitleBar]] component.\r\n * @beta\r\n */\r\nexport interface StatusBarDialogTitleBarProps extends CommonProps {\r\n /** Title bar buttons. */\r\n children?: React.ReactNode;\r\n /** Title bar title. */\r\n title?: string;\r\n}\r\n\r\n/** Dialog component used in a [[StatusBarDialog]] component.\r\n* @beta\r\n*/\r\nexport function StatusBarDialogTitleBar(props: StatusBarDialogTitleBarProps) {\r\n return <TitleBar {...props} />; // eslint-disable-line deprecation/deprecation\r\n}\r\n"]}
@@ -36,6 +36,7 @@ interface IndicatorProps extends CommonProps {
36
36
  contentType?: FooterPopupContentType;
37
37
  }
38
38
  /** General-purpose [[Footer]] indicator. Shows an icon and supports an optional popup dialog.
39
+ * @deprecated Use [StatusBarIndicator] or [StatusBarLabelIndicator] instead.
39
40
  * @beta
40
41
  */
41
42
  export declare function Indicator(props: IndicatorProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusfields/Indicator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA0B,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAe,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEhF,6CAA6C;AAC7C,UAAU,cAAe,SAAQ,WAAW;IAC1C,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;MAEE;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kHAAkH;IACl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import { ConditionalStringValue, StatusBarLabelSide } from "@itwin/appui-abstrac
12
12
  import { Icon } from "@itwin/core-react";
13
13
  import { FooterPopup } from "@itwin/appui-layout-react";
14
14
  /** General-purpose [[Footer]] indicator. Shows an icon and supports an optional popup dialog.
15
+ * @deprecated Use [StatusBarIndicator] or [StatusBarLabelIndicator] instead.
15
16
  * @beta
16
17
  */
17
18
  export function Indicator(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusfields/Indicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAe,IAAI,EAAY,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,WAAW,EAA0B,MAAM,2BAA2B,CAAC;AAgChF;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,mDAAmD;IACnD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACxJ,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACrF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,sBAAsB,GAAG,KAAK,CAAC,WAAW,CAAC,GA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,KAAK,CAAC,CAAQ;YACrG,IAAI,IAAI,6BAAK,SAAS,EAAC,qBAAqB;gBAAC,oBAAC,IAAI,IAAC,QAAQ,EAAE,IAAI,GAAI,CAAM,CACxE;QACL,MAAM,IAAI,oBAAC,WAAW,IAAC,WAAW,EAAE,WAAW,EAC9C,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,MAAM,EAAE,MAAM,IACb,MAAM,CACK,CACb,CACJ,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport \"./Indicator.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { ConditionalStringValue, StatusBarLabelSide } from \"@itwin/appui-abstract\";\r\nimport { CommonProps, Icon, IconSpec } from \"@itwin/core-react\";\r\nimport { FooterPopup, FooterPopupContentType } from \"@itwin/appui-layout-react\";\r\n\r\n/** Properties of [[Indicator]] component. */\r\ninterface IndicatorProps extends CommonProps {\r\n /** Label of balloon icon. @deprecated use label */\r\n balloonLabel?: string;\r\n /** Dialog to display in popup when indicator is clicked. */\r\n dialog?: React.ReactChild;\r\n /** Icon to use in the footer. @deprecated use iconSpec */\r\n iconName?: string;\r\n /** specification for Icon, overrides iconName specification */\r\n iconSpec?: IconSpec;\r\n /** Describes if the indicator label is visible. */\r\n isLabelVisible?: boolean;\r\n /** Indicator label. */\r\n label?: string;\r\n /** Side to display label. */\r\n labelSide?: StatusBarLabelSide;\r\n /** Function called when indicator is clicked. */\r\n onClick?: () => void;\r\n /** If dialog prop is set, used to determine initial state. */\r\n opened?: boolean;\r\n /** Describes whether the footer is in footer or widget mode.\r\n * @deprecated In upcoming version, widget mode will be removed. Consider this parameter to always be true.\r\n */\r\n isInFooterMode?: boolean;\r\n /** Tooltip text if not specified label is used */\r\n toolTip?: string;\r\n /** ContentType is used to determine color of popup arrow. If not set defaults to FooterPopupContentType.Dialog */\r\n contentType?: FooterPopupContentType;\r\n}\r\n\r\n/** General-purpose [[Footer]] indicator. Shows an icon and supports an optional popup dialog.\r\n * @beta\r\n */\r\nexport function Indicator(props: IndicatorProps) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const { className, contentType, dialog, iconName, iconSpec, isInFooterMode, isLabelVisible, label, labelSide, onClick, opened, style, toolTip } = props;\r\n const hasClickAction = React.useMemo(() => !!onClick || !!dialog, [dialog, onClick]);\r\n const [isOpen, setIsOpen] = React.useState(!!opened);\r\n const handleOnIndicatorClick = React.useCallback(() => {\r\n if (dialog) {\r\n setIsOpen(!isOpen);\r\n }\r\n onClick && onClick();\r\n }, [dialog, isOpen, onClick]);\r\n const inFooter = React.useMemo(() => false === isInFooterMode ? false : true, [isInFooterMode]);\r\n const target = React.useRef<HTMLDivElement>(null);\r\n const icon = React.useMemo(() => iconSpec ?? iconName, [iconSpec, iconName]);\r\n const title = React.useMemo(() => toolTip ?? label, [toolTip, label]);\r\n const classNames = classnames(\r\n \"uifw-footer-label-left\", \"uifw-footer-indicator\",\r\n inFooter && \"nz-footer-mode\",\r\n hasClickAction && \"uifw-footer-action\",\r\n labelSide === StatusBarLabelSide.Right && \"uifw-footer-label-reversed\",\r\n className);\r\n return (\r\n\r\n <>\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div ref={target}\r\n role=\"button\" tabIndex={-1}\r\n className={classNames}\r\n title={title}\r\n style={style}\r\n onClick={handleOnIndicatorClick}\r\n >\r\n {isLabelVisible && label && <span className=\"nz-label\">{ConditionalStringValue.getValue(label)}</span>}\r\n {icon && <div className=\"uifw-indicator-icon\"><Icon iconSpec={icon} /></div>}\r\n </div>\r\n {dialog && <FooterPopup contentType={contentType}\r\n target={target.current}\r\n onClose={() => setIsOpen(false)}\r\n isOpen={isOpen}>\r\n {dialog}\r\n </FooterPopup>}\r\n </>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"Indicator.js","sourceRoot":"","sources":["../../../../src/appui-react/statusfields/Indicator.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAe,IAAI,EAAY,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,WAAW,EAA0B,MAAM,2BAA2B,CAAC;AAgChF;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,mDAAmD;IACnD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACxJ,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACrF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,sBAAsB,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACpD,IAAI,MAAM,EAAE;YACV,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;SACpB;QACD,OAAO,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC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E,WAAW,EAC9C,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,MAAM,EAAE,MAAM,IACb,MAAM,CACK,CACb,CACJ,CAAC;AACJ,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 StatusBar\r\n */\r\n\r\nimport \"./Indicator.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { ConditionalStringValue, StatusBarLabelSide } from \"@itwin/appui-abstract\";\r\nimport { CommonProps, Icon, IconSpec } from \"@itwin/core-react\";\r\nimport { FooterPopup, FooterPopupContentType } from \"@itwin/appui-layout-react\";\r\n\r\n/** Properties of [[Indicator]] component. */\r\ninterface IndicatorProps extends CommonProps {\r\n /** Label of balloon icon. @deprecated use label */\r\n balloonLabel?: string;\r\n /** Dialog to display in popup when indicator is clicked. */\r\n dialog?: React.ReactChild;\r\n /** Icon to use in the footer. @deprecated use iconSpec */\r\n iconName?: string;\r\n /** specification for Icon, overrides iconName specification */\r\n iconSpec?: IconSpec;\r\n /** Describes if the indicator label is visible. */\r\n isLabelVisible?: boolean;\r\n /** Indicator label. */\r\n label?: string;\r\n /** Side to display label. */\r\n labelSide?: StatusBarLabelSide;\r\n /** Function called when indicator is clicked. */\r\n onClick?: () => void;\r\n /** If dialog prop is set, used to determine initial state. */\r\n opened?: boolean;\r\n /** Describes whether the footer is in footer or widget mode.\r\n * @deprecated In upcoming version, widget mode will be removed. Consider this parameter to always be true.\r\n */\r\n isInFooterMode?: boolean;\r\n /** Tooltip text if not specified label is used */\r\n toolTip?: string;\r\n /** ContentType is used to determine color of popup arrow. If not set defaults to FooterPopupContentType.Dialog */\r\n contentType?: FooterPopupContentType; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** General-purpose [[Footer]] indicator. Shows an icon and supports an optional popup dialog.\r\n * @deprecated Use [StatusBarIndicator] or [StatusBarLabelIndicator] instead.\r\n * @beta\r\n */\r\nexport function Indicator(props: IndicatorProps) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const { className, contentType, dialog, iconName, iconSpec, isInFooterMode, isLabelVisible, label, labelSide, onClick, opened, style, toolTip } = props;\r\n const hasClickAction = React.useMemo(() => !!onClick || !!dialog, [dialog, onClick]);\r\n const [isOpen, setIsOpen] = React.useState(!!opened);\r\n const handleOnIndicatorClick = React.useCallback(() => {\r\n if (dialog) {\r\n setIsOpen(!isOpen);\r\n }\r\n onClick && onClick();\r\n }, [dialog, isOpen, onClick]);\r\n const inFooter = React.useMemo(() => false === isInFooterMode ? false : true, [isInFooterMode]);\r\n const target = React.useRef<HTMLDivElement>(null);\r\n const icon = React.useMemo(() => iconSpec ?? iconName, [iconSpec, iconName]);\r\n const title = React.useMemo(() => toolTip ?? label, [toolTip, label]);\r\n const classNames = classnames(\r\n \"uifw-footer-label-left\", \"uifw-footer-indicator\",\r\n inFooter && \"nz-footer-mode\",\r\n hasClickAction && \"uifw-footer-action\",\r\n labelSide === StatusBarLabelSide.Right && \"uifw-footer-label-reversed\",\r\n className);\r\n return (\r\n <>\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div ref={target}\r\n role=\"button\" tabIndex={-1}\r\n className={classNames}\r\n title={title}\r\n style={style}\r\n onClick={handleOnIndicatorClick}\r\n >\r\n {isLabelVisible && label && <span className=\"nz-label\">{ConditionalStringValue.getValue(label)}</span>}\r\n {icon && <div className=\"uifw-indicator-icon\"><Icon iconSpec={icon} /></div>}\r\n </div>\r\n {dialog && <FooterPopup contentType={contentType} // eslint-disable-line deprecation/deprecation\r\n target={target.current}\r\n onClose={() => setIsOpen(false)}\r\n isOpen={isOpen}>\r\n {dialog}\r\n </FooterPopup>}\r\n </>\r\n );\r\n}\r\n"]}
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mBAAmB,CAOzB;IAEF,OAAO,CAAC,4BAA4B,CAOlC;IAEF,OAAO,CAAC,gBAAgB,CAEtB;IAEF,OAAO,CAAC,WAAW;IA+BnB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,aAAa;CAKtB"}
@@ -107,11 +107,8 @@ export class MessageCenterField extends React.Component {
107
107
  isInFooterMode: (_a = this.props.isInFooterMode) !== null && _a !== void 0 ? _a : true,
108
108
  // eslint-disable-next-line deprecation/deprecation
109
109
  label: ((_b = this.props.isInFooterMode) !== null && _b !== void 0 ? _b : true) ? this._title : undefined, onClick: this._handleMessageIndicatorClick }, this.state.messageCount.toString())),
110
- React.createElement(FooterPopup
111
- // eslint-disable-next-line deprecation/deprecation
112
- , {
113
- // eslint-disable-next-line deprecation/deprecation
114
- isOpen: ((_c = this.props.openWidget) !== null && _c !== void 0 ? _c : this.state.openWidget) === this._className, onClose: this._handleClose, onOutsideClick: this._handleOutsideClick, target: this.state.target },
110
+ React.createElement(FooterPopup // eslint-disable-line deprecation/deprecation
111
+ , { isOpen: ((_c = this.props.openWidget) !== null && _c !== void 0 ? _c : this.state.openWidget) === this._className, onClose: this._handleClose, onOutsideClick: this._handleOutsideClick, target: this.state.target },
115
112
  React.createElement(MessageCenterDialog, { prompt: UiFramework.translate("messageCenter.prompt"), tabs: React.createElement(React.Fragment, null,
116
113
  React.createElement(MessageCenterTab, { isActive: this.state.activeTab === MessageCenterActiveTab.AllMessages, onClick: () => this._changeActiveTab(MessageCenterActiveTab.AllMessages) }, UiFramework.translate("messageCenter.all")),
117
114
  React.createElement(MessageCenterTab, { isActive: this.state.activeTab === MessageCenterActiveTab.Problems, onClick: () => this._changeActiveTab(MessageCenterActiveTab.Problems) }, UiFramework.translate("messageCenter.errors"))), title: this._title }, this.getMessages()))));