@itwin/appui-react 4.1.0-dev.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1427) hide show
  1. package/CHANGELOG.md +85 -18
  2. package/lib/cjs/appui-react/UiFramework.d.ts +19 -17
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +9 -5
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +2 -1
  7. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  8. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -1
  10. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  12. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +2 -2
  13. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  14. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js +4 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  16. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts +2 -2
  20. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.d.ts +2 -2
  23. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.d.ts.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  25. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts +1 -1
  26. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/Calculator.d.ts +2 -2
  29. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  30. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  31. package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts +2 -2
  32. package/lib/cjs/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  33. package/lib/cjs/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  34. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +5 -4
  35. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  36. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  37. package/lib/cjs/appui-react/accudraw/MenuButton.d.ts +3 -3
  38. package/lib/cjs/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/accudraw/MenuButton.js.map +1 -1
  40. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts +1 -1
  41. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  43. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +2 -2
  44. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  46. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +2 -2
  47. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  48. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  49. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts +1 -1
  50. package/lib/cjs/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  51. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +2 -1
  52. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  53. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +2 -2
  54. package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  55. package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -1
  56. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +2 -2
  57. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  58. package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  59. package/lib/cjs/appui-react/backstage/BackstageItemsManager.d.ts +1 -1
  60. package/lib/cjs/appui-react/backstage/BackstageItemsManager.d.ts.map +1 -1
  61. package/lib/cjs/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  62. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +2 -2
  63. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  65. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts +2 -2
  66. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  67. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  68. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.d.ts +2 -2
  69. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.d.ts.map +1 -1
  70. package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  71. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts +2 -2
  72. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  73. package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  74. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts +1 -1
  75. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  76. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +5 -4
  77. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  78. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts +1 -1
  79. package/lib/cjs/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  80. package/lib/cjs/appui-react/childwindow/PopoutWidget.js.map +1 -1
  81. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -1
  82. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  83. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  84. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
  85. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  86. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  87. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  88. package/lib/cjs/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/configurableui/TimeTracker.js +2 -1
  90. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  91. package/lib/cjs/appui-react/configurableui/state.d.ts +1 -1
  92. package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
  94. package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
  95. package/lib/cjs/appui-react/content/ContentControl.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  97. package/lib/cjs/appui-react/content/ContentGroup.d.ts +6 -6
  98. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  99. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  100. package/lib/cjs/appui-react/content/ContentLayout.d.ts +4 -3
  101. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/content/ContentLayout.js +11 -6
  103. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  104. package/lib/cjs/appui-react/content/ContentLayout.scss +50 -21
  105. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts +1 -1
  106. package/lib/cjs/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  107. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +4 -3
  108. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  109. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts +2 -2
  110. package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  111. package/lib/cjs/appui-react/content/FloatingViewportContent.js +2 -1
  112. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  113. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -4
  114. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  115. package/lib/cjs/appui-react/content/IModelViewport.js +6 -3
  116. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  117. package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts +2 -2
  118. package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
  119. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +2 -1
  120. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  121. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts +2 -2
  122. package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/content/InternalContentViewManager.js +1 -1
  124. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  125. package/lib/cjs/appui-react/content/StageContentLayout.d.ts +5 -5
  126. package/lib/cjs/appui-react/content/StageContentLayout.d.ts.map +1 -1
  127. package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -1
  128. package/lib/cjs/appui-react/content/ViewStateHelper.d.ts +2 -2
  129. package/lib/cjs/appui-react/content/ViewStateHelper.d.ts.map +1 -1
  130. package/lib/cjs/appui-react/content/ViewStateHelper.js.map +1 -1
  131. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts +4 -3
  132. package/lib/cjs/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/content/ViewportContentControl.js.map +1 -1
  134. package/lib/cjs/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
  135. package/lib/cjs/appui-react/content/split-pane/Resizer.js +2 -1
  136. package/lib/cjs/appui-react/content/split-pane/Resizer.js.map +1 -1
  137. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +12 -8
  138. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  139. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -1
  140. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  141. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  142. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -2
  143. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  144. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  145. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  146. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +4 -2
  147. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  148. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  149. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -1
  150. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  151. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  152. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts +3 -2
  153. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  155. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +1 -1
  156. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  157. package/lib/cjs/appui-react/dialog/ContentDialog.js +6 -3
  158. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  159. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts +1 -1
  160. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  161. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  162. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +3 -2
  163. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  164. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts +3 -2
  165. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  166. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  167. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.d.ts +1 -1
  168. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -1
  169. package/lib/cjs/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  170. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts +3 -2
  171. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
  172. package/lib/cjs/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  173. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts +1 -1
  174. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  175. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  176. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +1 -1
  177. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  178. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  179. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts +1 -1
  180. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  182. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +1 -1
  183. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  185. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +1 -1
  186. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  187. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  188. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +6 -5
  189. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  190. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  191. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts +1 -1
  192. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  193. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  194. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +3 -3
  195. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  196. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  197. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  198. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  199. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  200. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts +1 -1
  201. package/lib/cjs/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  202. package/lib/cjs/appui-react/framework/FrameworkControls.js.map +1 -1
  203. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -1
  204. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +0 -7
  206. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  207. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +11 -11
  208. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  210. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +4 -4
  211. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  212. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  213. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +3 -2
  214. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -1
  215. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +0 -7
  216. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  217. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +4 -4
  218. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  219. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  220. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +11 -10
  221. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +4 -3
  223. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  224. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +1 -1
  225. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  227. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +16 -11
  228. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  229. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  230. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +1 -1
  231. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  232. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  233. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts +1 -1
  234. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +3 -2
  236. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  237. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -5
  238. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +3 -2
  240. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  241. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts +1 -1
  242. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  243. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  244. package/lib/cjs/appui-react/hooks/useActiveStageId.js.map +1 -1
  245. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts +1 -1
  246. package/lib/cjs/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  247. package/lib/cjs/appui-react/hooks/useActiveViewport.js.map +1 -1
  248. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts +1 -1
  249. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  250. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  251. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  252. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.d.ts +1 -1
  253. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  255. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  256. package/lib/cjs/appui-react/hooks/useSolarDataProvider.d.ts +2 -2
  257. package/lib/cjs/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +13 -8
  259. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  260. package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  261. package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -1
  262. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  263. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  264. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  265. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +2 -2
  266. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  267. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  268. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -2
  269. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  270. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  271. package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/messages/ActivityMessage.js +7 -5
  273. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  274. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts +4 -3
  275. package/lib/cjs/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/messages/AppNotificationManager.js.map +1 -1
  277. package/lib/cjs/appui-react/messages/HollowIcon.d.ts +1 -1
  278. package/lib/cjs/appui-react/messages/HollowIcon.d.ts.map +1 -1
  279. package/lib/cjs/appui-react/messages/HollowIcon.js.map +1 -1
  280. package/lib/cjs/appui-react/messages/InputField.d.ts +1 -1
  281. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  282. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  283. package/lib/cjs/appui-react/messages/MessageLabel.d.ts +1 -1
  284. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  285. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  286. package/lib/cjs/appui-react/messages/MessageManager.d.ts +7 -6
  287. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  288. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageSpan.d.ts +2 -2
  290. package/lib/cjs/appui-react/messages/MessageSpan.d.ts.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageSpan.js.map +1 -1
  292. package/lib/cjs/appui-react/messages/Pointer.d.ts +5 -4
  293. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  294. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  295. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts +5 -4
  296. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  297. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  298. package/lib/cjs/appui-react/messages/StatusMessageManager.d.ts +2 -2
  299. package/lib/cjs/appui-react/messages/StatusMessageManager.d.ts.map +1 -1
  300. package/lib/cjs/appui-react/messages/StatusMessageManager.js.map +1 -1
  301. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts +1 -1
  302. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  303. package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  304. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts +1 -1
  305. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  307. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +4 -3
  308. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  309. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts +3 -3
  311. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  313. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +4 -4
  314. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  315. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  316. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -2
  317. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  318. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  319. package/lib/cjs/appui-react/pickers/ListPicker.d.ts +3 -1
  320. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  321. package/lib/cjs/appui-react/pickers/ListPicker.js +6 -1
  322. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  323. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +4 -3
  324. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  325. package/lib/cjs/appui-react/pickers/ViewSelector.js +19 -6
  326. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  327. package/lib/cjs/appui-react/popup/CardPopup.d.ts +4 -3
  328. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  329. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +4 -3
  331. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  332. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  333. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts +3 -3
  334. package/lib/cjs/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  335. package/lib/cjs/appui-react/popup/InputEditorPopup.js.map +1 -1
  336. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts +2 -2
  337. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +2 -1
  339. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  340. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +2 -2
  341. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  343. package/lib/cjs/appui-react/popup/PopupManager.d.ts +5 -4
  344. package/lib/cjs/appui-react/popup/PopupManager.d.ts.map +1 -1
  345. package/lib/cjs/appui-react/popup/PopupManager.js +2 -1
  346. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  347. package/lib/cjs/appui-react/popup/PositionPopup.d.ts +2 -2
  348. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  349. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  350. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts +4 -3
  351. package/lib/cjs/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  352. package/lib/cjs/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  353. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts +5 -4
  354. package/lib/cjs/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  355. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  356. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +4 -2
  357. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  358. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  359. package/lib/cjs/appui-react/redux/SessionState.d.ts +3 -3
  360. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  361. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  362. package/lib/cjs/appui-react/redux/StateManager.d.ts +3 -3
  363. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.js +0 -1
  365. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  366. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +1 -1
  367. package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
  369. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts +2 -2
  370. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts.map +1 -1
  371. package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  372. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts +1 -1
  373. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  375. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  378. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts +3 -3
  379. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  382. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts +1 -1
  383. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  386. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  387. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +4 -3
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  390. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  391. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +4 -4
  392. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  393. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts +2 -2
  395. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  396. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +2 -2
  398. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  399. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  400. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +2 -2
  401. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  402. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -1
  404. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  406. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +3 -3
  407. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  408. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  409. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +4 -4
  410. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  411. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemMap.d.ts +1 -1
  413. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  415. package/lib/cjs/appui-react/shared/ItemProps.d.ts +2 -2
  416. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  417. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  418. package/lib/cjs/appui-react/shared/MenuItem.d.ts +3 -3
  419. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  421. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +3 -3
  422. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  424. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +2 -2
  425. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  426. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  427. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +2 -2
  428. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  429. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +7 -5
  430. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  431. package/lib/cjs/appui-react/statusbar/Field.d.ts +1 -1
  432. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  433. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  434. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +1 -1
  435. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Indicator.js +2 -1
  437. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  439. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  441. package/lib/cjs/appui-react/statusbar/Overflow.d.ts +1 -1
  442. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  443. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  444. package/lib/cjs/appui-react/statusbar/OverflowPanel.d.ts +1 -1
  445. package/lib/cjs/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/statusbar/OverflowPanel.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Popup.d.ts +1 -1
  448. package/lib/cjs/appui-react/statusbar/Popup.d.ts.map +1 -1
  449. package/lib/cjs/appui-react/statusbar/Popup.js.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/Separator.d.ts +1 -1
  451. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  453. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +3 -3
  454. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  455. package/lib/cjs/appui-react/statusbar/StatusBar.js +5 -3
  456. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts +2 -2
  458. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +3 -3
  461. package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
  463. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +5 -4
  464. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  465. package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  467. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  468. package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  469. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts +2 -1
  470. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  471. package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  472. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts +1 -1
  473. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  475. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts +1 -1
  476. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  477. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  478. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts +1 -1
  479. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  480. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  481. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.d.ts +2 -2
  482. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
  483. package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  484. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts +2 -2
  485. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  486. package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts +1 -1
  488. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  490. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts +1 -1
  491. package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  492. package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
  493. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts +1 -1
  494. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  495. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts +29 -0
  497. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -0
  498. package/lib/cjs/appui-react/statusfields/SelectionCount.js +51 -0
  499. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -0
  500. package/lib/cjs/appui-react/statusfields/{SelectionInfo.scss → SelectionCount.scss} +5 -8
  501. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +6 -19
  502. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +14 -31
  504. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  505. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +2 -2
  506. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  507. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  508. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +1 -1
  509. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  510. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  511. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -2
  512. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  513. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  514. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
  515. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  516. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  517. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +2 -2
  518. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  519. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  520. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  521. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +2 -2
  522. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  523. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  524. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/theme/ThemeManager.js +2 -1
  526. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  527. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.d.ts +3 -2
  528. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.d.ts.map +1 -1
  529. package/lib/cjs/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  530. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.d.ts +3 -2
  531. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  533. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.d.ts +1 -1
  534. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  535. package/lib/cjs/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  536. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +4 -4
  537. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  538. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  539. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +4 -4
  540. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  541. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  542. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts +2 -1
  543. package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  544. package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  545. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +4 -4
  546. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  547. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  548. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +2 -2
  549. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  550. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  551. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +1 -1
  552. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  553. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  554. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.d.ts +1 -1
  555. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  556. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  557. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts +4 -4
  558. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  559. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  560. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.d.ts +2 -2
  561. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  562. package/lib/cjs/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  563. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.d.ts +2 -2
  564. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.d.ts.map +1 -1
  565. package/lib/cjs/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  566. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts +2 -2
  567. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  568. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  569. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +14 -7
  570. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  571. package/lib/cjs/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  572. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts +4 -3
  573. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  574. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -1
  575. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  576. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.d.ts +3 -2
  577. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.d.ts.map +1 -1
  578. package/lib/cjs/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  579. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts +1 -1
  580. package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  581. package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +1 -1
  582. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts +6 -5
  583. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  584. package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  585. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +7 -7
  586. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  587. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +28 -17
  588. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  589. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +6 -6
  590. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
  591. package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  592. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts +1 -1
  593. package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  594. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +3 -3
  595. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  596. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  597. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +4 -3
  598. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  599. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -8
  600. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  601. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +2 -2
  602. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  603. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  604. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +3 -2
  605. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  607. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +2 -2
  608. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  609. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  610. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +2 -2
  611. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  612. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -2
  613. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  614. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +14 -13
  615. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  616. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +15 -9
  617. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  618. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +6 -6
  619. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  620. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  621. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.d.ts +1 -1
  622. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.d.ts.map +1 -1
  623. package/lib/cjs/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  624. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +3 -2
  625. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  626. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  627. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  628. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.d.ts +3 -2
  629. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  630. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
  631. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  632. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +1 -1
  633. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  634. package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  635. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  636. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  637. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  638. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +1 -1
  639. package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  640. package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
  641. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts +2 -2
  642. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  643. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
  644. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  645. package/lib/cjs/appui-react/utils/PropsHelper.d.ts +3 -2
  646. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  647. package/lib/cjs/appui-react/utils/PropsHelper.js +2 -1
  648. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  649. package/lib/cjs/appui-react/utils/ViewUtilities.d.ts +1 -1
  650. package/lib/cjs/appui-react/utils/ViewUtilities.d.ts.map +1 -1
  651. package/lib/cjs/appui-react/utils/ViewUtilities.js +0 -1
  652. package/lib/cjs/appui-react/utils/ViewUtilities.js.map +1 -1
  653. package/lib/cjs/appui-react/widget-panels/Content.d.ts +1 -1
  654. package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
  655. package/lib/cjs/appui-react/widget-panels/Content.js +18 -7
  656. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  657. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +5 -4
  658. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  659. package/lib/cjs/appui-react/widget-panels/Frontstage.js +39 -30
  660. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  661. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  662. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  663. package/lib/cjs/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  664. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts +1 -1
  665. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  666. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
  667. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  668. package/lib/cjs/appui-react/widget-panels/Tab.js +1 -1
  669. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  670. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +17 -9
  671. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  672. package/lib/cjs/appui-react/widget-panels/Toolbars.js +3 -2
  673. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  674. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +1 -1
  675. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  676. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  677. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts +1 -1
  678. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  679. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  680. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts +1 -1
  681. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  682. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  683. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts +1 -1
  684. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  685. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  686. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  687. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  688. package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts.map +1 -1
  689. package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
  690. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +1 -1
  691. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  692. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  693. package/lib/cjs/appui-react/widgets/Widget.d.ts +4 -4
  694. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  695. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  696. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts +1 -1
  697. package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
  698. package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -1
  699. package/lib/cjs/appui-react/widgets/WidgetControl.d.ts +5 -4
  700. package/lib/cjs/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  701. package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
  702. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +10 -8
  703. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  704. package/lib/cjs/appui-react/widgets/WidgetDef.js +1 -1
  705. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  706. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts +3 -3
  707. package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  708. package/lib/cjs/appui-react/widgets/WidgetHost.js +3 -2
  709. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  710. package/lib/cjs/appui-react.d.ts +1 -0
  711. package/lib/cjs/appui-react.d.ts.map +1 -1
  712. package/lib/cjs/appui-react.js +1 -0
  713. package/lib/cjs/appui-react.js.map +1 -1
  714. package/lib/esm/appui-react/UiFramework.d.ts +19 -17
  715. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  716. package/lib/esm/appui-react/UiFramework.js +9 -5
  717. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  718. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +2 -1
  719. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  720. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  721. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +2 -1
  722. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  723. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  724. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +2 -2
  725. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  726. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js +4 -1
  727. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  728. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  729. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  730. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  731. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts +2 -2
  732. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  733. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  734. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.d.ts +2 -2
  735. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.d.ts.map +1 -1
  736. package/lib/esm/appui-react/accudraw/AccuDrawUiSettings.js.map +1 -1
  737. package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts +1 -1
  738. package/lib/esm/appui-react/accudraw/AccuDrawWidget.d.ts.map +1 -1
  739. package/lib/esm/appui-react/accudraw/AccuDrawWidget.js.map +1 -1
  740. package/lib/esm/appui-react/accudraw/Calculator.d.ts +2 -2
  741. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  742. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  743. package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts +2 -2
  744. package/lib/esm/appui-react/accudraw/CalculatorPopup.d.ts.map +1 -1
  745. package/lib/esm/appui-react/accudraw/CalculatorPopup.js.map +1 -1
  746. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +5 -4
  747. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  748. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  749. package/lib/esm/appui-react/accudraw/MenuButton.d.ts +3 -3
  750. package/lib/esm/appui-react/accudraw/MenuButton.d.ts.map +1 -1
  751. package/lib/esm/appui-react/accudraw/MenuButton.js.map +1 -1
  752. package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts +1 -1
  753. package/lib/esm/appui-react/accudraw/MenuButtonPopup.d.ts.map +1 -1
  754. package/lib/esm/appui-react/accudraw/MenuButtonPopup.js.map +1 -1
  755. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +2 -2
  756. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  757. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  758. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +2 -2
  759. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  760. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  761. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts +1 -1
  762. package/lib/esm/appui-react/backstage/BackstageComposerItem.d.ts.map +1 -1
  763. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -1
  764. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  765. package/lib/esm/appui-react/backstage/BackstageItem.d.ts +2 -2
  766. package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -1
  767. package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -1
  768. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +2 -2
  769. package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -1
  770. package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -1
  771. package/lib/esm/appui-react/backstage/BackstageItemsManager.d.ts +1 -1
  772. package/lib/esm/appui-react/backstage/BackstageItemsManager.d.ts.map +1 -1
  773. package/lib/esm/appui-react/backstage/BackstageItemsManager.js.map +1 -1
  774. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +2 -2
  775. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  776. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  777. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts +2 -2
  778. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  779. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  780. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.d.ts +2 -2
  781. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.d.ts.map +1 -1
  782. package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
  783. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts +2 -2
  784. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
  785. package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
  786. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts +1 -1
  787. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  788. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +5 -4
  789. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  790. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts +1 -1
  791. package/lib/esm/appui-react/childwindow/PopoutWidget.d.ts.map +1 -1
  792. package/lib/esm/appui-react/childwindow/PopoutWidget.js.map +1 -1
  793. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -1
  794. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  795. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  796. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts +1 -1
  797. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.d.ts.map +1 -1
  798. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  799. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  800. package/lib/esm/appui-react/configurableui/TimeTracker.d.ts.map +1 -1
  801. package/lib/esm/appui-react/configurableui/TimeTracker.js +2 -1
  802. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  803. package/lib/esm/appui-react/configurableui/state.d.ts +1 -1
  804. package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
  805. package/lib/esm/appui-react/configurableui/state.js.map +1 -1
  806. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  807. package/lib/esm/appui-react/content/ContentControl.d.ts.map +1 -1
  808. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  809. package/lib/esm/appui-react/content/ContentGroup.d.ts +6 -6
  810. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  811. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  812. package/lib/esm/appui-react/content/ContentLayout.d.ts +4 -3
  813. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  814. package/lib/esm/appui-react/content/ContentLayout.js +11 -6
  815. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  816. package/lib/esm/appui-react/content/ContentLayout.scss +50 -21
  817. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts +1 -1
  818. package/lib/esm/appui-react/content/DefaultViewOverlay.d.ts.map +1 -1
  819. package/lib/esm/appui-react/content/DefaultViewOverlay.js +4 -3
  820. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  821. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts +2 -2
  822. package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
  823. package/lib/esm/appui-react/content/FloatingViewportContent.js +2 -1
  824. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  825. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -4
  826. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  827. package/lib/esm/appui-react/content/IModelViewport.js +6 -3
  828. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  829. package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts +2 -2
  830. package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
  831. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +2 -1
  832. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  833. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts +2 -2
  834. package/lib/esm/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
  835. package/lib/esm/appui-react/content/InternalContentViewManager.js +1 -1
  836. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  837. package/lib/esm/appui-react/content/StageContentLayout.d.ts +5 -5
  838. package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -1
  839. package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -1
  840. package/lib/esm/appui-react/content/ViewStateHelper.d.ts +2 -2
  841. package/lib/esm/appui-react/content/ViewStateHelper.d.ts.map +1 -1
  842. package/lib/esm/appui-react/content/ViewStateHelper.js.map +1 -1
  843. package/lib/esm/appui-react/content/ViewportContentControl.d.ts +4 -3
  844. package/lib/esm/appui-react/content/ViewportContentControl.d.ts.map +1 -1
  845. package/lib/esm/appui-react/content/ViewportContentControl.js.map +1 -1
  846. package/lib/esm/appui-react/content/split-pane/Resizer.d.ts.map +1 -1
  847. package/lib/esm/appui-react/content/split-pane/Resizer.js +2 -1
  848. package/lib/esm/appui-react/content/split-pane/Resizer.js.map +1 -1
  849. package/lib/esm/appui-react/content/split-pane/SplitPane.js +12 -8
  850. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  851. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -1
  852. package/lib/esm/appui-react/cursor/CursorInformation.d.ts.map +1 -1
  853. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  854. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -2
  855. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  856. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  857. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  858. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +4 -2
  859. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  860. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  861. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts +2 -1
  862. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.d.ts.map +1 -1
  863. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopupManager.js.map +1 -1
  864. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts +3 -2
  865. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  866. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  867. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +1 -1
  868. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  869. package/lib/esm/appui-react/dialog/ContentDialog.js +6 -3
  870. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  871. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts +1 -1
  872. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  873. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  874. package/lib/esm/appui-react/dialog/DialogManagerBase.js +3 -2
  875. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  876. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts +3 -2
  877. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  878. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  879. package/lib/esm/appui-react/dialog/InternalModalDialogManager.d.ts +1 -1
  880. package/lib/esm/appui-react/dialog/InternalModalDialogManager.d.ts.map +1 -1
  881. package/lib/esm/appui-react/dialog/InternalModalDialogManager.js.map +1 -1
  882. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts +3 -2
  883. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.d.ts.map +1 -1
  884. package/lib/esm/appui-react/dialog/InternalModelessDialogManager.js.map +1 -1
  885. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts +1 -1
  886. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  887. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  888. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +1 -1
  889. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  890. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  891. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts +1 -1
  892. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  893. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  894. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +1 -1
  895. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  896. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  897. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +1 -1
  898. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  899. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  900. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +6 -5
  901. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  902. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  903. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts +1 -1
  904. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  905. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  906. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +3 -3
  907. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  908. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  909. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  910. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  911. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  912. package/lib/esm/appui-react/framework/FrameworkControls.d.ts +1 -1
  913. package/lib/esm/appui-react/framework/FrameworkControls.d.ts.map +1 -1
  914. package/lib/esm/appui-react/framework/FrameworkControls.js.map +1 -1
  915. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -1
  916. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts.map +1 -1
  917. package/lib/esm/appui-react/framework/FrameworkDialogs.js +0 -7
  918. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  919. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +11 -11
  920. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  921. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  922. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +4 -4
  923. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  924. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  925. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +3 -2
  926. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts.map +1 -1
  927. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +0 -7
  928. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  929. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +4 -4
  930. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  931. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  932. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +11 -10
  933. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  934. package/lib/esm/appui-react/frontstage/FrontstageDef.js +4 -3
  935. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  936. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +1 -1
  937. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  938. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  939. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +16 -11
  940. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  941. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  942. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +1 -1
  943. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  944. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  945. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts +1 -1
  946. package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
  947. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +3 -2
  948. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  949. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +6 -5
  950. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  951. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +3 -2
  952. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  953. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts +1 -1
  954. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  955. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  956. package/lib/esm/appui-react/hooks/useActiveStageId.js.map +1 -1
  957. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts +1 -1
  958. package/lib/esm/appui-react/hooks/useActiveViewport.d.ts.map +1 -1
  959. package/lib/esm/appui-react/hooks/useActiveViewport.js.map +1 -1
  960. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts +1 -1
  961. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.d.ts.map +1 -1
  962. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  963. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  964. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.d.ts +1 -1
  965. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.d.ts.map +1 -1
  966. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  967. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  968. package/lib/esm/appui-react/hooks/useSolarDataProvider.d.ts +2 -2
  969. package/lib/esm/appui-react/hooks/useSolarDataProvider.d.ts.map +1 -1
  970. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +13 -8
  971. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  972. package/lib/esm/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
  973. package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -1
  974. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  975. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  976. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  977. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +2 -2
  978. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  979. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  980. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +2 -2
  981. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  982. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  983. package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
  984. package/lib/esm/appui-react/messages/ActivityMessage.js +7 -5
  985. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  986. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts +4 -3
  987. package/lib/esm/appui-react/messages/AppNotificationManager.d.ts.map +1 -1
  988. package/lib/esm/appui-react/messages/AppNotificationManager.js.map +1 -1
  989. package/lib/esm/appui-react/messages/HollowIcon.d.ts +1 -1
  990. package/lib/esm/appui-react/messages/HollowIcon.d.ts.map +1 -1
  991. package/lib/esm/appui-react/messages/HollowIcon.js.map +1 -1
  992. package/lib/esm/appui-react/messages/InputField.d.ts +1 -1
  993. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  994. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  995. package/lib/esm/appui-react/messages/MessageLabel.d.ts +1 -1
  996. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  997. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  998. package/lib/esm/appui-react/messages/MessageManager.d.ts +7 -6
  999. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  1000. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  1001. package/lib/esm/appui-react/messages/MessageSpan.d.ts +2 -2
  1002. package/lib/esm/appui-react/messages/MessageSpan.d.ts.map +1 -1
  1003. package/lib/esm/appui-react/messages/MessageSpan.js.map +1 -1
  1004. package/lib/esm/appui-react/messages/Pointer.d.ts +5 -4
  1005. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  1006. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  1007. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts +5 -4
  1008. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  1009. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  1010. package/lib/esm/appui-react/messages/StatusMessageManager.d.ts +2 -2
  1011. package/lib/esm/appui-react/messages/StatusMessageManager.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/messages/StatusMessageManager.js.map +1 -1
  1013. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts +1 -1
  1014. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
  1015. package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
  1016. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts +1 -1
  1017. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
  1018. package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
  1019. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +4 -3
  1020. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  1022. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts +3 -3
  1023. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  1024. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  1025. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +4 -4
  1026. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  1027. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  1028. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -2
  1029. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  1030. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  1031. package/lib/esm/appui-react/pickers/ListPicker.d.ts +3 -1
  1032. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  1033. package/lib/esm/appui-react/pickers/ListPicker.js +6 -1
  1034. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  1035. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +4 -3
  1036. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  1037. package/lib/esm/appui-react/pickers/ViewSelector.js +20 -7
  1038. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  1039. package/lib/esm/appui-react/popup/CardPopup.d.ts +4 -3
  1040. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  1041. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  1042. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +4 -3
  1043. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  1044. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  1045. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts +3 -3
  1046. package/lib/esm/appui-react/popup/InputEditorPopup.d.ts.map +1 -1
  1047. package/lib/esm/appui-react/popup/InputEditorPopup.js.map +1 -1
  1048. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts +2 -2
  1049. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  1050. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +2 -1
  1051. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  1052. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +2 -2
  1053. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts.map +1 -1
  1054. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  1055. package/lib/esm/appui-react/popup/PopupManager.d.ts +5 -4
  1056. package/lib/esm/appui-react/popup/PopupManager.d.ts.map +1 -1
  1057. package/lib/esm/appui-react/popup/PopupManager.js +2 -1
  1058. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  1059. package/lib/esm/appui-react/popup/PositionPopup.d.ts +2 -2
  1060. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  1061. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  1062. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts +4 -3
  1063. package/lib/esm/appui-react/popup/ToolSettingsPopup.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/popup/ToolSettingsPopup.js.map +1 -1
  1065. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts +5 -4
  1066. package/lib/esm/appui-react/popup/ToolbarPopup.d.ts.map +1 -1
  1067. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  1068. package/lib/esm/appui-react/redux/FrameworkState.d.ts +4 -2
  1069. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  1070. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  1071. package/lib/esm/appui-react/redux/SessionState.d.ts +3 -3
  1072. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  1074. package/lib/esm/appui-react/redux/StateManager.d.ts +3 -3
  1075. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  1076. package/lib/esm/appui-react/redux/StateManager.js +0 -1
  1077. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  1078. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +1 -1
  1079. package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
  1080. package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
  1081. package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts +2 -2
  1082. package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts.map +1 -1
  1083. package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +1 -1
  1084. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts +1 -1
  1085. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  1086. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  1087. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +1 -1
  1088. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  1089. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  1090. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts +3 -3
  1091. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +1 -1
  1093. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  1094. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts +1 -1
  1095. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.d.ts.map +1 -1
  1096. package/lib/esm/appui-react/settings/quantityformatting/UnitSystemSelector.js.map +1 -1
  1097. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  1098. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1099. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1100. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +4 -3
  1101. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1102. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1103. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +4 -4
  1104. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1106. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts +2 -2
  1107. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1108. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1109. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +2 -2
  1110. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1111. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1112. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +2 -2
  1113. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1114. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1115. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -1
  1116. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1117. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1118. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +3 -3
  1119. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1120. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1121. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +4 -4
  1122. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1123. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1124. package/lib/esm/appui-react/shared/ItemMap.d.ts +1 -1
  1125. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1126. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1127. package/lib/esm/appui-react/shared/ItemProps.d.ts +2 -2
  1128. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1129. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1130. package/lib/esm/appui-react/shared/MenuItem.d.ts +3 -3
  1131. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1133. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +3 -3
  1134. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1135. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1136. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +2 -2
  1137. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
  1138. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1139. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +2 -2
  1140. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
  1141. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +7 -5
  1142. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1143. package/lib/esm/appui-react/statusbar/Field.d.ts +1 -1
  1144. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1145. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1146. package/lib/esm/appui-react/statusbar/Indicator.d.ts +1 -1
  1147. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1148. package/lib/esm/appui-react/statusbar/Indicator.js +2 -1
  1149. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1150. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1151. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts.map +1 -1
  1152. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1153. package/lib/esm/appui-react/statusbar/Overflow.d.ts +1 -1
  1154. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1155. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1156. package/lib/esm/appui-react/statusbar/OverflowPanel.d.ts +1 -1
  1157. package/lib/esm/appui-react/statusbar/OverflowPanel.d.ts.map +1 -1
  1158. package/lib/esm/appui-react/statusbar/OverflowPanel.js.map +1 -1
  1159. package/lib/esm/appui-react/statusbar/Popup.d.ts +1 -1
  1160. package/lib/esm/appui-react/statusbar/Popup.d.ts.map +1 -1
  1161. package/lib/esm/appui-react/statusbar/Popup.js.map +1 -1
  1162. package/lib/esm/appui-react/statusbar/Separator.d.ts +1 -1
  1163. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1164. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1165. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +3 -3
  1166. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1167. package/lib/esm/appui-react/statusbar/StatusBar.js +5 -3
  1168. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1169. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts +2 -2
  1170. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1171. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1172. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +3 -3
  1173. package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
  1174. package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
  1175. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +5 -4
  1176. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
  1177. package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
  1178. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +1 -1
  1179. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  1180. package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -1
  1181. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts +2 -1
  1182. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
  1183. package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
  1184. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts +1 -1
  1185. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1186. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1187. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts +1 -1
  1188. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1189. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1190. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts +1 -1
  1191. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1193. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.d.ts +2 -2
  1194. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
  1195. package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
  1196. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts +2 -2
  1197. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
  1198. package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
  1199. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts +1 -1
  1200. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1201. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1202. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts +1 -1
  1203. package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
  1204. package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
  1205. package/lib/esm/appui-react/statusfields/SectionsField.d.ts +1 -1
  1206. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1207. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1208. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts +29 -0
  1209. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -0
  1210. package/lib/esm/appui-react/statusfields/SelectionCount.js +46 -0
  1211. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -0
  1212. package/lib/esm/appui-react/statusfields/{SelectionInfo.scss → SelectionCount.scss} +5 -8
  1213. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +6 -19
  1214. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1215. package/lib/esm/appui-react/statusfields/SelectionInfo.js +14 -32
  1216. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1217. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +2 -2
  1218. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1219. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1220. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +1 -1
  1221. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1222. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1223. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -2
  1224. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1225. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1226. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +1 -1
  1227. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1228. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1229. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +2 -2
  1230. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1231. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  1232. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1233. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +2 -2
  1234. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1235. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1236. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1237. package/lib/esm/appui-react/theme/ThemeManager.js +2 -1
  1238. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1239. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.d.ts +3 -2
  1240. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.d.ts.map +1 -1
  1241. package/lib/esm/appui-react/timeline/AnalysisAnimationProvider.js.map +1 -1
  1242. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.d.ts +3 -2
  1243. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.d.ts.map +1 -1
  1244. package/lib/esm/appui-react/timeline/ScheduleAnimationProvider.js.map +1 -1
  1245. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.d.ts +1 -1
  1246. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.d.ts.map +1 -1
  1247. package/lib/esm/appui-react/timeline/SolarTimelineDataProvider.js.map +1 -1
  1248. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +4 -4
  1249. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1250. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1251. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +4 -4
  1252. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1253. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1254. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts +2 -1
  1255. package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
  1256. package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
  1257. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +4 -4
  1258. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1259. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1260. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +2 -2
  1261. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1262. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1263. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +1 -1
  1264. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1265. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1266. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.d.ts +1 -1
  1267. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
  1268. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  1269. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts +4 -4
  1270. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1271. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1272. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.d.ts +2 -2
  1273. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.d.ts.map +1 -1
  1274. package/lib/esm/appui-react/toolbar/toUIAToolbarItem.js.map +1 -1
  1275. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.d.ts +2 -2
  1276. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.d.ts.map +1 -1
  1277. package/lib/esm/appui-react/toolbar/useDefaultToolbarItems.js.map +1 -1
  1278. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts +2 -2
  1279. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
  1280. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  1281. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +14 -7
  1282. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1283. package/lib/esm/appui-react/tools/RestoreLayoutTool.js.map +1 -1
  1284. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts +4 -3
  1285. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -1
  1286. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -1
  1287. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  1288. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.d.ts +3 -2
  1289. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.d.ts.map +1 -1
  1290. package/lib/esm/appui-react/toolsettings/InternalToolSettingsManager.js.map +1 -1
  1291. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts +1 -1
  1292. package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts.map +1 -1
  1293. package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +1 -1
  1294. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts +6 -5
  1295. package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts.map +1 -1
  1296. package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +1 -1
  1297. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts +7 -7
  1298. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.d.ts.map +1 -1
  1299. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +28 -17
  1300. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  1301. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +6 -6
  1302. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
  1303. package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
  1304. package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts +1 -1
  1305. package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -1
  1306. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +3 -3
  1307. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1308. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1309. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +4 -3
  1310. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1311. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -8
  1312. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1313. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +2 -2
  1314. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1315. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1316. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +3 -2
  1317. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1318. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1319. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +2 -2
  1320. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1321. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1322. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +2 -2
  1323. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1324. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -2
  1325. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1326. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +14 -13
  1327. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -1
  1328. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +15 -9
  1329. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1330. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +6 -6
  1331. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1332. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1333. package/lib/esm/appui-react/ui-items-provider/isProviderItem.d.ts +1 -1
  1334. package/lib/esm/appui-react/ui-items-provider/isProviderItem.d.ts.map +1 -1
  1335. package/lib/esm/appui-react/ui-items-provider/isProviderItem.js.map +1 -1
  1336. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +3 -2
  1337. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts.map +1 -1
  1338. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  1339. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1340. package/lib/esm/appui-react/uiprovider/ComponentGenerator.d.ts +3 -2
  1341. package/lib/esm/appui-react/uiprovider/ComponentGenerator.d.ts.map +1 -1
  1342. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
  1343. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  1344. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts +1 -1
  1345. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
  1346. package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
  1347. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1348. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1349. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1350. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +1 -1
  1351. package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
  1352. package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
  1353. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts +2 -2
  1354. package/lib/esm/appui-react/utils/InternalUiShowHideManager.d.ts.map +1 -1
  1355. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
  1356. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  1357. package/lib/esm/appui-react/utils/PropsHelper.d.ts +3 -2
  1358. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1359. package/lib/esm/appui-react/utils/PropsHelper.js +2 -1
  1360. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1361. package/lib/esm/appui-react/utils/ViewUtilities.d.ts +1 -1
  1362. package/lib/esm/appui-react/utils/ViewUtilities.d.ts.map +1 -1
  1363. package/lib/esm/appui-react/utils/ViewUtilities.js +0 -1
  1364. package/lib/esm/appui-react/utils/ViewUtilities.js.map +1 -1
  1365. package/lib/esm/appui-react/widget-panels/Content.d.ts +1 -1
  1366. package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
  1367. package/lib/esm/appui-react/widget-panels/Content.js +18 -7
  1368. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  1369. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +5 -4
  1370. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1371. package/lib/esm/appui-react/widget-panels/Frontstage.js +39 -30
  1372. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1373. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -1
  1374. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  1375. package/lib/esm/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  1376. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts +1 -1
  1377. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1378. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
  1379. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1380. package/lib/esm/appui-react/widget-panels/Tab.js +1 -1
  1381. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  1382. package/lib/esm/appui-react/widget-panels/ToolSettings.js +17 -9
  1383. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  1384. package/lib/esm/appui-react/widget-panels/Toolbars.js +3 -2
  1385. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  1386. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +1 -1
  1387. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1388. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1389. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts +1 -1
  1390. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1391. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1392. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts +1 -1
  1393. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1394. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1395. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts +1 -1
  1396. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1397. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  1398. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1399. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
  1400. package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts.map +1 -1
  1401. package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
  1402. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +1 -1
  1403. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1404. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1405. package/lib/esm/appui-react/widgets/Widget.d.ts +4 -4
  1406. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1407. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1408. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts +1 -1
  1409. package/lib/esm/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
  1410. package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -1
  1411. package/lib/esm/appui-react/widgets/WidgetControl.d.ts +5 -4
  1412. package/lib/esm/appui-react/widgets/WidgetControl.d.ts.map +1 -1
  1413. package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
  1414. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +10 -8
  1415. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1416. package/lib/esm/appui-react/widgets/WidgetDef.js +1 -1
  1417. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1418. package/lib/esm/appui-react/widgets/WidgetHost.d.ts +3 -3
  1419. package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
  1420. package/lib/esm/appui-react/widgets/WidgetHost.js +3 -2
  1421. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  1422. package/lib/esm/appui-react.d.ts +1 -0
  1423. package/lib/esm/appui-react.d.ts.map +1 -1
  1424. package/lib/esm/appui-react.js +1 -0
  1425. package/lib/esm/appui-react.js.map +1 -1
  1426. package/lib/public/locales/en/UiFramework.json +4 -1
  1427. package/package.json +22 -23
