@itwin/presentation-frontend 5.0.0-dev.90 → 5.0.0-dev.93

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 (114) hide show
  1. package/lib/cjs/package.json +1 -0
  2. package/lib/cjs/presentation-frontend/IpcRequestsHandler.d.ts +12 -3
  3. package/lib/cjs/presentation-frontend/IpcRequestsHandler.d.ts.map +1 -1
  4. package/lib/cjs/presentation-frontend/IpcRequestsHandler.js +6 -7
  5. package/lib/cjs/presentation-frontend/IpcRequestsHandler.js.map +1 -1
  6. package/lib/cjs/presentation-frontend/LocalizationHelper.d.ts +1 -1
  7. package/lib/cjs/presentation-frontend/LocalizationHelper.d.ts.map +1 -1
  8. package/lib/cjs/presentation-frontend/LocalizationHelper.js +6 -6
  9. package/lib/cjs/presentation-frontend/LocalizationHelper.js.map +1 -1
  10. package/lib/cjs/presentation-frontend/Presentation.d.ts +3 -3
  11. package/lib/cjs/presentation-frontend/Presentation.d.ts.map +1 -1
  12. package/lib/cjs/presentation-frontend/Presentation.js +14 -14
  13. package/lib/cjs/presentation-frontend/Presentation.js.map +1 -1
  14. package/lib/cjs/presentation-frontend/PresentationManager.d.ts +5 -4
  15. package/lib/cjs/presentation-frontend/PresentationManager.d.ts.map +1 -1
  16. package/lib/cjs/presentation-frontend/PresentationManager.js +25 -24
  17. package/lib/cjs/presentation-frontend/PresentationManager.js.map +1 -1
  18. package/lib/cjs/presentation-frontend/RulesetVariablesManager.d.ts +1 -1
  19. package/lib/cjs/presentation-frontend/RulesetVariablesManager.d.ts.map +1 -1
  20. package/lib/cjs/presentation-frontend/RulesetVariablesManager.js.map +1 -1
  21. package/lib/cjs/presentation-frontend/StreamedResponseGenerator.d.ts +1 -1
  22. package/lib/cjs/presentation-frontend/StreamedResponseGenerator.d.ts.map +1 -1
  23. package/lib/cjs/presentation-frontend/StreamedResponseGenerator.js.map +1 -1
  24. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +2 -2
  25. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts.map +1 -1
  26. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +24 -25
  27. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  28. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +2 -2
  29. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts.map +1 -1
  30. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +7 -11
  31. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
  32. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.d.ts.map +1 -1
  33. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js +4 -2
  34. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
  35. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.d.ts +1 -1
  36. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.d.ts.map +1 -1
  37. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
  38. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.d.ts +1 -1
  39. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.d.ts.map +1 -1
  40. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
  41. package/lib/cjs/presentation-frontend/selection/SelectionHandler.d.ts +3 -3
  42. package/lib/cjs/presentation-frontend/selection/SelectionHandler.d.ts.map +1 -1
  43. package/lib/cjs/presentation-frontend/selection/SelectionHandler.js +1 -1
  44. package/lib/cjs/presentation-frontend/selection/SelectionHandler.js.map +1 -1
  45. package/lib/cjs/presentation-frontend/selection/SelectionHelper.js +1 -1
  46. package/lib/cjs/presentation-frontend/selection/SelectionHelper.js.map +1 -1
  47. package/lib/cjs/presentation-frontend/selection/SelectionManager.d.ts +4 -4
  48. package/lib/cjs/presentation-frontend/selection/SelectionManager.d.ts.map +1 -1
  49. package/lib/cjs/presentation-frontend/selection/SelectionManager.js +27 -27
  50. package/lib/cjs/presentation-frontend/selection/SelectionManager.js.map +1 -1
  51. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.d.ts +2 -1
  52. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.d.ts.map +1 -1
  53. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
  54. package/lib/cjs/presentation-frontend.d.ts +15 -15
  55. package/lib/cjs/presentation-frontend.d.ts.map +1 -1
  56. package/lib/cjs/presentation-frontend.js +30 -29
  57. package/lib/cjs/presentation-frontend.js.map +1 -1
  58. package/lib/esm/presentation-frontend/IpcRequestsHandler.d.ts +12 -3
  59. package/lib/esm/presentation-frontend/IpcRequestsHandler.d.ts.map +1 -1
  60. package/lib/esm/presentation-frontend/IpcRequestsHandler.js +6 -7
  61. package/lib/esm/presentation-frontend/IpcRequestsHandler.js.map +1 -1
  62. package/lib/esm/presentation-frontend/LocalizationHelper.d.ts +1 -1
  63. package/lib/esm/presentation-frontend/LocalizationHelper.d.ts.map +1 -1
  64. package/lib/esm/presentation-frontend/LocalizationHelper.js +2 -2
  65. package/lib/esm/presentation-frontend/LocalizationHelper.js.map +1 -1
  66. package/lib/esm/presentation-frontend/Presentation.d.ts +3 -3
  67. package/lib/esm/presentation-frontend/Presentation.d.ts.map +1 -1
  68. package/lib/esm/presentation-frontend/Presentation.js +7 -7
  69. package/lib/esm/presentation-frontend/Presentation.js.map +1 -1
  70. package/lib/esm/presentation-frontend/PresentationManager.d.ts +5 -4
  71. package/lib/esm/presentation-frontend/PresentationManager.d.ts.map +1 -1
  72. package/lib/esm/presentation-frontend/PresentationManager.js +13 -12
  73. package/lib/esm/presentation-frontend/PresentationManager.js.map +1 -1
  74. package/lib/esm/presentation-frontend/RulesetVariablesManager.d.ts +1 -1
  75. package/lib/esm/presentation-frontend/RulesetVariablesManager.d.ts.map +1 -1
  76. package/lib/esm/presentation-frontend/RulesetVariablesManager.js.map +1 -1
  77. package/lib/esm/presentation-frontend/StreamedResponseGenerator.d.ts +1 -1
  78. package/lib/esm/presentation-frontend/StreamedResponseGenerator.d.ts.map +1 -1
  79. package/lib/esm/presentation-frontend/StreamedResponseGenerator.js.map +1 -1
  80. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +2 -2
  81. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts.map +1 -1
  82. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +24 -25
  83. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  84. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +2 -2
  85. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts.map +1 -1
  86. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +6 -10
  87. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
  88. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.d.ts.map +1 -1
  89. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js +4 -2
  90. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
  91. package/lib/esm/presentation-frontend/selection/ISelectionProvider.d.ts +1 -1
  92. package/lib/esm/presentation-frontend/selection/ISelectionProvider.d.ts.map +1 -1
  93. package/lib/esm/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
  94. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.d.ts +1 -1
  95. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.d.ts.map +1 -1
  96. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
  97. package/lib/esm/presentation-frontend/selection/SelectionHandler.d.ts +3 -3
  98. package/lib/esm/presentation-frontend/selection/SelectionHandler.d.ts.map +1 -1
  99. package/lib/esm/presentation-frontend/selection/SelectionHandler.js +1 -1
  100. package/lib/esm/presentation-frontend/selection/SelectionHandler.js.map +1 -1
  101. package/lib/esm/presentation-frontend/selection/SelectionHelper.js +1 -1
  102. package/lib/esm/presentation-frontend/selection/SelectionHelper.js.map +1 -1
  103. package/lib/esm/presentation-frontend/selection/SelectionManager.d.ts +4 -4
  104. package/lib/esm/presentation-frontend/selection/SelectionManager.d.ts.map +1 -1
  105. package/lib/esm/presentation-frontend/selection/SelectionManager.js +11 -11
  106. package/lib/esm/presentation-frontend/selection/SelectionManager.js.map +1 -1
  107. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.d.ts +2 -1
  108. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.d.ts.map +1 -1
  109. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
  110. package/lib/esm/presentation-frontend.d.ts +15 -15
  111. package/lib/esm/presentation-frontend.d.ts.map +1 -1
  112. package/lib/esm/presentation-frontend.js +12 -15
  113. package/lib/esm/presentation-frontend.js.map +1 -1
  114. package/package.json +35 -34
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectionHelper = exports.HiliteSetProvider = exports.SelectionHandler = exports.createSelectionScopeProps = exports.SelectionScopesManager = exports.SelectionManager = exports.SelectionChangeType = exports.SelectionChangeEvent = exports.PresentationFrontendLoggerCategory = exports.createCombinedDiagnosticsHandler = exports.consoleDiagnosticsHandler = exports.createFavoritePropertiesStorage = exports.DefaultFavoritePropertiesStorageTypes = exports.FavoritePropertiesManager = exports.FavoritePropertiesScope = exports.PresentationManager = exports.Presentation = void 0;
17
4
  /*---------------------------------------------------------------------------------------------
18
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -24,31 +11,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
24
11
  * @docs-group-description Core
25
12
  * Common types used for retrieving presentation data from iModels.
26
13
  */
