@itwin/appui-abstract 5.0.0-dev.9 → 5.0.0-dev.90

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 (216) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/lib/cjs/appui-abstract/UiAdmin.js +4 -5
  3. package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
  4. package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
  5. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  6. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +91 -91
  7. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  8. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  9. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +4 -0
  10. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  11. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +3 -5
  12. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  13. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  14. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  15. package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
  16. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  17. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  18. package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
  19. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  20. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  21. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +3 -0
  22. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  23. package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
  24. package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
  25. package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
  26. package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
  27. package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
  28. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  29. package/lib/cjs/appui-abstract/properties/Record.js +18 -0
  30. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  31. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  32. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  33. package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
  34. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  35. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  36. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  37. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  38. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +15 -37
  39. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  40. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  41. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  42. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +3 -20
  43. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  44. package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
  45. package/lib/cjs/appui-abstract/utils/UiError.js +1 -0
  46. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  47. package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
  48. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +7 -0
  49. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  50. package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
  51. package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
  52. package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
  53. package/lib/cjs/appui-abstract.d.ts +1 -28
  54. package/lib/cjs/appui-abstract.d.ts.map +1 -1
  55. package/lib/cjs/appui-abstract.js +1 -28
  56. package/lib/cjs/appui-abstract.js.map +1 -1
  57. package/lib/esm/appui-abstract/UiAdmin.js +4 -5
  58. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  59. package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
  60. package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  61. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +91 -91
  62. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  63. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  64. package/lib/esm/appui-abstract/dialogs/DialogItem.js +4 -0
  65. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  66. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +3 -5
  67. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  68. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  69. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  70. package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
  71. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  72. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  73. package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
  74. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  75. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  76. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +3 -0
  77. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  78. package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
  79. package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
  80. package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
  81. package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
  82. package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
  83. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  84. package/lib/esm/appui-abstract/properties/Record.js +18 -0
  85. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  86. package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  87. package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  88. package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
  89. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  90. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  91. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  92. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  93. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +14 -36
  94. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  95. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  96. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  97. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +3 -20
  98. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  99. package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
  100. package/lib/esm/appui-abstract/utils/UiError.js +1 -0
  101. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  102. package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
  103. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +7 -0
  104. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  105. package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
  106. package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
  107. package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
  108. package/lib/esm/appui-abstract.d.ts +1 -28
  109. package/lib/esm/appui-abstract.d.ts.map +1 -1
  110. package/lib/esm/appui-abstract.js +1 -28
  111. package/lib/esm/appui-abstract.js.map +1 -1
  112. package/package.json +13 -14
  113. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  114. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  115. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +0 -80
  116. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  117. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +0 -111
  118. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +0 -1
  119. package/lib/cjs/appui-abstract/UiItemsManager.js +0 -194
  120. package/lib/cjs/appui-abstract/UiItemsManager.js.map +0 -1
  121. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +0 -30
  122. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  123. package/lib/cjs/appui-abstract/UiItemsProvider.js +0 -10
  124. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +0 -1
  125. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  126. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  127. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +0 -69
  128. package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +0 -1
  129. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  130. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  131. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +0 -136
  132. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  133. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +0 -12
  134. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  135. package/lib/cjs/appui-abstract/items/ProvidedItem.js +0 -10
  136. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +0 -1
  137. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +0 -17
  138. package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +0 -1
  139. package/lib/cjs/appui-abstract/items/StageUsage.js +0 -25
  140. package/lib/cjs/appui-abstract/items/StageUsage.js.map +0 -1
  141. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  142. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  143. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +0 -88
  144. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  145. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  146. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  147. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +0 -136
  148. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  149. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  150. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  151. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +0 -236
  152. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  153. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  154. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  155. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +0 -10
  156. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  157. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +0 -37
  158. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  159. package/lib/cjs/appui-abstract/widget/StagePanel.js +0 -47
  160. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +0 -1
  161. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +0 -20
  162. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  163. package/lib/cjs/appui-abstract/widget/WidgetState.js +0 -28
  164. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +0 -1
  165. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  166. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  167. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +0 -76
  168. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  169. package/lib/esm/appui-abstract/UiItemsManager.d.ts +0 -111
  170. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +0 -1
  171. package/lib/esm/appui-abstract/UiItemsManager.js +0 -190
  172. package/lib/esm/appui-abstract/UiItemsManager.js.map +0 -1
  173. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +0 -30
  174. package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  175. package/lib/esm/appui-abstract/UiItemsProvider.js +0 -9
  176. package/lib/esm/appui-abstract/UiItemsProvider.js.map +0 -1
  177. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  178. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  179. package/lib/esm/appui-abstract/backstage/BackstageItem.js +0 -63
  180. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +0 -1
  181. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  182. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  183. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +0 -132
  184. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  185. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +0 -12
  186. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  187. package/lib/esm/appui-abstract/items/ProvidedItem.js +0 -9
  188. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +0 -1
  189. package/lib/esm/appui-abstract/items/StageUsage.d.ts +0 -17
  190. package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +0 -1
  191. package/lib/esm/appui-abstract/items/StageUsage.js +0 -22
  192. package/lib/esm/appui-abstract/items/StageUsage.js.map +0 -1
  193. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  194. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  195. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +0 -81
  196. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  197. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  198. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  199. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +0 -132
  200. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  201. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  202. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  203. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +0 -232
  204. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  205. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  206. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  207. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +0 -9
  208. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  209. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +0 -37
  210. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  211. package/lib/esm/appui-abstract/widget/StagePanel.js +0 -44
  212. package/lib/esm/appui-abstract/widget/StagePanel.js.map +0 -1
  213. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +0 -20
  214. package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  215. package/lib/esm/appui-abstract/widget/WidgetState.js +0 -25
  216. package/lib/esm/appui-abstract/widget/WidgetState.js.map +0 -1
