@itwin/appui-abstract 5.0.0-dev.8 → 5.0.0-dev.82

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 (176) hide show
  1. package/CHANGELOG.md +46 -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/content/StandardContentLayouts.js +91 -91
  5. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  6. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  7. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +4 -0
  8. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  9. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +3 -5
  10. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  11. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  12. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  13. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  14. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  15. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +3 -0
  16. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  17. package/lib/cjs/appui-abstract/properties/Record.js +18 -0
  18. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  19. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  20. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  21. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  22. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  23. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +15 -37
  24. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  25. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  26. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  27. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +3 -20
  28. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  29. package/lib/cjs/appui-abstract/utils/UiError.js +1 -0
  30. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  31. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +7 -0
  32. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  33. package/lib/cjs/appui-abstract.d.ts +1 -28
  34. package/lib/cjs/appui-abstract.d.ts.map +1 -1
  35. package/lib/cjs/appui-abstract.js +1 -28
  36. package/lib/cjs/appui-abstract.js.map +1 -1
  37. package/lib/esm/appui-abstract/UiAdmin.js +4 -5
  38. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  39. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +91 -91
  40. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  41. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  42. package/lib/esm/appui-abstract/dialogs/DialogItem.js +4 -0
  43. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  44. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +3 -5
  45. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  46. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  47. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  48. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  49. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  50. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +3 -0
  51. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  52. package/lib/esm/appui-abstract/properties/Record.js +18 -0
  53. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  54. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  55. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  56. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  57. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  58. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +14 -36
  59. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  60. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  61. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  62. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +3 -20
  63. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  64. package/lib/esm/appui-abstract/utils/UiError.js +1 -0
  65. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  66. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +7 -0
  67. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  68. package/lib/esm/appui-abstract.d.ts +1 -28
  69. package/lib/esm/appui-abstract.d.ts.map +1 -1
  70. package/lib/esm/appui-abstract.js +1 -28
  71. package/lib/esm/appui-abstract.js.map +1 -1
  72. package/package.json +13 -14
  73. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  74. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  75. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +0 -80
  76. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  77. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +0 -111
  78. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +0 -1
  79. package/lib/cjs/appui-abstract/UiItemsManager.js +0 -194
  80. package/lib/cjs/appui-abstract/UiItemsManager.js.map +0 -1
  81. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +0 -30
  82. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  83. package/lib/cjs/appui-abstract/UiItemsProvider.js +0 -10
  84. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +0 -1
  85. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  86. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  87. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +0 -69
  88. package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +0 -1
  89. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  90. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  91. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +0 -136
  92. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  93. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +0 -12
  94. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  95. package/lib/cjs/appui-abstract/items/ProvidedItem.js +0 -10
  96. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +0 -1
  97. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +0 -17
  98. package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +0 -1
  99. package/lib/cjs/appui-abstract/items/StageUsage.js +0 -25
  100. package/lib/cjs/appui-abstract/items/StageUsage.js.map +0 -1
  101. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  102. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  103. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +0 -88
  104. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  105. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  106. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  107. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +0 -136
  108. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  109. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  110. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  111. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +0 -236
  112. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  113. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  114. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  115. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +0 -10
  116. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  117. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +0 -37
  118. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  119. package/lib/cjs/appui-abstract/widget/StagePanel.js +0 -47
  120. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +0 -1
  121. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +0 -20
  122. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  123. package/lib/cjs/appui-abstract/widget/WidgetState.js +0 -28
  124. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +0 -1
  125. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  126. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  127. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +0 -76
  128. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  129. package/lib/esm/appui-abstract/UiItemsManager.d.ts +0 -111
  130. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +0 -1
  131. package/lib/esm/appui-abstract/UiItemsManager.js +0 -190
  132. package/lib/esm/appui-abstract/UiItemsManager.js.map +0 -1
  133. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +0 -30
  134. package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  135. package/lib/esm/appui-abstract/UiItemsProvider.js +0 -9
  136. package/lib/esm/appui-abstract/UiItemsProvider.js.map +0 -1
  137. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  138. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  139. package/lib/esm/appui-abstract/backstage/BackstageItem.js +0 -63
  140. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +0 -1
  141. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  142. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  143. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +0 -132
  144. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  145. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +0 -12
  146. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  147. package/lib/esm/appui-abstract/items/ProvidedItem.js +0 -9
  148. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +0 -1
  149. package/lib/esm/appui-abstract/items/StageUsage.d.ts +0 -17
  150. package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +0 -1
  151. package/lib/esm/appui-abstract/items/StageUsage.js +0 -22
  152. package/lib/esm/appui-abstract/items/StageUsage.js.map +0 -1
  153. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  154. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  155. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +0 -81
  156. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  157. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  158. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  159. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +0 -132
  160. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  161. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  162. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  163. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +0 -232
  164. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  165. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  166. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  167. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +0 -9
  168. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  169. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +0 -37
  170. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  171. package/lib/esm/appui-abstract/widget/StagePanel.js +0 -44
  172. package/lib/esm/appui-abstract/widget/StagePanel.js.map +0 -1
  173. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +0 -20
  174. package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  175. package/lib/esm/appui-abstract/widget/WidgetState.js +0 -25
  176. package/lib/esm/appui-abstract/widget/WidgetState.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"UiError.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiError.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAuB,MAAM,qBAAqB,CAAC;AAEvF;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,YAAY;IAEvC,6CAA6C;IAC7C,YAA0B,QAAgB,EAAE,OAAe,EAAE,cAAsB,aAAa,CAAC,KAAK,EAAE,WAAiC;QACvI,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QADjB,aAAQ,GAAR,QAAQ,CAAQ;IAE1C,CAAC;CACF","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 Utilities\n */\n\nimport { BentleyError, BentleyStatus, GetMetaDataFunction } from \"@itwin/core-bentley\";\n\n/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.\n * @public @deprecated in 4.3. Use [[Bentley.BentleyError]] instead.\n */\nexport class UiError extends BentleyError {\n\n /** Constructs UiError using BentleyError. */\n public constructor(public category: string, message: string, errorNumber: number = BentleyStatus.ERROR, getMetaData?: GetMetaDataFunction) {\n super(errorNumber, message, getMetaData);\n }\n}\n"]}