@@ -1 +1 @@
1
- {"version":3,"file":"ListPicker.js","sourceRoot":"","sources":["../../../../src/appui-react/pickers/ListPicker.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,m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aAAa,CAAC,IAAc;QACjC,OAAO,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,aAAa,CAAC;IAC/L,CAAC;IAgCD,yBAAyB;IACT,MAAM;QACpB,OAAO,CACL,oBAAC,mBAAmB,OACd,IAAI,CAAC,KAAK,EACd,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EACzC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAC7B,CACH,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Picker\r\n */\r\n\r\nimport \"./ListPicker.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Columns, GroupColumn, Panel, PopupItem, Title } from \"@itwin/components-react\";\r\nimport { CommonProps, Icon, SearchBox, SizeProps } from \"@itwin/core-react\";\r\nimport { ToolbarDragInteractionContext } from \"../toolbar/DragInteraction\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { SvgChevronDown, SvgChevronRight, SvgList } from \"@itwin/itwinui-icons-react\";\r\n\r\n/** Enum for the list picker item type\r\n * @beta\r\n */\r\nexport enum ListItemType {\r\n Item = 0, // eslint-disable-line @typescript-eslint/no-shadow\r\n Separator = 1,\r\n Container = 2,\r\n}\r\n\r\n/** List picker item\r\n * @beta\r\n */\r\nexport interface ListItem {\r\n [key: string]: any;\r\n id?: string;\r\n name?: string;\r\n enabled: boolean;\r\n type?: ListItemType;\r\n children?: ListItem[];\r\n}\r\n\r\n/** Properties for the [[ListPicker]] component\r\n * @beta\r\n */\r\nexport interface ListPickerProps {\r\n title: string;\r\n items: ListItem[];\r\n iconSpec?: string | React.ReactNode;\r\n setEnabled: (item: ListItem, enabled: boolean) => any;\r\n onExpanded?: (expand: boolean) => void;\r\n onSizeKnown?: (size: SizeProps) => void;\r\n searchBox?: boolean;\r\n onSearchValueChange?: (search: string) => void;\r\n panelOnly?: boolean;\r\n}\r\n\r\n/** Properties for the [[ListPickerItem]] component\r\n * @beta\r\n */\r\nexport interface ListPickerItemProps extends CommonProps {\r\n key: any;\r\n isActive?: boolean;\r\n isFocused?: boolean;\r\n onClick?: () => void;\r\n label?: string;\r\n}\r\n\r\n/** List Picker Item React component\r\n * @beta\r\n */\r\nexport class ListPickerItem extends React.PureComponent<ListPickerItemProps> {\r\n /** Renders ListPickerItem */\r\n public override render() {\r\n const itemClassName = classnames(\r\n \"ListPicker-item\",\r\n this.props.isActive && \"is-active\",\r\n this.props.isFocused && \"is-focused\",\r\n this.props.className,\r\n );\r\n // TODO - if cut off, show a title\r\n const title: string | undefined = (this.props.label && this.props.label.length > 25) ? this.props.label : undefined;\r\n\r\n return (\r\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\r\n <div className={itemClassName} onClick={this.props.onClick} role=\"button\" tabIndex={-1}>\r\n <div className=\"label\" title={title}>\r\n {this.props.label}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\n/** Properties for the [[ExpandableSection]] component\r\n * @beta\r\n */\r\nexport interface ExpandableSectionProps extends CommonProps {\r\n title?: string;\r\n expanded?: boolean;\r\n /** Content */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** State for the [[ExpandableSection]] component\r\n * @internal\r\n */\r\ninterface ExpandableSectionState {\r\n expanded: boolean;\r\n}\r\n\r\n/** Expandable Section React component\r\n * @beta\r\n */\r\nexport class ExpandableSection extends React.PureComponent<ExpandableSectionProps, ExpandableSectionState> {\r\n /** Creates an ExpandableSection */\r\n constructor(props: ExpandableSectionProps) {\r\n super(props);\r\n this.state = { expanded: !!this.props.expanded };\r\n }\r\n\r\n private _onClick = () => {\r\n this.setState((prevState) => ({ expanded: !prevState.expanded }));\r\n };\r\n\r\n /** Renders ExpandableSection */\r\n public override render() {\r\n const className = classnames(\r\n \"nz-toolbar-item-expandable-group-group\",\r\n this.props.className,\r\n );\r\n\r\n const icon = this.state.expanded ? <Icon iconSpec={<SvgChevronDown />} /> : <Icon iconSpec={<SvgChevronRight />} />;\r\n\r\n return (\r\n <Panel className={className} style={this.props.style} key={this.props.title}>\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div onClick={this._onClick}\r\n className={this.state.expanded ? \"ListPickerInnerContainer-header-expanded\" : \"ListPickerInnerContainer-header\"}\r\n role=\"button\" tabIndex={-1} aria-expanded={this.state.expanded}\r\n >\r\n <div className=\"ListPickerInnerContainer-header-content\">\r\n <div className=\"ListPickerInnerContainer-expander\">{icon}</div>\r\n <div className=\"ListPickerInnerContainer-title\">{this.props.title}</div>\r\n </div>\r\n </div>\r\n {this.state.expanded ?\r\n <GroupColumn>\r\n {this.props.children}\r\n </GroupColumn> : <div />\r\n }\r\n </Panel>\r\n );\r\n }\r\n}\r\n\r\n/** @beta */\r\nexport function getListPanel(props: ListPickerProps): React.ReactNode {\r\n const expandSingleSection = (): boolean => {\r\n const populatedContainers = props.items.filter((item: ListItem) => {\r\n return (item.type === ListItemType.Container && item.children!.length !== 0);\r\n });\r\n return populatedContainers.length === 1;\r\n };\r\n\r\n const listItemToElement = (item: ListItem, itemIndex: number) => {\r\n switch (item.type) {\r\n case ListItemType.Item:\r\n return (\r\n <ListPickerItem\r\n {...props}\r\n key={itemIndex.toString()}\r\n label={item.name}\r\n isActive={item.enabled}\r\n onClick={\r\n // istanbul ignore next\r\n () => { props.setEnabled(item, !item.enabled); }\r\n }\r\n />\r\n );\r\n case ListItemType.Separator:\r\n return (\r\n <div key={itemIndex.toString()} className=\"ListPicker-separator\" />\r\n );\r\n case ListItemType.Container:\r\n if (item.children!.length !== 0) {\r\n return (\r\n <ExpandableSection\r\n key={itemIndex.toString()}\r\n title={item.name}\r\n className=\"ListPickerInnerContainer\"\r\n expanded={expandSingleSection()}\r\n >\r\n <GroupColumn>\r\n {item.children!.map(listItemToElement)}\r\n </GroupColumn>\r\n </ExpandableSection>\r\n );\r\n } else {\r\n return (<div key={itemIndex.toString()} />);\r\n }\r\n // istanbul ignore next\r\n default:\r\n return (<div key={itemIndex.toString()} />);\r\n }\r\n };\r\n\r\n return (\r\n <Panel className=\"ListPickerContainer\">\r\n <Title>\r\n {props.title}\r\n </Title>\r\n {\r\n props.searchBox && props.onSearchValueChange &&\r\n <SearchBox className=\"ListPickerSearchBox\" onValueChanged={props.onSearchValueChange}/>\r\n }\r\n <Columns>\r\n <GroupColumn className=\"ListPicker-column\">\r\n {props.items.map(listItemToElement)}\r\n </GroupColumn>\r\n </Columns>\r\n </Panel>\r\n );\r\n}\r\n\r\n/**\r\n * List picker toolbar popup item.\r\n * Used to provide an expandable list of items to enable/disable items.\r\n * @beta\r\n */\r\nfunction ListPickerPopupItem(props: ListPickerProps) {\r\n const icon = props.iconSpec ? (/* istanbul ignore next */ typeof props.iconSpec === \"string\" ? <Icon iconSpec={props.iconSpec} /> :\r\n <i className=\"icon uifw-item-svg-icon\">{props.iconSpec}</i>) : <Icon iconSpec={<SvgList />} />;\r\n\r\n return (\r\n <ToolbarDragInteractionContext.Consumer>\r\n {(isEnabled) => {\r\n return (props.panelOnly === true ? getListPanel(props) : <PopupItem\r\n hideIndicator={isEnabled}\r\n icon={icon}\r\n title={props.title}\r\n panel={getListPanel(props)}\r\n />);\r\n }}\r\n </ToolbarDragInteractionContext.Consumer>\r\n );\r\n}\r\n\r\n/** Properties for the [[ListPicker]] component\r\n * @beta\r\n */\r\nexport interface ListPickerPropsExtended extends ListPickerProps {\r\n enableAllFunc?: () => void;\r\n disableAllFunc?: () => void;\r\n invertFunc?: () => void;\r\n}\r\n\r\n/**\r\n * List Picker that lets the user pick from a list of items to enable/disable\r\n * It also provides options to enable all, disable all and invert selection\r\n * @beta\r\n */\r\nexport class ListPicker extends React.Component<ListPickerPropsExtended> {\r\n public static get Key_All() { return -3; }\r\n public static get Key_None() { return -2; }\r\n public static get Key_Invert() { return -1; }\r\n public static get Key_Separator() { return -4; }\r\n\r\n /** Creates a ListPicker */\r\n constructor(props: ListPickerPropsExtended) {\r\n super(props);\r\n }\r\n\r\n // Creates an array of items containing the separator and special requests (all, none, invert)\r\n private createItems(items: ListItem[]): ListItem[] {\r\n const newItems: ListItem[] = [];\r\n\r\n // Create special buttons (All/None/Invert)\r\n if (this.props.enableAllFunc) {\r\n let allEnabled = true;\r\n items.map((item: ListItem) => { allEnabled = allEnabled && item.enabled; });\r\n newItems.push({ key: ListPicker.Key_All, name: UiFramework.translate(\"pickerButtons.all\"), enabled: allEnabled, type: ListItemType.Item });\r\n }\r\n if (this.props.disableAllFunc) {\r\n let allDisabled = false;\r\n items.map((item: ListItem) => { allDisabled = allDisabled || item.enabled; });\r\n newItems.push({ key: ListPicker.Key_None, name: UiFramework.translate(\"pickerButtons.none\"), enabled: !allDisabled, type: ListItemType.Item });\r\n }\r\n if (this.props.invertFunc) {\r\n newItems.push({ key: ListPicker.Key_Invert, name: UiFramework.translate(\"pickerButtons.invert\"), enabled: false, type: ListItemType.Item });\r\n }\r\n if (this.props.enableAllFunc || this.props.disableAllFunc || this.props.invertFunc) {\r\n newItems.push({ key: ListPicker.Key_Separator, name: UiFramework.translate(\"pickerButtons.separator\"), enabled: false, type: ListItemType.Separator });\r\n }\r\n\r\n // Push items\r\n items.map((item) => { newItems.push(item); });\r\n return newItems;\r\n }\r\n\r\n /**\r\n * Checks if item is a special item.\r\n * @param item Item to check\r\n */\r\n public isSpecialItem(item: ListItem) {\r\n return item.key === ListPicker.Key_All || item.key === ListPicker.Key_Invert || item.key === ListPicker.Key_None || item.type !== ListItemType.Item || item.key === ListPicker.Key_Separator;\r\n }\r\n\r\n // Handle enabling/disabling the items\r\n // This will call the this.props.setEnabled function to provide the parent with a chance to process it\r\n private _setEnabled = (item: ListItem, enabled: boolean) => {\r\n if (this.isSpecialItem(item)) {\r\n switch (item.key) {\r\n case ListPicker.Key_All: {\r\n // istanbul ignore else\r\n if (this.props.enableAllFunc)\r\n this.props.enableAllFunc();\r\n return;\r\n }\r\n case ListPicker.Key_None: {\r\n // istanbul ignore else\r\n if (this.props.disableAllFunc)\r\n this.props.disableAllFunc();\r\n return;\r\n }\r\n case ListPicker.Key_Invert: {\r\n // istanbul ignore else\r\n if (this.props.invertFunc)\r\n this.props.invertFunc();\r\n return;\r\n }\r\n }\r\n }\r\n\r\n // Call on parent to do processing of the item\r\n this.props.setEnabled(item, enabled);\r\n };\r\n\r\n /** Renders ListPicker */\r\n public override render() {\r\n return (\r\n <ListPickerPopupItem\r\n {...this.props}\r\n title={this.props.title}\r\n setEnabled={this._setEnabled}\r\n onExpanded={this.props.onExpanded}\r\n items={this.createItems(this.props.items)}\r\n iconSpec={this.props.iconSpec}\r\n />\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ListPicker.js","sourceRoot":"","sources":["../../../../src/appui-react/pickers/ListPicker.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;A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,CAAC;IAClB,CAAC;IAED;;;OAGG;IACI,aAAa,CAAC,IAAc;QACjC,OAAO,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,aAAa,CAAC;IAC/L,CAAC;IAgCD,yBAAyB;IACT,MAAM;QACpB,OAAO,CACL,oBAAC,mBAAmB,OACd,IAAI,CAAC,KAAK,EACd,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EACzC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAC7B,CACH,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Picker\r\n */\r\n\r\nimport \"./ListPicker.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Columns, GroupColumn, Panel, PopupItem, Title } from \"@itwin/components-react\";\r\nimport type { CommonProps, SizeProps } from \"@itwin/core-react\";\r\nimport { Icon, SearchBox } from \"@itwin/core-react\";\r\nimport { ToolbarDragInteractionContext } from \"../toolbar/DragInteraction\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { SvgChevronDown, SvgChevronRight, SvgList } from \"@itwin/itwinui-icons-react\";\r\n\r\n/** Enum for the list picker item type\r\n * @beta\r\n */\r\nexport enum ListItemType {\r\n Item = 0, // eslint-disable-line @typescript-eslint/no-shadow\r\n Separator = 1,\r\n Container = 2,\r\n}\r\n\r\n/** List picker item\r\n * @beta\r\n */\r\nexport interface ListItem {\r\n [key: string]: any;\r\n id?: string;\r\n name?: string;\r\n enabled: boolean;\r\n type?: ListItemType;\r\n children?: ListItem[];\r\n}\r\n\r\n/** Properties for the [[ListPicker]] component\r\n * @beta\r\n */\r\nexport interface ListPickerProps {\r\n title: string;\r\n items: ListItem[];\r\n iconSpec?: string | React.ReactNode;\r\n setEnabled: (item: ListItem, enabled: boolean) => any;\r\n onExpanded?: (expand: boolean) => void;\r\n onSizeKnown?: (size: SizeProps) => void;\r\n searchBox?: boolean;\r\n onSearchValueChange?: (search: string) => void;\r\n panelOnly?: boolean;\r\n expanded?: boolean;\r\n}\r\n\r\n/** Properties for the [[ListPickerItem]] component\r\n * @beta\r\n */\r\nexport interface ListPickerItemProps extends CommonProps {\r\n key: any;\r\n isActive?: boolean;\r\n isFocused?: boolean;\r\n onClick?: () => void;\r\n label?: string;\r\n}\r\n\r\n/** List Picker Item React component\r\n * @beta\r\n */\r\nexport class ListPickerItem extends React.PureComponent<ListPickerItemProps> {\r\n /** Renders ListPickerItem */\r\n public override render() {\r\n const itemClassName = classnames(\r\n \"ListPicker-item\",\r\n this.props.isActive && \"is-active\",\r\n this.props.isFocused && \"is-focused\",\r\n this.props.className,\r\n );\r\n // TODO - if cut off, show a title\r\n const title: string | undefined = (this.props.label && this.props.label.length > 25) ? this.props.label : undefined;\r\n\r\n return (\r\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\r\n <div className={itemClassName} onClick={this.props.onClick} role=\"button\" tabIndex={-1}>\r\n <div className=\"label\" title={title}>\r\n {this.props.label}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\n/** Properties for the [[ExpandableSection]] component\r\n * @beta\r\n */\r\nexport interface ExpandableSectionProps extends CommonProps {\r\n title?: string;\r\n expanded?: boolean;\r\n /** Content */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** State for the [[ExpandableSection]] component\r\n * @internal\r\n */\r\ninterface ExpandableSectionState {\r\n expanded: boolean;\r\n}\r\n\r\n/** Expandable Section React component\r\n * @beta\r\n */\r\nexport class ExpandableSection extends React.PureComponent<ExpandableSectionProps, ExpandableSectionState> {\r\n /** Creates an ExpandableSection */\r\n constructor(props: ExpandableSectionProps) {\r\n super(props);\r\n this.state = { expanded: !!this.props.expanded };\r\n }\r\n\r\n public override async componentDidUpdate(prevProps: Readonly<ExpandableSectionProps>) {\r\n if(this.props.expanded !== prevProps.expanded){\r\n this.setState({expanded: true});\r\n }\r\n }\r\n\r\n private _onClick = () => {\r\n this.setState((prevState) => ({ expanded: !prevState.expanded }));\r\n };\r\n\r\n /** Renders ExpandableSection */\r\n public override render() {\r\n const className = classnames(\r\n \"nz-toolbar-item-expandable-group-group\",\r\n this.props.className,\r\n );\r\n\r\n const icon = this.state.expanded ? <Icon iconSpec={<SvgChevronDown />} /> : <Icon iconSpec={<SvgChevronRight />} />;\r\n\r\n return (\r\n <Panel className={className} style={this.props.style} key={this.props.title}>\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div onClick={this._onClick}\r\n className={this.state.expanded ? \"ListPickerInnerContainer-header-expanded\" : \"ListPickerInnerContainer-header\"}\r\n role=\"button\" tabIndex={-1} aria-expanded={this.state.expanded}\r\n >\r\n <div className=\"ListPickerInnerContainer-header-content\">\r\n <div className=\"ListPickerInnerContainer-expander\">{icon}</div>\r\n <div className=\"ListPickerInnerContainer-title\">{this.props.title}</div>\r\n </div>\r\n </div>\r\n {this.state.expanded ?\r\n <GroupColumn>\r\n {this.props.children}\r\n </GroupColumn> : <div />\r\n }\r\n </Panel>\r\n );\r\n }\r\n}\r\n\r\n/** @beta */\r\nexport function getListPanel(props: ListPickerProps): React.ReactNode {\r\n const expandSingleSection = (): boolean => {\r\n const populatedContainers = props.items.filter((item: ListItem) => {\r\n return (item.type === ListItemType.Container && item.children!.length !== 0);\r\n });\r\n return populatedContainers.length === 1;\r\n };\r\n\r\n const listItemToElement = (item: ListItem, itemIndex: number) => {\r\n switch (item.type) {\r\n case ListItemType.Item:\r\n return (\r\n <ListPickerItem\r\n {...props}\r\n key={itemIndex.toString()}\r\n label={item.name}\r\n isActive={item.enabled}\r\n onClick={\r\n // istanbul ignore next\r\n () => { props.setEnabled(item, !item.enabled); }\r\n }\r\n />\r\n );\r\n case ListItemType.Separator:\r\n return (\r\n <div key={itemIndex.toString()} className=\"ListPicker-separator\" />\r\n );\r\n case ListItemType.Container:\r\n if (item.children!.length !== 0) {\r\n return (\r\n <ExpandableSection\r\n key={itemIndex.toString()}\r\n title={item.name}\r\n className=\"ListPickerInnerContainer\"\r\n expanded={props.expanded === true ? !expandSingleSection() : expandSingleSection()}\r\n >\r\n <GroupColumn>\r\n {item.children!.map(listItemToElement)}\r\n </GroupColumn>\r\n </ExpandableSection>\r\n );\r\n } else {\r\n return (<div key={itemIndex.toString()} />);\r\n }\r\n // istanbul ignore next\r\n default:\r\n return (<div key={itemIndex.toString()} />);\r\n }\r\n };\r\n\r\n return (\r\n <Panel className=\"ListPickerContainer\">\r\n <Title>\r\n {props.title}\r\n </Title>\r\n {\r\n props.searchBox && props.onSearchValueChange &&\r\n <SearchBox className=\"ListPickerSearchBox\" onValueChanged={props.onSearchValueChange}/>\r\n }\r\n <Columns>\r\n <GroupColumn className=\"ListPicker-column\">\r\n {props.items.map(listItemToElement)}\r\n </GroupColumn>\r\n </Columns>\r\n </Panel>\r\n );\r\n}\r\n\r\n/**\r\n * List picker toolbar popup item.\r\n * Used to provide an expandable list of items to enable/disable items.\r\n * @beta\r\n */\r\nfunction ListPickerPopupItem(props: ListPickerProps) {\r\n const icon = props.iconSpec ? (/* istanbul ignore next */ typeof props.iconSpec === \"string\" ? <Icon iconSpec={props.iconSpec} /> :\r\n <i className=\"icon uifw-item-svg-icon\">{props.iconSpec}</i>) : <Icon iconSpec={<SvgList />} />;\r\n\r\n return (\r\n <ToolbarDragInteractionContext.Consumer>\r\n {(isEnabled) => {\r\n return (props.panelOnly === true ? getListPanel(props) : <PopupItem\r\n hideIndicator={isEnabled}\r\n icon={icon}\r\n title={props.title}\r\n panel={getListPanel(props)}\r\n />);\r\n }}\r\n </ToolbarDragInteractionContext.Consumer>\r\n );\r\n}\r\n\r\n/** Properties for the [[ListPicker]] component\r\n * @beta\r\n */\r\nexport interface ListPickerPropsExtended extends ListPickerProps {\r\n enableAllFunc?: () => void;\r\n disableAllFunc?: () => void;\r\n invertFunc?: () => void;\r\n}\r\n\r\n/**\r\n * List Picker that lets the user pick from a list of items to enable/disable\r\n * It also provides options to enable all, disable all and invert selection\r\n * @beta\r\n */\r\nexport class ListPicker extends React.Component<ListPickerPropsExtended> {\r\n public static get Key_All() { return -3; }\r\n public static get Key_None() { return -2; }\r\n public static get Key_Invert() { return -1; }\r\n public static get Key_Separator() { return -4; }\r\n\r\n /** Creates a ListPicker */\r\n constructor(props: ListPickerPropsExtended) {\r\n super(props);\r\n }\r\n\r\n // Creates an array of items containing the separator and special requests (all, none, invert)\r\n private createItems(items: ListItem[]): ListItem[] {\r\n const newItems: ListItem[] = [];\r\n\r\n // Create special buttons (All/None/Invert)\r\n if (this.props.enableAllFunc) {\r\n let allEnabled = true;\r\n items.map((item: ListItem) => { allEnabled = allEnabled && item.enabled; });\r\n newItems.push({ key: ListPicker.Key_All, name: UiFramework.translate(\"pickerButtons.all\"), enabled: allEnabled, type: ListItemType.Item });\r\n }\r\n if (this.props.disableAllFunc) {\r\n let allDisabled = false;\r\n items.map((item: ListItem) => { allDisabled = allDisabled || item.enabled; });\r\n newItems.push({ key: ListPicker.Key_None, name: UiFramework.translate(\"pickerButtons.none\"), enabled: !allDisabled, type: ListItemType.Item });\r\n }\r\n if (this.props.invertFunc) {\r\n newItems.push({ key: ListPicker.Key_Invert, name: UiFramework.translate(\"pickerButtons.invert\"), enabled: false, type: ListItemType.Item });\r\n }\r\n if (this.props.enableAllFunc || this.props.disableAllFunc || this.props.invertFunc) {\r\n newItems.push({ key: ListPicker.Key_Separator, name: UiFramework.translate(\"pickerButtons.separator\"), enabled: false, type: ListItemType.Separator });\r\n }\r\n\r\n // Push items\r\n items.map((item) => { newItems.push(item); });\r\n return newItems;\r\n }\r\n\r\n /**\r\n * Checks if item is a special item.\r\n * @param item Item to check\r\n */\r\n public isSpecialItem(item: ListItem) {\r\n return item.key === ListPicker.Key_All || item.key === ListPicker.Key_Invert || item.key === ListPicker.Key_None || item.type !== ListItemType.Item || item.key === ListPicker.Key_Separator;\r\n }\r\n\r\n // Handle enabling/disabling the items\r\n // This will call the this.props.setEnabled function to provide the parent with a chance to process it\r\n private _setEnabled = (item: ListItem, enabled: boolean) => {\r\n if (this.isSpecialItem(item)) {\r\n switch (item.key) {\r\n case ListPicker.Key_All: {\r\n // istanbul ignore else\r\n if (this.props.enableAllFunc)\r\n this.props.enableAllFunc();\r\n return;\r\n }\r\n case ListPicker.Key_None: {\r\n // istanbul ignore else\r\n if (this.props.disableAllFunc)\r\n this.props.disableAllFunc();\r\n return;\r\n }\r\n case ListPicker.Key_Invert: {\r\n // istanbul ignore else\r\n if (this.props.invertFunc)\r\n this.props.invertFunc();\r\n return;\r\n }\r\n }\r\n }\r\n\r\n // Call on parent to do processing of the item\r\n this.props.setEnabled(item, enabled);\r\n };\r\n\r\n /** Renders ListPicker */\r\n public override render() {\r\n return (\r\n <ListPickerPopupItem\r\n {...this.props}\r\n title={this.props.title}\r\n setEnabled={this._setEnabled}\r\n onExpanded={this.props.onExpanded}\r\n items={this.createItems(this.props.items)}\r\n iconSpec={this.props.iconSpec}\r\n />\r\n );\r\n }\r\n}\r\n"]}
@@ -2,10 +2,10 @@
2
2
  * @module Picker
3
3
  */
4
4
  import * as React from "react";
5
- import { Id64String } from "@itwin/core-bentley";
6
- import { IModelConnection, ViewState } from "@itwin/core-frontend";
5
+ import type { Id64String } from "@itwin/core-bentley";
6
+ import type { IModelConnection, ViewState } from "@itwin/core-frontend";
7
7
  import { UiEvent } from "@itwin/appui-abstract";
8
- import { ListItem } from "./ListPicker";
8
+ import type { ListItem } from "./ListPicker";
9
9
  /** [[ViewSelectorChangedEvent]] Args interface.
10
10
  * @beta
11
11
  */
@@ -46,6 +46,7 @@ interface ViewSelectorState {
46
46
  showUnknown: boolean;
47
47
  searchBox: boolean;
48
48
  panelOnly: boolean;
49
+ expand: boolean;
49
50
  }
50
51
  /** Default properties of [[ViewSelector]] component.
51
52
  * @beta
@@ -1 +1 @@
1
- {"version":3,"file":"ViewSelector.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/pickers/ViewSelector.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAa,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAqB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKnE,OAAO,EAAE,QAAQ,EAA4B,MAAM,cAAc,CAAC;AAMlE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,UAAU,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,OAAO,CAAC,4BAA4B,CAAC;CAAI;AAEvF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS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AAW,CAGjB;IAEF;;OAEG;IACa,MAAM;CAwBvB;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,oEAAoD,CAAC"}
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as React from "react";
9
9
  import { Logger } from "@itwin/core-bentley";
10
- import { IModelApp } from "@itwin/core-frontend";
10
+ import { FuzzySearch, IModelApp } from "@itwin/core-frontend";
11
11
  import { IconSpecUtilities, UiEvent } from "@itwin/appui-abstract";
12
12
  import { connectIModelConnection } from "../redux/connectIModel";
13
13
  import { UiFramework } from "../UiFramework";
@@ -107,6 +107,7 @@ class ViewSelector extends React.Component {
107
107
  showUnknown: props.showUnknown,
108
108
  searchBox: props.searchBox ? props.searchBox : true,
109
109
  panelOnly: props.panelOnly ? props.panelOnly : false,
110
+ expand: false,
110
111
  };
111
112
  }
112
113
  async componentDidMount() {
@@ -184,14 +185,16 @@ class ViewSelector extends React.Component {
184
185
  let views2dFiltered;
185
186
  let sheetsFiltered;
186
187
  let unknownFiltered;
188
+ const fuzzy = new FuzzySearch();
187
189
  if (this.props.imodel && this.props.imodel.views.getViewList) {
188
190
  const query = { wantPrivate: false };
189
191
  const specs = await this.props.imodel.views.getViewList(query);
190
192
  specs.forEach((spec) => {
193
+ var _a;
191
194
  const viewItem = {
192
195
  key: spec.id,
193
196
  name: spec.name,
194
- enabled: false,
197
+ enabled: spec.id === ((_a = IModelApp.viewManager.selectedView) === null || _a === void 0 ? void 0 : _a.view.id) ? true : false,
195
198
  type: ListItemType.Item,
196
199
  };
197
200
  const className = ViewUtilities.getBisBaseClass(spec.class);
@@ -205,10 +208,18 @@ class ViewSelector extends React.Component {
205
208
  unknown.push(viewItem);
206
209
  });
207
210
  if (this._searchInput.length > 0) {
208
- views3dFiltered = views3d.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));
209
- views2dFiltered = views2d.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));
210
- sheetsFiltered = sheets.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));
211
- unknownFiltered = unknown.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));
211
+ const views3dFuzzySearchResults = fuzzy.search(views3d, ["name"], this._searchInput).results;
212
+ const views2dFuzzySearchResults = fuzzy.search(views2d, ["name"], this._searchInput).results;
213
+ const sheetsFuzzySearchResults = fuzzy.search(sheets, ["name"], this._searchInput).results;
214
+ const unknownFuzzySearchResults = fuzzy.search(unknown, ["name"], this._searchInput).results;
215
+ views3dFiltered = [];
216
+ views2dFiltered = [];
217
+ sheetsFiltered = [];
218
+ unknownFiltered = [];
219
+ views3dFuzzySearchResults.forEach(function (result) { views3dFiltered === null || views3dFiltered === void 0 ? void 0 : views3dFiltered.push(result.item); });
220
+ views2dFuzzySearchResults.forEach(function (result) { views2dFiltered === null || views2dFiltered === void 0 ? void 0 : views2dFiltered.push(result.item); });
221
+ sheetsFuzzySearchResults.forEach(function (result) { sheetsFiltered === null || sheetsFiltered === void 0 ? void 0 : sheetsFiltered.push(result.item); });
222
+ unknownFuzzySearchResults.forEach(function (result) { unknownFiltered === null || unknownFiltered === void 0 ? void 0 : unknownFiltered.push(result.item); });
212
223
  }
213
224
  }
214
225
  this.setStateContainers(views3d, views2d, sheets, unknown, views3dFiltered, views2dFiltered, sheetsFiltered, unknownFiltered);
@@ -243,8 +254,10 @@ class ViewSelector extends React.Component {
243
254
  const { imodel, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars
244
255
  return (React.createElement(ListPicker, { ...props, title: this.state.title, setEnabled: this._setEnabled, items: this.state.items, iconSpec: iconSpec, onExpanded: this._onExpanded, searchBox: this.state.searchBox, onSearchValueChange: debounce((search) => {
245
256
  this._searchInput = search;
257
+ if (this.state.expand === false && this._searchInput.length > 0)
258
+ this.setState({ expand: true });
246
259
  void this.loadViews();
247
- }, 300), panelOnly: this.state.panelOnly }));
260
+ }, 300), panelOnly: this.state.panelOnly, expanded: this.state.expand }));
248
261
  }
249
262
  }
250
263
  ViewSelector._onViewSelectorShowUpdateEvent = new ViewSelectorShowUpdateEvent();
@@ -1 +1 @@
1
- {"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../../src/appui-react/pickers/ViewSelector.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,SAAS,EAA+B,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAY,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,YAAY,MAAM,6CAA6C,CAAC;AAcvE;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,OAAqC;CAAI;AA8CvF;GACG;AACH,MAAM,2BAA4B,SAAQ,OAAwC;CAAI;AAEtF;;GAEG;AACH,MAAa,YAAa,SAAQ,KAAK,CAAC,SAA+C;IAiBrF;OACG;IACI,MAAM,CAAC,kBAAkB,CAAC,YAAqB,EAAE,YAAqB,EAAE,UAAmB,EAAE,WAAoB;QACtH,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED,6BAA6B;IAC7B,YAAY,KAAwB;QAClC,KAAK,CAAC,KAAK,CAAC,CAAC;QArBP,eAAU,GAAG,KAAK,CAAC;QACnB,iBAAY,GAAG,EAAE,CAAC;QAwDl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B,MAAM,QAAQ,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,YAAY,CAAC,CAAC;QAE5E,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;QAEjG,OAAO,CACL,oBAAC,UAAU,OACL,KAAK,EACT,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,mBAAmB,EAAE,QAAQ,CAAC,CAAC,MAAc,EAAE,EAAE;gBAC/C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;gBAC3B,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;YACxB,CAAC,EAAE,GAAG,CAAC,EACP,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,GAC/B,CACH,CAAC;IACJ,CAAC;;AAxRuB,2CAA8B,GAAG,IAAI,2BAA2B,EAAE,AAApC,CAAqC;AAKpE,yBAAY,GAA6B;IAC9D,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,AALkC,CAKjC;AAEF,4CAA4C;AACrB,uCAA0B,GAAG,IAAI,wBAAwB,EAAE,AAAjC,CAAkC;SAfxE,YAAY;AA6RzB;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,2DAA2D","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 Picker\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Id64String, Logger } from \"@itwin/core-bentley\";\r\nimport { IModelApp, IModelConnection, ViewState } from \"@itwin/core-frontend\";\r\nimport { IconSpecUtilities, UiEvent } from \"@itwin/appui-abstract\";\r\nimport { SupportsViewSelectorChange } from \"../content/ContentControl\";\r\nimport { connectIModelConnection } from \"../redux/connectIModel\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ViewUtilities } from \"../utils/ViewUtilities\";\r\nimport { ListItem, ListItemType, ListPicker } from \"./ListPicker\";\r\nimport { debounce } from \"lodash\";\r\nimport svgSavedView from \"@bentley/icons-generic/icons/saved-view.svg\";\r\n\r\n// cSpell:ignore Spatials\r\n\r\n/** [[ViewSelectorChangedEvent]] Args interface.\r\n * @beta\r\n */\r\nexport interface ViewSelectorChangedEventArgs {\r\n iModelConnection: IModelConnection;\r\n viewDefinitionId: Id64String;\r\n viewState: ViewState;\r\n name: string;\r\n}\r\n\r\n/** ViewSelector Changed Event class.\r\n * @beta\r\n */\r\nexport class ViewSelectorChangedEvent extends UiEvent<ViewSelectorChangedEventArgs> { }\r\n\r\n/** Properties for the [[ViewSelector]] component\r\n * @beta\r\n */\r\nexport interface ViewSelectorProps {\r\n imodel?: IModelConnection;\r\n listenForShowUpdates?: boolean;\r\n\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n searchBox?: boolean;\r\n panelOnly?: boolean;\r\n}\r\n\r\n/** State for the [[ViewSelector]] component\r\n * @beta\r\n */\r\ninterface ViewSelectorState {\r\n items: ListItem[];\r\n title: string;\r\n initialized: boolean;\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n searchBox: boolean;\r\n panelOnly: boolean;\r\n}\r\n\r\n/** Default properties of [[ViewSelector]] component.\r\n * @beta\r\n */\r\nexport type ViewSelectorDefaultProps = Pick<ViewSelectorProps, \"showSpatials\" | \"showDrawings\" | \"showSheets\" | \"showUnknown\">;\r\n\r\n/** ViewSelector Show Update Event Args interface.\r\n */\r\ninterface ViewSelectorShowUpdateEventArgs {\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n}\r\n\r\n/** ViewSelector Show Update Event class.\r\n */\r\nclass ViewSelectorShowUpdateEvent extends UiEvent<ViewSelectorShowUpdateEventArgs> { }\r\n\r\n/** View Selector React component\r\n * @beta\r\n */\r\nexport class ViewSelector extends React.Component<ViewSelectorProps, ViewSelectorState> {\r\n\r\n private static readonly _onViewSelectorShowUpdateEvent = new ViewSelectorShowUpdateEvent();\r\n private _removeShowUpdateListener?: () => void;\r\n private _isMounted = false;\r\n private _searchInput = \"\";\r\n\r\n public static readonly defaultProps: ViewSelectorDefaultProps = {\r\n showSpatials: true,\r\n showDrawings: true,\r\n showSheets: true,\r\n showUnknown: true,\r\n };\r\n\r\n /** Gets the [[ViewSelectorChangedEvent]] */\r\n public static readonly onViewSelectorChangedEvent = new ViewSelectorChangedEvent();\r\n\r\n /** Updates the ViewSelector show settings.\r\n */\r\n public static updateShowSettings(showSpatials: boolean, showDrawings: boolean, showSheets: boolean, showUnknown: boolean): void {\r\n ViewSelector._onViewSelectorShowUpdateEvent.emit({ showSpatials, showDrawings, showSheets, showUnknown });\r\n }\r\n\r\n /** Creates a ViewSelector */\r\n constructor(props: ViewSelectorProps) {\r\n super(props);\r\n\r\n this.state = {\r\n items: new Array<ListItem>(),\r\n title: UiFramework.translate(\"viewTypes.views\"),\r\n initialized: false,\r\n showSpatials: props.showSpatials,\r\n showDrawings: props.showDrawings,\r\n showSheets: props.showSheets,\r\n showUnknown: props.showUnknown,\r\n searchBox: props.searchBox ? props.searchBox : true,\r\n panelOnly: props.panelOnly ? props.panelOnly : false,\r\n };\r\n }\r\n\r\n public override async componentDidMount() {\r\n this._isMounted = true;\r\n if (this.props.listenForShowUpdates)\r\n this._removeShowUpdateListener = ViewSelector._onViewSelectorShowUpdateEvent.addListener(this._handleViewSelectorShowUpdateEvent);\r\n\r\n await this.loadViews();\r\n }\r\n\r\n public override async componentDidUpdate(prevProps: ViewSelectorProps) {\r\n if (this.props.imodel !== prevProps.imodel) {\r\n await this.loadViews();\r\n }\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n // istanbul ignore else\r\n if (this._removeShowUpdateListener)\r\n this._removeShowUpdateListener();\r\n }\r\n\r\n private _handleViewSelectorShowUpdateEvent = (args: ViewSelectorShowUpdateEventArgs): void => {\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n this.setState(args, async () => this.loadViews());\r\n };\r\n\r\n private setStateContainers(views3d: ListItem[], views2d: ListItem[], sheets: ListItem[], unknown?: ListItem[],\r\n views3dFiltered?: ListItem[], views2dFiltered?: ListItem[], sheetsFiltered?: ListItem[], unknownFiltered?: ListItem[]) {\r\n const views3dContainer: ListItem = {\r\n key: \"views3dContainer\",\r\n name: UiFramework.translate(\"viewTypes.spatialViews\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: views3dFiltered ? views3dFiltered : views3d,\r\n };\r\n\r\n const views2dContainer: ListItem = {\r\n key: \"views2dContainer\",\r\n name: UiFramework.translate(\"viewTypes.drawings\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: views2dFiltered ? views2dFiltered : views2d,\r\n };\r\n\r\n const sheetContainer: ListItem = {\r\n key: \"sheetContainer\",\r\n name: UiFramework.translate(\"viewTypes.sheets\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: sheetsFiltered ? sheetsFiltered : sheets,\r\n };\r\n\r\n const containers = [views3dContainer, views2dContainer, sheetContainer];\r\n\r\n // istanbul ignore if\r\n if (unknown && unknown.length > 0) {\r\n // This should never show, but just in case we missed a type of view state\r\n const unknownContainer: ListItem = {\r\n key: \"unknownContainer\",\r\n name: UiFramework.translate(\"viewTypes.others\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: unknownFiltered ? unknownFiltered : unknown,\r\n };\r\n\r\n if (unknown.length !== 0)\r\n containers.push(unknownContainer);\r\n }\r\n\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n this.setState({\r\n items: containers,\r\n title: UiFramework.translate(\"viewTypes.views\"),\r\n initialized: true,\r\n });\r\n }\r\n /**\r\n * Query the views and set the initial state with the iModel's views.\r\n */\r\n public async loadViews(): Promise<void> {\r\n // Query views and add them to state\r\n const views3d: ListItem[] = [];\r\n const views2d: ListItem[] = [];\r\n const sheets: ListItem[] = [];\r\n const unknown: ListItem[] = [];\r\n let views3dFiltered: ListItem[] | undefined;\r\n let views2dFiltered: ListItem[] | undefined;\r\n let sheetsFiltered: ListItem[] | undefined;\r\n let unknownFiltered: ListItem[] | undefined;\r\n\r\n if (this.props.imodel && this.props.imodel.views.getViewList) {\r\n const query = { wantPrivate: false };\r\n const specs = await this.props.imodel.views.getViewList(query);\r\n\r\n specs.forEach((spec: IModelConnection.ViewSpec) => {\r\n const viewItem: ListItem = {\r\n key: spec.id,\r\n name: spec.name,\r\n enabled: false,\r\n type: ListItemType.Item,\r\n };\r\n\r\n const className = ViewUtilities.getBisBaseClass(spec.class);\r\n\r\n if (ViewUtilities.isSpatial(className) && this.state.showSpatials)\r\n views3d.push(viewItem);\r\n else if (ViewUtilities.isDrawing(className) && this.state.showDrawings)\r\n views2d.push(viewItem);\r\n else if (ViewUtilities.isSheet(className) && this.state.showSheets)\r\n sheets.push(viewItem);\r\n else if (this.state.showUnknown)\r\n unknown.push(viewItem);\r\n });\r\n\r\n if(this._searchInput.length > 0){\r\n views3dFiltered = views3d.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));\r\n views2dFiltered = views2d.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));\r\n sheetsFiltered = sheets.filter((view) => view.name?.toLowerCase().includes(this._searchInput.toLowerCase()));\r\n unknownFiltered = unknown.filter((view) => view.name?. toLowerCase().includes(this._searchInput.toLowerCase()));\r\n }\r\n }\r\n\r\n this.setStateContainers(views3d, views2d, sheets, unknown, views3dFiltered, views2dFiltered, sheetsFiltered, unknownFiltered);\r\n }\r\n\r\n /**\r\n * Update state of the entries in the widget.\r\n * @param viewId Identifier for the relevant view\r\n */\r\n // istanbul ignore next\r\n public async updateState(viewId?: any): Promise<void> {\r\n // Wait for initialization finished\r\n if (!this.state.initialized)\r\n return;\r\n\r\n // Query views and add them to state\r\n const views3d: ListItem[] = this.state.items[0].children!;\r\n const views2d: ListItem[] = this.state.items[1].children!;\r\n const sheets: ListItem[] = this.state.items[2].children!;\r\n const unknown: ListItem[] = this.state.items.length > 3 ? this.state.items[3].children! : [];\r\n\r\n const updateChildren = (item: ListItem) => {\r\n if (item.key === viewId)\r\n return { ...item, enabled: true };\r\n else\r\n return { ...item, enabled: false };\r\n };\r\n\r\n this.setStateContainers(views3d.map(updateChildren), views2d.map(updateChildren), sheets.map(updateChildren), unknown.map(updateChildren));\r\n }\r\n\r\n // enable/disable the models\r\n // istanbul ignore next\r\n private _setEnabled = async (item: ListItem, _enabled: boolean) => {\r\n const activeContentControl = UiFramework.content.getActiveContentControl() as unknown as SupportsViewSelectorChange;\r\n if (!activeContentControl || !activeContentControl.supportsViewSelectorChange) {\r\n Logger.logError(UiFramework.loggerCategory(this), `No active ContentControl for ViewSelector change`);\r\n return;\r\n }\r\n\r\n // Enable the item temporarily to let user see that their click was registered\r\n // while we query for view state and change the current view which may take a bit\r\n if (_enabled && item.type !== ListItemType.Container) {\r\n // This itemMapper simply looks through all the list items and their nested children and enables the one\r\n // that we have registered to enable\r\n // Also disable all other items\r\n const itemMapper: (tempItem: ListItem) => ListItem = (tempItem: ListItem) => {\r\n if (tempItem.type === ListItemType.Container) {\r\n return { ...tempItem, children: tempItem.children!.map(itemMapper) };\r\n } else if (tempItem.key === item.key) {\r\n return { ...tempItem, enabled: true };\r\n } else {\r\n return { ...tempItem, enabled: false };\r\n }\r\n };\r\n\r\n // Create the new array with the current item enabled\r\n const itemsWithEnabled = this.state.items.map(itemMapper);\r\n\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n // Update the state so that we show the user it was enabled while we work in the background\r\n this.setState({ items: itemsWithEnabled });\r\n }\r\n\r\n // Load the view state using the viewSpec's ID\r\n const viewState = await this.props.imodel!.views.load(item.key);\r\n\r\n // Let activeContentControl process the ViewSelector change\r\n await activeContentControl.processViewSelectorChange(this.props.imodel!, item.key, viewState, item.name!);\r\n\r\n // Emit a change event\r\n ViewSelector.onViewSelectorChangedEvent.emit({\r\n iModelConnection: this.props.imodel!,\r\n viewDefinitionId: item.key,\r\n viewState,\r\n name: item.name!,\r\n });\r\n\r\n // Set state to show enabled the view that got selected\r\n this.updateState(item.key); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n };\r\n\r\n // Hook on the category selector being expanded so that we may initialize if needed\r\n // istanbul ignore next\r\n private _onExpanded = (expand: boolean) => {\r\n if (expand)\r\n this.updateState(IModelApp.viewManager.selectedView ? IModelApp.viewManager.selectedView.view.id : undefined); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n };\r\n\r\n /**\r\n * Renders ViewSelector component\r\n */\r\n public override render() {\r\n const iconSpec = IconSpecUtilities.createWebComponentIconSpec(svgSavedView);\r\n\r\n const { imodel, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n\r\n return (\r\n <ListPicker\r\n {...props}\r\n title={this.state.title}\r\n setEnabled={this._setEnabled}\r\n items={this.state.items}\r\n iconSpec={iconSpec}\r\n onExpanded={this._onExpanded}\r\n searchBox={this.state.searchBox}\r\n onSearchValueChange={debounce((search: string) => {\r\n this._searchInput = search;\r\n void this.loadViews();\r\n }, 300)}\r\n panelOnly={this.state.panelOnly}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** ViewSelector that is connected to the IModelConnection property in the Redux store. The application must set up the Redux store and include the FrameworkReducer.\r\n * @beta\r\n */\r\nexport const IModelConnectedViewSelector = connectIModelConnection(null, null)(ViewSelector); // eslint-disable-line @typescript-eslint/naming-convention\r\n"]}
1
+ {"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../../src/appui-react/pickers/ViewSelector.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,YAAY,MAAM,6CAA6C,CAAC;AAcvE;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,OAAqC;CAAI;AA+CvF;GACG;AACH,MAAM,2BAA4B,SAAQ,OAAwC;CAAI;AAEtF;;GAEG;AACH,MAAa,YAAa,SAAQ,KAAK,CAAC,SAA+C;IAiBrF;OACG;IACI,MAAM,CAAC,kBAAkB,CAAC,YAAqB,EAAE,YAAqB,EAAE,UAAmB,EAAE,WAAoB;QACtH,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED,6BAA6B;IAC7B,YAAY,KAAwB;QAClC,KAAK,CAAC,KAAK,CAAC,CAAC;QArBP,eAAU,GAAG,KAAK,CAAC;Q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SAAS,EAC/B,mBAAmB,EAAE,QAAQ,CAAC,CAAC,MAAc,EAAE,EAAE;gBAC/C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;gBAC3B,IAAG,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;oBAAE,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;gBAC9F,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;YACxB,CAAC,EAAE,GAAG,CAAC,EACP,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAC3B,CACH,CAAC;IACJ,CAAC;;AApSuB,2CAA8B,GAAG,IAAI,2BAA2B,EAAE,AAApC,CAAqC;AAKpE,yBAAY,GAA6B;IAC9D,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,AALkC,CAKjC;AAEF,4CAA4C;AACrB,uCAA0B,GAAG,IAAI,wBAAwB,EAAE,AAAjC,CAAkC;SAfxE,YAAY;AAySzB;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,2DAA2D","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 Picker\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport type { Id64String} from \"@itwin/core-bentley\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { IModelConnection, ViewState } from \"@itwin/core-frontend\";\r\nimport { FuzzySearch, IModelApp } from \"@itwin/core-frontend\";\r\nimport { IconSpecUtilities, UiEvent } from \"@itwin/appui-abstract\";\r\nimport type { SupportsViewSelectorChange } from \"../content/ContentControl\";\r\nimport { connectIModelConnection } from \"../redux/connectIModel\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { ViewUtilities } from \"../utils/ViewUtilities\";\r\nimport type { ListItem} from \"./ListPicker\";\r\nimport { ListItemType, ListPicker } from \"./ListPicker\";\r\nimport { debounce } from \"lodash\";\r\nimport svgSavedView from \"@bentley/icons-generic/icons/saved-view.svg\";\r\n\r\n// cSpell:ignore Spatials\r\n\r\n/** [[ViewSelectorChangedEvent]] Args interface.\r\n * @beta\r\n */\r\nexport interface ViewSelectorChangedEventArgs {\r\n iModelConnection: IModelConnection;\r\n viewDefinitionId: Id64String;\r\n viewState: ViewState;\r\n name: string;\r\n}\r\n\r\n/** ViewSelector Changed Event class.\r\n * @beta\r\n */\r\nexport class ViewSelectorChangedEvent extends UiEvent<ViewSelectorChangedEventArgs> { }\r\n\r\n/** Properties for the [[ViewSelector]] component\r\n * @beta\r\n */\r\nexport interface ViewSelectorProps {\r\n imodel?: IModelConnection;\r\n listenForShowUpdates?: boolean;\r\n\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n searchBox?: boolean;\r\n panelOnly?: boolean;\r\n}\r\n\r\n/** State for the [[ViewSelector]] component\r\n * @beta\r\n */\r\ninterface ViewSelectorState {\r\n items: ListItem[];\r\n title: string;\r\n initialized: boolean;\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n searchBox: boolean;\r\n panelOnly: boolean;\r\n expand: boolean;\r\n}\r\n\r\n/** Default properties of [[ViewSelector]] component.\r\n * @beta\r\n */\r\nexport type ViewSelectorDefaultProps = Pick<ViewSelectorProps, \"showSpatials\" | \"showDrawings\" | \"showSheets\" | \"showUnknown\">;\r\n\r\n/** ViewSelector Show Update Event Args interface.\r\n */\r\ninterface ViewSelectorShowUpdateEventArgs {\r\n showSpatials: boolean;\r\n showDrawings: boolean;\r\n showSheets: boolean;\r\n showUnknown: boolean;\r\n}\r\n\r\n/** ViewSelector Show Update Event class.\r\n */\r\nclass ViewSelectorShowUpdateEvent extends UiEvent<ViewSelectorShowUpdateEventArgs> { }\r\n\r\n/** View Selector React component\r\n * @beta\r\n */\r\nexport class ViewSelector extends React.Component<ViewSelectorProps, ViewSelectorState> {\r\n\r\n private static readonly _onViewSelectorShowUpdateEvent = new ViewSelectorShowUpdateEvent();\r\n private _removeShowUpdateListener?: () => void;\r\n private _isMounted = false;\r\n private _searchInput = \"\";\r\n\r\n public static readonly defaultProps: ViewSelectorDefaultProps = {\r\n showSpatials: true,\r\n showDrawings: true,\r\n showSheets: true,\r\n showUnknown: true,\r\n };\r\n\r\n /** Gets the [[ViewSelectorChangedEvent]] */\r\n public static readonly onViewSelectorChangedEvent = new ViewSelectorChangedEvent();\r\n\r\n /** Updates the ViewSelector show settings.\r\n */\r\n public static updateShowSettings(showSpatials: boolean, showDrawings: boolean, showSheets: boolean, showUnknown: boolean): void {\r\n ViewSelector._onViewSelectorShowUpdateEvent.emit({ showSpatials, showDrawings, showSheets, showUnknown });\r\n }\r\n\r\n /** Creates a ViewSelector */\r\n constructor(props: ViewSelectorProps) {\r\n super(props);\r\n\r\n this.state = {\r\n items: new Array<ListItem>(),\r\n title: UiFramework.translate(\"viewTypes.views\"),\r\n initialized: false,\r\n showSpatials: props.showSpatials,\r\n showDrawings: props.showDrawings,\r\n showSheets: props.showSheets,\r\n showUnknown: props.showUnknown,\r\n searchBox: props.searchBox ? props.searchBox : true,\r\n panelOnly: props.panelOnly ? props.panelOnly : false,\r\n expand: false,\r\n };\r\n }\r\n\r\n public override async componentDidMount() {\r\n this._isMounted = true;\r\n if (this.props.listenForShowUpdates)\r\n this._removeShowUpdateListener = ViewSelector._onViewSelectorShowUpdateEvent.addListener(this._handleViewSelectorShowUpdateEvent);\r\n\r\n await this.loadViews();\r\n }\r\n\r\n public override async componentDidUpdate(prevProps: ViewSelectorProps) {\r\n if (this.props.imodel !== prevProps.imodel) {\r\n await this.loadViews();\r\n }\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n // istanbul ignore else\r\n if (this._removeShowUpdateListener)\r\n this._removeShowUpdateListener();\r\n }\r\n\r\n private _handleViewSelectorShowUpdateEvent = (args: ViewSelectorShowUpdateEventArgs): void => {\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n this.setState(args, async () => this.loadViews());\r\n };\r\n\r\n private setStateContainers(views3d: ListItem[], views2d: ListItem[], sheets: ListItem[], unknown?: ListItem[],\r\n views3dFiltered?: ListItem[], views2dFiltered?: ListItem[], sheetsFiltered?: ListItem[], unknownFiltered?: ListItem[]) {\r\n const views3dContainer: ListItem = {\r\n key: \"views3dContainer\",\r\n name: UiFramework.translate(\"viewTypes.spatialViews\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: views3dFiltered ? views3dFiltered : views3d,\r\n };\r\n\r\n const views2dContainer: ListItem = {\r\n key: \"views2dContainer\",\r\n name: UiFramework.translate(\"viewTypes.drawings\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: views2dFiltered ? views2dFiltered : views2d,\r\n };\r\n\r\n const sheetContainer: ListItem = {\r\n key: \"sheetContainer\",\r\n name: UiFramework.translate(\"viewTypes.sheets\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: sheetsFiltered ? sheetsFiltered : sheets,\r\n };\r\n\r\n const containers = [views3dContainer, views2dContainer, sheetContainer];\r\n\r\n // istanbul ignore if\r\n if (unknown && unknown.length > 0) {\r\n // This should never show, but just in case we missed a type of view state\r\n const unknownContainer: ListItem = {\r\n key: \"unknownContainer\",\r\n name: UiFramework.translate(\"viewTypes.others\"),\r\n enabled: false,\r\n type: ListItemType.Container,\r\n children: unknownFiltered ? unknownFiltered : unknown,\r\n };\r\n\r\n if (unknown.length !== 0)\r\n containers.push(unknownContainer);\r\n }\r\n\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n this.setState({\r\n items: containers,\r\n title: UiFramework.translate(\"viewTypes.views\"),\r\n initialized: true,\r\n });\r\n }\r\n /**\r\n * Query the views and set the initial state with the iModel's views.\r\n */\r\n public async loadViews(): Promise<void> {\r\n // Query views and add them to state\r\n const views3d: ListItem[] = [];\r\n const views2d: ListItem[] = [];\r\n const sheets: ListItem[] = [];\r\n const unknown: ListItem[] = [];\r\n let views3dFiltered: ListItem[] | undefined;\r\n let views2dFiltered: ListItem[] | undefined;\r\n let sheetsFiltered: ListItem[] | undefined;\r\n let unknownFiltered: ListItem[] | undefined;\r\n const fuzzy = new FuzzySearch<ListItem>();\r\n\r\n if (this.props.imodel && this.props.imodel.views.getViewList) {\r\n const query = { wantPrivate: false };\r\n const specs = await this.props.imodel.views.getViewList(query);\r\n\r\n specs.forEach((spec: IModelConnection.ViewSpec) => {\r\n const viewItem: ListItem = {\r\n key: spec.id,\r\n name: spec.name,\r\n enabled: spec.id === IModelApp.viewManager.selectedView?.view.id ? true : false,\r\n type: ListItemType.Item,\r\n };\r\n\r\n const className = ViewUtilities.getBisBaseClass(spec.class);\r\n\r\n if (ViewUtilities.isSpatial(className) && this.state.showSpatials)\r\n views3d.push(viewItem);\r\n else if (ViewUtilities.isDrawing(className) && this.state.showDrawings)\r\n views2d.push(viewItem);\r\n else if (ViewUtilities.isSheet(className) && this.state.showSheets)\r\n sheets.push(viewItem);\r\n else if (this.state.showUnknown)\r\n unknown.push(viewItem);\r\n });\r\n\r\n if(this._searchInput.length > 0){\r\n const views3dFuzzySearchResults = fuzzy.search(views3d, [\"name\"], this._searchInput).results as ListItem[];\r\n const views2dFuzzySearchResults = fuzzy.search(views2d, [\"name\"], this._searchInput).results as ListItem[];\r\n const sheetsFuzzySearchResults = fuzzy.search(sheets, [\"name\"], this._searchInput).results as ListItem[];\r\n const unknownFuzzySearchResults = fuzzy.search(unknown, [\"name\"], this._searchInput).results as ListItem[];\r\n views3dFiltered=[];\r\n views2dFiltered=[];\r\n sheetsFiltered=[];\r\n unknownFiltered=[];\r\n views3dFuzzySearchResults.forEach(function (result) {views3dFiltered?.push(result.item);});\r\n views2dFuzzySearchResults.forEach(function (result) {views2dFiltered?.push(result.item);});\r\n sheetsFuzzySearchResults.forEach(function (result) {sheetsFiltered?.push(result.item);});\r\n unknownFuzzySearchResults.forEach(function (result) {unknownFiltered?.push(result.item);});\r\n }\r\n }\r\n\r\n this.setStateContainers(views3d, views2d, sheets, unknown, views3dFiltered, views2dFiltered, sheetsFiltered, unknownFiltered);\r\n }\r\n\r\n /**\r\n * Update state of the entries in the widget.\r\n * @param viewId Identifier for the relevant view\r\n */\r\n // istanbul ignore next\r\n public async updateState(viewId?: any): Promise<void> {\r\n // Wait for initialization finished\r\n if (!this.state.initialized)\r\n return;\r\n\r\n // Query views and add them to state\r\n const views3d: ListItem[] = this.state.items[0].children!;\r\n const views2d: ListItem[] = this.state.items[1].children!;\r\n const sheets: ListItem[] = this.state.items[2].children!;\r\n const unknown: ListItem[] = this.state.items.length > 3 ? this.state.items[3].children! : [];\r\n\r\n const updateChildren = (item: ListItem) => {\r\n if (item.key === viewId)\r\n return { ...item, enabled: true };\r\n else\r\n return { ...item, enabled: false };\r\n };\r\n\r\n this.setStateContainers(views3d.map(updateChildren), views2d.map(updateChildren), sheets.map(updateChildren), unknown.map(updateChildren));\r\n }\r\n\r\n // enable/disable the models\r\n // istanbul ignore next\r\n private _setEnabled = async (item: ListItem, _enabled: boolean) => {\r\n const activeContentControl = UiFramework.content.getActiveContentControl() as unknown as SupportsViewSelectorChange;\r\n if (!activeContentControl || !activeContentControl.supportsViewSelectorChange) {\r\n Logger.logError(UiFramework.loggerCategory(this), `No active ContentControl for ViewSelector change`);\r\n return;\r\n }\r\n\r\n // Enable the item temporarily to let user see that their click was registered\r\n // while we query for view state and change the current view which may take a bit\r\n if (_enabled && item.type !== ListItemType.Container) {\r\n // This itemMapper simply looks through all the list items and their nested children and enables the one\r\n // that we have registered to enable\r\n // Also disable all other items\r\n const itemMapper: (tempItem: ListItem) => ListItem = (tempItem: ListItem) => {\r\n if (tempItem.type === ListItemType.Container) {\r\n return { ...tempItem, children: tempItem.children!.map(itemMapper) };\r\n } else if (tempItem.key === item.key) {\r\n return { ...tempItem, enabled: true };\r\n } else {\r\n return { ...tempItem, enabled: false };\r\n }\r\n };\r\n\r\n // Create the new array with the current item enabled\r\n const itemsWithEnabled = this.state.items.map(itemMapper);\r\n\r\n // istanbul ignore next\r\n if (!this._isMounted)\r\n return;\r\n\r\n // Update the state so that we show the user it was enabled while we work in the background\r\n this.setState({ items: itemsWithEnabled });\r\n }\r\n\r\n // Load the view state using the viewSpec's ID\r\n const viewState = await this.props.imodel!.views.load(item.key);\r\n\r\n // Let activeContentControl process the ViewSelector change\r\n await activeContentControl.processViewSelectorChange(this.props.imodel!, item.key, viewState, item.name!);\r\n\r\n // Emit a change event\r\n ViewSelector.onViewSelectorChangedEvent.emit({\r\n iModelConnection: this.props.imodel!,\r\n viewDefinitionId: item.key,\r\n viewState,\r\n name: item.name!,\r\n });\r\n\r\n // Set state to show enabled the view that got selected\r\n this.updateState(item.key); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n };\r\n\r\n // Hook on the category selector being expanded so that we may initialize if needed\r\n // istanbul ignore next\r\n private _onExpanded = (expand: boolean) => {\r\n if (expand)\r\n this.updateState(IModelApp.viewManager.selectedView ? IModelApp.viewManager.selectedView.view.id : undefined); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n };\r\n\r\n /**\r\n * Renders ViewSelector component\r\n */\r\n public override render() {\r\n const iconSpec = IconSpecUtilities.createWebComponentIconSpec(svgSavedView);\r\n\r\n const { imodel, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n\r\n return (\r\n <ListPicker\r\n {...props}\r\n title={this.state.title}\r\n setEnabled={this._setEnabled}\r\n items={this.state.items}\r\n iconSpec={iconSpec}\r\n onExpanded={this._onExpanded}\r\n searchBox={this.state.searchBox}\r\n onSearchValueChange={debounce((search: string) => {\r\n this._searchInput = search;\r\n if(this.state.expand === false && this._searchInput.length > 0) this.setState({expand: true});\r\n void this.loadViews();\r\n }, 300)}\r\n panelOnly={this.state.panelOnly}\r\n expanded={this.state.expand}\r\n />\r\n );\r\n }\r\n}\r\n\r\n/** ViewSelector that is connected to the IModelConnection property in the Redux store. The application must set up the Redux store and include the FrameworkReducer.\r\n * @beta\r\n */\r\nexport const IModelConnectedViewSelector = connectIModelConnection(null, null)(ViewSelector); // eslint-disable-line @typescript-eslint/naming-convention\r\n"]}
@@ -3,9 +3,10 @@
3
3
  */
