@itwin/appui-abstract 4.0.0-dev.2 → 4.0.0-dev.32

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 (339) hide show
  1. package/CHANGELOG.md +104 -3
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  4. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +1 -1
  5. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +79 -78
  6. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  7. package/lib/cjs/appui-abstract/UiAdmin.d.ts +221 -221
  8. package/lib/cjs/appui-abstract/UiAdmin.js +224 -224
  9. package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
  10. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +113 -110
  11. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +1 -1
  12. package/lib/cjs/appui-abstract/UiItemsManager.js +193 -198
  13. package/lib/cjs/appui-abstract/UiItemsManager.js.map +1 -1
  14. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +29 -27
  15. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +1 -1
  16. package/lib/cjs/appui-abstract/UiItemsProvider.js +9 -9
  17. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +1 -1
  18. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +91 -83
  19. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  20. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +70 -64
  21. package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +1 -1
  22. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
  23. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts.map +1 -1
  24. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +133 -133
  25. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  26. package/lib/cjs/appui-abstract/common/KeyboardKey.d.ts +51 -51
  27. package/lib/cjs/appui-abstract/common/KeyboardKey.js +63 -63
  28. package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
  29. package/lib/cjs/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  30. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js +9 -9
  31. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  32. package/lib/cjs/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  33. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +108 -108
  34. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  35. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  36. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +67 -67
  37. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  38. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  39. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +66 -66
  40. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  41. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  42. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +175 -175
  43. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  44. package/lib/cjs/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  45. package/lib/cjs/appui-abstract/items/AbstractItemProps.js +9 -9
  46. package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
  47. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
  48. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js +9 -9
  49. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  50. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
  51. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js +9 -9
  52. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  53. package/lib/cjs/appui-abstract/items/BadgeType.d.ts +14 -14
  54. package/lib/cjs/appui-abstract/items/BadgeType.js +22 -22
  55. package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
  56. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
  57. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +60 -60
  58. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  59. package/lib/cjs/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
  60. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +62 -62
  61. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  62. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +11 -10
  63. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +1 -1
  64. package/lib/cjs/appui-abstract/items/ProvidedItem.js +9 -9
  65. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +1 -1
  66. package/lib/cjs/appui-abstract/items/RelativePosition.d.ts +18 -18
  67. package/lib/cjs/appui-abstract/items/RelativePosition.js +26 -26
  68. package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
  69. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +16 -15
  70. package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +1 -1
  71. package/lib/cjs/appui-abstract/items/StageUsage.js +24 -23
  72. package/lib/cjs/appui-abstract/items/StageUsage.js.map +1 -1
  73. package/lib/cjs/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  74. package/lib/cjs/appui-abstract/notification/MessagePresenter.js +24 -24
  75. package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
  76. package/lib/cjs/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  77. package/lib/cjs/appui-abstract/notification/MessageSeverity.js +23 -23
  78. package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
  79. package/lib/cjs/appui-abstract/properties/Description.d.ts +127 -127
  80. package/lib/cjs/appui-abstract/properties/Description.js +196 -196
  81. package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
  82. package/lib/cjs/appui-abstract/properties/EditorParams.d.ts +260 -260
  83. package/lib/cjs/appui-abstract/properties/EditorParams.js +106 -106
  84. package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
  85. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  86. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js +9 -9
  87. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  88. package/lib/cjs/appui-abstract/properties/Record.d.ts +57 -57
  89. package/lib/cjs/appui-abstract/properties/Record.js +78 -78
  90. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  91. package/lib/cjs/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  92. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js +30 -30
  93. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  94. package/lib/cjs/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  95. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js +39 -39
  96. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  97. package/lib/cjs/appui-abstract/properties/Value.d.ts +49 -49
  98. package/lib/cjs/appui-abstract/properties/Value.js +20 -20
  99. package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
  100. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
  101. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +48 -48
  102. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  103. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +128 -116
  104. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  105. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +87 -81
  106. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
  107. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
  108. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  109. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +135 -135
  110. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  111. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +121 -118
  112. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  113. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +64 -62
  114. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  115. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  116. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +1 -1
  117. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +235 -235
  118. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  119. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  120. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +51 -51
  121. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  122. package/lib/cjs/appui-abstract/utils/PointProps.d.ts +10 -10
  123. package/lib/cjs/appui-abstract/utils/PointProps.js +9 -9
  124. package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
  125. package/lib/cjs/appui-abstract/utils/UiError.d.ts +12 -12
  126. package/lib/cjs/appui-abstract/utils/UiError.js +22 -22
  127. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  128. package/lib/cjs/appui-abstract/utils/UiEvent.d.ts +9 -9
  129. package/lib/cjs/appui-abstract/utils/UiEvent.js +17 -17
  130. package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
  131. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  132. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +131 -131
  133. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  134. package/lib/cjs/appui-abstract/utils/callbacks.d.ts +20 -20
  135. package/lib/cjs/appui-abstract/utils/callbacks.js +9 -9
  136. package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
  137. package/lib/cjs/appui-abstract/utils/filter/charCode.d.ts +416 -416
  138. package/lib/cjs/appui-abstract/utils/filter/charCode.js +6 -6
  139. package/lib/cjs/appui-abstract/utils/filter/charCode.js.map +1 -1
  140. package/lib/cjs/appui-abstract/utils/filter/filters.d.ts +98 -98
  141. package/lib/cjs/appui-abstract/utils/filter/filters.js +709 -709
  142. package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
  143. package/lib/cjs/appui-abstract/utils/filter/map.d.ts +59 -59
  144. package/lib/cjs/appui-abstract/utils/filter/map.js +402 -404
  145. package/lib/cjs/appui-abstract/utils/filter/map.js.map +1 -1
  146. package/lib/cjs/appui-abstract/utils/filter/strings.d.ts +20 -20
  147. package/lib/cjs/appui-abstract/utils/filter/strings.js +78 -78
  148. package/lib/cjs/appui-abstract/utils/filter/strings.js.map +1 -1
  149. package/lib/cjs/appui-abstract/utils/isLetter.d.ts +9 -9
  150. package/lib/cjs/appui-abstract/utils/isLetter.js +19 -19
  151. package/lib/cjs/appui-abstract/utils/isLetter.js.map +1 -1
  152. package/lib/cjs/appui-abstract/utils/misc.d.ts +11 -11
  153. package/lib/cjs/appui-abstract/utils/misc.js +36 -36
  154. package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
  155. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -68
  156. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +1 -1
  157. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +9 -9
  158. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  159. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +36 -19
  160. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  161. package/lib/cjs/appui-abstract/widget/StagePanel.js +46 -28
  162. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +1 -1
  163. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +19 -18
  164. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +1 -1
  165. package/lib/cjs/appui-abstract/widget/WidgetState.js +27 -26
  166. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +1 -1
  167. package/lib/cjs/appui-abstract.d.ts +103 -105
  168. package/lib/cjs/appui-abstract.d.ts.map +1 -1
  169. package/lib/cjs/appui-abstract.js +119 -121
  170. package/lib/cjs/appui-abstract.js.map +1 -1
  171. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  172. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +1 -1
  173. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +75 -74
  174. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  175. package/lib/esm/appui-abstract/UiAdmin.d.ts +221 -221
  176. package/lib/esm/appui-abstract/UiAdmin.js +219 -219
  177. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  178. package/lib/esm/appui-abstract/UiItemsManager.d.ts +113 -110
  179. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +1 -1
  180. package/lib/esm/appui-abstract/UiItemsManager.js +189 -194
  181. package/lib/esm/appui-abstract/UiItemsManager.js.map +1 -1
  182. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +29 -27
  183. package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +1 -1
  184. package/lib/esm/appui-abstract/UiItemsProvider.js +8 -8
  185. package/lib/esm/appui-abstract/UiItemsProvider.js.map +1 -1
  186. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +91 -83
  187. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  188. package/lib/esm/appui-abstract/backstage/BackstageItem.js +64 -58
  189. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +1 -1
  190. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
  191. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +1 -1
  192. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +129 -129
  193. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  194. package/lib/esm/appui-abstract/common/KeyboardKey.d.ts +51 -51
  195. package/lib/esm/appui-abstract/common/KeyboardKey.js +59 -59
  196. package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
  197. package/lib/esm/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  198. package/lib/esm/appui-abstract/content/ContentLayoutProps.js +8 -8
  199. package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  200. package/lib/esm/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  201. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +104 -104
  202. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  203. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  204. package/lib/esm/appui-abstract/dialogs/DialogItem.js +63 -63
  205. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  206. package/lib/esm/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  207. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +61 -61
  208. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  209. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  210. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +170 -170
  211. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  212. package/lib/esm/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  213. package/lib/esm/appui-abstract/items/AbstractItemProps.js +8 -8
  214. package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
  215. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
  216. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js +8 -8
  217. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  218. package/lib/esm/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
  219. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js +8 -8
  220. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  221. package/lib/esm/appui-abstract/items/BadgeType.d.ts +14 -14
  222. package/lib/esm/appui-abstract/items/BadgeType.js +19 -19
  223. package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
  224. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
  225. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +56 -56
  226. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  227. package/lib/esm/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
  228. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +58 -58
  229. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  230. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +11 -10
  231. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +1 -1
  232. package/lib/esm/appui-abstract/items/ProvidedItem.js +8 -8
  233. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +1 -1
  234. package/lib/esm/appui-abstract/items/RelativePosition.d.ts +18 -18
  235. package/lib/esm/appui-abstract/items/RelativePosition.js +23 -23
  236. package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
  237. package/lib/esm/appui-abstract/items/StageUsage.d.ts +16 -15
  238. package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +1 -1
  239. package/lib/esm/appui-abstract/items/StageUsage.js +21 -20
  240. package/lib/esm/appui-abstract/items/StageUsage.js.map +1 -1
  241. package/lib/esm/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  242. package/lib/esm/appui-abstract/notification/MessagePresenter.js +21 -21
  243. package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
  244. package/lib/esm/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  245. package/lib/esm/appui-abstract/notification/MessageSeverity.js +20 -20
  246. package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
  247. package/lib/esm/appui-abstract/properties/Description.d.ts +127 -127
  248. package/lib/esm/appui-abstract/properties/Description.js +192 -192
  249. package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
  250. package/lib/esm/appui-abstract/properties/EditorParams.d.ts +260 -260
  251. package/lib/esm/appui-abstract/properties/EditorParams.js +97 -97
  252. package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
  253. package/lib/esm/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  254. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js +8 -8
  255. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  256. package/lib/esm/appui-abstract/properties/Record.d.ts +57 -57
  257. package/lib/esm/appui-abstract/properties/Record.js +74 -74
  258. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  259. package/lib/esm/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  260. package/lib/esm/appui-abstract/properties/StandardEditorNames.js +27 -27
  261. package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  262. package/lib/esm/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  263. package/lib/esm/appui-abstract/properties/StandardTypeNames.js +36 -36
  264. package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  265. package/lib/esm/appui-abstract/properties/Value.d.ts +49 -49
  266. package/lib/esm/appui-abstract/properties/Value.js +17 -17
  267. package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
  268. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
  269. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +44 -44
  270. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  271. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +128 -116
  272. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  273. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +80 -74
  274. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
  275. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
  276. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  277. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +131 -131
  278. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  279. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +121 -118
  280. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  281. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +60 -58
  282. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  283. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  284. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +1 -1
  285. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +231 -231
  286. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  287. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  288. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +47 -47
  289. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  290. package/lib/esm/appui-abstract/utils/PointProps.d.ts +10 -10
  291. package/lib/esm/appui-abstract/utils/PointProps.js +8 -8
  292. package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
  293. package/lib/esm/appui-abstract/utils/UiError.d.ts +12 -12
  294. package/lib/esm/appui-abstract/utils/UiError.js +18 -18
  295. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  296. package/lib/esm/appui-abstract/utils/UiEvent.d.ts +9 -9
  297. package/lib/esm/appui-abstract/utils/UiEvent.js +13 -13
  298. package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
  299. package/lib/esm/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  300. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +126 -126
  301. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  302. package/lib/esm/appui-abstract/utils/callbacks.d.ts +20 -20
  303. package/lib/esm/appui-abstract/utils/callbacks.js +8 -8
  304. package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
  305. package/lib/esm/appui-abstract/utils/filter/charCode.d.ts +416 -416
  306. package/lib/esm/appui-abstract/utils/filter/charCode.js +5 -5
  307. package/lib/esm/appui-abstract/utils/filter/charCode.js.map +1 -1
  308. package/lib/esm/appui-abstract/utils/filter/filters.d.ts +98 -98
  309. package/lib/esm/appui-abstract/utils/filter/filters.js +694 -694
  310. package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
  311. package/lib/esm/appui-abstract/utils/filter/map.d.ts +59 -59
  312. package/lib/esm/appui-abstract/utils/filter/map.js +397 -399
  313. package/lib/esm/appui-abstract/utils/filter/map.js.map +1 -1
  314. package/lib/esm/appui-abstract/utils/filter/strings.d.ts +20 -20
  315. package/lib/esm/appui-abstract/utils/filter/strings.js +70 -70
  316. package/lib/esm/appui-abstract/utils/filter/strings.js.map +1 -1
  317. package/lib/esm/appui-abstract/utils/isLetter.d.ts +9 -9
  318. package/lib/esm/appui-abstract/utils/isLetter.js +15 -15
  319. package/lib/esm/appui-abstract/utils/isLetter.js.map +1 -1
  320. package/lib/esm/appui-abstract/utils/misc.d.ts +11 -11
  321. package/lib/esm/appui-abstract/utils/misc.js +31 -31
  322. package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
  323. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -68
  324. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +1 -1
  325. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +8 -8
  326. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  327. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +36 -19
  328. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  329. package/lib/esm/appui-abstract/widget/StagePanel.js +43 -25
  330. package/lib/esm/appui-abstract/widget/StagePanel.js.map +1 -1
  331. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +19 -18
  332. package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +1 -1
  333. package/lib/esm/appui-abstract/widget/WidgetState.js +24 -23
  334. package/lib/esm/appui-abstract/widget/WidgetState.js.map +1 -1
  335. package/lib/esm/appui-abstract.d.ts +103 -105
  336. package/lib/esm/appui-abstract.d.ts.map +1 -1
  337. package/lib/esm/appui-abstract.js +107 -109
  338. package/lib/esm/appui-abstract.js.map +1 -1
  339. package/package.json +18 -8
