@itwin/presentation-frontend 4.0.0-dev.52 → 4.0.0-dev.55

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 (88) hide show
  1. package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.d.ts +29 -29
  2. package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.js +47 -47
  3. package/lib/cjs/presentation-frontend/Diagnostics.d.ts +14 -14
  4. package/lib/cjs/presentation-frontend/Diagnostics.js +61 -61
  5. package/lib/cjs/presentation-frontend/FrontendLoggerCategory.d.ts +12 -12
  6. package/lib/cjs/presentation-frontend/FrontendLoggerCategory.js +20 -20
  7. package/lib/cjs/presentation-frontend/IpcRequestsHandler.d.ts +10 -10
  8. package/lib/cjs/presentation-frontend/IpcRequestsHandler.js +41 -41
  9. package/lib/cjs/presentation-frontend/LocalizationHelper.d.ts +10 -10
  10. package/lib/cjs/presentation-frontend/LocalizationHelper.js +31 -31
  11. package/lib/cjs/presentation-frontend/Presentation.d.ts +73 -73
  12. package/lib/cjs/presentation-frontend/Presentation.js +159 -159
  13. package/lib/cjs/presentation-frontend/PresentationManager.d.ts +205 -205
  14. package/lib/cjs/presentation-frontend/PresentationManager.js +438 -438
  15. package/lib/cjs/presentation-frontend/PresentationManager.js.map +1 -1
  16. package/lib/cjs/presentation-frontend/RulesetManager.d.ts +63 -63
  17. package/lib/cjs/presentation-frontend/RulesetManager.js +85 -85
  18. package/lib/cjs/presentation-frontend/RulesetVariablesManager.d.ts +143 -143
  19. package/lib/cjs/presentation-frontend/RulesetVariablesManager.js +195 -195
  20. package/lib/cjs/presentation-frontend/StateTracker.d.ts +38 -38
  21. package/lib/cjs/presentation-frontend/StateTracker.js +128 -128
  22. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +132 -132
  23. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts.map +1 -1
  24. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +519 -519
  25. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  26. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +111 -111
  27. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +290 -290
  28. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.d.ts +52 -52
  29. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js +97 -97
  30. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.d.ts +19 -19
  31. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.js +9 -9
  32. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.d.ts +52 -52
  33. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.js +33 -33
  34. package/lib/cjs/presentation-frontend/selection/SelectionHandler.d.ts +103 -103
  35. package/lib/cjs/presentation-frontend/selection/SelectionHandler.js +108 -108
  36. package/lib/cjs/presentation-frontend/selection/SelectionHelper.d.ts +17 -17
  37. package/lib/cjs/presentation-frontend/selection/SelectionHelper.js +40 -40
  38. package/lib/cjs/presentation-frontend/selection/SelectionManager.d.ts +139 -139
  39. package/lib/cjs/presentation-frontend/selection/SelectionManager.js +414 -414
  40. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.d.ts +59 -59
  41. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.js +91 -91
  42. package/lib/cjs/presentation-frontend.d.ts +34 -34
  43. package/lib/cjs/presentation-frontend.js +54 -50
  44. package/lib/cjs/presentation-frontend.js.map +1 -1
  45. package/lib/esm/presentation-frontend/ConnectivityInformationProvider.d.ts +29 -29
  46. package/lib/esm/presentation-frontend/ConnectivityInformationProvider.js +43 -43
  47. package/lib/esm/presentation-frontend/Diagnostics.d.ts +14 -14
  48. package/lib/esm/presentation-frontend/Diagnostics.js +56 -56
  49. package/lib/esm/presentation-frontend/FrontendLoggerCategory.d.ts +12 -12
  50. package/lib/esm/presentation-frontend/FrontendLoggerCategory.js +17 -17
  51. package/lib/esm/presentation-frontend/IpcRequestsHandler.d.ts +10 -10
  52. package/lib/esm/presentation-frontend/IpcRequestsHandler.js +37 -37
  53. package/lib/esm/presentation-frontend/LocalizationHelper.d.ts +10 -10
  54. package/lib/esm/presentation-frontend/LocalizationHelper.js +27 -27
  55. package/lib/esm/presentation-frontend/Presentation.d.ts +73 -73
  56. package/lib/esm/presentation-frontend/Presentation.js +155 -155
  57. package/lib/esm/presentation-frontend/PresentationManager.d.ts +205 -205
  58. package/lib/esm/presentation-frontend/PresentationManager.js +433 -433
  59. package/lib/esm/presentation-frontend/PresentationManager.js.map +1 -1
  60. package/lib/esm/presentation-frontend/RulesetManager.d.ts +63 -63
  61. package/lib/esm/presentation-frontend/RulesetManager.js +81 -81
  62. package/lib/esm/presentation-frontend/RulesetVariablesManager.d.ts +143 -143
  63. package/lib/esm/presentation-frontend/RulesetVariablesManager.js +191 -191
  64. package/lib/esm/presentation-frontend/StateTracker.d.ts +38 -38
  65. package/lib/esm/presentation-frontend/StateTracker.js +124 -124
  66. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts +132 -132
  67. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.d.ts.map +1 -1
  68. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +514 -513
  69. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  70. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.d.ts +111 -111
  71. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js +282 -282
  72. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.d.ts +52 -52
  73. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js +93 -93
  74. package/lib/esm/presentation-frontend/selection/ISelectionProvider.d.ts +19 -19
  75. package/lib/esm/presentation-frontend/selection/ISelectionProvider.js +8 -8
  76. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.d.ts +52 -52
  77. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js +29 -29
  78. package/lib/esm/presentation-frontend/selection/SelectionHandler.d.ts +103 -103
  79. package/lib/esm/presentation-frontend/selection/SelectionHandler.js +104 -104
  80. package/lib/esm/presentation-frontend/selection/SelectionHelper.d.ts +17 -17
  81. package/lib/esm/presentation-frontend/selection/SelectionHelper.js +36 -36
  82. package/lib/esm/presentation-frontend/selection/SelectionManager.d.ts +139 -139
  83. package/lib/esm/presentation-frontend/selection/SelectionManager.js +409 -409
  84. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.d.ts +59 -59
  85. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.js +85 -85
  86. package/lib/esm/presentation-frontend.d.ts +34 -34
  87. package/lib/esm/presentation-frontend.js +38 -38
  88. package/package.json +15 -15