27
- __exportStar(require("./presentation-frontend/Presentation"), exports);
28
- __exportStar(require("./presentation-frontend/PresentationManager"), exports);
29
- __exportStar(require("./presentation-frontend/RulesetManager"), exports);
30
- __exportStar(require("./presentation-frontend/RulesetVariablesManager"), exports);
31
- __exportStar(require("./presentation-frontend/favorite-properties/FavoritePropertiesManager"), exports);
32
- __exportStar(require("./presentation-frontend/favorite-properties/FavoritePropertiesStorage"), exports);
33
- __exportStar(require("./presentation-frontend/Diagnostics"), exports);
14
+ var Presentation_js_1 = require("./presentation-frontend/Presentation.js");
15
+ Object.defineProperty(exports, "Presentation", { enumerable: true, get: function () { return Presentation_js_1.Presentation; } });
16
+ var PresentationManager_js_1 = require("./presentation-frontend/PresentationManager.js");
17
+ Object.defineProperty(exports, "PresentationManager", { enumerable: true, get: function () { return PresentationManager_js_1.PresentationManager; } });
18
+ var FavoritePropertiesManager_js_1 = require("./presentation-frontend/favorite-properties/FavoritePropertiesManager.js");
19
+ Object.defineProperty(exports, "FavoritePropertiesScope", { enumerable: true, get: function () { return FavoritePropertiesManager_js_1.FavoritePropertiesScope; } });
20
+ Object.defineProperty(exports, "FavoritePropertiesManager", { enumerable: true, get: function () { return FavoritePropertiesManager_js_1.FavoritePropertiesManager; } });
21
+ var FavoritePropertiesStorage_js_1 = require("./presentation-frontend/favorite-properties/FavoritePropertiesStorage.js");
22
+ Object.defineProperty(exports, "DefaultFavoritePropertiesStorageTypes", { enumerable: true, get: function () { return FavoritePropertiesStorage_js_1.DefaultFavoritePropertiesStorageTypes; } });
23
+ Object.defineProperty(exports, "createFavoritePropertiesStorage", { enumerable: true, get: function () { return FavoritePropertiesStorage_js_1.createFavoritePropertiesStorage; } });
24
+ var Diagnostics_js_1 = require("./presentation-frontend/Diagnostics.js");
25
+ Object.defineProperty(exports, "consoleDiagnosticsHandler", { enumerable: true, get: function () { return Diagnostics_js_1.consoleDiagnosticsHandler; } });
26
+ Object.defineProperty(exports, "createCombinedDiagnosticsHandler", { enumerable: true, get: function () { return Diagnostics_js_1.createCombinedDiagnosticsHandler; } });
34
27
  /**
35
28
  * @module Logging
36
29
  *
37
30
  * @docs-group-description Logging
38
31
  * Types related to logging in this package.
39
32
  */
40
- __exportStar(require("./presentation-frontend/FrontendLoggerCategory"), exports);
33
+ var FrontendLoggerCategory_js_1 = require("./presentation-frontend/FrontendLoggerCategory.js");
34
+ Object.defineProperty(exports, "PresentationFrontendLoggerCategory", { enumerable: true, get: function () { return FrontendLoggerCategory_js_1.PresentationFrontendLoggerCategory; } });
41
35
  /**
42
36
  * @module UnifiedSelection
43
37
  *
44
38
  * @docs-group-description UnifiedSelection
45
39
  * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
46
40
  */
47
- __exportStar(require("./presentation-frontend/selection/SelectionChangeEvent"), exports);
48
- __exportStar(require("./presentation-frontend/selection/ISelectionProvider"), exports);
49
- __exportStar(require("./presentation-frontend/selection/SelectionManager"), exports);
50
- __exportStar(require("./presentation-frontend/selection/SelectionScopesManager"), exports);
51
- __exportStar(require("./presentation-frontend/selection/SelectionHandler"), exports);
52
- __exportStar(require("./presentation-frontend/selection/HiliteSetProvider"), exports);
53
- __exportStar(require("./presentation-frontend/selection/SelectionHelper"), exports);
41
+ var SelectionChangeEvent_js_1 = require("./presentation-frontend/selection/SelectionChangeEvent.js");
42
+ Object.defineProperty(exports, "SelectionChangeEvent", { enumerable: true, get: function () { return SelectionChangeEvent_js_1.SelectionChangeEvent; } });
43
+ Object.defineProperty(exports, "SelectionChangeType", { enumerable: true, get: function () { return SelectionChangeEvent_js_1.SelectionChangeType; } });
44
+ var SelectionManager_js_1 = require("./presentation-frontend/selection/SelectionManager.js");
45
+ Object.defineProperty(exports, "SelectionManager", { enumerable: true, get: function () { return SelectionManager_js_1.SelectionManager; } });
46
+ var SelectionScopesManager_js_1 = require("./presentation-frontend/selection/SelectionScopesManager.js");
47
+ Object.defineProperty(exports, "SelectionScopesManager", { enumerable: true, get: function () { return SelectionScopesManager_js_1.SelectionScopesManager; } });
48
+ Object.defineProperty(exports, "createSelectionScopeProps", { enumerable: true, get: function () { return SelectionScopesManager_js_1.createSelectionScopeProps; } });
49
+ var SelectionHandler_js_1 = require("./presentation-frontend/selection/SelectionHandler.js");
50
+ Object.defineProperty(exports, "SelectionHandler", { enumerable: true, get: function () { return SelectionHandler_js_1.SelectionHandler; } });
51
+ var HiliteSetProvider_js_1 = require("./presentation-frontend/selection/HiliteSetProvider.js");
52
+ Object.defineProperty(exports, "HiliteSetProvider", { enumerable: true, get: function () { return HiliteSetProvider_js_1.HiliteSetProvider; } });
53
+ var SelectionHelper_js_1 = require("./presentation-frontend/selection/SelectionHelper.js");
54
+ Object.defineProperty(exports, "SelectionHelper", { enumerable: true, get: function () { return SelectionHelper_js_1.SelectionHelper; } });
54
55
  //# sourceMappingURL=presentation-frontend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-frontend.js","sourceRoot":"","sources":["../../src/presentation-frontend.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,uEAAqD;AACrD,8EAA4D;AAC5D,yEAAuD;AACvD,kFAAgE;AAChE,wGAAsF;AACtF,wGAAsF;AACtF,sEAAoD;AAEpD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yFAAuE;AACvE,uFAAqE;AACrE,qFAAmE;AACnE,2FAAyE;AACzE,qFAAmE;AACnE,sFAAoE;AACpE,oFAAkE","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/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport * from \"./presentation-frontend/Presentation\";\nexport * from \"./presentation-frontend/PresentationManager\";\nexport * from \"./presentation-frontend/RulesetManager\";\nexport * from \"./presentation-frontend/RulesetVariablesManager\";\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesManager\";\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesStorage\";\nexport * from \"./presentation-frontend/Diagnostics\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport * from \"./presentation-frontend/FrontendLoggerCategory\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport * from \"./presentation-frontend/selection/SelectionChangeEvent\";\nexport * from \"./presentation-frontend/selection/ISelectionProvider\";\nexport * from \"./presentation-frontend/selection/SelectionManager\";\nexport * from \"./presentation-frontend/selection/SelectionScopesManager\";\nexport * from \"./presentation-frontend/selection/SelectionHandler\";\nexport * from \"./presentation-frontend/selection/HiliteSetProvider\";\nexport * from \"./presentation-frontend/selection/SelectionHelper\";\n"]}