@@ -1,119 +1,122 @@
1
- /** @packageDocumentation
2
- * @module Toolbar
3
- */
4
- import { BadgeType } from "../items/BadgeType";
5
- import { ConditionalBooleanValue } from "../items/ConditionalBooleanValue";
6
- import { ConditionalStringValue } from "../items/ConditionalStringValue";
7
- import { ProvidedItem } from "../items/ProvidedItem";
8
- /** Used to specify the usage of the toolbar which determine the toolbar position.
9
- * @public
10
- */
11
- export declare enum ToolbarUsage {
12
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
13
- ContentManipulation = 0,
14
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
15
- ViewNavigation = 1
16
- }
17
- /** Used to specify the orientation of the toolbar.
18
- * @public
19
- */
20
- export declare enum ToolbarOrientation {
21
- /** Horizontal toolbar. */
22
- Horizontal = 0,
23
- /** Vertical toolbar. */
24
- Vertical = 1
25
- }
26
- /** Describes the data needed to insert a UI items into an existing set of UI items.
27
- * @public
28
- */
29
- export interface ToolbarItem extends ProvidedItem {
30
- /** can be used by application to store miscellaneous data. */
31
- readonly applicationData?: any;
32
- /** Describes badge. Renders no badge if not specified. */
33
- readonly badgeType?: BadgeType;
34
- /** Optional description */
35
- readonly description?: string | ConditionalStringValue;
36
- /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
37
- readonly id: string;
38
- /** optional data to used by item implementor. */
39
- readonly internalData?: Map<string, any>;
40
- /** Defines if the item is active (shown with an active stripe/bar). */
41
- readonly isActive?: boolean;
42
- /** Describes if the item is visible or hidden. The default is for the item to be visible. */
43
- readonly isHidden?: boolean | ConditionalBooleanValue;
44
- /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
45
- readonly isDisabled?: boolean | ConditionalBooleanValue;
46
- /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars
47
- * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars
48
- * the icon is usually changed to denote the state of a toggle.
49
- */
50
- readonly isPressed?: boolean;
51
- /** Specifies the item's grouping value. Items are sorted by group and then item priority. When
52
- * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This
53
- * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.
54
- */
55
- readonly groupPriority?: number;
56
- /** Priority within a toolbar or group. */
57
- readonly itemPriority: number;
58
- /** Optional parent tool group to add tool. */
59
- readonly parentToolGroupId?: string;
60
- }
61
- /** Describes the data needed to insert an action button into a toolbar.
62
- * @public
63
- */
64
- export interface ActionButton extends ToolbarItem {
65
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
66
- readonly icon: string | ConditionalStringValue;
67
- /** label, shown as tool tip on a button or an item label in a group. */
68
- readonly label: string | ConditionalStringValue;
69
- /** function to run when the button is pressed. */
70
- readonly execute: () => void;
71
- }
72
- /** Describes the data needed to insert a group button into a toolbar.
73
- * @public
74
- */
75
- export interface GroupButton extends ToolbarItem {
76
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
77
- readonly icon: string | ConditionalStringValue;
78
- /** label, shown as tool tip on group button or a group button label in a group panel. */
79
- readonly label: string | ConditionalStringValue;
80
- /** label shown as the title in at top of group panel. */
81
- readonly panelLabel?: string | ConditionalStringValue;
82
- /** children of the group */
83
- readonly items: ReadonlyArray<ActionButton | GroupButton>;
84
- }
85
- /** Describes the data needed to insert a custom button into a toolbar.
86
- * @public
87
- */
88
- export interface CustomButtonDefinition extends ToolbarItem {
89
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
90
- readonly icon?: string | ConditionalStringValue;
91
- /** label, shown as tool tip on group button or a group button label in a group panel. */
92
- readonly label?: string | ConditionalStringValue;
93
- /** parameter that marks data as being a custom definition. */
94
- readonly isCustom: true;
95
- }
96
- /** Any Button Type that can be inserted into a toolbar.
97
- * @public
98
- */
99
- export declare type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;
100
- /** Type for Toolbar Item Id
101
- * @public
102
- */
103
- export declare type ToolbarItemId = CommonToolbarItem["id"];
104
- /** Helper class to create Abstract StatusBar Item definitions.
105
- * @public
106
- */
107
- export declare class ToolbarItemUtilities {
108
- /** Creates an Action Button */
109
- static createActionButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton> | undefined) => ActionButton;
110
- /** Creates a Group button */
111
- static createGroupButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton> | undefined) => GroupButton;
112
- /** ActionButton type guard. */
113
- static isActionButton(item: CommonToolbarItem): item is ActionButton;
114
- /** GroupButton type guard. */
115
- static isGroupButton(item: CommonToolbarItem): item is GroupButton;
116
- /** CustomButtonDefinition type guard. */
117
- static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition;
118
- }
1
+ /** @packageDocumentation
2
+ * @module Toolbar
3
+ */
4
+ import { BadgeType } from "../items/BadgeType";
5
+ import { ConditionalBooleanValue } from "../items/ConditionalBooleanValue";
6
+ import { ConditionalStringValue } from "../items/ConditionalStringValue";
7
+ import { ProvidedItem } from "../items/ProvidedItem";
8
+ /** Used to specify the usage of the toolbar which determine the toolbar position.
9
+ * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
10
+ * @public
11
+ */
12
+ export declare enum ToolbarUsage {
13
+ /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
14
+ ContentManipulation = 0,
15
+ /** Manipulate view/camera - in ninezone this is in top right of content area. */
16
+ ViewNavigation = 1
17
+ }
18
+ /** Used to specify the orientation of the toolbar.
19
+ * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
20
+ * @public
21
+ */
22
+ export declare enum ToolbarOrientation {
23
+ /** Horizontal toolbar. */
24
+ Horizontal = 0,
25
+ /** Vertical toolbar. */
26
+ Vertical = 1
27
+ }
28
+ /** Describes the data needed to insert a UI items into an existing set of UI items.
29
+ * @public
30
+ */
31
+ export interface ToolbarItem extends ProvidedItem {
32
+ /** can be used by application to store miscellaneous data. */
33
+ readonly applicationData?: any;
34
+ /** Describes badge. Renders no badge if not specified. */
35
+ readonly badgeType?: BadgeType;
36
+ /** Optional description */
37
+ readonly description?: string | ConditionalStringValue;
38
+ /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
39
+ readonly id: string;
40
+ /** optional data to used by item implementor. */
41
+ readonly internalData?: Map<string, any>;
42
+ /** Defines if the item is active (shown with an active stripe/bar). */
43
+ readonly isActive?: boolean;
44
+ /** Describes if the item is visible or hidden. The default is for the item to be visible. */
45
+ readonly isHidden?: boolean | ConditionalBooleanValue;
46
+ /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
47
+ readonly isDisabled?: boolean | ConditionalBooleanValue;
48
+ /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars
49
+ * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars
50
+ * the icon is usually changed to denote the state of a toggle.
51
+ */
52
+ readonly isPressed?: boolean;
53
+ /** Specifies the item's grouping value. Items are sorted by group and then item priority. When
54
+ * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This
55
+ * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.
56
+ */
57
+ readonly groupPriority?: number;
58
+ /** Priority within a toolbar or group. */
59
+ readonly itemPriority: number;
60
+ /** Optional parent tool group to add tool. */
61
+ readonly parentToolGroupId?: string;
62
+ }
63
+ /** Describes the data needed to insert an action button into a toolbar.
64
+ * @public
65
+ */
66
+ export interface ActionButton extends ToolbarItem {
67
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
68
+ readonly icon: string | ConditionalStringValue;
69
+ /** label, shown as tool tip on a button or an item label in a group. */
70
+ readonly label: string | ConditionalStringValue;
71
+ /** function to run when the button is pressed. */
72
+ readonly execute: () => void;
73
+ }
74
+ /** Describes the data needed to insert a group button into a toolbar.
75
+ * @public
76
+ */
77
+ export interface GroupButton extends ToolbarItem {
78
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
79
+ readonly icon: string | ConditionalStringValue;
80
+ /** label, shown as tool tip on group button or a group button label in a group panel. */
81
+ readonly label: string | ConditionalStringValue;
82
+ /** label shown as the title in at top of group panel. */
83
+ readonly panelLabel?: string | ConditionalStringValue;
84
+ /** children of the group */
85
+ readonly items: ReadonlyArray<ActionButton | GroupButton>;
86
+ }
87
+ /** Describes the data needed to insert a custom button into a toolbar.
88
+ * @public
89
+ */
90
+ export interface CustomButtonDefinition extends ToolbarItem {
91
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
92
+ readonly icon?: string | ConditionalStringValue;
93
+ /** label, shown as tool tip on group button or a group button label in a group panel. */
94
+ readonly label?: string | ConditionalStringValue;
95
+ /** parameter that marks data as being a custom definition. */
96
+ readonly isCustom: true;
97
+ }
98
+ /** Any Button Type that can be inserted into a toolbar.
99
+ * @public
100
+ */
101
+ export declare type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;
102
+ /** Type for Toolbar Item Id
103
+ * @deprecated in 3.6. Please use `ToolbarItem["id"]` from @itwin/appui-react.
104
+ * @public
105
+ */
106
+ export declare type ToolbarItemId = CommonToolbarItem["id"];
107
+ /** Helper class to create Abstract StatusBar Item definitions.
108
+ * @public
109
+ */
110
+ export declare class ToolbarItemUtilities {
111
+ /** Creates an Action Button */
112
+ static createActionButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton> | undefined) => ActionButton;
113
+ /** Creates a Group button. */
114
+ static createGroupButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton> | undefined) => GroupButton;
115
+ /** ActionButton type guard. */
116
+ static isActionButton(item: CommonToolbarItem): item is ActionButton;
117
+ /** GroupButton type guard. */
118
+ static isGroupButton(item: CommonToolbarItem): item is GroupButton;
119
+ /** CustomButtonDefinition type guard. */
120
+ static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition;
121
+ }
119
122
  //# sourceMappingURL=ToolbarItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAA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AC,KAAK,EAAE,aAAa,CAAC,YAAY,GAAG,WAAW,CAAC,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,qHAAqH;IACrH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IAChD,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACjD,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,oBAAY,iBAAiB,GAAG,YAAY,GAAG,WAAW,GAAG,sBAAsB,CAAC;AAEpF;;;GAGG;AACH,oBAAY,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAEpD;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,+BAA+B;IAC/B,OAAc,kBAAkB,OAAQ,MAAM,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,SAAS,MAAM,GAAG,sBAAsB,WAAW,MAAM,IAAI,oDAAsC,YAAY,CAKvN;IAEH,8BAA8B;IAC9B,OAAc,iBAAiB,OAAQ,MAAM,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,SAAS,MAAM,GAAG,sBAAsB,SAAS,cAAc,YAAY,GAAG,WAAW,CAAC,mDAAqC,WAAW,CAKjP;IAEH,+BAA+B;WACjB,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,YAAY;IAI3E,8BAA8B;WAChB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,WAAW;IAIzE,yCAAyC;WAC3B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,sBAAsB;CAG1F"}