4
4
  import "./CardPopup.scss";
5
5
  import * as React from "react";
6
- import { CommonToolbarItem, OnCancelFunc, OnItemExecutedFunc, PropertyRecord, RelativePosition } from "@itwin/appui-abstract";
7
- import { Orientation, Size } from "@itwin/core-react";
8
- import { PopupContentType, PopupPropsBase } from "./PopupManager";
6
+ import type { CommonToolbarItem, OnCancelFunc, OnItemExecutedFunc, PropertyRecord, RelativePosition } from "@itwin/appui-abstract";
7
+ import type { Orientation } from "@itwin/core-react";
8
+ import { Size } from "@itwin/core-react";
9
+ import type { PopupContentType, PopupPropsBase } from "./PopupManager";
9
10
  /** Props for defining a CardPopup editor
10
11
  * @beta */
11
12
  export interface CardPopupProps extends PopupPropsBase {
@@ -1 +1 @@
1
- {"version":3,"file":"CardPopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/CardPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAc,MAAM,uBAAuB,CAAC;AAC1I,OAAO,EAAkC,WAAW,EAAS,IAAI,EAAa,MAAM,mBAAmB,CAAC;AAGxG,OAAO,EAAkB,g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ACJ,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 Popup\r\n */\r\n\r\nimport \"./CardPopup.scss\";\r\nimport * as React from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { CommonToolbarItem, OnCancelFunc, OnItemExecutedFunc, PropertyRecord, RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { DivWithOutsideClick, FocusTrap, Orientation, Point, Size, SizeProps } from \"@itwin/core-react\";\r\nimport { Text } from \"@itwin/itwinui-react\";\r\nimport { CursorPopup } from \"../cursor/cursorpopup/CursorPopup\";\r\nimport { isReactContent, PopupContentType, PopupManager, PopupPropsBase } from \"./PopupManager\";\r\nimport { PositionPopup } from \"./PositionPopup\";\r\nimport { MessageDiv } from \"../messages/MessageSpan\";\r\nimport { Direction, PropertyValueRendererManager, ToolbarOpacitySetting, ToolbarPanelAlignment, ToolbarWithOverflow } from \"@itwin/components-react\";\r\n\r\n/** Props for defining a CardPopup editor\r\n * @beta */\r\nexport interface CardPopupProps extends PopupPropsBase {\r\n content: PopupContentType;\r\n title: string | PropertyRecord | undefined;\r\n items: CommonToolbarItem[] | undefined;\r\n relativePosition: RelativePosition;\r\n orientation: Orientation;\r\n onCancel: OnCancelFunc;\r\n onItemExecuted: OnItemExecutedFunc;\r\n}\r\n\r\n/** @internal */\r\ninterface CardPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for Input Editor\r\n * @beta\r\n */\r\nexport class CardPopup extends React.PureComponent<CardPopupProps, CardPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n private _handleKeyDown = (event: React.KeyboardEvent): void => {\r\n switch (event.key) {\r\n case SpecialKey.Escape:\r\n this._cancel();\r\n break;\r\n }\r\n };\r\n\r\n private _cancel() {\r\n // istanbul ignore else\r\n if (this.props.onCancel) {\r\n this.props.onCancel();\r\n }\r\n }\r\n\r\n public override render() {\r\n let point = PopupManager.getPopupPosition(this.props.el, this.props.pt, new Point(), this.state.size);\r\n const popupRect = CursorPopup.getPopupRect(point, this.props.offset, this.state.size, this.props.relativePosition);\r\n point = new Point(popupRect.left, popupRect.top);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n className={classnames(\"uifw-no-border\", \"uifw-card\")}\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel} onKeyDown={this._handleKeyDown}>\r\n <FocusTrap active={true} returnFocusOnDeactivate={true}>\r\n <Card content={this.props.content} title={this.props.title} items={this.props.items}\r\n onItemExecuted={this.props.onItemExecuted} />\r\n </FocusTrap>\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n\r\n/** Props defining a Card component\r\n * @beta */\r\nexport interface CardProps {\r\n content: PopupContentType;\r\n title: string | PropertyRecord | undefined;\r\n items: CommonToolbarItem[] | undefined;\r\n onItemExecuted: OnItemExecutedFunc;\r\n}\r\n\r\n/** Card component\r\n * @beta */\r\nexport function Card(props: CardProps) {\r\n let titleNode: React.ReactNode;\r\n // istanbul ignore else\r\n if (props.title) {\r\n if (typeof props.title === \"string\")\r\n titleNode = <Text variant=\"leading\">{props.title}</Text>;\r\n else {\r\n const propertyValueRendererManager = PropertyValueRendererManager.defaultManager;\r\n const titleValue = propertyValueRendererManager.render(props.title);\r\n titleNode = <Text variant=\"leading\">{titleValue}</Text>;\r\n }\r\n }\r\n\r\n const content = isReactContent(props.content) ? props.content.reactNode : <MessageDiv message={props.content} />;\r\n\r\n return (\r\n <>\r\n <div className=\"uifw-card-content\">\r\n {props.title &&\r\n <>\r\n {titleNode}\r\n <div className=\"uifw-card-gap\" />\r\n </>\r\n }\r\n {content}\r\n </div>\r\n {props.items &&\r\n <>\r\n <div className=\"uifw-card-separator\" />\r\n <ToolbarWithOverflow // eslint-disable-line deprecation/deprecation\r\n expandsTo={Direction.Bottom}\r\n panelAlignment={ToolbarPanelAlignment.Start}\r\n items={props.items}\r\n useDragInteraction={true}\r\n toolbarOpacitySetting={ToolbarOpacitySetting.Transparent}\r\n onItemExecuted={props.onItemExecuted}\r\n />\r\n </>\r\n }\r\n </>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"CardPopup.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/CardPopup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAmBrJ;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,aAA6C;IAAlF;;QACE,gBAAgB;QACS,UAAK,GAAG;YAC/B,IAAI,EAAE,IAAI,IAAI,CAA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ACE,6BAAK,SAAS,EAAC,mBAAmB;YAC/B,KAAK,CAAC,KAAK;gBACV;oBACG,SAAS;oBACV,6BAAK,SAAS,EAAC,eAAe,GAAG,CAChC;YAEJ,OAAO,CACJ;QACL,KAAK,CAAC,KAAK;YACV;gBACE,6BAAK,SAAS,EAAC,qBAAqB,GAAG;gBACvC,oBAAC,mBAAmB,CAAC,8CAA8C;oBACjE,SAAS,EAAE,SAAS,CAAC,MAAM,EAC3B,cAAc,EAAE,qBAAqB,CAAC,KAAK,EAC3C,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,EAAE,qBAAqB,CAAC,WAAW,EACxD,cAAc,EAAE,KAAK,CAAC,cAAc,GACpC,CACD,CAEJ,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 Popup\r\n */\r\n\r\nimport \"./CardPopup.scss\";\r\nimport * as React from \"react\";\r\nimport classnames from \"classnames\";\r\nimport type { CommonToolbarItem, OnCancelFunc, OnItemExecutedFunc, PropertyRecord, RelativePosition} from \"@itwin/appui-abstract\";\r\nimport { SpecialKey } from \"@itwin/appui-abstract\";\r\nimport type { Orientation, SizeProps } from \"@itwin/core-react\";\r\nimport { DivWithOutsideClick, FocusTrap, Point, Size } from \"@itwin/core-react\";\r\nimport { Text } from \"@itwin/itwinui-react\";\r\nimport { CursorPopup } from \"../cursor/cursorpopup/CursorPopup\";\r\nimport type { PopupContentType, PopupPropsBase } from \"./PopupManager\";\r\nimport { isReactContent, PopupManager } from \"./PopupManager\";\r\nimport { PositionPopup } from \"./PositionPopup\";\r\nimport { MessageDiv } from \"../messages/MessageSpan\";\r\nimport { Direction, PropertyValueRendererManager, ToolbarOpacitySetting, ToolbarPanelAlignment, ToolbarWithOverflow } from \"@itwin/components-react\";\r\n\r\n/** Props for defining a CardPopup editor\r\n * @beta */\r\nexport interface CardPopupProps extends PopupPropsBase {\r\n content: PopupContentType;\r\n title: string | PropertyRecord | undefined;\r\n items: CommonToolbarItem[] | undefined;\r\n relativePosition: RelativePosition;\r\n orientation: Orientation;\r\n onCancel: OnCancelFunc;\r\n onItemExecuted: OnItemExecutedFunc;\r\n}\r\n\r\n/** @internal */\r\ninterface CardPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for Input Editor\r\n * @beta\r\n */\r\nexport class CardPopup extends React.PureComponent<CardPopupProps, CardPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n private _handleKeyDown = (event: React.KeyboardEvent): void => {\r\n switch (event.key) {\r\n case SpecialKey.Escape:\r\n this._cancel();\r\n break;\r\n }\r\n };\r\n\r\n private _cancel() {\r\n // istanbul ignore else\r\n if (this.props.onCancel) {\r\n this.props.onCancel();\r\n }\r\n }\r\n\r\n public override render() {\r\n let point = PopupManager.getPopupPosition(this.props.el, this.props.pt, new Point(), this.state.size);\r\n const popupRect = CursorPopup.getPopupRect(point, this.props.offset, this.state.size, this.props.relativePosition);\r\n point = new Point(popupRect.left, popupRect.top);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n className={classnames(\"uifw-no-border\", \"uifw-card\")}\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel} onKeyDown={this._handleKeyDown}>\r\n <FocusTrap active={true} returnFocusOnDeactivate={true}>\r\n <Card content={this.props.content} title={this.props.title} items={this.props.items}\r\n onItemExecuted={this.props.onItemExecuted} />\r\n </FocusTrap>\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n\r\n/** Props defining a Card component\r\n * @beta */\r\nexport interface CardProps {\r\n content: PopupContentType;\r\n title: string | PropertyRecord | undefined;\r\n items: CommonToolbarItem[] | undefined;\r\n onItemExecuted: OnItemExecutedFunc;\r\n}\r\n\r\n/** Card component\r\n * @beta */\r\nexport function Card(props: CardProps) {\r\n let titleNode: React.ReactNode;\r\n // istanbul ignore else\r\n if (props.title) {\r\n if (typeof props.title === \"string\")\r\n titleNode = <Text variant=\"leading\">{props.title}</Text>;\r\n else {\r\n const propertyValueRendererManager = PropertyValueRendererManager.defaultManager;\r\n const titleValue = propertyValueRendererManager.render(props.title);\r\n titleNode = <Text variant=\"leading\">{titleValue}</Text>;\r\n }\r\n }\r\n\r\n const content = isReactContent(props.content) ? props.content.reactNode : <MessageDiv message={props.content} />;\r\n\r\n return (\r\n <>\r\n <div className=\"uifw-card-content\">\r\n {props.title &&\r\n <>\r\n {titleNode}\r\n <div className=\"uifw-card-gap\" />\r\n </>\r\n }\r\n {content}\r\n </div>\r\n {props.items &&\r\n <>\r\n <div className=\"uifw-card-separator\" />\r\n <ToolbarWithOverflow // eslint-disable-line deprecation/deprecation\r\n expandsTo={Direction.Bottom}\r\n panelAlignment={ToolbarPanelAlignment.Start}\r\n items={props.items}\r\n useDragInteraction={true}\r\n toolbarOpacitySetting={ToolbarOpacitySetting.Transparent}\r\n onItemExecuted={props.onItemExecuted}\r\n />\r\n </>\r\n }\r\n </>\r\n );\r\n}\r\n"]}
@@ -2,9 +2,10 @@
2
2
  * @module Popup