1
+ {"version":3,"file":"presentation-frontend.js","sourceRoot":"","sources":["../../src/presentation-frontend.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,2EAA0F;AAA9D,+GAAA,YAAY,OAAA;AACxC,yFASwD;AADtD,6HAAA,mBAAmB,OAAA;AAIrB,yHAMkF;AALhF,uIAAA,uBAAuB,OAAA;AAIvB,yIAAA,yBAAyB,OAAA;AAE3B,yHAIkF;AAFhF,qJAAA,qCAAqC,OAAA;AACrC,+IAAA,+BAA+B,OAAA;AAEjC,yEAAqH;AAA5G,2HAAA,yBAAyB,OAAA;AAAE,kIAAA,gCAAgC,OAAA;AAEpE;;;;;GAKG;AACH,+FAAuG;AAA9F,+IAAA,kCAAkC,OAAA;AAE3C;;;;;GAKG;AACH,qGAKmE;AAHjE,+HAAA,oBAAoB,OAAA;AACpB,8HAAA,mBAAmB,OAAA;AAIrB,6FAAgH;AAAhF,uHAAA,gBAAgB,OAAA;AAChD,yGAA6J;AAAvH,mIAAA,sBAAsB,OAAA;AAAE,sIAAA,yBAAyB,OAAA;AACvF,6FAAgH;AAAhF,uHAAA,gBAAgB,OAAA;AAChD,+FAA8H;AAAlF,yHAAA,iBAAiB,OAAA;AAC7D,2FAAuF;AAA9E,qHAAA,eAAe,OAAA","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/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, Presentation } from \"./presentation-frontend/Presentation.js\";\nexport {\n IModelHierarchyChangeEventArgs,\n IModelContentChangeEventArgs,\n MultipleValuesRequestOptions,\n GetNodesRequestOptions,\n GetContentRequestOptions,\n GetDistinctValuesRequestOptions,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-frontend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-frontend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-frontend/RulesetVariablesManager.js\";\nexport {\n FavoritePropertiesScope,\n PropertyFullName,\n FavoritePropertiesOrderInfo,\n FavoritePropertiesManagerProps,\n FavoritePropertiesManager,\n} from \"./presentation-frontend/favorite-properties/FavoritePropertiesManager.js\";\nexport {\n IFavoritePropertiesStorage,\n DefaultFavoritePropertiesStorageTypes,\n createFavoritePropertiesStorage,\n} from \"./presentation-frontend/favorite-properties/FavoritePropertiesStorage.js\";\nexport { consoleDiagnosticsHandler, createCombinedDiagnosticsHandler } from \"./presentation-frontend/Diagnostics.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationFrontendLoggerCategory } from \"./presentation-frontend/FrontendLoggerCategory.js\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport {\n SelectionChangesListener,\n SelectionChangeEvent,\n SelectionChangeType,\n SelectionChangeEventArgs,\n} from \"./presentation-frontend/selection/SelectionChangeEvent.js\";\nexport { ISelectionProvider } from \"./presentation-frontend/selection/ISelectionProvider.js\";\nexport { SelectionManagerProps, SelectionManager } from \"./presentation-frontend/selection/SelectionManager.js\";\nexport { SelectionScopesManagerProps, SelectionScopesManager, createSelectionScopeProps } from \"./presentation-frontend/selection/SelectionScopesManager.js\";\nexport { SelectionHandlerProps, SelectionHandler } from \"./presentation-frontend/selection/SelectionHandler.js\";\nexport { HiliteSet, HiliteSetProviderProps, HiliteSetProvider } from \"./presentation-frontend/selection/HiliteSetProvider.js\";\nexport { SelectionHelper } from \"./presentation-frontend/selection/SelectionHelper.js\";\n"]}
@@ -1,10 +1,19 @@
1
- import { RulesetVariable, SetRulesetVariableParams, UnsetRulesetVariableParams } from "@itwin/presentation-common";
1
+ import { RulesetVariable } from "@itwin/presentation-common";
2
+ interface SetRulesetVariableParams {
3
+ rulesetId: string;
4
+ variable: RulesetVariable;
5
+ }
6
+ interface UnsetRulesetVariableParams {
7
+ rulesetId: string;
8
+ variableId: string;
9
+ }
2
10
  /** @internal */
3
11
  export declare class IpcRequestsHandler {
4
12
  private _ipcProxy;
5
13
  readonly clientId: string;
6
14
  constructor(clientId: string);
7
- setRulesetVariable(params: Omit<SetRulesetVariableParams<RulesetVariable>, "clientId">): Promise<void>;
8
- unsetRulesetVariable(params: Omit<UnsetRulesetVariableParams, "clientId">): Promise<void>;
15
+ setRulesetVariable(params: SetRulesetVariableParams): Promise<void>;
16
+ unsetRulesetVariable(params: UnsetRulesetVariableParams): Promise<void>;
9
17
  }
18
+ export {};
10
19
  //# sourceMappingURL=IpcRequestsHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IpcRequestsHandler.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/IpcRequestsHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,eAAe,EAEf,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AAEpC,gBAAgB;AAChB,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,SAAS,CAAgF;IACjG,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAErB,QAAQ,EAAE,MAAM;IAIf,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAStF,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC;CAOvF"}
1
+ {"version":3,"file":"IpcRequestsHandler.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/IpcRequestsHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,UAAU,wBAAwB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,UAAU,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gBAAgB;AAChB,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,SAAS,CAAgF;IACjG,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAErB,QAAQ,EAAE,MAAM;IAIf,kBAAkB,CAAC,MAAM,EAAE,wBAAwB;IAQnD,oBAAoB,CAAC,MAAM,EAAE,0BAA0B;CAMrE"}
@@ -3,7 +3,8 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import { IpcApp } from "@itwin/core-frontend";
6
- import { PRESENTATION_IPC_CHANNEL_NAME, RulesetVariable, } from "@itwin/presentation-common";
6
+ import { RulesetVariable } from "@itwin/presentation-common";
7
+ import { PRESENTATION_IPC_CHANNEL_NAME } from "@itwin/presentation-common/internal";
7
8
  /** @internal */