1
+ {"version":3,"file":"UiError.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiError.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAuB,MAAM,qBAAqB,CAAC;AAEvF;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,YAAY;IAGb;IAD1B,6CAA6C;IAC7C,YAA0B,QAAgB,EAAE,OAAe,EAAE,cAAsB,aAAa,CAAC,KAAK,EAAE,WAAiC;QACvI,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QADjB,aAAQ,GAAR,QAAQ,CAAQ;IAE1C,CAAC;CACF","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 Utilities\n */\n\nimport { BentleyError, BentleyStatus, GetMetaDataFunction } from \"@itwin/core-bentley\";\n\n/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.\n * @public @deprecated in 4.3. Use [[Bentley.BentleyError]] instead.\n */\nexport class UiError extends BentleyError {\n\n /** Constructs UiError using BentleyError. */\n public constructor(public category: string, message: string, errorNumber: number = BentleyStatus.ERROR, getMetaData?: GetMetaDataFunction) {\n super(errorNumber, message, getMetaData);\n }\n}\n"]}
@@ -18,6 +18,13 @@ export class UiSyncEvent extends BeUiEvent {
18
18
  * @deprecated in 4.2.x Use [[SyncUiEventDispatcher]] from @itwin/appui-react.
19
19
  */
20
20
  export class UiEventDispatcher {
21
+ _syncEventTimerId;
22
+ _eventIds;
23
+ _eventIdAdded;
24
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
25
+ _uiSyncEvent;
26
+ _timeoutPeriod;
27
+ _secondaryTimeoutPeriod;
21
28
  constructor() {
22
29
  this._eventIds = new Set();
23
30
  this._eventIdAdded = false;
@@ -1 +1 @@
1
- {"version":3,"file":"UiEventDispatcher.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiEventDispatcher.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAUhD;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,SAA0B;CAAI;AAE/D;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IAS5B;QACE,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,4DAA4D;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;QAC1B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IACzD,CAAC;IAED,wCAAwC;IACxC,0BAA0B;IACnB,gBAAgB,CAAC,MAAc;QACpC,IAAI,CAAC,cAAc,GAAG,MAAM,C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AI,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;gBAC/B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;gBACnC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;gBACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;YACD,OAAO;QACT,CAAC;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC5C,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;QACrC,CAAC;QACD,uBAAuB;QACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,yHAAyH;QACzH,uBAAuB;QACvB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACpH,CAAC;IAED,kFAAkF;IAC3E,kBAAkB,CAAC,QAAqB,EAAE,aAAuB;QACtE,0BAA0B;QAC1B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;YACjH,OAAO,IAAI,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;CACF","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 Utilities\n */\n\nimport { BeUiEvent } from \"@itwin/core-bentley\";\n\n/** UiSync Event arguments. Contains a set of lower case event Ids.\n * @public\n * @deprecated in 4.2.x Please use [[UiSyncEventArgs]] in @itwin/appui-react\n */\nexport interface UiSyncEventArgs {\n eventIds: Set<string>;\n}\n\n/** UiSync Event class.\n * @public\n * @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.\n */\nexport class UiSyncEvent extends BeUiEvent<UiSyncEventArgs> { }\n\n/** This class is used to send eventIds to interested UI components so the component can determine if it needs\n * to refresh its display by calling setState on itself.\n * @public\n * @deprecated in 4.2.x Use [[SyncUiEventDispatcher]] from @itwin/appui-react.\n */\nexport class UiEventDispatcher {\n private _syncEventTimerId: number | undefined;\n private _eventIds: Set<string>;\n private _eventIdAdded;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private _uiSyncEvent: UiSyncEvent;\n private _timeoutPeriod;\n private _secondaryTimeoutPeriod;\n\n constructor() {\n this._eventIds = new Set<string>();\n this._eventIdAdded = false;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this._uiSyncEvent = new UiSyncEvent();\n this._timeoutPeriod = 100;\n this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;\n }\n\n /** @internal - used for testing only */\n /* istanbul ignore next */\n public setTimeoutPeriod(period: number): void {\n this._timeoutPeriod = period;\n this._secondaryTimeoutPeriod = Math.floor(this._timeoutPeriod / 2);\n if (this._secondaryTimeoutPeriod < 1)\n this._secondaryTimeoutPeriod = 1;\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n if (this._eventIds)\n this._eventIds.clear();\n\n this._eventIdAdded = false;\n }\n\n /** The current timeout period */\n public get timeoutPeriod(): number {\n return this._timeoutPeriod;\n }\n /** Return set of event ids that will be sent to listeners/. */\n public get syncEventIds(): Set<string> {\n return this._eventIds;\n }\n\n /** Return UiSyncEvent so callers can register an event callback. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public get onSyncUiEvent(): UiSyncEvent {\n return this._uiSyncEvent;\n }\n\n /** Immediately trigger sync event processing. */\n public dispatchImmediateSyncUiEvent(eventId: string): void {\n const eventIds = new Set<string>();\n eventIds.add(eventId.toLowerCase());\n this.onSyncUiEvent.emit({ eventIds });\n }\n\n /** Save eventId in Set for processing. */\n public dispatchSyncUiEvent(eventId: string): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n this.syncEventIds.add(eventId.toLowerCase());\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Save multiple eventIds in Set for processing. */\n public dispatchSyncUiEvents(eventIds: string[]): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n eventIds.forEach((id) => this.syncEventIds.add(id.toLowerCase()));\n // istanbul ignore else\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Trigger registered event processing when timer has expired and no addition eventId are added. */\n public checkForAdditionalIds() {\n /* istanbul ignore else */\n if (!this._eventIdAdded) {\n // istanbul ignore else\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n this._eventIdAdded = false;\n // istanbul ignore else\n if (this.syncEventIds.size > 0) {\n const eventIds = new Set<string>();\n this.syncEventIds.forEach((value) => eventIds.add(value));\n this._eventIds.clear();\n this.onSyncUiEvent.emit({ eventIds });\n }\n return;\n }\n\n // istanbul ignore next\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n // istanbul ignore next\n this._eventIdAdded = false;\n // if events have been added before the initial timer expired wait half that time to see if events are still being added.\n // istanbul ignore next\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._secondaryTimeoutPeriod);\n }\n\n /** Checks to see if an eventId of interest is contained in the set of eventIds */\n public hasEventOfInterest(eventIds: Set<string>, idsOfInterest: string[]) {\n /* istanbul ignore else */\n if ((idsOfInterest.length > 0) && idsOfInterest.some((value: string): boolean => eventIds.has(value.toLowerCase())))\n return true;\n return false;\n }\n}\n"]}
1
+ {"version":3,"file":"UiEventDispatcher.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiEventDispatcher.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAUhD;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,SAA0B;CAAI;AAE/D;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IACpB,iBAAiB,CAAqB;IACtC,SAAS,CAAc;IACvB,aAAa,CAAC;IACtB,4DAA4D;IACpD,YAAY,CAAc;IAC1B,cAAc,CAAC;IACf,uBAAuB,CAAC;IAEhC;QACE,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,4DAA4D;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;QAC1B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IACzD,CAAC;IAED,wCAAwC;IACxC,0BAA0B;IACnB,gBAAgB,CAAC,MAAc;QACpC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;QAC7B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;QACnE,IAAI,IAAI,CAAC,uBA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C,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;gBACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;YACD,OAAO;QACT,CAAC;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC5C,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;QACrC,CAAC;QACD,uBAAuB;QACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,yHAAyH;QACzH,uBAAuB;QACvB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACpH,CAAC;IAED,kFAAkF;IAC3E,kBAAkB,CAAC,QAAqB,EAAE,aAAuB;QACtE,0BAA0B;QAC1B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;YACjH,OAAO,IAAI,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;CACF","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 Utilities\n */\n\nimport { BeUiEvent } from \"@itwin/core-bentley\";\n\n/** UiSync Event arguments. Contains a set of lower case event Ids.\n * @public\n * @deprecated in 4.2.x Please use [[UiSyncEventArgs]] in @itwin/appui-react\n */\nexport interface UiSyncEventArgs {\n eventIds: Set<string>;\n}\n\n/** UiSync Event class.\n * @public\n * @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.\n */\nexport class UiSyncEvent extends BeUiEvent<UiSyncEventArgs> { }\n\n/** This class is used to send eventIds to interested UI components so the component can determine if it needs\n * to refresh its display by calling setState on itself.\n * @public\n * @deprecated in 4.2.x Use [[SyncUiEventDispatcher]] from @itwin/appui-react.\n */\nexport class UiEventDispatcher {\n private _syncEventTimerId: number | undefined;\n private _eventIds: Set<string>;\n private _eventIdAdded;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private _uiSyncEvent: UiSyncEvent;\n private _timeoutPeriod;\n private _secondaryTimeoutPeriod;\n\n constructor() {\n this._eventIds = new Set<string>();\n this._eventIdAdded = false;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this._uiSyncEvent = new UiSyncEvent();\n this._timeoutPeriod = 100;\n this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;\n }\n\n /** @internal - used for testing only */\n /* istanbul ignore next */\n public setTimeoutPeriod(period: number): void {\n this._timeoutPeriod = period;\n this._secondaryTimeoutPeriod = Math.floor(this._timeoutPeriod / 2);\n if (this._secondaryTimeoutPeriod < 1)\n this._secondaryTimeoutPeriod = 1;\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n if (this._eventIds)\n this._eventIds.clear();\n\n this._eventIdAdded = false;\n }\n\n /** The current timeout period */\n public get timeoutPeriod(): number {\n return this._timeoutPeriod;\n }\n /** Return set of event ids that will be sent to listeners/. */\n public get syncEventIds(): Set<string> {\n return this._eventIds;\n }\n\n /** Return UiSyncEvent so callers can register an event callback. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public get onSyncUiEvent(): UiSyncEvent {\n return this._uiSyncEvent;\n }\n\n /** Immediately trigger sync event processing. */\n public dispatchImmediateSyncUiEvent(eventId: string): void {\n const eventIds = new Set<string>();\n eventIds.add(eventId.toLowerCase());\n this.onSyncUiEvent.emit({ eventIds });\n }\n\n /** Save eventId in Set for processing. */\n public dispatchSyncUiEvent(eventId: string): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n this.syncEventIds.add(eventId.toLowerCase());\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Save multiple eventIds in Set for processing. */\n public dispatchSyncUiEvents(eventIds: string[]): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n eventIds.forEach((id) => this.syncEventIds.add(id.toLowerCase()));\n // istanbul ignore else\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Trigger registered event processing when timer has expired and no addition eventId are added. */\n public checkForAdditionalIds() {\n /* istanbul ignore else */\n if (!this._eventIdAdded) {\n // istanbul ignore else\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n this._eventIdAdded = false;\n // istanbul ignore else\n if (this.syncEventIds.size > 0) {\n const eventIds = new Set<string>();\n this.syncEventIds.forEach((value) => eventIds.add(value));\n this._eventIds.clear();\n this.onSyncUiEvent.emit({ eventIds });\n }\n return;\n }\n\n // istanbul ignore next\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n // istanbul ignore next\n this._eventIdAdded = false;\n // if events have been added before the initial timer expired wait half that time to see if events are still being added.\n // istanbul ignore next\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._secondaryTimeoutPeriod);\n }\n\n /** Checks to see if an eventId of interest is contained in the set of eventIds */\n public hasEventOfInterest(eventIds: Set<string>, idsOfInterest: string[]) {\n /* istanbul ignore else */\n if ((idsOfInterest.length > 0) && idsOfInterest.some((value: string): boolean => eventIds.has(value.toLowerCase())))\n return true;\n return false;\n }\n}\n"]}
@@ -1,9 +1,4 @@
1
- export * from "./appui-abstract/BaseUiItemsProvider";
2
1
  export * from "./appui-abstract/UiAdmin";
3
- export * from "./appui-abstract/UiItemsManager";
4
- export * from "./appui-abstract/UiItemsProvider";
5
- export * from "./appui-abstract/backstage/BackstageItem";
6
- export * from "./appui-abstract/backstage/BackstageItemsManager";
7
2
  export * from "./appui-abstract/common/KeyboardKey";
8
3
  export * from "./appui-abstract/content/ContentLayoutProps";
9
4
  export * from "./appui-abstract/content/StandardContentLayouts";
@@ -16,9 +11,7 @@ export * from "./appui-abstract/items/AbstractToolbarProps";
16
11
  export * from "./appui-abstract/items/BadgeType";
17
12
  export * from "./appui-abstract/items/ConditionalBooleanValue";
18
13
  export * from "./appui-abstract/items/ConditionalStringValue";
19
- export * from "./appui-abstract/items/ProvidedItem";
20
14
  export * from "./appui-abstract/items/RelativePosition";
21
- export * from "./appui-abstract/items/StageUsage";
22
15
  export * from "./appui-abstract/notification/MessagePresenter";
23
16
  export * from "./appui-abstract/notification/MessageSeverity";
24
17
  export * from "./appui-abstract/properties/Description";
@@ -29,12 +22,7 @@ export * from "./appui-abstract/properties/StandardEditorNames";
29
22
  export * from "./appui-abstract/properties/StandardTypeNames";
30
23
  export * from "./appui-abstract/properties/Value";
31
24
  export * from "./appui-abstract/quantity/BaseQuantityDescription";
32
- export * from "./appui-abstract/statusbar/StatusBarItem";
33
- export * from "./appui-abstract/statusbar/StatusBarItemsManager";
34
25
  export * from "./appui-abstract/toolbars/ToolbarItem";
35
- export * from "./appui-abstract/toolbars/ToolbarItemsManager";
36
- export * from "./appui-abstract/statusbar/StatusBarItem";
37
- export * from "./appui-abstract/statusbar/StatusBarItemsManager";
38
26
  export * from "./appui-abstract/utils/callbacks";
39
27
  export * from "./appui-abstract/utils/misc";
40
28
  export * from "./appui-abstract/utils/IconSpecUtilities";
@@ -43,17 +31,10 @@ export * from "./appui-abstract/utils/UiError";
43
31
  export * from "./appui-abstract/utils/UiEventDispatcher";
44
32
  export * from "./appui-abstract/utils/UiEvent";
45
33
  export * from "./appui-abstract/utils/filter/filters";
46
- export * from "./appui-abstract/widget/AbstractWidgetProps";
47
- export * from "./appui-abstract/widget/StagePanel";
48
- export * from "./appui-abstract/widget/WidgetState";
49
34
  /** @docs-package-description
50
35
  * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
51
36
  * For more information, see [UI]($docs/ui/index.md).
52
37
  */
53
- /**
54
- * @docs-group-description Backstage
55
- * Abstractions used by appui-react package to create and manage the display Backstage menu items.
56
- */
57
38
  /**
58
39
  * @docs-group-description ContentView
59
40
  * Classes and interfaces used with Content Layouts.
@@ -74,10 +55,6 @@ export * from "./appui-abstract/widget/WidgetState";
74
55
  * @docs-group-description Properties
75
56
  * Properties system for data input and formatting.
76
57
  */
77
- /**
78
- * @docs-group-description StatusBar
79
- * Classes for creating and managing items in the status bar.
80
- */
81
58
  /**
82
59
  * @docs-group-description Toolbar
83
60
  * Classes for creating and managing items in a toolbar.
@@ -93,9 +70,5 @@ export * from "./appui-abstract/widget/WidgetState";
93
70
  /**
94
71
  * @docs-group-description Utilities
95
72
  * Various utility classes for working with a UI.
96
- */
97
- /**
98
- * @docs-group-description Widget
99
- * Classes for creating and providing Widgets.
100
- */
73
+ */
101
74
  //# sourceMappingURL=appui-abstract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appui-abstract.d.ts","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAKA,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;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AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
1
+ {"version":3,"file":"appui-abstract.d.ts","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAKA,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAE9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAElD,cAAc,mDAAmD,CAAC;AAElE,cAAc,uCAAuC,CAAC;AAEtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAEtD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
@@ -2,12 +2,7 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export * from "./appui-abstract/BaseUiItemsProvider";
6
5
  export * from "./appui-abstract/UiAdmin";
7
- export * from "./appui-abstract/UiItemsManager";
8
- export * from "./appui-abstract/UiItemsProvider";
9
- export * from "./appui-abstract/backstage/BackstageItem";
10
- export * from "./appui-abstract/backstage/BackstageItemsManager";
11
6
  export * from "./appui-abstract/common/KeyboardKey";
12
7
  export * from "./appui-abstract/content/ContentLayoutProps";
13
8
  export * from "./appui-abstract/content/StandardContentLayouts";
@@ -20,9 +15,7 @@ export * from "./appui-abstract/items/AbstractToolbarProps";
20
15
  export * from "./appui-abstract/items/BadgeType";
21
16
  export * from "./appui-abstract/items/ConditionalBooleanValue";
22
17
  export * from "./appui-abstract/items/ConditionalStringValue";
23
- export * from "./appui-abstract/items/ProvidedItem";
24
18
  export * from "./appui-abstract/items/RelativePosition";
25
- export * from "./appui-abstract/items/StageUsage";
26
19
  export * from "./appui-abstract/notification/MessagePresenter";
27
20
  export * from "./appui-abstract/notification/MessageSeverity";
28
21
  export * from "./appui-abstract/properties/Description";
@@ -33,12 +26,7 @@ export * from "./appui-abstract/properties/StandardEditorNames";
33
26
  export * from "./appui-abstract/properties/StandardTypeNames";
34
27
  export * from "./appui-abstract/properties/Value";
35
28
  export * from "./appui-abstract/quantity/BaseQuantityDescription";
36
- export * from "./appui-abstract/statusbar/StatusBarItem";
37
- export * from "./appui-abstract/statusbar/StatusBarItemsManager";
38
29
  export * from "./appui-abstract/toolbars/ToolbarItem";
39
- export * from "./appui-abstract/toolbars/ToolbarItemsManager";
40
- export * from "./appui-abstract/statusbar/StatusBarItem";
41
- export * from "./appui-abstract/statusbar/StatusBarItemsManager";
42
30
  export * from "./appui-abstract/utils/callbacks";
43
31
  export * from "./appui-abstract/utils/misc";
44
32
  export * from "./appui-abstract/utils/IconSpecUtilities";
@@ -47,17 +35,10 @@ export * from "./appui-abstract/utils/UiError";
47
35
  export * from "./appui-abstract/utils/UiEventDispatcher";
48
36
  export * from "./appui-abstract/utils/UiEvent";
49
37
  export * from "./appui-abstract/utils/filter/filters";
50
- export * from "./appui-abstract/widget/AbstractWidgetProps";
51
- export * from "./appui-abstract/widget/StagePanel";
52
- export * from "./appui-abstract/widget/WidgetState";
53
38
  /** @docs-package-description
54
39
  * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
55
40
  * For more information, see [UI]($docs/ui/index.md).
56
41
  */
57
- /**
58
- * @docs-group-description Backstage
59
- * Abstractions used by appui-react package to create and manage the display Backstage menu items.
60
- */
61
42
  /**
62
43
  * @docs-group-description ContentView
63
44
  * Classes and interfaces used with Content Layouts.
@@ -78,10 +59,6 @@ export * from "./appui-abstract/widget/WidgetState";
78
59
  * @docs-group-description Properties
79
60
  * Properties system for data input and formatting.
80
61
  */
81
- /**
82
- * @docs-group-description StatusBar
83
- * Classes for creating and managing items in the status bar.
84
- */
85
62
  /**
86
63
  * @docs-group-description Toolbar
87
64
  * Classes for creating and managing items in a toolbar.
@@ -97,9 +74,5 @@ export * from "./appui-abstract/widget/WidgetState";
97
74
  /**
98
75
  * @docs-group-description Utilities
99
76
  * Various utility classes for working with a UI.
100
- */
101
- /**
102
- * @docs-group-description Widget
103
- * Classes for creating and providing Widgets.
104
- */
77
+ */
105
78
  //# sourceMappingURL=appui-abstract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AAEjE,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAEhE,c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---------------------------------------------------------------------------------------------\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\nexport * from \"./appui-abstract/BaseUiItemsProvider\";\nexport * from \"./appui-abstract/UiAdmin\";\nexport * from \"./appui-abstract/UiItemsManager\";\nexport * from \"./appui-abstract/UiItemsProvider\";\n\nexport * from \"./appui-abstract/backstage/BackstageItem\";\nexport * from \"./appui-abstract/backstage/BackstageItemsManager\";\n\nexport * from \"./appui-abstract/common/KeyboardKey\";\n\nexport * from \"./appui-abstract/content/ContentLayoutProps\";\nexport * from \"./appui-abstract/content/StandardContentLayouts\";\n\nexport * from \"./appui-abstract/dialogs/DialogItem\";\nexport * from \"./appui-abstract/dialogs/UiLayoutDataProvider\";\nexport * from \"./appui-abstract/dialogs/UiDataProvider\";\n\nexport * from \"./appui-abstract/items/AbstractItemProps\";\nexport * from \"./appui-abstract/items/AbstractMenuItemProps\";\nexport * from \"./appui-abstract/items/AbstractToolbarProps\";\nexport * from \"./appui-abstract/items/BadgeType\";\nexport * from \"./appui-abstract/items/ConditionalBooleanValue\";\nexport * from \"./appui-abstract/items/ConditionalStringValue\";\nexport * from \"./appui-abstract/items/ProvidedItem\";\nexport * from \"./appui-abstract/items/RelativePosition\";\nexport * from \"./appui-abstract/items/StageUsage\";\n\nexport * from \"./appui-abstract/notification/MessagePresenter\";\nexport * from \"./appui-abstract/notification/MessageSeverity\";\n\nexport * from \"./appui-abstract/properties/Description\";\nexport * from \"./appui-abstract/properties/EditorParams\";\nexport * from \"./appui-abstract/properties/PrimitiveTypes\";\nexport * from \"./appui-abstract/properties/Record\";\nexport * from \"./appui-abstract/properties/StandardEditorNames\";\nexport * from \"./appui-abstract/properties/StandardTypeNames\";\nexport * from \"./appui-abstract/properties/Value\";\n\nexport * from \"./appui-abstract/quantity/BaseQuantityDescription\";\nexport * from \"./appui-abstract/statusbar/StatusBarItem\";\nexport * from \"./appui-abstract/statusbar/StatusBarItemsManager\";\n\nexport * from \"./appui-abstract/toolbars/ToolbarItem\";\nexport * from \"./appui-abstract/toolbars/ToolbarItemsManager\";\n\nexport * from \"./appui-abstract/statusbar/StatusBarItem\";\nexport * from \"./appui-abstract/statusbar/StatusBarItemsManager\";\n\nexport * from \"./appui-abstract/utils/callbacks\";\nexport * from \"./appui-abstract/utils/misc\";\nexport * from \"./appui-abstract/utils/IconSpecUtilities\";\nexport * from \"./appui-abstract/utils/PointProps\";\nexport * from \"./appui-abstract/utils/UiError\";\nexport * from \"./appui-abstract/utils/UiEventDispatcher\";\nexport * from \"./appui-abstract/utils/UiEvent\";\nexport * from \"./appui-abstract/utils/filter/filters\";\n\nexport * from \"./appui-abstract/widget/AbstractWidgetProps\";\nexport * from \"./appui-abstract/widget/StagePanel\";\nexport * from \"./appui-abstract/widget/WidgetState\";\n\n/** @docs-package-description\n * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.\n * For more information, see [UI]($docs/ui/index.md).\n */\n/**\n * @docs-group-description Backstage\n * Abstractions used by appui-react package to create and manage the display Backstage menu items.\n */\n/**\n * @docs-group-description ContentView\n * Classes and interfaces used with Content Layouts.\n */\n/**\n * @docs-group-description Dialog\n * Interfaces and classes for generating UI items for Dialogs.\n */\n/**\n * @docs-group-description Item\n * Classes for working with an Item in a Toolbar, Widget, Backstage or Context Menu\n */\n/**\n * @docs-group-description Notification\n * Interfaces and enums for working with a message\n */\n/**\n * @docs-group-description Properties\n * Properties system for data input and formatting.\n */\n/**\n * @docs-group-description StatusBar\n * Classes for creating and managing items in the status bar.\n */\n/**\n * @docs-group-description Toolbar\n * Classes for creating and managing items in a toolbar.\n */\n/**\n * @docs-group-description UiAdmin\n * Abstractions for UI controls, such as toolbars, buttons and menus and are callable from IModelApp.uiAdmin in core-frontend.\n */\n/**\n * @docs-group-description UiItemsProvider\n * Interface for specifying UI items to be inserted at runtime.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes for working with a UI.\n */\n/**\n * @docs-group-description Widget\n * Classes for creating and providing Widgets.\n */\n"]}
1
+ {"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAE9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAElD,cAAc,mDAAmD,CAAC;AAElE,cAAc,uCAAuC,CAAC;AAEtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAEtD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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\nexport * from \"./appui-abstract/UiAdmin\";\n\nexport * from \"./appui-abstract/common/KeyboardKey\";\n\nexport * from \"./appui-abstract/content/ContentLayoutProps\";\nexport * from \"./appui-abstract/content/StandardContentLayouts\";\n\nexport * from \"./appui-abstract/dialogs/DialogItem\";\nexport * from \"./appui-abstract/dialogs/UiLayoutDataProvider\";\nexport * from \"./appui-abstract/dialogs/UiDataProvider\";\n\nexport * from \"./appui-abstract/items/AbstractItemProps\";\nexport * from \"./appui-abstract/items/AbstractMenuItemProps\";\nexport * from \"./appui-abstract/items/AbstractToolbarProps\";\nexport * from \"./appui-abstract/items/BadgeType\";\nexport * from \"./appui-abstract/items/ConditionalBooleanValue\";\nexport * from \"./appui-abstract/items/ConditionalStringValue\";\nexport * from \"./appui-abstract/items/RelativePosition\";\n\nexport * from \"./appui-abstract/notification/MessagePresenter\";\nexport * from \"./appui-abstract/notification/MessageSeverity\";\n\nexport * from \"./appui-abstract/properties/Description\";\nexport * from \"./appui-abstract/properties/EditorParams\";\nexport * from \"./appui-abstract/properties/PrimitiveTypes\";\nexport * from \"./appui-abstract/properties/Record\";\nexport * from \"./appui-abstract/properties/StandardEditorNames\";\nexport * from \"./appui-abstract/properties/StandardTypeNames\";\nexport * from \"./appui-abstract/properties/Value\";\n\nexport * from \"./appui-abstract/quantity/BaseQuantityDescription\";\n\nexport * from \"./appui-abstract/toolbars/ToolbarItem\";\n\nexport * from \"./appui-abstract/utils/callbacks\";\nexport * from \"./appui-abstract/utils/misc\";\nexport * from \"./appui-abstract/utils/IconSpecUtilities\";\nexport * from \"./appui-abstract/utils/PointProps\";\nexport * from \"./appui-abstract/utils/UiError\";\nexport * from \"./appui-abstract/utils/UiEventDispatcher\";\nexport * from \"./appui-abstract/utils/UiEvent\";\nexport * from \"./appui-abstract/utils/filter/filters\";\n\n/** @docs-package-description\n * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.\n * For more information, see [UI]($docs/ui/index.md).\n */\n/**\n * @docs-group-description ContentView\n * Classes and interfaces used with Content Layouts.\n */\n/**\n * @docs-group-description Dialog\n * Interfaces and classes for generating UI items for Dialogs.\n */\n/**\n * @docs-group-description Item\n * Classes for working with an Item in a Toolbar, Widget, Backstage or Context Menu\n */\n/**\n * @docs-group-description Notification\n * Interfaces and enums for working with a message\n */\n/**\n * @docs-group-description Properties\n * Properties system for data input and formatting.\n */\n/**\n * @docs-group-description Toolbar\n * Classes for creating and managing items in a toolbar.\n */\n/**\n * @docs-group-description UiAdmin\n * Abstractions for UI controls, such as toolbars, buttons and menus and are callable from IModelApp.uiAdmin in core-frontend.\n */\n/**\n * @docs-group-description UiItemsProvider\n * Interface for specifying UI items to be inserted at runtime.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes for working with a UI.\n */"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/appui-abstract",
3
- "version": "5.0.0-dev.8",
3
+ "version": "5.0.0-dev.82",
4
4
  "description": "iTwin.js UI abstractions",
5
5
  "main": "lib/cjs/appui-abstract.js",
6
6
  "module": "lib/esm/appui-abstract.js",
@@ -22,7 +22,7 @@
22
22
  "url": "http://www.bentley.com"
23
23
  },
24
24
  "peerDependencies": {
25
- "@itwin/core-bentley": "^5.0.0-dev.8"
25
+ "@itwin/core-bentley": "5.0.0-dev.82"
26
26
  },
27
27
  "//devDependencies": [
28
28
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -35,23 +35,22 @@
35
35
  "@types/sinon": "^17.0.2",
36
36
  "@types/sinon-chai": "^3.2.0",
37
37
  "babel-loader": "~8.2.5",
38
- "babel-plugin-istanbul": "~6.1.1",
38
+ "babel-plugin-istanbul": "^7.0.0",
39
39
  "chai": "^4.3.10",
40
- "cpx2": "^3.0.0",
40
+ "cpx2": "^8.0.0",
41
41
  "eslint": "^9.13.0",
42
42
  "glob": "^10.3.12",
43
- "ignore-styles": "^5.0.1",
44
- "mocha": "^10.2.0",
43
+ "mocha": "^11.1.0",
45
44
  "raf": "^3.4.0",
46
- "rimraf": "^3.0.2",
45
+ "rimraf": "^6.0.1",
47
46
  "sinon": "^17.0.2",
48
47
  "sinon-chai": "^3.7.0",
49
- "source-map-loader": "^4.0.0",
48
+ "source-map-loader": "^5.0.0",
50
49
  "typescript": "~5.6.2",
51
- "webpack": "^5.76.0",
52
- "@itwin/core-bentley": "5.0.0-dev.8",
53
- "@itwin/certa": "5.0.0-dev.8",
54
- "@itwin/build-tools": "5.0.0-dev.8"
50
+ "webpack": "^5.97.1",
51
+ "@itwin/build-tools": "5.0.0-dev.82",
52
+ "@itwin/core-bentley": "5.0.0-dev.82",
53
+ "@itwin/certa": "5.0.0-dev.82"
55
54
  },
56
55
  "//dependencies": [
57
56
  "NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
@@ -60,10 +59,10 @@
60
59
  "scripts": {
61
60
  "build": "npm run -s build:cjs && npm run -s build:esm",
62
61
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
63
- "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm",
62
+ "build:esm": "tsc 1>&2 --module ES2022 --outDir lib/esm",
64
63
  "copy:locale": "cpx \"./public/**/*\" ./lib/public",
65
64
  "pseudolocalize": "betools pseudolocalize --englishDir ./public/locales/en --out ./public/locales/en-PSEUDO",
66
- "clean": "rimraf lib .rush/temp/package-deps*.json",
65
+ "clean": "rimraf -g lib .rush/temp/package-deps*.json",
67
66
  "cover": "npm -s test",
68
67
  "docs": "betools docs --json=../../generated-docs/ui/appui-abstract/file.json --tsIndexFile=./appui-abstract.ts --onlyJson",
69
68
  "lint": "eslint \"./src/**/*.ts\" 1>&2",
@@ -1,31 +0,0 @@
1
- /** @packageDocumentation
2
- * @module UiItemsProvider
3
- */
4
- import { BackstageItem } from "./backstage/BackstageItem";
5
- import { CommonStatusBarItem } from "./statusbar/StatusBarItem";
6
- import { CommonToolbarItem, ToolbarOrientation, ToolbarUsage } from "./toolbars/ToolbarItem";
7
- import { AbstractWidgetProps } from "./widget/AbstractWidgetProps";
8
- import { AbstractZoneLocation, StagePanelLocation, StagePanelSection } from "./widget/StagePanel";
9
- import { UiItemsProvider } from "./UiItemsProvider";
10
- /** Base implementation of a UiItemsProvider. The base class allows the user to pass in a function that is used to determine if the
11
- * active stage should be provided items. Derived provider classes should override the `xxxInternal` methods to provide items.
12
- * @deprecated in 3.6. Use [BaseUiItemsProvider]($appui-react) instead.
13
- * @public
14
- */
15
- export declare class BaseUiItemsProvider implements UiItemsProvider {
16
- protected _providerId: string;
17
- isSupportedStage?: ((stageId: string, stageUsage: string, stageAppData?: any, provider?: UiItemsProvider) => boolean) | undefined;
18
- constructor(_providerId: string, isSupportedStage?: ((stageId: string, stageUsage: string, stageAppData?: any, provider?: UiItemsProvider) => boolean) | undefined);
19
- get id(): string;
20
- onUnregister(): void;
21
- unregister(): void;
22
- /** Backstage items are not stage specific so no callback is used */
23
- provideBackstageItems(): BackstageItem[];
24
- provideToolbarButtonItemsInternal(_stageId: string, _stageUsage: string, _toolbarUsage: ToolbarUsage, _toolbarOrientation: ToolbarOrientation, _stageAppData?: any): CommonToolbarItem[];
25
- provideToolbarButtonItems(stageId: string, stageUsage: string, toolbarUsage: ToolbarUsage, toolbarOrientation: ToolbarOrientation, stageAppData?: any): CommonToolbarItem[];
26
- provideStatusBarItemsInternal(_stageId: string, _stageUsage: string, _stageAppData?: any): CommonStatusBarItem[];
27
- provideStatusBarItems(stageId: string, stageUsage: string, stageAppData?: any): CommonStatusBarItem[];
28
- provideWidgetsInternal(_stageId: string, _stageUsage: string, _location: StagePanelLocation, _section?: StagePanelSection, _zoneLocation?: AbstractZoneLocation, _stageAppData?: any): AbstractWidgetProps[];
29
- provideWidgets(stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection, _zoneLocation?: AbstractZoneLocation, stageAppData?: any): ReadonlyArray<AbstractWidgetProps>;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G,GAAG,iBAAiB,EAAE;IAGxL,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,iBAAiB,EAAE;IAY3K,6BAA6B,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,GAAG,GAAG,mBAAmB,EAAE;IAGhH,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,mBAAmB,EAAE;IAYrG,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,GAAG,GAAG,mBAAmB,EAAE;IAI5M,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAClH,aAAa,CAAC,EAAE,oBAAoB,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,aAAa,CAAC,mBAAmB,CAAC;CAWhG"}
@@ -1,80 +0,0 @@
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
- /* eslint-disable @typescript-eslint/no-deprecated */
7
- /** @packageDocumentation
8
- * @module UiItemsProvider
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.BaseUiItemsProvider = void 0;
12
- const StageUsage_1 = require("./items/StageUsage");
13
- const UiItemsManager_1 = require("./UiItemsManager");
14
- /** Base implementation of a UiItemsProvider. The base class allows the user to pass in a function that is used to determine if the
15
- * active stage should be provided items. Derived provider classes should override the `xxxInternal` methods to provide items.
16
- * @deprecated in 3.6. Use [BaseUiItemsProvider]($appui-react) instead.
17
- * @public
18
- */
19
- class BaseUiItemsProvider {
20
- /*
21
- * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want
22
- * to set up custom stage with their own subset of standard tools.
23
- * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and
24
- * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.
25
- */
26
- constructor(_providerId, isSupportedStage) {
27
- this._providerId = _providerId;
28
- this.isSupportedStage = isSupportedStage;
29
- }
30
- get id() { return this._providerId; }
31
- onUnregister() { }
32
- unregister() {
33
- UiItemsManager_1.UiItemsManager.unregister(this._providerId);
34
- }
35
- /** Backstage items are not stage specific so no callback is used */
36
- provideBackstageItems() {
37
- return [];
38
- }
39
- provideToolbarButtonItemsInternal(_stageId, _stageUsage, _toolbarUsage, _toolbarOrientation, _stageAppData) {
40
- return [];
41
- }
42
- provideToolbarButtonItems(stageId, stageUsage, toolbarUsage, toolbarOrientation, stageAppData) {
43
- let provideToStage = false;
44
- if (this.isSupportedStage) {
45
- provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
46
- }
47
- else {
48
- provideToStage = (stageUsage === StageUsage_1.StageUsage.General);
49
- }
50
- return provideToStage ? this.provideToolbarButtonItemsInternal(stageId, stageUsage, toolbarUsage, toolbarOrientation, stageAppData) : [];
51
- }
52
- provideStatusBarItemsInternal(_stageId, _stageUsage, _stageAppData) {
53
- return [];
54
- }
55
- provideStatusBarItems(stageId, stageUsage, stageAppData) {
56
- let provideToStage = false;
57
- if (this.isSupportedStage) {
58
- provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
59
- }
60
- else {
61
- provideToStage = (stageUsage === StageUsage_1.StageUsage.General);
62
- }
63
- return provideToStage ? this.provideStatusBarItemsInternal(stageId, stageUsage, stageAppData) : [];
64
- }
65
- provideWidgetsInternal(_stageId, _stageUsage, _location, _section, _zoneLocation, _stageAppData) {
66
- return [];
67
- }
68
- provideWidgets(stageId, stageUsage, location, section, _zoneLocation, stageAppData) {
69
- let provideToStage = false;
70
- if (this.isSupportedStage) {
71
- provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
72
- }
73
- else {
74
- provideToStage = (stageUsage === StageUsage_1.StageUsage.General);
75
- }
76
- return provideToStage ? this.provideWidgetsInternal(stageId, stageUsage, location, section, _zoneLocation, stageAppData) : [];
77
- }
78
- }
79
- exports.BaseUiItemsProvider = BaseUiItemsProvider;
80
- //# sourceMappingURL=BaseUiItemsProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseUiItemsProvider.js","sourceRoot":"","sources":["../../../src/appui-abstract/BaseUiItemsProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,qDAAqD;AACrD;;GAEG;;;AAOH,mDAAgD;AAEhD,qDAAkD;AAElD;;;;GAIG;AACH,MAAa,mBAAmB;IAC9B;;;;;OAKG;IACH,YAAsB,WAAmB,EAAS,gBAAmH;QAA/I,gBAAW,GAAX,WAAW,CAAQ;QAAS,qBAAgB,GAAhB,gBAAgB,CAAmG;IAAI,CAAC;IAE1K,IAAW,EAAE,KAAa,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,YAAY,KAAW,CAAC;IAExB,UAAU;QACf,+BAAc,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED,oEAAoE;IAC7D,qBAAqB;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAEM,iCAAiC,CAAC,QAAgB,EAAE,WAAmB,EAAE,aAA2B,EAAE,mBAAuC,EAAE,aAAmB;QACvK,OAAO,EAAE,CAAC;IACZ,CAAC;IACM,yBAAyB,CAAC,OAAe,EAAE,UAAkB,EAAE,YAA0B,EAAE,kBAAsC,EAAE,YAAkB;QAC1J,IAA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D,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAClF,CAAC;aAAM,CAAC;YACN,cAAc,GAAG,CAAC,UAAU,KAAK,uBAAU,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChI,CAAC;CACF;AAnED,kDAmEC","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/* eslint-disable @typescript-eslint/no-deprecated */\n/** @packageDocumentation\n * @module UiItemsProvider\n */\n\nimport { BackstageItem } from \"./backstage/BackstageItem\";\nimport { CommonStatusBarItem } from \"./statusbar/StatusBarItem\";\nimport { CommonToolbarItem, ToolbarOrientation, ToolbarUsage } from \"./toolbars/ToolbarItem\";\nimport { AbstractWidgetProps } from \"./widget/AbstractWidgetProps\";\nimport { AbstractZoneLocation, StagePanelLocation, StagePanelSection } from \"./widget/StagePanel\";\nimport { StageUsage } from \"./items/StageUsage\";\nimport { UiItemsProvider } from \"./UiItemsProvider\";\nimport { UiItemsManager } from \"./UiItemsManager\";\n\n/** Base implementation of a UiItemsProvider. The base class allows the user to pass in a function that is used to determine if the\n * active stage should be provided items. Derived provider classes should override the `xxxInternal` methods to provide items.\n * @deprecated in 3.6. Use [BaseUiItemsProvider]($appui-react) instead.\n * @public\n */\nexport class BaseUiItemsProvider implements UiItemsProvider {\n /*\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard tools.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n constructor(protected _providerId: string, public isSupportedStage?: (stageId: string, stageUsage: string, stageAppData?: any, provider?: UiItemsProvider) => boolean) { }\n\n public get id(): string { return this._providerId; }\n public onUnregister(): void { }\n\n public unregister() {\n UiItemsManager.unregister(this._providerId);\n }\n\n /** Backstage items are not stage specific so no callback is used */\n public provideBackstageItems(): BackstageItem[] {\n return [];\n }\n\n public provideToolbarButtonItemsInternal(_stageId: string, _stageUsage: string, _toolbarUsage: ToolbarUsage, _toolbarOrientation: ToolbarOrientation, _stageAppData?: any): CommonToolbarItem[] {\n return [];\n }\n public provideToolbarButtonItems(stageId: string, stageUsage: string, toolbarUsage: ToolbarUsage, toolbarOrientation: ToolbarOrientation, stageAppData?: any): CommonToolbarItem[] {\n let provideToStage = false;\n\n if (this.isSupportedStage) {\n provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);\n } else {\n provideToStage = (stageUsage === StageUsage.General);\n }\n\n return provideToStage ? this.provideToolbarButtonItemsInternal(stageId, stageUsage, toolbarUsage, toolbarOrientation, stageAppData) : [];\n }\n\n public provideStatusBarItemsInternal(_stageId: string, _stageUsage: string, _stageAppData?: any): CommonStatusBarItem[] {\n return [];\n }\n public provideStatusBarItems(stageId: string, stageUsage: string, stageAppData?: any): CommonStatusBarItem[] {\n let provideToStage = false;\n\n if (this.isSupportedStage) {\n provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);\n } else {\n provideToStage = (stageUsage === StageUsage.General);\n }\n\n return provideToStage ? this.provideStatusBarItemsInternal(stageId, stageUsage, stageAppData) : [];\n }\n\n public provideWidgetsInternal(_stageId: string, _stageUsage: string, _location: StagePanelLocation, _section?: StagePanelSection, _zoneLocation?: AbstractZoneLocation, _stageAppData?: any): AbstractWidgetProps[] {\n return [];\n }\n\n public provideWidgets(stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection,\n _zoneLocation?: AbstractZoneLocation, stageAppData?: any): ReadonlyArray<AbstractWidgetProps> {\n let provideToStage = false;\n\n if (this.isSupportedStage) {\n provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);\n } else {\n provideToStage = (stageUsage === StageUsage.General);\n }\n\n return provideToStage ? this.provideWidgetsInternal(stageId, stageUsage, location, section, _zoneLocation, stageAppData) : [];\n }\n}\n"]}
@@ -1,111 +0,0 @@
1
- /** @packageDocumentation
2
- * @module UiItemsProvider
3
- */
4
- import { BeEvent, MarkRequired } from "@itwin/core-bentley";
5
- import { BackstageItem } from "./backstage/BackstageItem";
6
- import { CommonStatusBarItem } from "./statusbar/StatusBarItem";
7
- import { CommonToolbarItem, ToolbarOrientation, ToolbarUsage } from "./toolbars/ToolbarItem";
8
- import { AbstractWidgetProps } from "./widget/AbstractWidgetProps";
9
- import { AbstractZoneLocation, StagePanelLocation, StagePanelSection } from "./widget/StagePanel";
10
- import { UiItemsProvider } from "./UiItemsProvider";
11
- /** Action taken by the application on item provided by a UiItemsProvider
12
- * @public @deprecated in 3.2. This was only used by the previously removed UiItemsArbiter.
13
- */
14
- export declare enum UiItemsApplicationAction {
15
- /** Allow the change to the item */
16
- Allow = 0,
17
- /** Disallow the change to the item */
18
- Disallow = 1,
19
- /** Update the item during the change */
20
- Update = 2
21
- }
22
- /** UIProvider Registered Event Args interface.
23
- * @deprecated in 3.6. Use [UiItemsProviderRegisteredEventArgs]($appui-react) instead.
24
- * @public
25
- */
26
- export interface UiItemProviderRegisteredEventArgs {
27
- providerId: string;
28
- }
29
- /** UiItemProviderOverrides allows the application that registers a provider to limit when it is allowed to provide items
30
- * @deprecated in 3.6. Use [AllowedUiItemsProviderOverrides]($appui-react) instead.
31
- * @public
32
- */
33
- export interface AllowedUiItemProviderOverrides {
34
- /** allows providerId to be overridden in the items manager for cases where the same provider needs to provide different content to different stages
35
- * @beta
36
- */
37
- providerId?: string;
38
- /** if specified then the current stage's Usage will be compared before allowing any items to be provided
39
- * @beta
40
- */
41
- stageUsages?: string[];
42
- /** if specified then the current stage's Id will be compared before allowing any items to be provided
43
- * @beta
44
- */
45
- stageIds?: string[];
46
- }
47
- /** Allowed overrides applied to a UiItemsProvider the application that registers a provider to limit when it is allowed to provide items.
48
- * Note that if an override `providerId` is specified then either `stageIds` or `stageUsages` must be defined to limit when the provider's
49
- * items are allowed.
50
- * @deprecated in 3.6. Use [UiItemsProviderOverrides]($appui-react) instead.
51
- * @public
52
- */
53
- export type UiItemProviderOverrides = MarkRequired<AllowedUiItemProviderOverrides, "providerId" | "stageUsages"> | MarkRequired<AllowedUiItemProviderOverrides, "providerId" | "stageIds"> | MarkRequired<AllowedUiItemProviderOverrides, "stageIds"> | MarkRequired<AllowedUiItemProviderOverrides, "stageUsages"> | MarkRequired<AllowedUiItemProviderOverrides, "providerId" | "stageUsages" | "stageIds">;
54
- /** Controls registering of UiItemsProviders and calls the provider's methods when populating different parts of the User Interface.
55
- * @deprecated in 3.6. Use [UiItemsManager]($appui-react) instead.
56
- * @public
57
- */
58
- export declare class UiItemsManager {
59
- private static _registeredUiItemsProviders;
60
- /** For use in unit testing
61
- * @internal */
62
- static clearAllProviders(): void;
63
- /** Event raised any time a UiProvider is registered or unregistered. */
64
- static readonly onUiProviderRegisteredEvent: BeEvent<(ev: UiItemProviderRegisteredEventArgs) => void>;
65
- /** Return number of registered UiProvider. */
66
- static get registeredProviderIds(): string[];
67
- /** Return true if there is any registered UiProvider. */
68
- static get hasRegisteredProviders(): boolean;
69
- /**
70
- * Retrieves a previously loaded UiItemsProvider.
71
- * @param providerId id of the UiItemsProvider to get
72
- */
73
- static getUiItemsProvider(providerId: string): UiItemsProvider | undefined;
74
- private static sendRegisteredEvent;
75
- /**
76
- * Registers a UiItemsProvider with the UiItemsManager.
77
- * @param uiProvider the UI items provider to register.
78
- */
79
- static register(uiProvider: UiItemsProvider, overrides?: UiItemProviderOverrides): void;
80
- /** Remove a specific UiItemsProvider from the list of available providers. */
81
- static unregister(uiProviderId: string): void;
82
- private static allowItemsFromProvider;
83
- /** Called when the application is populating a toolbar so that any registered UiItemsProvider can add tool buttons that either either execute
84
- * an action or specify a registered ToolId into toolbar.
85
- * @param stageId a string identifier the active stage.
86
- * @param stageUsage the StageUsage of the active stage.
87
- * @param toolbarUsage usage of the toolbar
88
- * @param toolbarOrientation orientation of the toolbar
89
- * @returns an array of error messages. The array will be empty if the load is successful, otherwise it is a list of one or more problems.
90
- */
91
- static getToolbarButtonItems(stageId: string, stageUsage: string, toolbarUsage: ToolbarUsage, toolbarOrientation: ToolbarOrientation, stageAppData?: any): CommonToolbarItem[];
92
- /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields
93
- * @param stageId a string identifier the active stage.
94
- * @param stageUsage the StageUsage of the active stage.
95
- * @returns An array of CommonStatusBarItem that will be used to create controls for the status bar.
96
- */
97
- static getStatusBarItems(stageId: string, stageUsage: string, stageAppData?: any): CommonStatusBarItem[];
98
- /** Called when the application is populating the statusbar so that any registered UiItemsProvider can add status fields
99
- * @returns An array of BackstageItem that will be used to create controls for the backstage menu.
100
- */
101
- static getBackstageItems(): BackstageItem[];
102
- /** Called when the application is populating the Stage Panels so that any registered UiItemsProvider can add widgets
103
- * @param stageId a string identifier the active stage.
104
- * @param stageUsage the StageUsage of the active stage.
105
- * @param location the location within the stage.
106
- * @param section the section within location.
107
- * @returns An array of AbstractWidgetProps that will be used to create widgets.
108
- */
109
- static getWidgets(stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection, zoneLocation?: AbstractZoneLocation, stageAppData?: any): ReadonlyArray<AbstractWidgetProps>;
110
- }
111
- //# sourceMappingURL=UiItemsManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UiItemsManager.d.ts","sourceRoot":"","sources":["../../../src/appui-abstract/UiItemsManager.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAU,YAAY,EAA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