3
3
  */
4
4
  import * as React from "react";
5
- import { OnCancelFunc, RelativePosition } from "@itwin/appui-abstract";
6
- import { Orientation, Size } from "@itwin/core-react";
7
- import { PopupPropsBase } from "./PopupManager";
5
+ import type { OnCancelFunc, RelativePosition } from "@itwin/appui-abstract";
6
+ import type { Orientation } from "@itwin/core-react";
7
+ import { Size } from "@itwin/core-react";
8
+ import type { PopupPropsBase } from "./PopupManager";
8
9
  /** @alpha */
9
10
  export interface HTMLElementPopupProps extends PopupPropsBase {
10
11
  element: HTMLElement;
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLElementPopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/HTMLElementPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAuB,WAAW,EAAS,IAAI,EAAa,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAgB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI9D,aAAa;AACb,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,OAAO,EAAE,WAAW,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,gBAAgB;AAChB,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IACrG,gBAAgB;IAChB,SAAyB,KAAK;;MAE5B;IAEF,OAAO,CAAC,YAAY,CAIlB;IAEc,MAAM;CAiBvB"}
1
+ {"version":3,"file":"HTMLElementPopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/HTMLElementPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAA8B,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,C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AAO,CAAC;gBAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAClD,CAAC,CAAC;IAmBJ,CAAC;IAjBiB,MAAM;QACpB,IAAI,KAAK,GAAG,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtG,MAAM,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACnH,KAAK,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QAEjD,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAC/B,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,IAAI,CAAC,YAAY;YAE9B,oBAAC,mBAAmB,IAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;gBACtD,oBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CACvB,CACR,CACjB,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { OnCancelFunc, RelativePosition } from \"@itwin/appui-abstract\";\r\nimport { DivWithOutsideClick, Orientation, Point, Size, SizeProps } from \"@itwin/core-react\";\r\nimport { CursorPopup } from \"../cursor/cursorpopup/CursorPopup\";\r\nimport { PopupManager, PopupPropsBase } from \"./PopupManager\";\r\nimport { PositionPopup } from \"./PositionPopup\";\r\nimport { MessageDiv } from \"../messages/MessageSpan\";\r\n\r\n/** @alpha */\r\nexport interface HTMLElementPopupProps extends PopupPropsBase {\r\n element: HTMLElement;\r\n relativePosition: RelativePosition;\r\n orientation: Orientation;\r\n onCancel: OnCancelFunc;\r\n}\r\n\r\n/** @internal */\r\ninterface HTMLElementPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for HTMLElement\r\n * @alpha\r\n */\r\nexport class HTMLElementPopup extends React.PureComponent<HTMLElementPopupProps, HTMLElementPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n public override render() {\r\n let point = PopupManager.getPopupPosition(this.props.el, this.props.pt, new Point(), this.state.size);\r\n const popupRect = CursorPopup.getPopupRect(point, this.props.offset, this.state.size, this.props.relativePosition);\r\n point = new Point(popupRect.left, popupRect.top);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n className=\"uifw-no-border\"\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel}>\r\n <MessageDiv message={this.props.element} />\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"HTMLElementPopup.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/HTMLElementPopup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAA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AC,KAAK,CAAC,EAAE,EAC/B,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,IAAI,CAAC,YAAY;YAE9B,oBAAC,mBAAmB,IAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;gBACtD,oBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CACvB,CACR,CACjB,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport type { OnCancelFunc, RelativePosition } from \"@itwin/appui-abstract\";\r\nimport type { Orientation, SizeProps } from \"@itwin/core-react\";\r\nimport { DivWithOutsideClick, Point, Size } from \"@itwin/core-react\";\r\nimport { CursorPopup } from \"../cursor/cursorpopup/CursorPopup\";\r\nimport type { PopupPropsBase } from \"./PopupManager\";\r\nimport { PopupManager } from \"./PopupManager\";\r\nimport { PositionPopup } from \"./PositionPopup\";\r\nimport { MessageDiv } from \"../messages/MessageSpan\";\r\n\r\n/** @alpha */\r\nexport interface HTMLElementPopupProps extends PopupPropsBase {\r\n element: HTMLElement;\r\n relativePosition: RelativePosition;\r\n orientation: Orientation;\r\n onCancel: OnCancelFunc;\r\n}\r\n\r\n/** @internal */\r\ninterface HTMLElementPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for HTMLElement\r\n * @alpha\r\n */\r\nexport class HTMLElementPopup extends React.PureComponent<HTMLElementPopupProps, HTMLElementPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n public override render() {\r\n let point = PopupManager.getPopupPosition(this.props.el, this.props.pt, new Point(), this.state.size);\r\n const popupRect = CursorPopup.getPopupRect(point, this.props.offset, this.state.size, this.props.relativePosition);\r\n point = new Point(popupRect.left, popupRect.top);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n className=\"uifw-no-border\"\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel}>\r\n <MessageDiv message={this.props.element} />\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n"]}
@@ -2,10 +2,10 @@
2
2
  * @module Popup