8
9
  export class IpcRequestsHandler {
9
10
  _ipcProxy = IpcApp.makeIpcProxy(PRESENTATION_IPC_CHANNEL_NAME);
@@ -12,19 +13,17 @@ export class IpcRequestsHandler {
12
13
  this.clientId = clientId;
13
14
  }
14
15
  async setRulesetVariable(params) {
15
- const jsonParams = {
16
+ return this._ipcProxy.setRulesetVariable({
16
17
  ...params,
17
18
  clientId: this.clientId,
18
19
  variable: RulesetVariable.toJSON(params.variable),
19
- };
20
- return this._ipcProxy.setRulesetVariable(jsonParams);
20
+ });
21
21
  }
22
22
  async unsetRulesetVariable(params) {
23
- const jsonParams = {
23
+ return this._ipcProxy.unsetRulesetVariable({
24
24
  ...params,
25
25
  clientId: this.clientId,
26
- };
27
- return this._ipcProxy.unsetRulesetVariable(jsonParams);
26
+ });
28
27
  }
29
28
  }
30
29
  //# sourceMappingURL=IpcRequestsHandler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IpcRequestsHandler.js","sourceRoot":"","sources":["../../../src/presentation-frontend/IpcRequestsHandler.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EACL,6BAA6B,EAE7B,eAAe,GAIhB,MAAM,4BAA4B,CAAC;AAEpC,gBAAgB;AAChB,MAAM,OAAO,kBAAkB;IACrB,SAAS,GAAG,MAAM,CAAC,YAAY,CAA2B,6BAA6B,CAAC,CAAC;IACjF,QAAQ,CAAS;IAEjC,YAAY,QAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,MAAmE;QACjG,MAAM,UAAU,GAAkD;YAChE,GAAG,MAAM;YACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;SAClD,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,MAAoD;QACpF,MAAM,UAAU,GAA+B;YAC7C,GAAG,MAAM;YACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACzD,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\nimport { IpcApp } from \"@itwin/core-frontend\";\nimport {\n PRESENTATION_IPC_CHANNEL_NAME,\n PresentationIpcInterface,\n RulesetVariable,\n RulesetVariableJSON,\n SetRulesetVariableParams,\n UnsetRulesetVariableParams,\n} from \"@itwin/presentation-common\";\n\n/** @internal */\nexport class IpcRequestsHandler {\n private _ipcProxy = IpcApp.makeIpcProxy<PresentationIpcInterface>(PRESENTATION_IPC_CHANNEL_NAME);\n public readonly clientId: string;\n\n constructor(clientId: string) {\n this.clientId = clientId;\n }\n\n public async setRulesetVariable(params: Omit<SetRulesetVariableParams<RulesetVariable>, \"clientId\">) {\n const jsonParams: SetRulesetVariableParams<RulesetVariableJSON> = {\n ...params,\n clientId: this.clientId,\n variable: RulesetVariable.toJSON(params.variable),\n };\n return this._ipcProxy.setRulesetVariable(jsonParams);\n }\n\n public async unsetRulesetVariable(params: Omit<UnsetRulesetVariableParams, \"clientId\">) {\n const jsonParams: UnsetRulesetVariableParams = {\n ...params,\n clientId: this.clientId,\n };\n return this._ipcProxy.unsetRulesetVariable(jsonParams);\n }\n}\n"]}