@@ -1,60 +1,60 @@
1
- /** @packageDocumentation
2
- * @module UnifiedSelection
3
- */
4
- import { Id64Arg } from "@itwin/core-bentley";
5
- import { IModelConnection } from "@itwin/core-frontend";
6
- import { KeySet, RpcRequestsHandler, SelectionScope, SelectionScopeProps } from "@itwin/presentation-common";
7
- /**
8
- * Properties for creating [[SelectionScopesManager]].
9
- * @public
10
- */
11
- export interface SelectionScopesManagerProps {
12
- /** RPC handler to use for requesting selection scopes */
13
- rpcRequestsHandler: RpcRequestsHandler;
14
- /** Provider of active locale to use for localizing scopes */
15
- localeProvider?: () => string | undefined;
16
- }
17
- /**
18
- * A manager that knows available [selection scopes]($docs/presentation/unified-selection/index#selection-scopes)
19
- * and can compute logical selection based on element IDs and selection scope.
20
- *
21
- * @public
22
- */
23
- export declare class SelectionScopesManager {
24
- private _rpcRequestsHandler;
25
- private _getLocale;
26
- private _activeScope;
27
- constructor(props: SelectionScopesManagerProps);
28
- /** Get active locale */
29
- get activeLocale(): string | undefined;
30
- /** The active selection scope or its id */
31
- get activeScope(): SelectionScopeProps | SelectionScope | string | undefined;
32
- set activeScope(scope: SelectionScopeProps | SelectionScope | string | undefined);
33
- /**
34
- * Get available selection scopes.
35
- * @param imodel The iModel to get selection scopes for
36
- * @param locale Optional locale to use when localizing scopes' label and description
37
- */
38
- getSelectionScopes(imodel: IModelConnection, locale?: string): Promise<SelectionScope[]>;
39
- /**
40
- * Computes keys that need to be added to logical selection based on provided selection scope.
41
- * @param ids Element IDs to compute selection for
42
- * @param scope Selection scope to apply
43
- */
44
- computeSelection(imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string): Promise<KeySet>;
45
- }
46
- /**
47
- * Normalizes given scope options and returns [[SelectionScopeProps]] that can be used for
48
- * calculating selection with scope.
49
- *
50
- * @public
51
- */
52
- export declare function createSelectionScopeProps(scope: SelectionScopeProps | SelectionScope | string | undefined): SelectionScopeProps;
53
- /**
54
- * Determines the scope id
55
- * @param scope Selection scope
56
- * @public
57
- * @deprecated in 3.x. This is an internal utility that should've never become public.
58
- */
59
- export declare function getScopeId(scope: SelectionScope | string | undefined): string;
1
+ /** @packageDocumentation
2
+ * @module UnifiedSelection
3
+ */
4
+ import { Id64Arg } from "@itwin/core-bentley";
5
+ import { IModelConnection } from "@itwin/core-frontend";
6
+ import { KeySet, RpcRequestsHandler, SelectionScope, SelectionScopeProps } from "@itwin/presentation-common";
7
+ /**
8
+ * Properties for creating [[SelectionScopesManager]].
9
+ * @public
10
+ */
11
+ export interface SelectionScopesManagerProps {
12
+ /** RPC handler to use for requesting selection scopes */
13
+ rpcRequestsHandler: RpcRequestsHandler;
14
+ /** Provider of active locale to use for localizing scopes */
15
+ localeProvider?: () => string | undefined;
16
+ }
17
+ /**
18
+ * A manager that knows available [selection scopes]($docs/presentation/unified-selection/index#selection-scopes)
19
+ * and can compute logical selection based on element IDs and selection scope.
20
+ *
21
+ * @public
22
+ */
23
+ export declare class SelectionScopesManager {
24
+ private _rpcRequestsHandler;
25
+ private _getLocale;
26
+ private _activeScope;
27
+ constructor(props: SelectionScopesManagerProps);
28
+ /** Get active locale */
29
+ get activeLocale(): string | undefined;
30
+ /** The active selection scope or its id */
31
+ get activeScope(): SelectionScopeProps | SelectionScope | string | undefined;
32
+ set activeScope(scope: SelectionScopeProps | SelectionScope | string | undefined);
33
+ /**
34
+ * Get available selection scopes.
35
+ * @param imodel The iModel to get selection scopes for
36
+ * @param locale Optional locale to use when localizing scopes' label and description
37
+ */
38
+ getSelectionScopes(imodel: IModelConnection, locale?: string): Promise<SelectionScope[]>;
39
+ /**
40
+ * Computes keys that need to be added to logical selection based on provided selection scope.
41
+ * @param ids Element IDs to compute selection for
42
+ * @param scope Selection scope to apply
43
+ */
44
+ computeSelection(imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string): Promise<KeySet>;
45
+ }
46
+ /**
47
+ * Normalizes given scope options and returns [[SelectionScopeProps]] that can be used for
48
+ * calculating selection with scope.
49
+ *
50
+ * @public
51
+ */
52
+ export declare function createSelectionScopeProps(scope: SelectionScopeProps | SelectionScope | string | undefined): SelectionScopeProps;
53
+ /**
54
+ * Determines the scope id
55
+ * @param scope Selection scope
56
+ * @public
57
+ * @deprecated in 3.x. This is an internal utility that should've never become public.
58
+ */
59
+ export declare function getScopeId(scope: SelectionScope | string | undefined): string;
60
60
  //# sourceMappingURL=SelectionScopesManager.d.ts.map