3
3
  */
4
4
  import * as React from "react";
5
- import { OnCancelFunc, OnValueCommitFunc, PropertyRecord } from "@itwin/appui-abstract";
6
- import { PropertyUpdatedArgs } from "@itwin/components-react";
5
+ import type { OnCancelFunc, OnValueCommitFunc, PropertyRecord } from "@itwin/appui-abstract";
6
+ import type { PropertyUpdatedArgs } from "@itwin/components-react";
7
7
  import { Size } from "@itwin/core-react";
8
- import { PopupPropsBase } from "./PopupManager";
8
+ import type { PopupPropsBase } from "./PopupManager";
9
9
  /** @beta */
10
10
  export declare class InputEditorCommitHandler {
11
11
  readonly onCommit: OnValueCommitFunc;
@@ -1 +1 @@
1
- {"version":3,"file":"InputEditorPopup.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/InputEditorPopup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAc,cAAc,EAAuB,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAmB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAuB,IAAI,EAAa,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAgB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG9D,YAAY;AACZ,qBAAa,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B,SAAQ,KAAK,CAAC,aAA2D;IAAvG;;QACE,gBAAgB;QACS,UAAK,GAAG;YAC/B,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACvB,CAAC;QAEM,iBAAY,GAAG,CAAC,OAAkB,EAAE,EAAE;YAC5C,uBAAuB;YACvB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;gBAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAClD,CAAC,CAAC;IAuBJ,CAAC;IArBC,gBAAgB;IACA,MAAM;QACpB,MAAM,KAAK,GAAG,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAE9G,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAC/B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,IAAI,CAAC,YAAY;YAE9B,oBAAC,mBAAmB,IAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;gBACtD,oBAAC,oBAAoB;oBACnB,oBAAC,eAAe,IACd,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACjC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,QAAQ,EAAE,IAAI,GAAI,CACC,CACH,CACR,CACjB,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { OnCancelFunc, OnValueCommitFunc, Primitives, PropertyRecord, PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport { EditorContainer, PropertyUpdatedArgs } from \"@itwin/components-react\";\r\nimport { DivWithOutsideClick, Size, SizeProps } from \"@itwin/core-react\";\r\nimport { PopupManager, PopupPropsBase } from \"./PopupManager\";\r\nimport { PositionPopup, PositionPopupContent } from \"./PositionPopup\";\r\n\r\n/** @beta */\r\nexport class InputEditorCommitHandler {\r\n constructor(\r\n public readonly onCommit: OnValueCommitFunc,\r\n ) { }\r\n\r\n public handleCommit = (args: PropertyUpdatedArgs) => {\r\n let newValue: Primitives.Value = 0;\r\n // istanbul ignore else\r\n if (args.newValue.valueFormat === PropertyValueFormat.Primitive && args.newValue.value !== undefined) {\r\n newValue = args.newValue.value;\r\n }\r\n this.onCommit(newValue);\r\n };\r\n}\r\n\r\n/** Props for popup editor\r\n * @beta */\r\nexport interface InputEditorPopupProps extends PopupPropsBase {\r\n record: PropertyRecord;\r\n onCancel: OnCancelFunc;\r\n commitHandler: InputEditorCommitHandler;\r\n}\r\n\r\n/** @internal */\r\ninterface InputEditorPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for Input Editor\r\n * @alpha\r\n */\r\nexport class InputEditorPopup extends React.PureComponent<InputEditorPopupProps, InputEditorPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n /** @internal */\r\n public override render() {\r\n const point = PopupManager.getPopupPosition(this.props.el, this.props.pt, this.props.offset, this.state.size);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel}>\r\n <PositionPopupContent>\r\n <EditorContainer\r\n propertyRecord={this.props.record}\r\n onCommit={this.props.commitHandler.handleCommit}\r\n onCancel={this.props.onCancel}\r\n setFocus={true} />\r\n </PositionPopupContent>\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"InputEditorPopup.js","sourceRoot":"","sources":["../../../../src/appui-react/popup/InputEditorPopup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEtE,YAAY;AACZ,MAAM,OAAO,wBAAwB;IACnC,YACkB,QAA2B;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;QAGtC,iBAAY,GAAG,CAAC,IAAyB,EAAE,EAAE;YAClD,IAAI,QAAQ,GAAqB,CAAC,CAAC;YACnC,uBAAuB;YACvB,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,KAAK,mBAAmB,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;gBACpG,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;aAChC;YACD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1B,CAAC,CAAC;IATE,CAAC;CAUN;AAeD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK,CAAC,aAA2D;IAAvG;;QACE,gBAAgB;QACS,UAAK,GAAG;YAC/B,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACvB,CAAC;QAEM,iBAAY,GAAG,CAAC,OAAkB,EAAE,EAAE;YAC5C,uBAAuB;YACvB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;gBAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAClD,CAAC,CAAC;IAuBJ,CAAC;IArBC,gBAAgB;IACA,MAAM;QACpB,MAAM,KAAK,GAAG,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAE9G,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAC/B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,IAAI,CAAC,YAAY;YAE9B,oBAAC,mBAAmB,IAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;gBACtD,oBAAC,oBAAoB;oBACnB,oBAAC,eAAe,IACd,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACjC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,QAAQ,EAAE,IAAI,GAAI,CACC,CACH,CACR,CACjB,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport type { OnCancelFunc, OnValueCommitFunc, Primitives, PropertyRecord} from \"@itwin/appui-abstract\";\r\nimport { PropertyValueFormat } from \"@itwin/appui-abstract\";\r\nimport type { PropertyUpdatedArgs } from \"@itwin/components-react\";\r\nimport { EditorContainer } from \"@itwin/components-react\";\r\nimport type { SizeProps } from \"@itwin/core-react\";\r\nimport { DivWithOutsideClick, Size } from \"@itwin/core-react\";\r\nimport type { PopupPropsBase } from \"./PopupManager\";\r\nimport { PopupManager } from \"./PopupManager\";\r\nimport { PositionPopup, PositionPopupContent } from \"./PositionPopup\";\r\n\r\n/** @beta */\r\nexport class InputEditorCommitHandler {\r\n constructor(\r\n public readonly onCommit: OnValueCommitFunc,\r\n ) { }\r\n\r\n public handleCommit = (args: PropertyUpdatedArgs) => {\r\n let newValue: Primitives.Value = 0;\r\n // istanbul ignore else\r\n if (args.newValue.valueFormat === PropertyValueFormat.Primitive && args.newValue.value !== undefined) {\r\n newValue = args.newValue.value;\r\n }\r\n this.onCommit(newValue);\r\n };\r\n}\r\n\r\n/** Props for popup editor\r\n * @beta */\r\nexport interface InputEditorPopupProps extends PopupPropsBase {\r\n record: PropertyRecord;\r\n onCancel: OnCancelFunc;\r\n commitHandler: InputEditorCommitHandler;\r\n}\r\n\r\n/** @internal */\r\ninterface InputEditorPopupState {\r\n size: Size;\r\n}\r\n\r\n/** Popup component for Input Editor\r\n * @alpha\r\n */\r\nexport class InputEditorPopup extends React.PureComponent<InputEditorPopupProps, InputEditorPopupState> {\r\n /** @internal */\r\n public override readonly state = {\r\n size: new Size(-1, -1),\r\n };\r\n\r\n private _onSizeKnown = (newSize: SizeProps) => {\r\n // istanbul ignore else\r\n if (!this.state.size.equals(newSize))\r\n this.setState({ size: Size.create(newSize) });\r\n };\r\n\r\n /** @internal */\r\n public override render() {\r\n const point = PopupManager.getPopupPosition(this.props.el, this.props.pt, this.props.offset, this.state.size);\r\n\r\n return (\r\n <PositionPopup key={this.props.id}\r\n point={point}\r\n onSizeKnown={this._onSizeKnown}\r\n >\r\n <DivWithOutsideClick onOutsideClick={this.props.onCancel}>\r\n <PositionPopupContent>\r\n <EditorContainer\r\n propertyRecord={this.props.record}\r\n onCommit={this.props.commitHandler.handleCommit}\r\n onCancel={this.props.onCancel}\r\n setFocus={true} />\r\n </PositionPopupContent>\r\n </DivWithOutsideClick>\r\n </PositionPopup>\r\n );\r\n }\r\n}\r\n"]}
@@ -3,8 +3,8 @@
3
3
  */