1
+ {"version":3,"file":"IpcRequestsHandler.js","sourceRoot":"","sources":["../../../src/presentation-frontend/IpcRequestsHandler.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAA4B,MAAM,qCAAqC,CAAC;AAY9G,gBAAgB;AAChB,MAAM,OAAO,kBAAkB;IACrB,SAAS,GAAG,MAAM,CAAC,YAAY,CAA2B,6BAA6B,CAAC,CAAC;IACjF,QAAQ,CAAS;IAEjC,YAAY,QAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,MAAgC;QAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;YACvC,GAAG,MAAM;YACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;SAClD,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,MAAkC;QAClE,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;YACzC,GAAG,MAAM;YACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;IACL,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\nimport { IpcApp } from \"@itwin/core-frontend\";\nimport { RulesetVariable } from \"@itwin/presentation-common\";\nimport { PRESENTATION_IPC_CHANNEL_NAME, PresentationIpcInterface } from \"@itwin/presentation-common/internal\";\n\ninterface SetRulesetVariableParams {\n rulesetId: string;\n variable: RulesetVariable;\n}\n\ninterface UnsetRulesetVariableParams {\n rulesetId: string;\n variableId: string;\n}\n\n/** @internal */\nexport class IpcRequestsHandler {\n private _ipcProxy = IpcApp.makeIpcProxy<PresentationIpcInterface>(PRESENTATION_IPC_CHANNEL_NAME);\n public readonly clientId: string;\n\n constructor(clientId: string) {\n this.clientId = clientId;\n }\n\n public async setRulesetVariable(params: SetRulesetVariableParams) {\n return this._ipcProxy.setRulesetVariable({\n ...params,\n clientId: this.clientId,\n variable: RulesetVariable.toJSON(params.variable),\n });\n }\n\n public async unsetRulesetVariable(params: UnsetRulesetVariableParams) {\n return this._ipcProxy.unsetRulesetVariable({\n ...params,\n clientId: this.clientId,\n });\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { LocalizationHelper } from "@itwin/presentation-common";
1
+ import { LocalizationHelper } from "@itwin/presentation-common/internal";
2
2
  /** @internal */
3
3
  export declare class FrontendLocalizationHelper extends LocalizationHelper {
4
4
  private _lang;
@@ -1 +1 @@
1
- {"version":3,"file":"LocalizationHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/LocalizationHelper.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAKhE,gBAAgB;AAChB,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,OAAO,CAAC,KAAK,CAAqB;gBACtB,IAAI,CAAC,EAAE,MAAM;IAKzB,IAAW,MAAM,IAGS,MAAM,GAAG,SAAS,CAD3C;IACD,IAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAE3C;WAEmB,kBAAkB;WAKxB,oBAAoB;CAGnC"}
1
+ {"version":3,"file":"LocalizationHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/LocalizationHelper.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAKzE,gBAAgB;AAChB,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,OAAO,CAAC,KAAK,CAAqB;gBACtB,IAAI,CAAC,EAAE,MAAM;IAKzB,IAAW,MAAM,IAGS,MAAM,GAAG,SAAS,CAD3C;IACD,IAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAE3C;WAEmB,kBAAkB;WAKxB,oBAAoB;CAGnC"}
@@ -2,8 +2,8 @@
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
- import { LocalizationHelper } from "@itwin/presentation-common";
6
- import { Presentation } from "./Presentation";
5
+ import { LocalizationHelper } from "@itwin/presentation-common/internal";
6
+ import { Presentation } from "./Presentation.js";
7
7
  const NAMESPACES = ["Presentation"];
8
8
  /** @internal */
9
9
  export class FrontendLocalizationHelper extends LocalizationHelper {
@@ -1 +1 @@
1
- {"version":3,"file":"LocalizationHelper.js","sourceRoot":"","sources":["../../../src/presentation-frontend/LocalizationHelper.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,UAAU,GAAG,CAAC,cAAc,CAAC,CAAC;AAEpC,gBAAgB;AAChB,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IACxD,KAAK,CAAqB;IAClC,YAAY,IAAa;QACvB,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,kBAAkB,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAClI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IACD,IAAW,MAAM,CAAC,MAA0B;QAC1C,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,kBAAkB;QACpC,MAAM,oBAAoB,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;QACzH,MAAM,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAChC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,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 *--------------------------------------------------------------------------------------------*/\nimport { LocalizationHelper } from \"@itwin/presentation-common\";\nimport { Presentation } from \"./Presentation\";\n\nconst NAMESPACES = [\"Presentation\"];\n\n/** @internal */\nexport class FrontendLocalizationHelper extends LocalizationHelper {\n private _lang: string | undefined;\n constructor(lang?: string) {\n super({ getLocalizedString: (key) => Presentation.localization.getLocalizedString(key, { defaultValue: key, lng: this._lang }) });\n this._lang = lang;\n }\n\n public get locale() {\n return this._lang;\n }\n public set locale(locale: string | undefined) {\n this._lang = locale;\n }\n\n public static async registerNamespaces() {\n const localizationPromises = NAMESPACES.map(async (namespace) => Presentation.localization.registerNamespace(namespace));\n await Promise.all(localizationPromises);\n }\n\n public static unregisterNamespaces() {\n NAMESPACES.map((namespace) => Presentation.localization.unregisterNamespace(namespace));\n }\n}\n"]}
1
+ {"version":3,"file":"LocalizationHelper.js","sourceRoot":"","sources":["../../../src/presentation-frontend/LocalizationHelper.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,UAAU,GAAG,CAAC,cAAc,CAAC,CAAC;AAEpC,gBAAgB;AAChB,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IACxD,KAAK,CAAqB;IAClC,YAAY,IAAa;QACvB,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,kBAAkB,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAClI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IACD,IAAW,MAAM,CAAC,MAA0B;QAC1C,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,kBAAkB;QACpC,MAAM,oBAAoB,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;QACzH,MAAM,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAChC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,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 *--------------------------------------------------------------------------------------------*/\nimport { LocalizationHelper } from \"@itwin/presentation-common/internal\";\nimport { Presentation } from \"./Presentation.js\";\n\nconst NAMESPACES = [\"Presentation\"];\n\n/** @internal */\nexport class FrontendLocalizationHelper extends LocalizationHelper {\n private _lang: string | undefined;\n constructor(lang?: string) {\n super({ getLocalizedString: (key) => Presentation.localization.getLocalizedString(key, { defaultValue: key, lng: this._lang }) });\n this._lang = lang;\n }\n\n public get locale() {\n return this._lang;\n }\n public set locale(locale: string | undefined) {\n this._lang = locale;\n }\n\n public static async registerNamespaces() {\n const localizationPromises = NAMESPACES.map(async (namespace) => Presentation.localization.registerNamespace(namespace));\n await Promise.all(localizationPromises);\n }\n\n public static unregisterNamespaces() {\n NAMESPACES.map((namespace) => Presentation.localization.unregisterNamespace(namespace));\n }\n}\n"]}
@@ -2,9 +2,9 @@
2
2
  * @module Core
3
3
  */
4
4
  import { Localization } from "@itwin/core-common";
5
- import { FavoritePropertiesManager, FavoritePropertiesManagerProps } from "./favorite-properties/FavoritePropertiesManager";
6
- import { PresentationManager, PresentationManagerProps } from "./PresentationManager";
7
- import { SelectionManager, SelectionManagerProps } from "./selection/SelectionManager";
5
+ import { FavoritePropertiesManager, FavoritePropertiesManagerProps } from "./favorite-properties/FavoritePropertiesManager.js";
6
+ import { PresentationManager, PresentationManagerProps } from "./PresentationManager.js";
7
+ import { SelectionManager, SelectionManagerProps } from "./selection/SelectionManager.js";
8
8
  /**
9
9
  * Props for initializing [[Presentation]].
10
10
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"Presentation.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/Presentation.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AAG5H,OAAO,EAAE,mBAAmB,E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entation-common";
10
- import { FavoritePropertiesManager } from "./favorite-properties/FavoritePropertiesManager";
11
- import { createFavoritePropertiesStorage, DefaultFavoritePropertiesStorageTypes } from "./favorite-properties/FavoritePropertiesStorage";
12
- import { FrontendLocalizationHelper } from "./LocalizationHelper";
13
- import { PresentationManager } from "./PresentationManager";
14
- import { SelectionManager } from "./selection/SelectionManager";
15
- import { SelectionScopesManager } from "./selection/SelectionScopesManager";
10
+ import { FavoritePropertiesManager } from "./favorite-properties/FavoritePropertiesManager.js";
11
+ import { createFavoritePropertiesStorage, DefaultFavoritePropertiesStorageTypes } from "./favorite-properties/FavoritePropertiesStorage.js";
12
+ import { FrontendLocalizationHelper } from "./LocalizationHelper.js";
13
+ import { PresentationManager } from "./PresentationManager.js";
14
+ import { SelectionManager } from "./selection/SelectionManager.js";
15
+ import { SelectionScopesManager } from "./selection/SelectionScopesManager.js";
16
16
  let localization;
17
17
  let presentationManager;
18
18
  let selectionManager; // eslint-disable-line @typescript-eslint/no-deprecated
@@ -29,7 +29,7 @@ const terminationHandlers = [];
29
29
  * @public
30
30
  */
31
31
  export class Presentation {
32
- /* istanbul ignore next */
32
+ /* c8 ignore next */
33
33
  constructor() { }
34
34
  /**
35
35
  * Initializes Presentation library for the frontend.
@@ -1 +1 @@
1
- {"version":3,"file":"Presentation.js","sourceRoot":"","sources":["../../../src/presentation-frontend/Presentation.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAkC,MAAM,iDAAiD,CAAC;AAC5H,OAAO,EAAE,+BAA+B,EAAE,qCAAqC,EAAE,MAAM,iDAAiD,CAAC;AACzI,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAA4B,MAAM,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B;QACvD,gBAAgB,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,MAAM,KAAK,kBAAkB;QAClC,IAAI,CAAC,yBAAyB,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;QACtG,CAAC;QACD,OAAO,yBAAyB,CAAC;IACnC,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,4BAA4B,CAAC,KAAgC;QACzE,IAAI,yBAAyB,EAAE,CAAC;YAC9B,yBAAyB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9C,CAAC;QACD,yBAAyB,GAAG,KAAK,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,YAAY;QAC5B,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,eAAe,CAAC,KAAmB;QAC/C,YAAY,GAAG,KAAK,CAAC;IACvB,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 Core\n */\n\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport { Localization } from \"@itwin/core-common\";\nimport { PresentationError, PresentationStatus } from \"@itwin/presentation-common\";\nimport { FavoritePropertiesManager, FavoritePropertiesManagerProps } from \"./favorite-properties/FavoritePropertiesManager\";\nimport { createFavoritePropertiesStorage, DefaultFavoritePropertiesStorageTypes } from \"./favorite-properties/FavoritePropertiesStorage\";\nimport { FrontendLocalizationHelper } from \"./LocalizationHelper\";\nimport { PresentationManager, PresentationManagerProps } from \"./PresentationManager\";\nimport { SelectionManager, SelectionManagerProps } from \"./selection/SelectionManager\";\nimport { SelectionScopesManager } from \"./selection/SelectionScopesManager\";\n\nlet localization: Localization | undefined;\nlet presentationManager: PresentationManager | undefined;\nlet selectionManager: SelectionManager | undefined; // eslint-disable-line @typescript-eslint/no-deprecated\nlet favoritePropertiesManager: FavoritePropertiesManager | undefined;\nconst initializationHandlers: Array<() => Promise<(() => void) | void>> = [];\nconst terminationHandlers: Array<() => void> = [];\n\n/**\n * Props for initializing [[Presentation]].\n * @public\n */\nexport interface PresentationProps {\n /** Props for [[PresentationManager]]. */\n presentation?: PresentationManagerProps;\n\n /**\n * Props for [[SelectionManager]].\n *\n * @deprecated in 5.0. The whole unified selection system in this package is deprecated in favor of the new\n * [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n selection?: Partial<SelectionManagerProps>;\n\n /** Props for [[FavoritePropertiesManager]]. */\n favorites?: FavoritePropertiesManagerProps;\n}\n\n/**\n * Static class used to statically set up Presentation library for the frontend.\n * Basically what it does is:\n * - Create a singleton [[PresentationManager]] instance\n * - Create a singleton [[SelectionManager]] instance\n * - Create a singleton [[FavoritePropertiesManager]]] instance\n *\n * @public\n */\nexport class Presentation {\n /* istanbul ignore next */\n private constructor() {}\n\n /**\n * Initializes Presentation library for the frontend.\n *\n * Example:\n * ``` ts\n * [[include:Presentation.Frontend.Initialization]]\n * ```\n *\n * The method should be called after a call to [IModelApp.startup]($core-frontend).\n */\n public static async initialize(props?: PresentationProps): Promise<void> {\n if (!IModelApp.initialized) {\n throw new PresentationError(PresentationStatus.NotInitialized, \"IModelApp.startup must be called before calling Presentation.initialize\");\n }\n if (!localization) {\n localization = IModelApp.localization;\n }\n if (!presentationManager) {\n const managerProps = props?.presentation ?? {};\n if (!managerProps.activeLocale) {\n const languages = Presentation.localization.getLanguageList();\n managerProps.activeLocale = languages.length ? languages[0] : undefined;\n }\n presentationManager = PresentationManager.create(managerProps);\n }\n if (!selectionManager) {\n /* eslint-disable @typescript-eslint/no-deprecated */\n selectionManager = new SelectionManager({\n ...props?.selection,\n scopes:\n props?.selection?.scopes ??\n new SelectionScopesManager({\n rpcRequestsHandler: presentationManager.rpcRequestsHandler,\n localeProvider: () => this.presentation.activeLocale,\n }),\n });\n /* eslint-enable @typescript-eslint/no-deprecated */\n }\n if (!favoritePropertiesManager) {\n favoritePropertiesManager = new FavoritePropertiesManager({\n storage: props?.favorites ? props.favorites.storage : createFavoritePropertiesStorage(DefaultFavoritePropertiesStorageTypes.Noop),\n });\n }\n\n presentationManager.startIModelInitialization = (imodel) => favoritePropertiesManager?.startConnectionInitialization(imodel);\n presentationManager.ensureIModelInitialized = async (imodel) => favoritePropertiesManager?.ensureInitialized(imodel);\n\n await FrontendLocalizationHelper.registerNamespaces();\n for (const handler of initializationHandlers) {\n const cleanup = await handler();\n if (cleanup) {\n terminationHandlers.push(cleanup);\n }\n }\n }\n\n /**\n * Terminates Presentation library frontend. This method should be called\n * before a call to [IModelApp.shutdown]($core-frontend)\n */\n public static terminate(): void {\n terminationHandlers.forEach((handler) => handler());\n terminationHandlers.length = 0;\n\n if (localization) {\n FrontendLocalizationHelper.unregisterNamespaces();\n }\n\n if (presentationManager) {\n presentationManager[Symbol.dispose]();\n }\n presentationManager = undefined;\n\n if (favoritePropertiesManager) {\n favoritePropertiesManager[Symbol.dispose]();\n }\n favoritePropertiesManager = undefined;\n\n if (selectionManager) {\n selectionManager[Symbol.dispose]();\n }\n selectionManager = undefined;\n localization = undefined;\n }\n\n /**\n * Registers an additional handler which will be invoked during Presentation library frontend\n * initialization.\n */\n public static registerInitializationHandler(handler: () => Promise<() => void>): void {\n initializationHandlers.push(handler);\n }\n\n /** The singleton [[PresentationManager]] */\n public static get presentation(): PresentationManager {\n if (!presentationManager) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return presentationManager;\n }\n\n /** @internal */\n public static setPresentationManager(value: PresentationManager) {\n if (presentationManager) {\n presentationManager[Symbol.dispose]();\n }\n presentationManager = value;\n }\n\n /**\n * The singleton [[SelectionManager]].\n *\n * @deprecated in 5.0. The whole unified selection system in this package is deprecated in favor of the new\n * [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get selection(): SelectionManager {\n if (!selectionManager) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return selectionManager;\n }\n\n /** @internal */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static setSelectionManager(value: SelectionManager) {\n selectionManager = value;\n }\n\n /**\n * The singleton [[FavoritePropertiesManager]]\n * @public\n */\n public static get favoriteProperties(): FavoritePropertiesManager {\n if (!favoritePropertiesManager) {\n throw new Error(\"Favorite Properties must be first initialized by calling Presentation.initialize\");\n }\n return favoritePropertiesManager;\n }\n\n /** @internal */\n public static setFavoritePropertiesManager(value: FavoritePropertiesManager) {\n if (favoritePropertiesManager) {\n favoritePropertiesManager[Symbol.dispose]();\n }\n favoritePropertiesManager = value;\n }\n\n /**\n * The localization manager used by Presentation frontend. Returns the result of `IModelApp.i18n`.\n */\n public static get localization(): Localization {\n if (!localization) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return localization;\n }\n\n /** @internal */\n public static setLocalization(value: Localization) {\n localization = value;\n }\n}\n"]}
1
+ {"version":3,"file":"Presentation.js","sourceRoot":"","sources":["../../../src/presentation-frontend/Presentation.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAkC,MAAM,oDAAoD,CAAC;AAC/H,OAAO,EAAE,+BAA+B,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;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D;IACrD,MAAM,CAAC,mBAAmB,CAAC,KAAuB;QACvD,gBAAgB,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,MAAM,KAAK,kBAAkB;QAClC,IAAI,CAAC,yBAAyB,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;QACtG,CAAC;QACD,OAAO,yBAAyB,CAAC;IACnC,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,4BAA4B,CAAC,KAAgC;QACzE,IAAI,yBAAyB,EAAE,CAAC;YAC9B,yBAAyB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9C,CAAC;QACD,yBAAyB,GAAG,KAAK,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,MAAM,KAAK,YAAY;QAC5B,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,eAAe,CAAC,KAAmB;QAC/C,YAAY,GAAG,KAAK,CAAC;IACvB,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 Core\n */\n\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport { Localization } from \"@itwin/core-common\";\nimport { PresentationError, PresentationStatus } from \"@itwin/presentation-common\";\nimport { FavoritePropertiesManager, FavoritePropertiesManagerProps } from \"./favorite-properties/FavoritePropertiesManager.js\";\nimport { createFavoritePropertiesStorage, DefaultFavoritePropertiesStorageTypes } from \"./favorite-properties/FavoritePropertiesStorage.js\";\nimport { FrontendLocalizationHelper } from \"./LocalizationHelper.js\";\nimport { PresentationManager, PresentationManagerProps } from \"./PresentationManager.js\";\nimport { SelectionManager, SelectionManagerProps } from \"./selection/SelectionManager.js\";\nimport { SelectionScopesManager } from \"./selection/SelectionScopesManager.js\";\n\nlet localization: Localization | undefined;\nlet presentationManager: PresentationManager | undefined;\nlet selectionManager: SelectionManager | undefined; // eslint-disable-line @typescript-eslint/no-deprecated\nlet favoritePropertiesManager: FavoritePropertiesManager | undefined;\nconst initializationHandlers: Array<() => Promise<(() => void) | void>> = [];\nconst terminationHandlers: Array<() => void> = [];\n\n/**\n * Props for initializing [[Presentation]].\n * @public\n */\nexport interface PresentationProps {\n /** Props for [[PresentationManager]]. */\n presentation?: PresentationManagerProps;\n\n /**\n * Props for [[SelectionManager]].\n *\n * @deprecated in 5.0. The whole unified selection system in this package is deprecated in favor of the new\n * [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n selection?: Partial<SelectionManagerProps>;\n\n /** Props for [[FavoritePropertiesManager]]. */\n favorites?: FavoritePropertiesManagerProps;\n}\n\n/**\n * Static class used to statically set up Presentation library for the frontend.\n * Basically what it does is:\n * - Create a singleton [[PresentationManager]] instance\n * - Create a singleton [[SelectionManager]] instance\n * - Create a singleton [[FavoritePropertiesManager]]] instance\n *\n * @public\n */\nexport class Presentation {\n /* c8 ignore next */\n private constructor() {}\n\n /**\n * Initializes Presentation library for the frontend.\n *\n * Example:\n * ``` ts\n * [[include:Presentation.Frontend.Initialization]]\n * ```\n *\n * The method should be called after a call to [IModelApp.startup]($core-frontend).\n */\n public static async initialize(props?: PresentationProps): Promise<void> {\n if (!IModelApp.initialized) {\n throw new PresentationError(PresentationStatus.NotInitialized, \"IModelApp.startup must be called before calling Presentation.initialize\");\n }\n if (!localization) {\n localization = IModelApp.localization;\n }\n if (!presentationManager) {\n const managerProps = props?.presentation ?? {};\n if (!managerProps.activeLocale) {\n const languages = Presentation.localization.getLanguageList();\n managerProps.activeLocale = languages.length ? languages[0] : undefined;\n }\n presentationManager = PresentationManager.create(managerProps);\n }\n if (!selectionManager) {\n /* eslint-disable @typescript-eslint/no-deprecated */\n selectionManager = new SelectionManager({\n ...props?.selection,\n scopes:\n props?.selection?.scopes ??\n new SelectionScopesManager({\n rpcRequestsHandler: presentationManager.rpcRequestsHandler,\n localeProvider: () => this.presentation.activeLocale,\n }),\n });\n /* eslint-enable @typescript-eslint/no-deprecated */\n }\n if (!favoritePropertiesManager) {\n favoritePropertiesManager = new FavoritePropertiesManager({\n storage: props?.favorites ? props.favorites.storage : createFavoritePropertiesStorage(DefaultFavoritePropertiesStorageTypes.Noop),\n });\n }\n\n presentationManager.startIModelInitialization = (imodel) => favoritePropertiesManager?.startConnectionInitialization(imodel);\n presentationManager.ensureIModelInitialized = async (imodel) => favoritePropertiesManager?.ensureInitialized(imodel);\n\n await FrontendLocalizationHelper.registerNamespaces();\n for (const handler of initializationHandlers) {\n const cleanup = await handler();\n if (cleanup) {\n terminationHandlers.push(cleanup);\n }\n }\n }\n\n /**\n * Terminates Presentation library frontend. This method should be called\n * before a call to [IModelApp.shutdown]($core-frontend)\n */\n public static terminate(): void {\n terminationHandlers.forEach((handler) => handler());\n terminationHandlers.length = 0;\n\n if (localization) {\n FrontendLocalizationHelper.unregisterNamespaces();\n }\n\n if (presentationManager) {\n presentationManager[Symbol.dispose]();\n }\n presentationManager = undefined;\n\n if (favoritePropertiesManager) {\n favoritePropertiesManager[Symbol.dispose]();\n }\n favoritePropertiesManager = undefined;\n\n if (selectionManager) {\n selectionManager[Symbol.dispose]();\n }\n selectionManager = undefined;\n localization = undefined;\n }\n\n /**\n * Registers an additional handler which will be invoked during Presentation library frontend\n * initialization.\n */\n public static registerInitializationHandler(handler: () => Promise<() => void>): void {\n initializationHandlers.push(handler);\n }\n\n /** The singleton [[PresentationManager]] */\n public static get presentation(): PresentationManager {\n if (!presentationManager) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return presentationManager;\n }\n\n /** @internal */\n public static setPresentationManager(value: PresentationManager) {\n if (presentationManager) {\n presentationManager[Symbol.dispose]();\n }\n presentationManager = value;\n }\n\n /**\n * The singleton [[SelectionManager]].\n *\n * @deprecated in 5.0. The whole unified selection system in this package is deprecated in favor of the new\n * [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static get selection(): SelectionManager {\n if (!selectionManager) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return selectionManager;\n }\n\n /** @internal */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public static setSelectionManager(value: SelectionManager) {\n selectionManager = value;\n }\n\n /**\n * The singleton [[FavoritePropertiesManager]]\n * @public\n */\n public static get favoriteProperties(): FavoritePropertiesManager {\n if (!favoritePropertiesManager) {\n throw new Error(\"Favorite Properties must be first initialized by calling Presentation.initialize\");\n }\n return favoritePropertiesManager;\n }\n\n /** @internal */\n public static setFavoritePropertiesManager(value: FavoritePropertiesManager) {\n if (favoritePropertiesManager) {\n favoritePropertiesManager[Symbol.dispose]();\n }\n favoritePropertiesManager = value;\n }\n\n /**\n * The localization manager used by Presentation frontend. Returns the result of `IModelApp.i18n`.\n */\n public static get localization(): Localization {\n if (!localization) {\n throw new Error(\"Presentation must be first initialized by calling Presentation.initialize\");\n }\n return localization;\n }\n\n /** @internal */\n public static setLocalization(value: Localization) {\n localization = value;\n }\n}\n"]}
@@ -5,10 +5,11 @@ import { BeEvent } from "@itwin/core-bentley";
5
5
  import { IModelConnection } from "@itwin/core-frontend";
6
6
  import { UnitSystemKey } from "@itwin/core-quantity";
7
7
  import { SchemaContext } from "@itwin/ecschema-metadata";
8
- import { ClientDiagnosticsAttribute, Content, ContentDescriptorRequestOptions, ContentInstanceKeysRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, ContentUpdateInfo, Descriptor, DescriptorOverrides, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DisplayValueGroup, DistinctValuesRequestOptions, ElementProperties, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, FormatsMap, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, HierarchyUpdateInfo, InstanceKey, Item, KeySet, LabelDefinition, Node, NodeKey, NodePathElement, Paged, PagedResponse, RpcRequestsHandler, RulesetVariable, SelectClassInfo, SingleElementPropertiesRequestOptions } from "@itwin/presentation-common";
9
- import { IpcRequestsHandler } from "./IpcRequestsHandler";
10
- import { RulesetManager } from "./RulesetManager";
11
- import { RulesetVariablesManager } from "./RulesetVariablesManager";
8
+ import { ClientDiagnosticsAttribute, Content, ContentDescriptorRequestOptions, ContentInstanceKeysRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, ContentUpdateInfo, Descriptor, DescriptorOverrides, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DisplayValueGroup, DistinctValuesRequestOptions, ElementProperties, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, FormatsMap, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, HierarchyUpdateInfo, InstanceKey, Item, KeySet, LabelDefinition, Node, NodeKey, NodePathElement, Paged, PagedResponse, RulesetVariable, SelectClassInfo, SingleElementPropertiesRequestOptions } from "@itwin/presentation-common";
9
+ import { RpcRequestsHandler } from "@itwin/presentation-common/internal";
10
+ import { IpcRequestsHandler } from "./IpcRequestsHandler.js";
11
+ import { RulesetManager } from "./RulesetManager.js";
12
+ import { RulesetVariablesManager } from "./RulesetVariablesManager.js";
12
13
  /**
13
14
  * Data structure that describes IModel hierarchy change event arguments.
14
15
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationManager.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/PresentationManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAA0C,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAa,gBAAgB,EAAU,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,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AAO,CAAC,eAAe,CAAC;IAO3B,4DAA4D;IAC/C,kCAAkC,CAC7C,cAAc,EAAE,2BAA2B,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,0BAA0B,GAAG,4BAA4B,GACrI,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAA;KAAE,CAAC;IAgB5E;;;OAGG;IACU,0BAA0B,CACrC,cAAc,EAAE,2BAA2B,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,0BAA0B,GAAG,4BAA4B,GACrI,OAAO,CAAC,eAAe,EAAE,CAAC;CAI9B"}
1
+ {"version":3,"file":"PresentationManager.d.ts","sourceRoot":"","sources":["../../../src/presentation-frontend/PresentationManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAA0C,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAa,gBAAgB,EAAU,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,0BAA0B,EAC1B,OAAO,EACP,+BAA+B,EAE/B,iCAAiC,EACjC,qBAAqB,EACrB,4BAA4B,EAC5B,iBAAiB,EAEjB,UAAU,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,iBAAiB,EACjB,4BAA4B,EAC5B,iBAAiB,EACjB,4CAA4C,EAC5C,mCAAmC,EACnC,UAAU,EACV,sCAAsC,EACtC,uBAAuB,EACvB,mBAAmB,EACnB,WAAW,EACX,IAAI,EAGJ,MAAM,EAEN,eAAe,EACf,IAAI,EACJ,OAAO,EACP,eAAe,EACf,KAAK,EACL,aAAa,EAGb,eAAe,EACf,eAAe,EACf,qCAAqC,EAGtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAKL,kBAAkB,EACnB,MAAM,q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";
10
- import { buildElementProperties, Content, ContentFlags, ContentFormatter, ContentPropertyValueFormatter, DefaultContentDisplayTypes, Descriptor, Item, Key, KeySet, KoqPropertyValueFormatter, PresentationIpcEvents, RpcRequestsHandler, RulesetVariable, SelectClassInfo, VariableValueTypes, } from "@itwin/presentation-common";
11
- import { IpcRequestsHandler } from "./IpcRequestsHandler";
12
- import { FrontendLocalizationHelper } from "./LocalizationHelper";
13
- import { RulesetManagerImpl } from "./RulesetManager";
14
- import { RulesetVariablesManagerImpl } from "./RulesetVariablesManager";
15
- import { StreamedResponseGenerator } from "./StreamedResponseGenerator";
10
+ import { Content, ContentFlags, DefaultContentDisplayTypes, Descriptor, Item, Key, KeySet, KoqPropertyValueFormatter, RulesetVariable, SelectClassInfo, VariableValueTypes, } from "@itwin/presentation-common";
11
+ import { buildElementProperties, ContentFormatter, ContentPropertyValueFormatter, PresentationIpcEvents, RpcRequestsHandler, } from "@itwin/presentation-common/internal";
16
12
  import { TRANSIENT_ELEMENT_CLASSNAME } from "@itwin/unified-selection";
13
+ import { IpcRequestsHandler } from "./IpcRequestsHandler.js";
14
+ import { FrontendLocalizationHelper } from "./LocalizationHelper.js";
15
+ import { RulesetManagerImpl } from "./RulesetManager.js";
16
+ import { RulesetVariablesManagerImpl } from "./RulesetVariablesManager.js";
17
+ import { StreamedResponseGenerator } from "./StreamedResponseGenerator.js";
17
18
  /**
18
19
  * Frontend Presentation manager which basically just forwards all calls to
19
20
  * the backend implementation.
@@ -83,7 +84,7 @@ export class PresentationManager {
83
84
  }
84
85
  }
85
86
  /** @deprecated in 5.0 Use [Symbol.dispose] instead. */
86
- // istanbul ignore next
87
+ /* c8 ignore next 3 */
87
88
  dispose() {
88
89
  this[Symbol.dispose]();
89
90
  }
@@ -94,13 +95,13 @@ export class PresentationManager {
94
95
  /** @note This is only called in native apps after changes in iModels */
95
96
  async handleUpdateAsync(report) {
96
97
  for (const imodelKey in report) {
97
- // istanbul ignore if
98
+ /* c8 ignore next 3 */
98
99
  if (!report.hasOwnProperty(imodelKey)) {
99
100
  continue;
100
101
  }
101
102
  const imodelReport = report[imodelKey];
102
103
  for (const rulesetId in imodelReport) {
103
- // istanbul ignore if
104
+ /* c8 ignore next 3 */
104
105
  if (!imodelReport.hasOwnProperty(rulesetId)) {
105
106
  continue;
106
107
  }
@@ -285,7 +286,7 @@ export class PresentationManager {
285
286
  this.startIModelInitialization(requestOptions.imodel);
286
287
  const rpcOptions = this.toRpcTokenOptions(requestOptions);
287
288
  const result = await this._requestsHandler.getContentSources(rpcOptions);
288
- return SelectClassInfo.listFromCompressedJSON(result.sources, result.classesMap);
289
+ return result.sources.map((sourceJson) => SelectClassInfo.fromCompressedJSON(sourceJson, result.classesMap));
289
290
  }
290
291
  /** Retrieves the content descriptor which describes the content and can be used to customize it. */
291
292
  async getContentDescriptor(requestOptions) {
@@ -340,7 +341,7 @@ export class PresentationManager {
340
341
  descriptor = Descriptor.fromJSON(firstPageResponse?.descriptor);
341
342
  firstPage = firstPageResponse?.contentSet;
342
343
  }
343
- // istanbul ignore if
344
+ /* c8 ignore next 3 */
344
345
  if (!descriptor) {
345
346
  return undefined;
346
347
  }
@@ -534,7 +535,7 @@ const stripTransientElementKeys = (keys) => {
534
535
  copy.add(keys, (key) => {
535
536
  // the callback is not going to be called with EntityProps as KeySet converts them
536
537
  // to InstanceKeys, but we want to keep the EntityProps case for correctness
537
- // istanbul ignore next
538
+ /* c8 ignore next 3 */
538
539
  const isTransient = (Key.isInstanceKey(key) && key.className === TRANSIENT_ELEMENT_CLASSNAME) ||
539
540
  (Key.isEntityProps(key) && key.classFullName === TRANSIENT_ELEMENT_CLASSNAME);
540
541
  return !isTransient;