@@ -1,92 +1,92 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module UnifiedSelection
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getScopeId = exports.createSelectionScopeProps = exports.SelectionScopesManager = void 0;
11
- const presentation_common_1 = require("@itwin/presentation-common");
12
- /**
13
- * A manager that knows available [selection scopes]($docs/presentation/unified-selection/index#selection-scopes)
14
- * and can compute logical selection based on element IDs and selection scope.
15
- *
16
- * @public
17
- */
18
- class SelectionScopesManager {
19
- constructor(props) {
20
- this._rpcRequestsHandler = props.rpcRequestsHandler;
21
- this._getLocale = props.localeProvider ? props.localeProvider : (() => undefined);
22
- }
23
- /** Get active locale */
24
- get activeLocale() { return this._getLocale(); }
25
- /** The active selection scope or its id */
26
- get activeScope() { return this._activeScope; }
27
- set activeScope(scope) { this._activeScope = scope; }
28
- /**
29
- * Get available selection scopes.
30
- * @param imodel The iModel to get selection scopes for
31
- * @param locale Optional locale to use when localizing scopes' label and description
32
- */
33
- async getSelectionScopes(imodel, locale) {
34
- if (!locale)
35
- locale = this._getLocale();
36
- return this._rpcRequestsHandler.getSelectionScopes({ imodel: imodel.getRpcProps(), locale });
37
- }
38
- /**
39
- * Computes keys that need to be added to logical selection based on provided selection scope.
40
- * @param ids Element IDs to compute selection for
41
- * @param scope Selection scope to apply
42
- */
43
- async computeSelection(imodel, ids, scope) {
44
- const scopeProps = createSelectionScopeProps(scope);
45
- // convert ids input to array
46
- if (typeof ids === "string")
47
- ids = [ids];
48
- else if (ids instanceof Set)
49
- ids = [...ids];
50
- // compute selection in batches to avoid HTTP 413
51
- const keys = new presentation_common_1.KeySet();
52
- const batchSize = presentation_common_1.DEFAULT_KEYS_BATCH_SIZE;
53
- const batchesCount = Math.ceil(ids.length / batchSize);
54
- const batchKeyPromises = [];
55
- for (let batchIndex = 0; batchIndex < batchesCount; ++batchIndex) {
56
- const batchStart = batchSize * batchIndex;
57
- const batchEnd = (batchStart + batchSize > ids.length) ? ids.length : (batchStart + batchSize);
58
- const batchIds = (0 === batchIndex && ids.length <= batchEnd) ? ids : ids.slice(batchStart, batchEnd);
59
- batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps(), elementIds: batchIds, scope: scopeProps }));
60
- }
61
- const batchKeys = (await Promise.all(batchKeyPromises)).map(presentation_common_1.KeySet.fromJSON);
62
- batchKeys.forEach((bk) => keys.add(bk));
63
- return keys;
64
- }
65
- }
66
- exports.SelectionScopesManager = SelectionScopesManager;
67
- /**
68
- * Normalizes given scope options and returns [[SelectionScopeProps]] that can be used for
69
- * calculating selection with scope.
70
- *
71
- * @public
72
- */
73
- function createSelectionScopeProps(scope) {
74
- if (!scope)
75
- return { id: "element" };
76
- if (typeof scope === "string")
77
- return { id: scope };
78
- return scope;
79
- }
80
- exports.createSelectionScopeProps = createSelectionScopeProps;
81
- /**
82
- * Determines the scope id
83
- * @param scope Selection scope
84
- * @public
85
- * @deprecated in 3.x. This is an internal utility that should've never become public.
86
- */
87
- // istanbul ignore next
88
- function getScopeId(scope) {
89
- return createSelectionScopeProps(scope).id;
90
- }
91
- exports.getScopeId = getScopeId;
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module UnifiedSelection
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getScopeId = exports.createSelectionScopeProps = exports.SelectionScopesManager = void 0;
11
+ const presentation_common_1 = require("@itwin/presentation-common");
12
+ /**
13
+ * A manager that knows available [selection scopes]($docs/presentation/unified-selection/index#selection-scopes)
14
+ * and can compute logical selection based on element IDs and selection scope.
15
+ *
16
+ * @public
17
+ */
18
+ class SelectionScopesManager {
19
+ constructor(props) {
20
+ this._rpcRequestsHandler = props.rpcRequestsHandler;
21
+ this._getLocale = props.localeProvider ? props.localeProvider : (() => undefined);
22
+ }
23
+ /** Get active locale */
24
+ get activeLocale() { return this._getLocale(); }
25
+ /** The active selection scope or its id */
26
+ get activeScope() { return this._activeScope; }
27
+ set activeScope(scope) { this._activeScope = scope; }
28
+ /**
29
+ * Get available selection scopes.
30
+ * @param imodel The iModel to get selection scopes for
31
+ * @param locale Optional locale to use when localizing scopes' label and description
32
+ */
33
+ async getSelectionScopes(imodel, locale) {
34
+ if (!locale)
35
+ locale = this._getLocale();
36
+ return this._rpcRequestsHandler.getSelectionScopes({ imodel: imodel.getRpcProps(), locale });
37
+ }
38
+ /**
39
+ * Computes keys that need to be added to logical selection based on provided selection scope.
40
+ * @param ids Element IDs to compute selection for
41
+ * @param scope Selection scope to apply
42
+ */
43
+ async computeSelection(imodel, ids, scope) {
44
+ const scopeProps = createSelectionScopeProps(scope);
45
+ // convert ids input to array
46
+ if (typeof ids === "string")
47
+ ids = [ids];
48
+ else if (ids instanceof Set)
49
+ ids = [...ids];
50
+ // compute selection in batches to avoid HTTP 413
51
+ const keys = new presentation_common_1.KeySet();
52
+ const batchSize = presentation_common_1.DEFAULT_KEYS_BATCH_SIZE;
53
+ const batchesCount = Math.ceil(ids.length / batchSize);
54
+ const batchKeyPromises = [];
55
+ for (let batchIndex = 0; batchIndex < batchesCount; ++batchIndex) {
56
+ const batchStart = batchSize * batchIndex;
57
+ const batchEnd = (batchStart + batchSize > ids.length) ? ids.length : (batchStart + batchSize);
58
+ const batchIds = (0 === batchIndex && ids.length <= batchEnd) ? ids : ids.slice(batchStart, batchEnd);
59
+ batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps(), elementIds: batchIds, scope: scopeProps }));
60
+ }
61
+ const batchKeys = (await Promise.all(batchKeyPromises)).map(presentation_common_1.KeySet.fromJSON);
62
+ batchKeys.forEach((bk) => keys.add(bk));
63
+ return keys;
64
+ }
65
+ }
66
+ exports.SelectionScopesManager = SelectionScopesManager;
67
+ /**
68
+ * Normalizes given scope options and returns [[SelectionScopeProps]] that can be used for
69
+ * calculating selection with scope.
70
+ *
71
+ * @public
72
+ */
73
+ function createSelectionScopeProps(scope) {
74
+ if (!scope)
75
+ return { id: "element" };
76
+ if (typeof scope === "string")
77
+ return { id: scope };
78
+ return scope;
79
+ }
80
+ exports.createSelectionScopeProps = createSelectionScopeProps;
81
+ /**
82
+ * Determines the scope id
83
+ * @param scope Selection scope
84
+ * @public
85
+ * @deprecated in 3.x. This is an internal utility that should've never become public.
86
+ */
87
+ // istanbul ignore next
88
+ function getScopeId(scope) {
89
+ return createSelectionScopeProps(scope).id;
90
+ }
91
+ exports.getScopeId = getScopeId;
92
92
  //# sourceMappingURL=SelectionScopesManager.js.map