4
4
  /// <reference types="react" />
5
5
  import "./KeyinPalettePanel.scss";
6
- import { OnItemExecutedFunc } from "@itwin/appui-abstract";
7
- import { KeyinEntry } from "../uiadmin/FrameworkUiAdmin";
6
+ import type { OnItemExecutedFunc } from "@itwin/appui-abstract";
7
+ import type { KeyinEntry } from "../uiadmin/FrameworkUiAdmin";
8
8
  /** @internal */
9
9
  export declare function clearKeyinPaletteHistory(): void;
10
10
  interface KeyinPalettePanelProps {
@@ -1 +1 @@
1
- {"version":3,"file":"KeyinPalettePanel.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePanel.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAKH,OAAO,0BAA0B,CAAC;AAIlC,OAAO,EAAgB,kBAAkB,EAAc,MAAM,uBAAuB,CAAC;AAGrF,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAMzD,gBAAgB;AAChB,wBAAgB,wBAAwB,SAOvC;AAED,UAAU,sBAAsB;IAC9B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,oBAAwB,EAAE,EAAE,sBAAsB,eA4O7H"}
1
+ {"version":3,"file":"KeyinPalettePanel.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/popup/KeyinPalettePanel.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAKH,OAAO,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EAAE,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAI/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAM9D,gBAAgB;AAChB,wBAAgB,wBAAwB,SAOvC;AAED,UAAU,sBAAsB;IAC9B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,oBAAwB,EAAE,EAAE,sBAAsB,eA4O7H"}
@@ -142,6 +142,7 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
142
142
  return undefined;
143
143
  };
144
144
  const handleKeypressOnKeyinsList = React.useCallback(async (event) => {
145
+ var _a, _b;
145
146
  const key = event.key;
146
147
  // built into listbox a "Space" key will trigger the selection of a entry so if an Enter key is pressed
147
148
  // assume user wants to execute the entry.
@@ -149,7 +150,7 @@ export function KeyinPalettePanel({ keyins, onKeyinExecuted, historyLength: allo
149
150
  if (key === SpecialKey.Enter) {
150
151
  event.preventDefault();
151
152
  // istanbul ignore next
152
- const keyinToSend = getKeyinFromListboxValue(event.currentTarget?.dataset?.focusvalue);
153
+ const keyinToSend = getKeyinFromListboxValue((_b = (_a = event.currentTarget) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.focusvalue);
153
154
  // istanbul ignore else
154
155
  if (keyinToSend) {
155
156
  if (event.ctrlKey)