@@ -1,63 +1,65 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Toolbar
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ToolbarItemUtilities = exports.ToolbarOrientation = exports.ToolbarUsage = void 0;
11
- /** Used to specify the usage of the toolbar which determine the toolbar position.
12
- * @public
13
- */
14
- var ToolbarUsage;
15
- (function (ToolbarUsage) {
16
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
17
- ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
18
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
19
- ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
20
- })(ToolbarUsage = exports.ToolbarUsage || (exports.ToolbarUsage = {}));
21
- /** Used to specify the orientation of the toolbar.
22
- * @public
23
- */
24
- var ToolbarOrientation;
25
- (function (ToolbarOrientation) {
26
- /** Horizontal toolbar. */
27
- ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
28
- /** Vertical toolbar. */
29
- ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
30
- })(ToolbarOrientation = exports.ToolbarOrientation || (exports.ToolbarOrientation = {}));
31
- /** Helper class to create Abstract StatusBar Item definitions.
32
- * @public
33
- */
34
- class ToolbarItemUtilities {
35
- /** ActionButton type guard. */
36
- static isActionButton(item) {
37
- return item.execute !== undefined;
38
- }
39
- /** GroupButton type guard. */
40
- static isGroupButton(item) {
41
- return item.items !== undefined;
42
- }
43
- /** CustomButtonDefinition type guard. */
44
- static isCustomDefinition(item) {
45
- return !!item.isCustom;
46
- }
47
- }
48
- exports.ToolbarItemUtilities = ToolbarItemUtilities;
49
- /** Creates an Action Button */
50
- ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
51
- id, itemPriority,
52
- icon, label,
53
- execute,
54
- ...overrides,
55
- });
56
- /** Creates a Group button */
57
- ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
58
- id, itemPriority,
59
- icon, label,
60
- items,
61
- ...overrides,
62
- });
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Toolbar
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ToolbarItemUtilities = exports.ToolbarOrientation = exports.ToolbarUsage = void 0;
11
+ /** Used to specify the usage of the toolbar which determine the toolbar position.
12
+ * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
13
+ * @public
14
+ */
15
+ var ToolbarUsage;
16
+ (function (ToolbarUsage) {
17
+ /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
18
+ ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
19
+ /** Manipulate view/camera - in ninezone this is in top right of content area. */
20
+ ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
21
+ })(ToolbarUsage = exports.ToolbarUsage || (exports.ToolbarUsage = {}));
22
+ /** Used to specify the orientation of the toolbar.
23
+ * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
24
+ * @public
25
+ */
26
+ var ToolbarOrientation;
27
+ (function (ToolbarOrientation) {
28
+ /** Horizontal toolbar. */
29
+ ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
30
+ /** Vertical toolbar. */
31
+ ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
32
+ })(ToolbarOrientation = exports.ToolbarOrientation || (exports.ToolbarOrientation = {}));
33
+ /** Helper class to create Abstract StatusBar Item definitions.
34
+ * @public
35
+ */
36
+ class ToolbarItemUtilities {
37
+ /** ActionButton type guard. */
38
+ static isActionButton(item) {
39
+ return item.execute !== undefined;
40
+ }
41
+ /** GroupButton type guard. */
42
+ static isGroupButton(item) {
43
+ return item.items !== undefined;
44
+ }
45
+ /** CustomButtonDefinition type guard. */
46
+ static isCustomDefinition(item) {
47
+ return !!item.isCustom;
48
+ }
49
+ }
50
+ exports.ToolbarItemUtilities = ToolbarItemUtilities;
51
+ /** Creates an Action Button */
52
+ ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
53
+ id, itemPriority,
54
+ icon, label,
55
+ execute,
56
+ ...overrides,
57
+ });
58
+ /** Creates a Group button. */
59
+ ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
60
+ id, itemPriority,
61
+ icon, label,
62
+ items,
63
+ ...overrides,
64
+ });
63
65
  //# sourceMappingURL=ToolbarItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAOH;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,4GAA4G;IAC5G,6EAAuB,CAAA;IACvB,iFAAiF;IACjF,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;GAEG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAsFD;;GAEG;AACH,MAAa,oBAAoB;IAiB/B,+BAA+B;IACxB,MAAM,CAAC,cAAc,CAAC,IAAuB;QAClD,OAAQ,IAAqB,CAAC,OAAO,KAAK,SAAS,CAAC;IACtD,CAAC;IAED,8BAA8B;IACvB,MAAM,CAAC,aAAa,CAAC,IAAuB;QACjD,OAAQ,IAAoB,CAAC,KAAK,KAAK,SAAS,CAAC;IACnD,CAAC;IAED,yCAAyC;IAClC,MAAM,CAAC,kBAAkB,CAAC,IAAuB;QACtD,OAAO,CAAC,CAAE,IAA+B,CAAC,QAAQ,CAAC;IACrD,CAAC;;AA9BH,oDA+BC;AA9BC,+BAA+B;AACjB,uCAAkB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,OAAmB,EAAE,SAAiC,EAAgB,EAAE,CAAC,CAAC;IAC7N,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,OAAO;IACP,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,6BAA6B;AACf,sCAAiB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,KAAgD,EAAE,SAAgC,EAAe,EAAE,CAAC,CAAC;IACvP,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,KAAK;IACL,GAAG,SAAS;CACb,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport { BadgeType } from \"../items/BadgeType\";\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\nimport { ProvidedItem } from \"../items/ProvidedItem\";\n\n/** Used to specify the usage of the toolbar which determine the toolbar position.\n * @public\n */\nexport enum ToolbarUsage {\n /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */\n ContentManipulation = 0,\n /** Manipulate view/camera - in ninezone this is in top right of content area. */\n ViewNavigation = 1,\n}\n\n/** Used to specify the orientation of the toolbar.\n * @public\n */\nexport enum ToolbarOrientation {\n /** Horizontal toolbar. */\n Horizontal = 0,\n /** Vertical toolbar. */\n Vertical = 1,\n}\n\n/** Describes the data needed to insert a UI items into an existing set of UI items.\n * @public\n */\nexport interface ToolbarItem extends ProvidedItem {\n /** can be used by application to store miscellaneous data. */\n readonly applicationData?: any;\n /** Describes badge. Renders no badge if not specified. */\n readonly badgeType?: BadgeType;\n /** Optional description */\n readonly description?: string | ConditionalStringValue;\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\n readonly id: string;\n /** optional data to used by item implementor. */\n readonly internalData?: Map<string, any>;\n /** Defines if the item is active (shown with an active stripe/bar). */\n readonly isActive?: boolean;\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\n readonly isHidden?: boolean | ConditionalBooleanValue;\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\n readonly isDisabled?: boolean | ConditionalBooleanValue;\n /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars\n * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars\n * the icon is usually changed to denote the state of a toggle.\n */\n readonly isPressed?: boolean;\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\n */\n readonly groupPriority?: number;\n /** Priority within a toolbar or group. */\n readonly itemPriority: number;\n /** Optional parent tool group to add tool. */\n readonly parentToolGroupId?: string;\n}\n\n/** Describes the data needed to insert an action button into a toolbar.\n * @public\n */\nexport interface ActionButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on a button or an item label in a group. */\n readonly label: string | ConditionalStringValue;\n /** function to run when the button is pressed. */\n readonly execute: () => void;\n}\n\n/** Describes the data needed to insert a group button into a toolbar.\n * @public\n */\nexport interface GroupButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label: string | ConditionalStringValue;\n /** label shown as the title in at top of group panel. */\n readonly panelLabel?: string | ConditionalStringValue;\n /** children of the group */\n readonly items: ReadonlyArray<ActionButton | GroupButton>;\n}\n\n/** Describes the data needed to insert a custom button into a toolbar.\n * @public\n */\nexport interface CustomButtonDefinition extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon?: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label?: string | ConditionalStringValue;\n /** parameter that marks data as being a custom definition. */\n readonly isCustom: true;\n}\n\n/** Any Button Type that can be inserted into a toolbar.\n * @public\n */\nexport type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;\n\n/** Type for Toolbar Item Id\n * @public\n */\nexport type ToolbarItemId = CommonToolbarItem[\"id\"];\n\n/** Helper class to create Abstract StatusBar Item definitions.\n * @public\n */\nexport class ToolbarItemUtilities {\n /** Creates an Action Button */\n public static createActionButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton => ({\n id, itemPriority,\n icon, label,\n execute,\n ...overrides,\n });\n\n /** Creates a Group button */\n public static createGroupButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>): GroupButton => ({\n id, itemPriority,\n icon, label,\n items,\n ...overrides,\n });\n\n /** ActionButton type guard. */\n public static isActionButton(item: CommonToolbarItem): item is ActionButton {\n return (item as ActionButton).execute !== undefined;\n }\n\n /** GroupButton type guard. */\n public static isGroupButton(item: CommonToolbarItem): item is GroupButton {\n return (item as GroupButton).items !== undefined;\n }\n\n /** CustomButtonDefinition type guard. */\n public static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition {\n return !!(item as CustomButtonDefinition).isCustom;\n }\n}\n"]}