@@ -1,35 +1,35 @@
1
- /**
2
- * @module Core
3
- *
4
- * @docs-group-description Core
5
- * Common types used for retrieving presentation data from iModels.
6
- */
7
- export * from "./presentation-frontend/Presentation";
8
- export * from "./presentation-frontend/PresentationManager";
9
- export * from "./presentation-frontend/RulesetManager";
10
- export * from "./presentation-frontend/RulesetVariablesManager";
11
- export * from "./presentation-frontend/favorite-properties/FavoritePropertiesManager";
12
- export * from "./presentation-frontend/favorite-properties/FavoritePropertiesStorage";
13
- export * from "./presentation-frontend/StateTracker";
14
- export * from "./presentation-frontend/Diagnostics";
15
- /**
16
- * @module Logging
17
- *
18
- * @docs-group-description Logging
19
- * Types related to logging in this package.
20
- */
21
- export * from "./presentation-frontend/FrontendLoggerCategory";
22
- /**
23
- * @module UnifiedSelection
24
- *
25
- * @docs-group-description UnifiedSelection
26
- * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
27
- */
28
- export * from "./presentation-frontend/selection/SelectionChangeEvent";
29
- export * from "./presentation-frontend/selection/ISelectionProvider";
30
- export * from "./presentation-frontend/selection/SelectionManager";
31
- export * from "./presentation-frontend/selection/SelectionScopesManager";
32
- export * from "./presentation-frontend/selection/SelectionHandler";
33
- export * from "./presentation-frontend/selection/HiliteSetProvider";
34
- export * from "./presentation-frontend/selection/SelectionHelper";
1
+ /**
2
+ * @module Core
3
+ *
4
+ * @docs-group-description Core
5
+ * Common types used for retrieving presentation data from iModels.
6
+ */
7
+ export * from "./presentation-frontend/Presentation";
8
+ export * from "./presentation-frontend/PresentationManager";
9
+ export * from "./presentation-frontend/RulesetManager";
10
+ export * from "./presentation-frontend/RulesetVariablesManager";
11
+ export * from "./presentation-frontend/favorite-properties/FavoritePropertiesManager";
12
+ export * from "./presentation-frontend/favorite-properties/FavoritePropertiesStorage";
13
+ export * from "./presentation-frontend/StateTracker";
14
+ export * from "./presentation-frontend/Diagnostics";
15
+ /**
16
+ * @module Logging
17
+ *
18
+ * @docs-group-description Logging
19
+ * Types related to logging in this package.
20
+ */
21
+ export * from "./presentation-frontend/FrontendLoggerCategory";
22
+ /**
23
+ * @module UnifiedSelection
24
+ *
25
+ * @docs-group-description UnifiedSelection
26
+ * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
27
+ */
28
+ export * from "./presentation-frontend/selection/SelectionChangeEvent";
29
+ export * from "./presentation-frontend/selection/ISelectionProvider";
30
+ export * from "./presentation-frontend/selection/SelectionManager";
31
+ export * from "./presentation-frontend/selection/SelectionScopesManager";
32
+ export * from "./presentation-frontend/selection/SelectionHandler";
33
+ export * from "./presentation-frontend/selection/HiliteSetProvider";
34
+ export * from "./presentation-frontend/selection/SelectionHelper";
35
35
  //# sourceMappingURL=presentation-frontend.d.ts.map