@@ -1,63 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Backstage
7
- */
8
- /** Used to specify the item type added to the backstage menu.
9
- * @deprecated in 3.6. Use type guards instead.
10
- * @public
11
- */
12
- export var BackstageItemType;
13
- (function (BackstageItemType) {
14
- /** Item that executes an action function */
15
- BackstageItemType[BackstageItemType["ActionItem"] = 1] = "ActionItem";
16
- /** Item that activate a stage. */
17
- BackstageItemType[BackstageItemType["StageLauncher"] = 2] = "StageLauncher";
18
- })(BackstageItemType || (BackstageItemType = {}));
19
- /** BackstageActionItem type guard.
20
- * @deprecated in 3.6. Use [isBackstageActionItem]($appui-react) instead.
21
- * @public
22
- */
23
- export const isActionItem = (item) => {
24
- return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
25
- };
26
- /** BackstageStageLauncher type guard.
27
- * @deprecated in 3.6. Use [isBackstageStageLauncher]($appui-react) instead.
28
- * @public
29
- */
30
- export const isStageLauncher = (item) => {
31
- return item.stageId !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
32
- };
33
- /** Utilities for creating and maintaining backstage items
34
- * @deprecated in 3.6. Use [BackstageItemUtilities]($appui-react) instead.
35
- * @public
36
- */
37
- export class BackstageItemUtilities {
38
- }
39
- /** Creates a stage launcher backstage item */
40
- BackstageItemUtilities.createStageLauncher = (frontstageId, groupPriority, itemPriority, label, subtitle, icon, overrides) => ({
41
- groupPriority,
42
- icon,
43
- internalData: overrides?.internalData,
44
- id: frontstageId,
45
- itemPriority,
46
- label,
47
- stageId: frontstageId,
48
- subtitle,
49
- ...overrides,
50
- });
51
- /** Creates an action backstage item */
52
- BackstageItemUtilities.createActionItem = (itemId, groupPriority, itemPriority, execute, label, subtitle, icon, overrides) => ({
53
- execute,
54
- groupPriority,
55
- icon,
56
- internalData: overrides?.internalData,
57
- id: itemId,
58
- itemPriority,
59
- label,
60
- subtitle,
61
- ...overrides,
62
- });
63
- //# sourceMappingURL=BackstageItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackstageItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/backstage/BackstageItem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAOH;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,qEAAc,CAAA;IACd,kCAAkC;IAClC,2EAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AA4DD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAmB,EAA+B,EAAE;IAC/E,OAAQ,IAA4B,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,uDAAuD;AACrH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAkC,EAAE;IACrF,OAAQ,IAA+B,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,uDAAuD;AACxH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,sBAAsB;;AACjC,8CAA8C;AAChC,0CAAmB,GAAG,CAClC,YAAoB,EAAE,aAAqB,EAAE,YAAoB,EAAE,KAAsC,EACzG,QAA0C,EAAE,IAAsC,EAAE,SAA2C,EACvG,EAAE,CAAC,CAAC;IAC5B,aAAa;IACb,IAAI;IACJ,YAAY,EAAE,SAAS,EAAE,YAAY;IACrC,EAAE,EAAE,YAAY;IAChB,YAAY;IACZ,KAAK;IACL,OAAO,EAAE,YAAY;IACrB,QAAQ;IACR,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,uCAAuC;AACzB,uCAAgB,GAAG,CAC/B,MAAc,EAAE,aAAqB,EAAE,YAAoB,EAAE,OAAmB,EAAE,KAAsC,EACxH,QAA0C,EAAE,IAAsC,EAAE,SAAwC,EACvG,EAAE,CAAC,CAAC;IACzB,OAAO;IACP,aAAa;IACb,IAAI;IACJ,YAAY,EAAE,SAAS,EAAE,YAAY;IACrC,EAAE,EAAE,MAAM;IACV,YAAY;IACZ,KAAK;IACL,QAAQ;IACR,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 Backstage\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 item type added to the backstage menu.\r\n * @deprecated in 3.6. Use type guards instead.\r\n * @public\r\n */\r\nexport enum BackstageItemType {\r\n /** Item that executes an action function */\r\n ActionItem = 1,\r\n /** Item that activate a stage. */\r\n StageLauncher = 2,\r\n}\r\n\r\n/** Describes the data needed to insert a button into the backstage menu.\r\n * @deprecated in 3.6. Use [CommonBackstageItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface CommonBackstageItem extends ProvidedItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n /** can be used by application to store miscellaneous data. */\r\n applicationData?: any;\r\n /** Describes badge. Renders no badge if not specified. */\r\n readonly badgeType?: BadgeType;\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.\r\n */\r\n readonly groupPriority: number;\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 /** Required unique id of 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 be used by item implementor. */\r\n readonly internalData?: Map<string, any>;\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 /** Priority within a group (recommend using values 1 through 100). */\r\n readonly itemPriority: number;\r\n /** Label. */\r\n readonly label: string | ConditionalStringValue;\r\n /** Subtitle. */\r\n readonly subtitle?: string | ConditionalStringValue;\r\n /** Tooltip. */\r\n readonly tooltip?: string | ConditionalStringValue;\r\n /** Describes if the item is active. The default is for the item to be active if stageId matches activeFrontstageId */\r\n readonly isActive?: boolean | ConditionalBooleanValue;\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @deprecated in 3.6. Use [BackstageActionItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface BackstageActionItem extends CommonBackstageItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n readonly execute: () => void;\r\n}\r\n\r\n/** Describes the data needed to insert an action button into the backstage menu.\r\n * @deprecated in 3.6. Use [BackstageActionItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface BackstageStageLauncher extends CommonBackstageItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n readonly stageId: string;\r\n}\r\n\r\n/** Describes the data needed to insert a button into the backstage menu.\r\n * @deprecated in 3.6. Use [BackstageItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport type BackstageItem = BackstageActionItem | BackstageStageLauncher; // eslint-disable-line @typescript-eslint/no-deprecated\r\n\r\n/** BackstageActionItem type guard.\r\n * @deprecated in 3.6. Use [isBackstageActionItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport const isActionItem = (item: BackstageItem): item is BackstageActionItem => { // eslint-disable-line @typescript-eslint/no-deprecated\r\n return (item as BackstageActionItem).execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated\r\n};\r\n\r\n/** BackstageStageLauncher type guard.\r\n * @deprecated in 3.6. Use [isBackstageStageLauncher]($appui-react) instead.\r\n * @public\r\n */\r\nexport const isStageLauncher = (item: BackstageItem): item is BackstageStageLauncher => { // eslint-disable-line @typescript-eslint/no-deprecated\r\n return (item as BackstageStageLauncher).stageId !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated\r\n};\r\n\r\n/** Utilities for creating and maintaining backstage items\r\n * @deprecated in 3.6. Use [BackstageItemUtilities]($appui-react) instead.\r\n * @public\r\n */\r\nexport class BackstageItemUtilities {\r\n /** Creates a stage launcher backstage item */\r\n public static createStageLauncher = (\r\n frontstageId: string, groupPriority: number, itemPriority: number, label: string | ConditionalStringValue,\r\n subtitle?: string | ConditionalStringValue, icon?: string | ConditionalStringValue, overrides?: Partial<BackstageStageLauncher>, // eslint-disable-line @typescript-eslint/no-deprecated\r\n ): BackstageStageLauncher => ({ // eslint-disable-line @typescript-eslint/no-deprecated\r\n groupPriority,\r\n icon,\r\n internalData: overrides?.internalData,\r\n id: frontstageId,\r\n itemPriority,\r\n label,\r\n stageId: frontstageId,\r\n subtitle,\r\n ...overrides,\r\n });\r\n\r\n /** Creates an action backstage item */\r\n public static createActionItem = (\r\n itemId: string, groupPriority: number, itemPriority: number, execute: () => void, label: string | ConditionalStringValue,\r\n subtitle?: string | ConditionalStringValue, icon?: string | ConditionalStringValue, overrides?: Partial<BackstageActionItem>, // eslint-disable-line @typescript-eslint/no-deprecated\r\n ): BackstageActionItem => ({ // eslint-disable-line @typescript-eslint/no-deprecated\r\n execute,\r\n groupPriority,\r\n icon,\r\n internalData: overrides?.internalData,\r\n id: itemId,\r\n itemPriority,\r\n label,\r\n subtitle,\r\n ...overrides,\r\n });\r\n}\r\n"]}
@@ -1,43 +0,0 @@
1
- /** @packageDocumentation
2
- * @module Backstage
3
- */
4
- import { BeEvent } from "@itwin/core-bentley";
5
- import { BackstageItem } from "./BackstageItem";
6
- /** Arguments of [[BackstageItemsManager.onChanged]] event.
7
- * @internal
8
- * @deprecated in 4.10.x. Used internally by `@itwin/appui-react`.
9
- * Please note: this internal API will be removed in 5.0.0.
10
- */
11
- export interface BackstageItemsChangedArgs {
12
- readonly items: ReadonlyArray<BackstageItem>;
13
- }
14
- /**
15
- * Controls backstage items.
16
- * @internal
17
- * @deprecated in 4.10.x. Use `UiFramework.backstage` from `@itwin/appui-react`.
18
- * Please note: this internal API will be removed in 5.0.0.
19
- */
20
- export declare class BackstageItemsManager {
21
- private _items;
22
- constructor(items?: ReadonlyArray<BackstageItem>);
23
- private loadItemsInternal;
24
- /** load items but do not fire onItemsChanged
25
- * @internal
26
- */
27
- loadItems(items: ReadonlyArray<BackstageItem>): void;
28
- /** Event raised when backstage items are changed.
29
- * @internal
30
- */
31
- readonly onItemsChanged: BeEvent<(args: BackstageItemsChangedArgs) => void>;
32
- get items(): ReadonlyArray<BackstageItem>;
33
- set items(items: ReadonlyArray<BackstageItem>);
34
- /** @internal */
35
- add(itemOrItems: BackstageItem | ReadonlyArray<BackstageItem>): void;
36
- /** @internal */
37
- remove(itemIdOrItemIds: BackstageItem["id"] | ReadonlyArray<BackstageItem["id"]>): void;
38
- /** @internal */
39
- static getSyncIdsOfInterest(items: readonly BackstageItem[]): string[];
40
- private internalRefreshAffectedItems;
41
- refreshAffectedItems(eventIds: Set<string>): void;
42
- }
43
- //# sourceMappingURL=BackstageItemsManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackstageItemsManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/backstage/BackstageItemsManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC9C;AAQD;;;;;GAKG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAoC;gBAEtC,KAAK,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;IAMhD,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC;IAIpD;;OAEG;IACH,SAAgB,cAAc,iBAAsB,yBAAyB,KAAK,IAAI,EAAI;IAE1F,IAAW,KAAK,IAAI,aAAa,CAAC,aAAa,CAAC,CAE/C;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,EAInD;IAED,gBAAgB;IACT,GAAG,CAAC,WAAW,EAAE,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;IAiBpE,gBAAgB;IACT,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAOvF,gBAAgB;WACF,oBAAoB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,EAAE;IAc7E,OAAO,CAAC,4BAA4B;IA6B7B,oBAAoB,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC;CAYlD"}
@@ -1,132 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Backstage
7
- */
8
- import { BeEvent } from "@itwin/core-bentley";
9
- import { ConditionalBooleanValue } from "../items/ConditionalBooleanValue";
10
- import { ConditionalStringValue } from "../items/ConditionalStringValue";
11
- const isInstance = (args) => {
12
- return !Array.isArray(args);
13
- };
14
- /**
15
- * Controls backstage items.
16
- * @internal
17
- * @deprecated in 4.10.x. Use `UiFramework.backstage` from `@itwin/appui-react`.
18
- * Please note: this internal API will be removed in 5.0.0.
19
- */
20
- export class BackstageItemsManager {
21
- constructor(items) {
22
- this._items = [];
23
- /** Event raised when backstage items are changed.
24
- * @internal
25
- */
26
- this.onItemsChanged = new BeEvent();
27
- // istanbul ignore else
28
- if (items)
29
- this.loadItemsInternal(items, true, false);
30
- }
31
- loadItemsInternal(items, processConditions, sendItemChanged) {
32
- if (processConditions && items) {
33
- const eventIds = BackstageItemsManager.getSyncIdsOfInterest(items);
34
- if (0 !== eventIds.length) {
35
- const { itemsUpdated, updatedItems } = this.internalRefreshAffectedItems(items, new Set(eventIds));
36
- // istanbul ignore else
37
- if (itemsUpdated)
38
- items = updatedItems;
39
- }
40
- }
41
- this._items = items;
42
- if (sendItemChanged)
43
- this.onItemsChanged.raiseEvent({ items });
44
- }
45
- /** load items but do not fire onItemsChanged
46
- * @internal
47
- */
48
- loadItems(items) {
49
- this.loadItemsInternal(items, true, false);
50
- }
51
- get items() {
52
- return this._items;
53
- }
54
- set items(items) {
55
- // istanbul ignore else
56
- if (items !== this._items)
57
- this.loadItemsInternal(items, true, true);
58
- }
59
- /** @internal */
60
- add(itemOrItems) {
61
- let itemsToAdd;
62
- if (isInstance(itemOrItems))
63
- itemsToAdd = [itemOrItems];
64
- else {
65
- itemsToAdd = itemOrItems.filter((itemToAdd, index) => itemOrItems.findIndex((item) => item.id === itemToAdd.id) === index);
66
- }
67
- itemsToAdd = itemsToAdd.filter((itemToAdd) => this._items.find((item) => item.id === itemToAdd.id) === undefined);
68
- if (itemsToAdd.length === 0)
69
- return;
70
- const items = [
71
- ...this._items,
72
- ...itemsToAdd,
73
- ];
74
- this.items = items;
75
- }
76
- /** @internal */
77
- remove(itemIdOrItemIds) {
78
- const items = this._items.filter((item) => {
79
- return isInstance(itemIdOrItemIds) ? item.id !== itemIdOrItemIds : !itemIdOrItemIds.find((itemId) => itemId === item.id);
80
- });
81
- this.items = items;
82
- }
83
- /** @internal */
84
- static getSyncIdsOfInterest(items) {
85
- const eventIds = new Set();
86
- items.forEach((item) => {
87
- for (const [, entry] of Object.entries(item)) {
88
- if (entry instanceof ConditionalBooleanValue) {
89
- entry.syncEventIds.forEach((eventId) => eventIds.add(eventId.toLowerCase()));
90
- }
91
- else /* istanbul ignore else */ if (entry instanceof ConditionalStringValue) {
92
- entry.syncEventIds.forEach((eventId) => eventIds.add(eventId.toLowerCase()));
93
- }
94
- }
95
- });
96
- return [...eventIds.values()];
97
- }
98
- internalRefreshAffectedItems(items, eventIds) {
99
- // istanbul ignore next
100
- if (0 === eventIds.size)
101
- return { itemsUpdated: false, updatedItems: [] };
102
- let updateRequired = false;
103
- const newItems = [];
104
- for (const item of items) {
105
- const updatedItem = { ...item };
106
- for (const [, entry] of Object.entries(updatedItem)) {
107
- if (entry instanceof ConditionalBooleanValue) {
108
- // istanbul ignore else
109
- if (ConditionalBooleanValue.refreshValue(entry, eventIds))
110
- updateRequired = true;
111
- }
112
- else /* istanbul ignore else */ if (entry instanceof ConditionalStringValue) {
113
- // istanbul ignore else
114
- if (ConditionalStringValue.refreshValue(entry, eventIds))
115
- updateRequired = true;
116
- }
117
- }
118
- newItems.push(updatedItem);
119
- }
120
- return { itemsUpdated: updateRequired, updatedItems: newItems };
121
- }
122
- refreshAffectedItems(eventIds) {
123
- // istanbul ignore next
124
- if (0 === eventIds.size)
125
- return;
126
- const { itemsUpdated, updatedItems } = this.internalRefreshAffectedItems(this.items, eventIds);
127
- // istanbul ignore else
128
- if (itemsUpdated)
129
- this.loadItemsInternal(updatedItems, false, true);
130
- }
131
- }
132
- //# sourceMappingURL=BackstageItemsManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackstageItemsManager.js","sourceRoot":"","sources":["../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AAY,EAAE,EAAE,EAAE,CAAC;QAEnD,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,MAAM,QAAQ,GAAoB,EAAE,CAAC;QACrC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,WAAW,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;YAEhC,KAAK,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;gBACpD,IAAI,KAAK,YAAY,uBAAuB,EAAE,CAAC;oBAC7C,uBAAuB;oBACvB,IAAI,uBAAuB,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC;wBACvD,cAAc,GAAG,IAAI,CAAC;gBAC1B,CAAC;qBAAM,0BAA0B,CAAC,IAAI,KAAK,YAAY,sBAAsB,EAAE,CAAC;oBAC9E,uBAAuB;oBACvB,IAAI,sBAAsB,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC;wBACtD,cAAc,GAAG,IAAI,CAAC;gBAC1B,CAAC;YACH,CAAC;YAED,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC7B,CAAC;QAED,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;IAClE,CAAC;IAEM,oBAAoB,CAAC,QAAqB;QAC/C,uBAAuB;QACvB,IAAI,CAAC,KAAK,QAAQ,CAAC,IAAI;YACrB,OAAO;QAET,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAE/F,uBAAuB;QACvB,IAAI,YAAY;YACd,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CAEF","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 Backstage\r\n */\r\n\r\nimport { BeEvent } from \"@itwin/core-bentley\";\r\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\r\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\r\nimport { BackstageItem } from \"./BackstageItem\";\r\n\r\n/* eslint-disable @typescript-eslint/no-deprecated */\r\n\r\n/** Arguments of [[BackstageItemsManager.onChanged]] event.\r\n * @internal\r\n * @deprecated in 4.10.x. Used internally by `@itwin/appui-react`.\r\n * Please note: this internal API will be removed in 5.0.0.\r\n */\r\nexport interface BackstageItemsChangedArgs {\r\n readonly items: ReadonlyArray<BackstageItem>;\r\n}\r\n\r\ntype InstanceOrArray<T> = T | ReadonlyArray<T>;\r\n\r\nconst isInstance = <T>(args: InstanceOrArray<T>): args is T => {\r\n return !Array.isArray(args);\r\n};\r\n\r\n/**\r\n * Controls backstage items.\r\n * @internal\r\n * @deprecated in 4.10.x. Use `UiFramework.backstage` from `@itwin/appui-react`.\r\n * Please note: this internal API will be removed in 5.0.0.\r\n */\r\nexport class BackstageItemsManager {\r\n private _items: ReadonlyArray<BackstageItem> = [];\r\n\r\n constructor(items?: ReadonlyArray<BackstageItem>) {\r\n // istanbul ignore else\r\n if (items)\r\n this.loadItemsInternal(items, true, false);\r\n }\r\n\r\n private loadItemsInternal(items: ReadonlyArray<BackstageItem>, processConditions: boolean, sendItemChanged: boolean) {\r\n if (processConditions && items) {\r\n const eventIds = BackstageItemsManager.getSyncIdsOfInterest(items);\r\n if (0 !== eventIds.length) {\r\n const { itemsUpdated, updatedItems } = this.internalRefreshAffectedItems(items, new Set(eventIds));\r\n\r\n // istanbul ignore else\r\n if (itemsUpdated)\r\n items = updatedItems;\r\n }\r\n }\r\n\r\n this._items = items;\r\n if (sendItemChanged)\r\n this.onItemsChanged.raiseEvent({ items });\r\n }\r\n\r\n /** load items but do not fire onItemsChanged\r\n * @internal\r\n */\r\n public loadItems(items: ReadonlyArray<BackstageItem>) {\r\n this.loadItemsInternal(items, true, false);\r\n }\r\n\r\n /** Event raised when backstage items are changed.\r\n * @internal\r\n */\r\n public readonly onItemsChanged = new BeEvent<(args: BackstageItemsChangedArgs) => void>();\r\n\r\n public get items(): ReadonlyArray<BackstageItem> {\r\n return this._items;\r\n }\r\n\r\n public set items(items: ReadonlyArray<BackstageItem>) {\r\n // istanbul ignore else\r\n if (items !== this._items)\r\n this.loadItemsInternal(items, true, true);\r\n }\r\n\r\n /** @internal */\r\n public add(itemOrItems: BackstageItem | ReadonlyArray<BackstageItem>) {\r\n let itemsToAdd;\r\n if (isInstance(itemOrItems))\r\n itemsToAdd = [itemOrItems];\r\n else {\r\n itemsToAdd = itemOrItems.filter((itemToAdd, index) => itemOrItems.findIndex((item) => item.id === itemToAdd.id) === index);\r\n }\r\n itemsToAdd = itemsToAdd.filter((itemToAdd) => this._items.find((item) => item.id === itemToAdd.id) === undefined);\r\n if (itemsToAdd.length === 0)\r\n return;\r\n const items = [\r\n ...this._items,\r\n ...itemsToAdd,\r\n ];\r\n this.items = items;\r\n }\r\n\r\n /** @internal */\r\n public remove(itemIdOrItemIds: BackstageItem[\"id\"] | ReadonlyArray<BackstageItem[\"id\"]>) {\r\n const items = this._items.filter((item) => {\r\n return isInstance(itemIdOrItemIds) ? item.id !== itemIdOrItemIds : !itemIdOrItemIds.find((itemId) => itemId === item.id);\r\n });\r\n this.items = items;\r\n }\r\n\r\n /** @internal */\r\n public static getSyncIdsOfInterest(items: readonly BackstageItem[]): string[] {\r\n const eventIds = new Set<string>();\r\n items.forEach((item) => {\r\n for (const [, entry] of Object.entries(item)) {\r\n if (entry instanceof ConditionalBooleanValue) {\r\n entry.syncEventIds.forEach((eventId: string) => eventIds.add(eventId.toLowerCase()));\r\n } else /* istanbul ignore else */ if (entry instanceof ConditionalStringValue) {\r\n entry.syncEventIds.forEach((eventId: string) => eventIds.add(eventId.toLowerCase()));\r\n }\r\n }\r\n });\r\n return [...eventIds.values()];\r\n }\r\n\r\n private internalRefreshAffectedItems(items: readonly BackstageItem[], eventIds: Set<string>): { itemsUpdated: boolean, updatedItems: BackstageItem[] } {\r\n // istanbul ignore next\r\n if (0 === eventIds.size)\r\n return { itemsUpdated: false, updatedItems: [] };\r\n\r\n let updateRequired = false;\r\n\r\n const newItems: BackstageItem[] = [];\r\n for (const item of items) {\r\n const updatedItem = { ...item };\r\n\r\n for (const [, entry] of Object.entries(updatedItem)) {\r\n if (entry instanceof ConditionalBooleanValue) {\r\n // istanbul ignore else\r\n if (ConditionalBooleanValue.refreshValue(entry, eventIds))\r\n updateRequired = true;\r\n } else /* istanbul ignore else */ if (entry instanceof ConditionalStringValue) {\r\n // istanbul ignore else\r\n if (ConditionalStringValue.refreshValue(entry, eventIds))\r\n updateRequired = true;\r\n }\r\n }\r\n\r\n newItems.push(updatedItem);\r\n }\r\n\r\n return { itemsUpdated: updateRequired, updatedItems: newItems };\r\n }\r\n\r\n public refreshAffectedItems(eventIds: Set<string>) {\r\n // istanbul ignore next\r\n if (0 === eventIds.size)\r\n return;\r\n\r\n const { itemsUpdated, updatedItems } = this.internalRefreshAffectedItems(this.items, eventIds);\r\n\r\n // istanbul ignore else\r\n if (itemsUpdated)\r\n this.loadItemsInternal(updatedItems, false, true);\r\n }\r\n\r\n}\r\n"]}
@@ -1,12 +0,0 @@
1
- /** @packageDocumentation
2
- * @module Item
3
- */
4
- /** Properties for an item provided by UiItemsProvider
5
- * @deprecated in 3.6. Use [ProviderItem]($appui-react) instead.
6
- * @public
7
- */
8
- export interface ProvidedItem {
9
- /** id of UiItemsProvider */
10
- readonly providerId?: string;
11
- }
12
- //# sourceMappingURL=ProvidedItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProvidedItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/items/ProvidedItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,4BAA4B;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B"}
@@ -1,9 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Item
7
- */
8
- export {};
9
- //# sourceMappingURL=ProvidedItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProvidedItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/items/ProvidedItem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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 Item\r\n */\r\n\r\n/** Properties for an item provided by UiItemsProvider\r\n * @deprecated in 3.6. Use [ProviderItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface ProvidedItem {\r\n /** id of UiItemsProvider */\r\n readonly providerId?: string;\r\n}\r\n"]}
@@ -1,17 +0,0 @@
1
- /** @packageDocumentation
2
- * @module Item
3
- */
4
- /** Standard stage uses. Allows extension to target ui item to include on a stage without
5
- * knowing the stage name defined in the host application.
6
- * @deprecated in 3.6. Use [StageUsage]($appui-react) instead.
7
- * @public
8
- */
9
- export declare enum StageUsage {
10
- Private = "Private",
11
- General = "General",
12
- Redline = "Redline",
13
- ViewOnly = "ViewOnly",
14
- Edit = "Edit",
15
- Settings = "Settings"
16
- }
17
- //# sourceMappingURL=StageUsage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StageUsage.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/items/StageUsage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;GAIG;AACH,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}
@@ -1,22 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Item
7
- */
8
- /** Standard stage uses. Allows extension to target ui item to include on a stage without
9
- * knowing the stage name defined in the host application.
10
- * @deprecated in 3.6. Use [StageUsage]($appui-react) instead.
11
- * @public
12
- */
13
- export var StageUsage;
14
- (function (StageUsage) {
15
- StageUsage["Private"] = "Private";
16
- StageUsage["General"] = "General";
17
- StageUsage["Redline"] = "Redline";
18
- StageUsage["ViewOnly"] = "ViewOnly";
19
- StageUsage["Edit"] = "Edit";
20
- StageUsage["Settings"] = "Settings";
21
- })(StageUsage || (StageUsage = {}));
22
- //# sourceMappingURL=StageUsage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StageUsage.js","sourceRoot":"","sources":["../../../../src/appui-abstract/items/StageUsage.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;GAIG;AACH,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,mCAAqB,CAAA;AACvB,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB","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 Item\r\n */\r\n\r\n/** Standard stage uses. Allows extension to target ui item to include on a stage without\r\n * knowing the stage name defined in the host application.\r\n * @deprecated in 3.6. Use [StageUsage]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum StageUsage {\r\n Private = \"Private\",\r\n General = \"General\",\r\n Redline = \"Redline\",\r\n ViewOnly = \"ViewOnly\",\r\n Edit = \"Edit\",\r\n Settings = \"Settings\",\r\n}\r\n"]}
@@ -1,129 +0,0 @@
1
- /** @packageDocumentation
2
- * @module StatusBar
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
- /** Status bar Groups/Sections from Left to Right
9
- * @deprecated in 3.6. Use [StatusBarSection]($appui-react) instead.
10
- * @public
11
- */
12
- export declare enum StatusBarSection {
13
- /** area for tool assistance and messages */
14
- Message = 0,
15
- /** area for tool assistance and messages */
16
- Left = 0,// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
17
- /** items specific to stage/task */
18
- Stage = 1,
19
- /** items specific to stage/task */
20
- Center = 1,// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
21
- /** Select scope and selection info */
22
- Selection = 2,
23
- /** Select scope and selection info */
24
- Right = 2,// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
25
- /** items that only show based on context */
26
- Context = 3
27
- }
28
- /** Defines which side of Icon where label is placed
29
- * @deprecated in 3.6. Use [StatusBarLabelSide]($appui-react) instead.
30
- * @public
31
- */
32
- export declare enum StatusBarLabelSide {
33
- /** Label is placed left side of icon. This is the default if not specified */
34
- Left = 0,
35
- /** Label is placed on right side of icon. */
36
- Right = 1
37
- }
38
- /** Type for StatusBar Item Id
39
- * @deprecated in 3.6. Please use `CommonStatusBarItem["id"]` from @itwin/appui-react.
40
- * @public
41
- */
42
- export type StatusBarItemId = CommonStatusBarItem["id"];
43
- /** Describes the data needed to insert a button into the status bar.
44
- * @deprecated in 3.6. Use [CommonStatusBarItem]($appui-react) instead.
45
- * @public
46
- */
47
- export interface AbstractStatusBarItem extends ProvidedItem {
48
- /** can be used by application to store miscellaneous data. */
49
- applicationData?: any;
50
- /** Describes badge. Renders no badge if not specified. */
51
- readonly badgeType?: BadgeType;
52
- /** Required unique id of the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
53
- readonly id: string;
54
- /** optional data to used by item implementor. */
55
- readonly internalData?: Map<string, any>;
56
- /** Describes if the item is visible or hidden. The default is for the item to be visible. */
57
- readonly isHidden?: boolean | ConditionalBooleanValue;
58
- /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
59
- readonly isDisabled?: boolean | ConditionalBooleanValue;
60
- /** Priority within a section (recommend using values 1 through 100). */
61
- readonly itemPriority: number;
62
- /** status bar section */
63
- readonly section: StatusBarSection;
64
- }
65
- /** Describes the data needed to insert an action item into the status bar.
66
- * @deprecated in 3.6. Use [StatusBarActionItem]($appui-react) instead.
67
- * @public
68
- */
69
- export interface AbstractStatusBarActionItem extends AbstractStatusBarItem {
70
- /** method to execute when icon is pressed */
71
- readonly execute: () => void;
72
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
73
- readonly icon?: string | ConditionalStringValue;
74
- /** Label. */
75
- readonly label?: string | ConditionalStringValue;
76
- /** tooltip. */
77
- readonly tooltip?: string | ConditionalStringValue;
78
- }
79
- /** Describes the data needed to insert a label item with an optional icon into the status bar.
80
- * @deprecated in 3.6. Use [StatusBarLabelItem]($appui-react) instead.
81
- * @public
82
- */
83
- export interface AbstractStatusBarLabelItem extends AbstractStatusBarItem {
84
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
85
- readonly icon?: string | ConditionalStringValue;
86
- /** Label. */
87
- readonly label: string | ConditionalStringValue;
88
- /** Defines which side of icon to display label if icon is defined. */
89
- readonly labelSide?: StatusBarLabelSide;
90
- }
91
- /** Describes the data needed to insert a custom item into the status bar. This is used to allow extension
92
- * implementer to create a framework specific component.
93
- * @deprecated in 3.6. Use [StatusBarCustomItem]($appui-react) instead.
94
- * @public
95
- */
96
- export interface AbstractStatusBarCustomItem extends AbstractStatusBarItem {
97
- readonly isCustom: true;
98
- }
99
- /** Describes the data needed to insert a button into the status bar.
100
- * @deprecated in 3.6. Use [StatusBarItem]($appui-react) instead.
101
- * @public
102
- */
103
- export type CommonStatusBarItem = AbstractStatusBarActionItem | AbstractStatusBarLabelItem | AbstractStatusBarCustomItem;
104
- /** AbstractStatusBarActionItem type guard.
105
- * @deprecated in 3.6. Use [isStatusBarActionItem]($appui-react) instead.
106
- * @public
107
- */
108
- export declare const isAbstractStatusBarActionItem: (item: CommonStatusBarItem) => item is AbstractStatusBarActionItem;
109
- /** AbstractStatusBarLabelItem type guard.
110
- * @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.
111
- * @public
112
- */
113
- export declare const isAbstractStatusBarLabelItem: (item: CommonStatusBarItem) => item is AbstractStatusBarLabelItem;
114
- /** AbstractStatusBarCustomItem type guard.
115
- * @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.
116
- * @public
117
- */
118
- export declare const isAbstractStatusBarCustomItem: (item: CommonStatusBarItem) => item is AbstractStatusBarCustomItem;
119
- /** Helper class to create Abstract StatusBar Item definitions.
120
- * @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.
121
- * @public
122
- */
123
- export declare class AbstractStatusBarItemUtilities {
124
- /** Creates a StatusBar item to perform an action */
125
- static createActionItem: (id: string, section: StatusBarSection, itemPriority: number, icon: string | ConditionalStringValue, tooltip: string | ConditionalStringValue, execute: () => void, overrides?: Partial<AbstractStatusBarCustomItem>) => AbstractStatusBarActionItem;
126
- /** Creates a StatusBar item to display a label */
127
- static createLabelItem: (id: string, section: StatusBarSection, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, labelSide?: StatusBarLabelSide, overrides?: Partial<AbstractStatusBarLabelItem>) => AbstractStatusBarLabelItem;
128
- }
129
- //# sourceMappingURL=StatusBarItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusBarItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/statusbar/StatusBarItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,4CAA4C;IAC5C,OAAO,IAAI;IACX,4CAA4C;IAC5C,IAAI,IAAI,CAAG,kEAAkE;IAC7E,mCAAmC;IACnC,KAAK,IAAI;IACT,mCAAmC;IACnC,MAAM,IAAI,CAAG,kEAAkE;IAC/E,sCAAsC;IACtC,SAAS,IAAI;IACb,sCAAsC;IACtC,KAAK,IAAI,CAAG,kEAAkE;IAC9E,4CAA4C;IAC5C,OAAO,IAAI;CACZ;AAED;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,8EAA8E;IAC9E,IAAI,IAAA;IACJ,6CAA6C;IAC7C,KAAK,IAAA;CACN;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,8DAA8D;IAC9D,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAC/B,kIAAkI;IAClI,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,6FAA6F;IAC7F,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IAAI,IAAI,0BAEhF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,SAAU,mBAAmB,KAAG,IAAI,IAAI,2BAEjF,CAAC;AAEF;;;GAGG;AACH,qBAAa,8BAA8B;IACzC,oDAAoD;IACpD,OAAc,gBAAgB,OAAQ,MAAM,WAAW,gBAAgB,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,WAAW,MAAM,GAAG,sBAAsB,WAAW,MAAM,IAAI,cAAc,OAAO,CAAC,2BAA2B,CAAC,KAAG,2BAA2B,CAKhR;IAEH,kDAAkD;IAClD,OAAc,eAAe,OAAQ,MAAM,WAAW,gBAAgB,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,SAAS,MAAM,GAAG,sBAAsB,8CAAoD,OAAO,CAAC,0BAA0B,CAAC,KAAG,0BAA0B,CAK5R;CACJ"}
@@ -1,81 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module StatusBar
7
- */
8
- /** Status bar Groups/Sections from Left to Right
9
- * @deprecated in 3.6. Use [StatusBarSection]($appui-react) instead.
10
- * @public
11
- */
12
- export var StatusBarSection;
13
- (function (StatusBarSection) {
14
- /** area for tool assistance and messages */
15
- StatusBarSection[StatusBarSection["Message"] = 0] = "Message";
16
- /** area for tool assistance and messages */
17
- StatusBarSection[StatusBarSection["Left"] = 0] = "Left";
18
- /** items specific to stage/task */
19
- StatusBarSection[StatusBarSection["Stage"] = 1] = "Stage";
20
- /** items specific to stage/task */
21
- StatusBarSection[StatusBarSection["Center"] = 1] = "Center";
22
- /** Select scope and selection info */
23
- StatusBarSection[StatusBarSection["Selection"] = 2] = "Selection";
24
- /** Select scope and selection info */
25
- StatusBarSection[StatusBarSection["Right"] = 2] = "Right";
26
- /** items that only show based on context */
27
- StatusBarSection[StatusBarSection["Context"] = 3] = "Context";
28
- })(StatusBarSection || (StatusBarSection = {}));
29
- /** Defines which side of Icon where label is placed
30
- * @deprecated in 3.6. Use [StatusBarLabelSide]($appui-react) instead.
31
- * @public
32
- */
33
- export var StatusBarLabelSide;
34
- (function (StatusBarLabelSide) {
35
- /** Label is placed left side of icon. This is the default if not specified */
36
- StatusBarLabelSide[StatusBarLabelSide["Left"] = 0] = "Left";
37
- /** Label is placed on right side of icon. */
38
- StatusBarLabelSide[StatusBarLabelSide["Right"] = 1] = "Right";
39
- })(StatusBarLabelSide || (StatusBarLabelSide = {}));
40
- /** AbstractStatusBarActionItem type guard.
41
- * @deprecated in 3.6. Use [isStatusBarActionItem]($appui-react) instead.
42
- * @public
43
- */
44
- export const isAbstractStatusBarActionItem = (item) => {
45
- return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
46
- };
47
- /** AbstractStatusBarLabelItem type guard.
48
- * @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.
49
- * @public
50
- */
51
- export const isAbstractStatusBarLabelItem = (item) => {
52
- return item.label !== undefined && item.execute === undefined; // eslint-disable-line @typescript-eslint/no-deprecated
53
- };
54
- /** AbstractStatusBarCustomItem type guard.
55
- * @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.
56
- * @public
57
- */
58
- export const isAbstractStatusBarCustomItem = (item) => {
59
- return !!item.isCustom; // eslint-disable-line @typescript-eslint/no-deprecated
60
- };
61
- /** Helper class to create Abstract StatusBar Item definitions.
62
- * @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.
63
- * @public
64
- */
65
- export class AbstractStatusBarItemUtilities {
66
- }
67
- /** Creates a StatusBar item to perform an action */
68
- AbstractStatusBarItemUtilities.createActionItem = (id, section, itemPriority, icon, tooltip, execute, overrides) => ({
69
- id, section, itemPriority,
70
- icon, tooltip,
71
- execute,
72
- ...overrides,
73
- });
74
- /** Creates a StatusBar item to display a label */
75
- AbstractStatusBarItemUtilities.createLabelItem = (id, section, itemPriority, icon, label, labelSide = StatusBarLabelSide.Right, overrides) => ({
76
- id, section, itemPriority,
77
- icon, label,
78
- labelSide,
79
- ...overrides,
80
- });
81
- //# sourceMappingURL=StatusBarItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusBarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/statusbar/StatusBarItem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAOH;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,4CAA4C;IAC5C,6DAAW,CAAA;IACX,4CAA4C;IAC5C,uDAAQ,CAAA;IACR,mCAAmC;IACnC,yDAAS,CAAA;IACT,mCAAmC;IACnC,2DAAU,CAAA;IACV,sCAAsC;IACtC,iEAAa,CAAA;IACb,sCAAsC;IACtC,yDAAS,CAAA;IACT,4CAA4C;IAC5C,6DAAW,CAAA;AACb,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,8EAA8E;IAC9E,2DAAI,CAAA;IACJ,6CAA6C;IAC7C,6DAAK,CAAA;AACP,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AA0ED;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAyB,EAAuC,EAAE;IAC9G,OAAQ,IAAoC,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,uDAAuD;AAC7H,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAyB,EAAsC,EAAE;IAC5G,OAAQ,IAAmC,CAAC,KAAK,KAAK,SAAS,IAAK,IAAoC,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,uDAAuD;AACzL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAyB,EAAuC,EAAE;IAC9G,OAAO,CAAC,CAAE,IAAoC,CAAC,QAAQ,CAAC,CAAC,uDAAuD;AAClH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,8BAA8B;;AACzC,oDAAoD;AACtC,+CAAgB,GAAG,CAAC,EAAU,EAAE,OAAyB,EAAE,YAAoB,EAAE,IAAqC,EAAE,OAAwC,EAAE,OAAmB,EAAE,SAAgD,EAA+B,EAAE,CAAC,CAAC;IACtR,EAAE,EAAE,OAAO,EAAE,YAAY;IACzB,IAAI,EAAE,OAAO;IACb,OAAO;IACP,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,kDAAkD;AACpC,8CAAe,GAAG,CAAC,EAAU,EAAE,OAAyB,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,SAAS,GAAG,kBAAkB,CAAC,KAAK,EAAE,SAA+C,EAA8B,EAAE,CAAC,CAAC;IAClS,EAAE,EAAE,OAAO,EAAE,YAAY;IACzB,IAAI,EAAE,KAAK;IACX,SAAS;IACT,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 StatusBar\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/** Status bar Groups/Sections from Left to Right\r\n * @deprecated in 3.6. Use [StatusBarSection]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum StatusBarSection {\r\n /** area for tool assistance and messages */\r\n Message = 0,\r\n /** area for tool assistance and messages */\r\n Left = 0, // eslint-disable-line @typescript-eslint/no-duplicate-enum-values\r\n /** items specific to stage/task */\r\n Stage = 1,\r\n /** items specific to stage/task */\r\n Center = 1, // eslint-disable-line @typescript-eslint/no-duplicate-enum-values\r\n /** Select scope and selection info */\r\n Selection = 2,\r\n /** Select scope and selection info */\r\n Right = 2, // eslint-disable-line @typescript-eslint/no-duplicate-enum-values\r\n /** items that only show based on context */\r\n Context = 3,\r\n}\r\n\r\n/** Defines which side of Icon where label is placed\r\n * @deprecated in 3.6. Use [StatusBarLabelSide]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum StatusBarLabelSide {\r\n /** Label is placed left side of icon. This is the default if not specified */\r\n Left,\r\n /** Label is placed on right side of icon. */\r\n Right,\r\n}\r\n\r\n/** Type for StatusBar Item Id\r\n * @deprecated in 3.6. Please use `CommonStatusBarItem[\"id\"]` from @itwin/appui-react.\r\n * @public\r\n */\r\nexport type StatusBarItemId = CommonStatusBarItem[\"id\"];\r\n\r\n/** Describes the data needed to insert a button into the status bar.\r\n * @deprecated in 3.6. Use [CommonStatusBarItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface AbstractStatusBarItem extends ProvidedItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n /** can be used by application to store miscellaneous data. */\r\n applicationData?: any;\r\n /** Describes badge. Renders no badge if not specified. */\r\n readonly badgeType?: BadgeType;\r\n /** Required unique id of 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 /** 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 /** Priority within a section (recommend using values 1 through 100). */\r\n readonly itemPriority: number;\r\n /** status bar section */\r\n readonly section: StatusBarSection; // eslint-disable-line @typescript-eslint/no-deprecated\r\n}\r\n\r\n/** Describes the data needed to insert an action item into the status bar.\r\n * @deprecated in 3.6. Use [StatusBarActionItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface AbstractStatusBarActionItem extends AbstractStatusBarItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n /** method to execute when icon is pressed */\r\n readonly execute: () => void;\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. */\r\n readonly label?: string | ConditionalStringValue;\r\n /** tooltip. */\r\n readonly tooltip?: string | ConditionalStringValue;\r\n}\r\n\r\n/** Describes the data needed to insert a label item with an optional icon into the status bar.\r\n * @deprecated in 3.6. Use [StatusBarLabelItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface AbstractStatusBarLabelItem extends AbstractStatusBarItem { // eslint-disable-line @typescript-eslint/no-deprecated\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. */\r\n readonly label: string | ConditionalStringValue;\r\n /** Defines which side of icon to display label if icon is defined. */\r\n readonly labelSide?: StatusBarLabelSide; // eslint-disable-line @typescript-eslint/no-deprecated\r\n}\r\n\r\n/** Describes the data needed to insert a custom item into the status bar. This is used to allow extension\r\n * implementer to create a framework specific component.\r\n * @deprecated in 3.6. Use [StatusBarCustomItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport interface AbstractStatusBarCustomItem extends AbstractStatusBarItem { // eslint-disable-line @typescript-eslint/no-deprecated\r\n readonly isCustom: true;\r\n}\r\n\r\n/** Describes the data needed to insert a button into the status bar.\r\n * @deprecated in 3.6. Use [StatusBarItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport type CommonStatusBarItem = AbstractStatusBarActionItem | AbstractStatusBarLabelItem | AbstractStatusBarCustomItem; // eslint-disable-line @typescript-eslint/no-deprecated\r\n\r\n/** AbstractStatusBarActionItem type guard.\r\n * @deprecated in 3.6. Use [isStatusBarActionItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport const isAbstractStatusBarActionItem = (item: CommonStatusBarItem): item is AbstractStatusBarActionItem => { // eslint-disable-line @typescript-eslint/no-deprecated\r\n return (item as AbstractStatusBarActionItem).execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated\r\n};\r\n\r\n/** AbstractStatusBarLabelItem type guard.\r\n * @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport const isAbstractStatusBarLabelItem = (item: CommonStatusBarItem): item is AbstractStatusBarLabelItem => { // eslint-disable-line @typescript-eslint/no-deprecated\r\n return (item as AbstractStatusBarLabelItem).label !== undefined && (item as AbstractStatusBarActionItem).execute === undefined; // eslint-disable-line @typescript-eslint/no-deprecated\r\n};\r\n\r\n/** AbstractStatusBarCustomItem type guard.\r\n * @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.\r\n * @public\r\n */\r\nexport const isAbstractStatusBarCustomItem = (item: CommonStatusBarItem): item is AbstractStatusBarCustomItem => { // eslint-disable-line @typescript-eslint/no-deprecated\r\n return !!(item as AbstractStatusBarCustomItem).isCustom; // eslint-disable-line @typescript-eslint/no-deprecated\r\n};\r\n\r\n/** Helper class to create Abstract StatusBar Item definitions.\r\n * @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.\r\n * @public\r\n */\r\nexport class AbstractStatusBarItemUtilities {\r\n /** Creates a StatusBar item to perform an action */\r\n public static createActionItem = (id: string, section: StatusBarSection, itemPriority: number, icon: string | ConditionalStringValue, tooltip: string | ConditionalStringValue, execute: () => void, overrides?: Partial<AbstractStatusBarCustomItem>): AbstractStatusBarActionItem => ({ // eslint-disable-line @typescript-eslint/no-deprecated\r\n id, section, itemPriority,\r\n icon, tooltip,\r\n execute,\r\n ...overrides,\r\n });\r\n\r\n /** Creates a StatusBar item to display a label */\r\n public static createLabelItem = (id: string, section: StatusBarSection, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, labelSide = StatusBarLabelSide.Right, overrides?: Partial<AbstractStatusBarLabelItem>): AbstractStatusBarLabelItem => ({ // eslint-disable-line @typescript-eslint/no-deprecated\r\n id, section, itemPriority,\r\n icon, label,\r\n labelSide,\r\n ...overrides,\r\n });\r\n}\r\n"]}