1
+ {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAOH;;;GAGG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,4GAA4G;IAC5G,6EAAuB,CAAA;IACvB,iFAAiF;IACjF,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;;GAGG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAuFD;;GAEG;AACH,MAAa,oBAAoB;IAiB/B,+BAA+B;IACxB,MAAM,CAAC,cAAc,CAAC,IAAuB;QAClD,OAAQ,IAAqB,CAAC,OAAO,KAAK,SAAS,CAAC;IACtD,CAAC;IAED,8BAA8B;IACvB,MAAM,CAAC,aAAa,CAAC,IAAuB;QACjD,OAAQ,IAAoB,CAAC,KAAK,KAAK,SAAS,CAAC;IACnD,CAAC;IAED,yCAAyC;IAClC,MAAM,CAAC,kBAAkB,CAAC,IAAuB;QACtD,OAAO,CAAC,CAAE,IAA+B,CAAC,QAAQ,CAAC;IACrD,CAAC;;AA9BH,oDA+BC;AA9BC,+BAA+B;AACjB,uCAAkB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,OAAmB,EAAE,SAAiC,EAAgB,EAAE,CAAC,CAAC;IAC7N,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,OAAO;IACP,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,8BAA8B;AAChB,sCAAiB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,KAAgD,EAAE,SAAgC,EAAe,EAAE,CAAC,CAAC;IACvP,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,KAAK;IACL,GAAG,SAAS;CACb,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\n\r\nimport { BadgeType } from \"../items/BadgeType\";\r\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\r\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\r\nimport { ProvidedItem } from \"../items/ProvidedItem\";\r\n\r\n/** Used to specify the usage of the toolbar which determine the toolbar position.\r\n * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum ToolbarUsage {\r\n /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */\r\n ContentManipulation = 0,\r\n /** Manipulate view/camera - in ninezone this is in top right of content area. */\r\n ViewNavigation = 1,\r\n}\r\n\r\n/** Used to specify the orientation of the toolbar.\r\n * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum ToolbarOrientation {\r\n /** Horizontal toolbar. */\r\n Horizontal = 0,\r\n /** Vertical toolbar. */\r\n Vertical = 1,\r\n}\r\n\r\n/** Describes the data needed to insert a UI items into an existing set of UI items.\r\n * @public\r\n */\r\nexport interface ToolbarItem extends ProvidedItem { // eslint-disable-line deprecation/deprecation\r\n /** can be used by application to store miscellaneous data. */\r\n readonly applicationData?: any;\r\n /** Describes badge. Renders no badge if not specified. */\r\n readonly badgeType?: BadgeType;\r\n /** Optional description */\r\n readonly description?: string | ConditionalStringValue;\r\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\r\n readonly id: string;\r\n /** optional data to used by item implementor. */\r\n readonly internalData?: Map<string, any>;\r\n /** Defines if the item is active (shown with an active stripe/bar). */\r\n readonly isActive?: boolean;\r\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\r\n readonly isHidden?: boolean | ConditionalBooleanValue;\r\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\r\n readonly isDisabled?: boolean | ConditionalBooleanValue;\r\n /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars\r\n * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars\r\n * the icon is usually changed to denote the state of a toggle.\r\n */\r\n readonly isPressed?: boolean;\r\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\r\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\r\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\r\n */\r\n readonly groupPriority?: number;\r\n /** Priority within a toolbar or group. */\r\n readonly itemPriority: number;\r\n /** Optional parent tool group to add tool. */\r\n readonly parentToolGroupId?: string;\r\n}\r\n\r\n/** Describes the data needed to insert an action button into a toolbar.\r\n * @public\r\n */\r\nexport interface ActionButton extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon: string | ConditionalStringValue;\r\n /** label, shown as tool tip on a button or an item label in a group. */\r\n readonly label: string | ConditionalStringValue;\r\n /** function to run when the button is pressed. */\r\n readonly execute: () => void;\r\n}\r\n\r\n/** Describes the data needed to insert a group button into a toolbar.\r\n * @public\r\n */\r\nexport interface GroupButton extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon: string | ConditionalStringValue;\r\n /** label, shown as tool tip on group button or a group button label in a group panel. */\r\n readonly label: string | ConditionalStringValue;\r\n /** label shown as the title in at top of group panel. */\r\n readonly panelLabel?: string | ConditionalStringValue;\r\n /** children of the group */\r\n readonly items: ReadonlyArray<ActionButton | GroupButton>; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Describes the data needed to insert a custom button into a toolbar.\r\n * @public\r\n */\r\nexport interface CustomButtonDefinition extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon?: string | ConditionalStringValue;\r\n /** label, shown as tool tip on group button or a group button label in a group panel. */\r\n readonly label?: string | ConditionalStringValue;\r\n /** parameter that marks data as being a custom definition. */\r\n readonly isCustom: true;\r\n}\r\n\r\n/** Any Button Type that can be inserted into a toolbar.\r\n * @public\r\n */\r\nexport type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;\r\n\r\n/** Type for Toolbar Item Id\r\n * @deprecated in 3.6. Please use `ToolbarItem[\"id\"]` from @itwin/appui-react.\r\n * @public\r\n */\r\nexport type ToolbarItemId = CommonToolbarItem[\"id\"]; // eslint-disable-line deprecation/deprecation\r\n\r\n/** Helper class to create Abstract StatusBar Item definitions.\r\n * @public\r\n */\r\nexport class ToolbarItemUtilities {\r\n /** Creates an Action Button */\r\n public static createActionButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton => ({\r\n id, itemPriority,\r\n icon, label,\r\n execute,\r\n ...overrides,\r\n });\r\n\r\n /** Creates a Group button. */\r\n public static createGroupButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>): GroupButton => ({\r\n id, itemPriority,\r\n icon, label,\r\n items,\r\n ...overrides,\r\n });\r\n\r\n /** ActionButton type guard. */\r\n public static isActionButton(item: CommonToolbarItem): item is ActionButton {\r\n return (item as ActionButton).execute !== undefined;\r\n }\r\n\r\n /** GroupButton type guard. */\r\n public static isGroupButton(item: CommonToolbarItem): item is GroupButton {\r\n return (item as GroupButton).items !== undefined;\r\n }\r\n\r\n /** CustomButtonDefinition type guard. */\r\n public static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition {\r\n return !!(item as CustomButtonDefinition).isCustom;\r\n }\r\n}\r\n"]}
@@ -1,46 +1,46 @@
1
- /** @packageDocumentation
2
- * @module Toolbar
3
- */
4
- import { BeEvent } from "@itwin/core-bentley";
5
- import { CommonToolbarItem, ToolbarItemId } from "./ToolbarItem";
6
- /** Arguments of [[ToolbarItemsManager.onChanged]] event.
7
- * @internal
8
- */
9
- export interface ToolbarItemsChangedArgs {
10
- readonly items: ReadonlyArray<CommonToolbarItem>;
11
- }
12
- /**
13
- * Controls status bar items.
14
- * @internal
15
- */
16
- export declare class ToolbarItemsManager {
17
- protected _items: ReadonlyArray<CommonToolbarItem>;
18
- constructor(items?: ReadonlyArray<CommonToolbarItem>);
19
- /** Event raised when Toolbar items are changed.
20
- * @internal
21
- */
22
- readonly onItemsChanged: BeEvent<(args: ToolbarItemsChangedArgs) => void>;
23
- private loadItemsInternal;
24
- /** load items but do not fire onItemsChanged
25
- * @internal
26
- */
27
- loadItems(items: ReadonlyArray<CommonToolbarItem>): void;
28
- /** Get an array of the Toolbar items */
29
- get items(): ReadonlyArray<CommonToolbarItem>;
30
- set items(items: ReadonlyArray<CommonToolbarItem>);
31
- add(itemOrItems: CommonToolbarItem | ReadonlyArray<CommonToolbarItem>): void;
32
- /** Remove Toolbar items based on id */
33
- remove(itemIdOrItemIds: ToolbarItemId | ReadonlyArray<ToolbarItemId>): void;
34
- /** @internal */
35
- removeAll(): void;
36
- private static gatherSyncIds;
37
- static getSyncIdsOfInterest(items: readonly CommonToolbarItem[]): string[];
38
- private static refreshChildItems;
39
- private internalRefreshAffectedItems;
40
- refreshAffectedItems(eventIds: Set<string>): void;
41
- private static isActiveToolIdRefreshRequiredForChildren;
42
- private isActiveToolIdRefreshRequired;
43
- private static refreshActiveToolIdInChildItems;
44
- setActiveToolId(toolId: string): void;
45
- }
1
+ /** @packageDocumentation
2
+ * @module Toolbar
3
+ */
4
+ import { BeEvent } from "@itwin/core-bentley";
5
+ import { CommonToolbarItem, ToolbarItemId } from "./ToolbarItem";
6
+ /** Arguments of [[ToolbarItemsManager.onChanged]] event.
7
+ * @internal
8
+ */
9
+ export interface ToolbarItemsChangedArgs {
10
+ readonly items: ReadonlyArray<CommonToolbarItem>;
11
+ }
12
+ /**
13
+ * Controls status bar items.
14
+ * @internal
15
+ */
16
+ export declare class ToolbarItemsManager {
17
+ protected _items: ReadonlyArray<CommonToolbarItem>;
18
+ constructor(items?: ReadonlyArray<CommonToolbarItem>);
19
+ /** Event raised when Toolbar items are changed.
20
+ * @internal
21
+ */
22
+ readonly onItemsChanged: BeEvent<(args: ToolbarItemsChangedArgs) => void>;
23
+ private loadItemsInternal;
24
+ /** load items but do not fire onItemsChanged
25
+ * @internal
26
+ */
27
+ loadItems(items: ReadonlyArray<CommonToolbarItem>): void;
28
+ /** Get an array of the Toolbar items */
29
+ get items(): ReadonlyArray<CommonToolbarItem>;
30
+ set items(items: ReadonlyArray<CommonToolbarItem>);
31
+ add(itemOrItems: CommonToolbarItem | ReadonlyArray<CommonToolbarItem>): void;
32
+ /** Remove Toolbar items based on id */
33
+ remove(itemIdOrItemIds: ToolbarItemId | ReadonlyArray<ToolbarItemId>): void;
34
+ /** @internal */
35
+ removeAll(): void;
36
+ private static gatherSyncIds;
37
+ static getSyncIdsOfInterest(items: readonly CommonToolbarItem[]): string[];
38
+ private static refreshChildItems;
39
+ private internalRefreshAffectedItems;
40
+ refreshAffectedItems(eventIds: Set<string>): void;
41
+ private static isActiveToolIdRefreshRequiredForChildren;
42
+ private isActiveToolIdRefreshRequired;
43
+ private static refreshActiveToolIdInChildItems;
44
+ setActiveToolId(toolId: string): void;
45
+ }
46
46
  //# sourceMappingURL=ToolbarItemsManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItemsManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItemsManager.ts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