@@ -1,51 +1,55 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*---------------------------------------------------------------------------------------------
14
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
15
- * See LICENSE.md in the project root for license terms and full copyright notice.
16
- *--------------------------------------------------------------------------------------------*/
17
- /**
18
- * @module Core
19
- *
20
- * @docs-group-description Core
21
- * Common types used for retrieving presentation data from iModels.
22
- */
23
- __exportStar(require("./presentation-frontend/Presentation"), exports);
24
- __exportStar(require("./presentation-frontend/PresentationManager"), exports);
25
- __exportStar(require("./presentation-frontend/RulesetManager"), exports);
26
- __exportStar(require("./presentation-frontend/RulesetVariablesManager"), exports);
27
- __exportStar(require("./presentation-frontend/favorite-properties/FavoritePropertiesManager"), exports);
28
- __exportStar(require("./presentation-frontend/favorite-properties/FavoritePropertiesStorage"), exports);
29
- __exportStar(require("./presentation-frontend/StateTracker"), exports);
30
- __exportStar(require("./presentation-frontend/Diagnostics"), exports);
31
- /**
32
- * @module Logging
33
- *
34
- * @docs-group-description Logging
35
- * Types related to logging in this package.
36
- */
37
- __exportStar(require("./presentation-frontend/FrontendLoggerCategory"), exports);
38
- /**
39
- * @module UnifiedSelection
40
- *
41
- * @docs-group-description UnifiedSelection
42
- * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
43
- */
44
- __exportStar(require("./presentation-frontend/selection/SelectionChangeEvent"), exports);
45
- __exportStar(require("./presentation-frontend/selection/ISelectionProvider"), exports);
46
- __exportStar(require("./presentation-frontend/selection/SelectionManager"), exports);
47
- __exportStar(require("./presentation-frontend/selection/SelectionScopesManager"), exports);
48
- __exportStar(require("./presentation-frontend/selection/SelectionHandler"), exports);
49
- __exportStar(require("./presentation-frontend/selection/HiliteSetProvider"), exports);
50
- __exportStar(require("./presentation-frontend/selection/SelectionHelper"), exports);
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
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /*---------------------------------------------------------------------------------------------
18
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
+ * See LICENSE.md in the project root for license terms and full copyright notice.
20
+ *--------------------------------------------------------------------------------------------*/
21
+ /**
22
+ * @module Core
23
+ *
24
+ * @docs-group-description Core
25
+ * Common types used for retrieving presentation data from iModels.
26
+ */
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/StateTracker"), exports);
34
+ __exportStar(require("./presentation-frontend/Diagnostics"), exports);
35
+ /**
36
+ * @module Logging
37
+ *
38
+ * @docs-group-description Logging
39
+ * Types related to logging in this package.
40
+ */
41
+ __exportStar(require("./presentation-frontend/FrontendLoggerCategory"), exports);
42
+ /**
43
+ * @module UnifiedSelection
44
+ *
45
+ * @docs-group-description UnifiedSelection
46
+ * Types related to [unified selection]($docs/presentation/unified-selection/index.md).
47
+ */
48
+ __exportStar(require("./presentation-frontend/selection/SelectionChangeEvent"), exports);
49
+ __exportStar(require("./presentation-frontend/selection/ISelectionProvider"), exports);
50
+ __exportStar(require("./presentation-frontend/selection/SelectionManager"), exports);
51
+ __exportStar(require("./presentation-frontend/selection/SelectionScopesManager"), exports);
52
+ __exportStar(require("./presentation-frontend/selection/SelectionHandler"), exports);
53
+ __exportStar(require("./presentation-frontend/selection/HiliteSetProvider"), exports);
54
+ __exportStar(require("./presentation-frontend/selection/SelectionHelper"), exports);
51
55
  //# sourceMappingURL=presentation-frontend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-frontend.js","sourceRoot":"","sources":["../../src/presentation-frontend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,uEAAqD;AACrD,8EAA4D;AAC5D,yEAAuD;AACvD,kFAAgE;AAChE,wGAAsF;AACtF,wGAAsF;AACtF,uEAAqD;AACrD,sEAAoD;AAEpD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yFAAuE;AACvE,uFAAqE;AACrE,qFAAmE;AACnE,2FAAyE;AACzE,qFAAmE;AACnE,sFAAoE;AACpE,oFAAkE","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used for retrieving presentation data from iModels.\r\n */\r\nexport * from \"./presentation-frontend/Presentation\";\r\nexport * from \"./presentation-frontend/PresentationManager\";\r\nexport * from \"./presentation-frontend/RulesetManager\";\r\nexport * from \"./presentation-frontend/RulesetVariablesManager\";\r\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesManager\";\r\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesStorage\";\r\nexport * from \"./presentation-frontend/StateTracker\";\r\nexport * from \"./presentation-frontend/Diagnostics\";\r\n\r\n/**\r\n * @module Logging\r\n *\r\n * @docs-group-description Logging\r\n * Types related to logging in this package.\r\n */\r\nexport * from \"./presentation-frontend/FrontendLoggerCategory\";\r\n\r\n/**\r\n * @module UnifiedSelection\r\n *\r\n * @docs-group-description UnifiedSelection\r\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\r\n */\r\nexport * from \"./presentation-frontend/selection/SelectionChangeEvent\";\r\nexport * from \"./presentation-frontend/selection/ISelectionProvider\";\r\nexport * from \"./presentation-frontend/selection/SelectionManager\";\r\nexport * from \"./presentation-frontend/selection/SelectionScopesManager\";\r\nexport * from \"./presentation-frontend/selection/SelectionHandler\";\r\nexport * from \"./presentation-frontend/selection/HiliteSetProvider\";\r\nexport * from \"./presentation-frontend/selection/SelectionHelper\";\r\n"]}
1
+ {"version":3,"file":"presentation-frontend.js","sourceRoot":"","sources":["../../src/presentation-frontend.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,uEAAqD;AACrD,8EAA4D;AAC5D,yEAAuD;AACvD,kFAAgE;AAChE,wGAAsF;AACtF,wGAAsF;AACtF,uEAAqD;AACrD,sEAAoD;AAEpD;;;;;GAKG;AACH,iFAA+D;AAE/D;;;;;GAKG;AACH,yFAAuE;AACvE,uFAAqE;AACrE,qFAAmE;AACnE,2FAAyE;AACzE,qFAAmE;AACnE,sFAAoE;AACpE,oFAAkE","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used for retrieving presentation data from iModels.\r\n */\r\nexport * from \"./presentation-frontend/Presentation\";\r\nexport * from \"./presentation-frontend/PresentationManager\";\r\nexport * from \"./presentation-frontend/RulesetManager\";\r\nexport * from \"./presentation-frontend/RulesetVariablesManager\";\r\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesManager\";\r\nexport * from \"./presentation-frontend/favorite-properties/FavoritePropertiesStorage\";\r\nexport * from \"./presentation-frontend/StateTracker\";\r\nexport * from \"./presentation-frontend/Diagnostics\";\r\n\r\n/**\r\n * @module Logging\r\n *\r\n * @docs-group-description Logging\r\n * Types related to logging in this package.\r\n */\r\nexport * from \"./presentation-frontend/FrontendLoggerCategory\";\r\n\r\n/**\r\n * @module UnifiedSelection\r\n *\r\n * @docs-group-description UnifiedSelection\r\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\r\n */\r\nexport * from \"./presentation-frontend/selection/SelectionChangeEvent\";\r\nexport * from \"./presentation-frontend/selection/ISelectionProvider\";\r\nexport * from \"./presentation-frontend/selection/SelectionManager\";\r\nexport * from \"./presentation-frontend/selection/SelectionScopesManager\";\r\nexport * from \"./presentation-frontend/selection/SelectionHandler\";\r\nexport * from \"./presentation-frontend/selection/HiliteSetProvider\";\r\nexport * from \"./presentation-frontend/selection/SelectionHelper\";\r\n"]}
@@ -1,30 +1,30 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- import { BeEvent, IDisposable } from "@itwin/core-bentley";
5
- import { InternetConnectivityStatus } from "@itwin/core-common";
6
- /** @internal */
7
- export interface IConnectivityInformationProvider {
8
- readonly status: InternetConnectivityStatus;
9
- readonly onInternetConnectivityChanged: BeEvent<(args: {
10
- status: InternetConnectivityStatus;
11
- }) => void>;
12
- }
13
- /**
14
- * A helper that wraps connectivity-related APIs in NativeApp
15
- * to give a unified information for interested parties in presentation.
16
- *
17
- * @internal
18
- */
19
- export declare class ConnectivityInformationProvider implements IConnectivityInformationProvider, IDisposable {
20
- private _currentStatus?;
21
- private _unsubscribeFromInternetConnectivityChangedEvent?;
22
- readonly onInternetConnectivityChanged: BeEvent<(args: {
23
- status: InternetConnectivityStatus;
24
- }) => void>;
25
- constructor();
26
- dispose(): void;
27
- private onNativeAppInternetConnectivityChanged;
28
- get status(): InternetConnectivityStatus;
29
- }
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ import { BeEvent, IDisposable } from "@itwin/core-bentley";
5
+ import { InternetConnectivityStatus } from "@itwin/core-common";
6
+ /** @internal */
7
+ export interface IConnectivityInformationProvider {
8
+ readonly status: InternetConnectivityStatus;
9
+ readonly onInternetConnectivityChanged: BeEvent<(args: {
10
+ status: InternetConnectivityStatus;
11
+ }) => void>;
12
+ }
13
+ /**
14
+ * A helper that wraps connectivity-related APIs in NativeApp
15
+ * to give a unified information for interested parties in presentation.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare class ConnectivityInformationProvider implements IConnectivityInformationProvider, IDisposable {
20
+ private _currentStatus?;
21
+ private _unsubscribeFromInternetConnectivityChangedEvent?;
22
+ readonly onInternetConnectivityChanged: BeEvent<(args: {
23
+ status: InternetConnectivityStatus;
24
+ }) => void>;
25
+ constructor();
26
+ dispose(): void;
27
+ private onNativeAppInternetConnectivityChanged;
28
+ get status(): InternetConnectivityStatus;
29
+ }
30
30
  //# sourceMappingURL=ConnectivityInformationProvider.d.ts.map