@itwin/presentation-backend 4.0.0-dev.8 → 4.0.0-dev.81

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 (70) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/lib/cjs/assets/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -14
  3. package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +726 -762
  4. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -139
  5. package/lib/cjs/presentation-backend/BackendLoggerCategory.d.ts +41 -41
  6. package/lib/cjs/presentation-backend/BackendLoggerCategory.js +50 -50
  7. package/lib/cjs/presentation-backend/BackendLoggerCategory.js.map +1 -1
  8. package/lib/cjs/presentation-backend/Constants.d.ts +8 -8
  9. package/lib/cjs/presentation-backend/Constants.js +40 -36
  10. package/lib/cjs/presentation-backend/Constants.js.map +1 -1
  11. package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +11 -11
  12. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +272 -274
  13. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  14. package/lib/cjs/presentation-backend/NativePlatform.d.ts +87 -87
  15. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  16. package/lib/cjs/presentation-backend/NativePlatform.js +147 -140
  17. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  18. package/lib/cjs/presentation-backend/Presentation.d.ts +106 -106
  19. package/lib/cjs/presentation-backend/Presentation.d.ts.map +1 -1
  20. package/lib/cjs/presentation-backend/Presentation.js +148 -150
  21. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  22. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +11 -12
  23. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts.map +1 -1
  24. package/lib/cjs/presentation-backend/PresentationIpcHandler.js +30 -41
  25. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  26. package/lib/cjs/presentation-backend/PresentationManager.d.ts +463 -445
  27. package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
  28. package/lib/cjs/presentation-backend/PresentationManager.js +317 -311
  29. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  30. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +61 -61
  31. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
  32. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +442 -430
  33. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  34. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +62 -62
  35. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts.map +1 -1
  36. package/lib/cjs/presentation-backend/PresentationRpcImpl.js +388 -388
  37. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  38. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts +102 -102
  39. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts.map +1 -1
  40. package/lib/cjs/presentation-backend/RulesetEmbedder.js +287 -282
  41. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  42. package/lib/cjs/presentation-backend/RulesetManager.d.ts +53 -53
  43. package/lib/cjs/presentation-backend/RulesetManager.js +73 -73
  44. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  45. package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +140 -140
  46. package/lib/cjs/presentation-backend/RulesetVariablesManager.js +129 -129
  47. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  48. package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +28 -28
  49. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +226 -229
  50. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  51. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +123 -123
  52. package/lib/cjs/presentation-backend/TemporaryStorage.js +151 -151
  53. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  54. package/lib/cjs/presentation-backend/UpdatesTracker.d.ts +27 -27
  55. package/lib/cjs/presentation-backend/UpdatesTracker.js +54 -54
  56. package/lib/cjs/presentation-backend/UpdatesTracker.js.map +1 -1
  57. package/lib/cjs/presentation-backend/Utils.d.ts +49 -49
  58. package/lib/cjs/presentation-backend/Utils.d.ts.map +1 -1
  59. package/lib/cjs/presentation-backend/Utils.js +107 -106
  60. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  61. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.d.ts +16 -16
  62. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +55 -51
  63. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  64. package/lib/cjs/presentation-backend/domain/RulesetElements.d.ts +21 -21
  65. package/lib/cjs/presentation-backend/domain/RulesetElements.js +38 -38
  66. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  67. package/lib/cjs/presentation-backend.d.ts +19 -19
  68. package/lib/cjs/presentation-backend.js +39 -35
  69. package/lib/cjs/presentation-backend.js.map +1 -1
  70. package/package.json +20 -18
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/presentation-backend/Utils.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,mCAA+C;AAC/C,sDAAwD;AACxD,sDAA2D;AAC3D,oEAEoC;AAEpC,MAAM,cAAc,GAAG,OAAO,CAAC,0EAA0E,CAAC,CAAC,CAAC,yDAAyD;AACrK,MAAM,WAAW,GAAG,OAAO,CAAC,uEAAuE,CAAC,CAAC,CAAC,yDAAyD;AAE/J,gBAAgB;AAChB,SAAgB,oBAAoB,CAAC,GAAW;IAC9C,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC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,CAAC,CAAC;YAChI,IAAI,kBAAkB,IAAI,qBAAqB,EAAE;gBAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;aAC7B;SACF;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { parse as parseVersion } from \"semver\";\r\nimport { Element, IModelDb } from \"@itwin/core-backend\";\r\nimport { DbResult, Id64String } from \"@itwin/core-bentley\";\r\nimport {\r\n combineDiagnosticsSeverities, compareDiagnosticsSeverities, Diagnostics, DiagnosticsLogEntry, DiagnosticsOptions, InstanceKey,\r\n} from \"@itwin/presentation-common\";\r\n\r\nconst ecPresentation = require(\"@itwin/presentation-common/lib/cjs/assets/locales/en/ECPresentation.json\"); // eslint-disable-line @typescript-eslint/no-var-requires\r\nconst rulesEngine = require(\"@itwin/presentation-common/lib/cjs/assets/locales/en/RulesEngine.json\"); // eslint-disable-line @typescript-eslint/no-var-requires\r\n\r\n/** @internal */\r\nexport function getLocalizedStringEN(key: string) {\r\n const [namespace, identifier] = key.split(\":\", 2);\r\n if (namespace === \"ECPresentation\") {\r\n return ecPresentation[identifier];\r\n }\r\n if (namespace === \"RulesEngine\") {\r\n return rulesEngine[identifier];\r\n }\r\n return key;\r\n}\r\n\r\n/** @internal */\r\nexport function getElementKey(imodel: IModelDb, id: Id64String): InstanceKey | undefined {\r\n let key: InstanceKey | undefined;\r\n const query = `SELECT ECClassId FROM ${Element.classFullName} e WHERE ECInstanceId = ?`;\r\n imodel.withPreparedStatement(query, (stmt) => {\r\n try {\r\n stmt.bindId(1, id);\r\n if (stmt.step() === DbResult.BE_SQLITE_ROW)\r\n key = { className: stmt.getValue(0).getClassNameForClassId().replace(\".\", \":\"), id };\r\n } catch { }\r\n });\r\n return key;\r\n}\r\n\r\n/** @internal */\r\nexport function normalizeVersion(version?: string) {\r\n if (version) {\r\n const parsedVersion = parseVersion(version, true);\r\n if (parsedVersion)\r\n return `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}`;\r\n }\r\n return \"0.0.0\";\r\n}\r\n\r\n/**\r\n * A function that received request diagnostics and, optionally, request context.\r\n * @beta\r\n */\r\nexport type BackendDiagnosticsHandler<TContext = any> = (logs: Diagnostics, requestContext?: TContext) => void;\r\n\r\n/**\r\n * Data structure for backend diagnostics options.\r\n * @beta\r\n */\r\nexport interface BackendDiagnosticsOptions<TContext = any> extends DiagnosticsOptions {\r\n /**\r\n * An optional function to supply request context that'll be passed to [[handler]] when\r\n * it's called after the request is fulfilled.\r\n */\r\n requestContextSupplier?: () => TContext;\r\n\r\n /**\r\n * Request diagnostics handler function that is called after the request is fulfilled. The handler\r\n * receives request diagnostics as the first argument and, optionally, request context as the\r\n * second (see [[requestContextSupplier]]).\r\n */\r\n handler: BackendDiagnosticsHandler<TContext>;\r\n}\r\n\r\n/**\r\n * Data structure which contains backend diagnostics options.\r\n * @public\r\n */\r\nexport interface BackendDiagnosticsAttribute {\r\n /**\r\n * Backend diagnostics options.\r\n * @beta\r\n */\r\n diagnostics?: BackendDiagnosticsOptions;\r\n}\r\n\r\n/** @internal */\r\nexport function combineDiagnosticsOptions(...options: Array<BackendDiagnosticsOptions | undefined>): DiagnosticsOptions | undefined {\r\n const combinedOptions: DiagnosticsOptions = {};\r\n options.forEach((d) => {\r\n if (!d)\r\n return;\r\n if (d.perf === true || typeof d.perf === \"object\" && (!combinedOptions.perf || typeof combinedOptions.perf === \"object\" && d.perf.minimumDuration < combinedOptions.perf.minimumDuration)) {\r\n combinedOptions.perf = d.perf;\r\n }\r\n const combinedDev = combineDiagnosticsSeverities(d.dev, combinedOptions.dev);\r\n if (combinedDev)\r\n combinedOptions.dev = combinedDev;\r\n const combinedEditor = combineDiagnosticsSeverities(d.editor, combinedOptions.editor);\r\n if (combinedEditor)\r\n combinedOptions.editor = combinedEditor;\r\n });\r\n return (combinedOptions.dev || combinedOptions.editor || combinedOptions.perf) ? combinedOptions : undefined;\r\n}\r\n\r\n/** @internal */\r\nexport function reportDiagnostics<TContext>(diagnostics: Diagnostics, options: BackendDiagnosticsOptions<TContext>, context?: TContext) {\r\n const stripped = diagnostics.logs ? stripDiagnostics(options, diagnostics.logs) : undefined;\r\n stripped && options.handler({ logs: stripped }, context);\r\n}\r\nfunction stripDiagnostics<TEntry extends DiagnosticsLogEntry>(options: DiagnosticsOptions, diagnostics: TEntry[]) {\r\n const stripped: TEntry[] = [];\r\n diagnostics.forEach((entry) => {\r\n if (DiagnosticsLogEntry.isScope(entry)) {\r\n const scopeLogs = stripDiagnostics(options, entry.logs ?? []);\r\n const strippedScope = { ...entry, logs: scopeLogs };\r\n if (!strippedScope.logs)\r\n delete strippedScope.logs;\r\n if (entry.duration !== undefined && (options.perf === true || typeof options.perf === \"object\" && entry.duration >= options.perf.minimumDuration)) {\r\n stripped.push(strippedScope);\r\n } else if (scopeLogs) {\r\n delete strippedScope.duration;\r\n delete strippedScope.scopeCreateTimestamp;\r\n stripped.push(strippedScope);\r\n }\r\n } else {\r\n const matchesDevSeverity = entry.severity.dev && compareDiagnosticsSeverities(entry.severity.dev, options.dev) >= 0;\r\n const matchesEditorSeverity = entry.severity.editor && compareDiagnosticsSeverities(entry.severity.editor, options.editor) >= 0;\r\n if (matchesDevSeverity || matchesEditorSeverity) {\r\n stripped.push({ ...entry });\r\n }\r\n }\r\n });\r\n return stripped.length > 0 ? stripped : undefined;\r\n}\r\n"]}
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/presentation-backend/Utils.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;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;aAC9B;iBAAM,IAAI,SAAS,EAAE;gBACpB,OAAO,aAAa,CAAC,QAAQ,CAAC;gBAC9B,OAAO,aAAa,CAAC,oBAAoB,CAAC;gBAC1C,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAC9B;SACF;aAAM;YACL,MAAM,kBAAkB,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAA,kDAA4B,EAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACpH,MAAM,qBAAqB,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,IAAI,IAAA,kDAA4B,EAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChI,IAAI,kBAAkB,IAAI,qBAAqB,EAAE;gBAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;aAC7B;SACF;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { parse as parseVersion } from \"semver\";\nimport { Element, IModelDb } from \"@itwin/core-backend\";\nimport { DbResult, Id64String } from \"@itwin/core-bentley\";\nimport {\n combineDiagnosticsSeverities, compareDiagnosticsSeverities, Diagnostics, DiagnosticsLogEntry, DiagnosticsOptions, InstanceKey,\n} from \"@itwin/presentation-common\";\n\nconst presentation = require(\"@itwin/presentation-common/lib/cjs/assets/locales/en/Presentation.json\"); // eslint-disable-line @typescript-eslint/no-var-requires\n\n/** @internal */\nexport function getLocalizedStringEN(key: string) {\n let result = presentation;\n const [namespace, identifier] = key.split(\":\", 2);\n if (namespace !== \"Presentation\")\n return key;\n const keySteps = identifier.split(\".\");\n for (const keyStep of keySteps) {\n if (keyStep in result === false)\n return key;\n result = result[keyStep];\n }\n return typeof result === \"string\" ? result : key;\n}\n\n/** @internal */\nexport function getElementKey(imodel: IModelDb, id: Id64String): InstanceKey | undefined {\n let key: InstanceKey | undefined;\n const query = `SELECT ECClassId FROM ${Element.classFullName} e WHERE ECInstanceId = ?`;\n imodel.withPreparedStatement(query, (stmt) => {\n try {\n stmt.bindId(1, id);\n if (stmt.step() === DbResult.BE_SQLITE_ROW)\n key = { className: stmt.getValue(0).getClassNameForClassId().replace(\".\", \":\"), id };\n } catch { }\n });\n return key;\n}\n\n/** @internal */\nexport function normalizeVersion(version?: string) {\n if (version) {\n const parsedVersion = parseVersion(version, true);\n if (parsedVersion)\n return `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}`;\n }\n return \"0.0.0\";\n}\n\n/**\n * A function that received request diagnostics and, optionally, request context.\n * @beta\n */\nexport type BackendDiagnosticsHandler<TContext = any> = (logs: Diagnostics, requestContext?: TContext) => void;\n\n/**\n * Data structure for backend diagnostics options.\n * @beta\n */\nexport interface BackendDiagnosticsOptions<TContext = any> extends DiagnosticsOptions {\n /**\n * An optional function to supply request context that'll be passed to [[handler]] when\n * it's called after the request is fulfilled.\n */\n requestContextSupplier?: () => TContext;\n\n /**\n * Request diagnostics handler function that is called after the request is fulfilled. The handler\n * receives request diagnostics as the first argument and, optionally, request context as the\n * second (see [[requestContextSupplier]]).\n */\n handler: BackendDiagnosticsHandler<TContext>;\n}\n\n/**\n * Data structure which contains backend diagnostics options.\n * @public\n */\nexport interface BackendDiagnosticsAttribute {\n /**\n * Backend diagnostics options.\n * @beta\n */\n diagnostics?: BackendDiagnosticsOptions;\n}\n\n/** @internal */\nexport function combineDiagnosticsOptions(...options: Array<BackendDiagnosticsOptions | undefined>): DiagnosticsOptions | undefined {\n const combinedOptions: DiagnosticsOptions = {};\n options.forEach((d) => {\n if (!d)\n return;\n if (d.perf === true || typeof d.perf === \"object\" && (!combinedOptions.perf || typeof combinedOptions.perf === \"object\" && d.perf.minimumDuration < combinedOptions.perf.minimumDuration)) {\n combinedOptions.perf = d.perf;\n }\n const combinedDev = combineDiagnosticsSeverities(d.dev, combinedOptions.dev);\n if (combinedDev)\n combinedOptions.dev = combinedDev;\n const combinedEditor = combineDiagnosticsSeverities(d.editor, combinedOptions.editor);\n if (combinedEditor)\n combinedOptions.editor = combinedEditor;\n });\n return (combinedOptions.dev || combinedOptions.editor || combinedOptions.perf) ? combinedOptions : undefined;\n}\n\n/** @internal */\nexport function reportDiagnostics<TContext>(diagnostics: Diagnostics, options: BackendDiagnosticsOptions<TContext>, context?: TContext) {\n const stripped = diagnostics.logs ? stripDiagnostics(options, diagnostics.logs) : undefined;\n stripped && options.handler({ logs: stripped }, context);\n}\nfunction stripDiagnostics<TEntry extends DiagnosticsLogEntry>(options: DiagnosticsOptions, diagnostics: TEntry[]) {\n const stripped: TEntry[] = [];\n diagnostics.forEach((entry) => {\n if (DiagnosticsLogEntry.isScope(entry)) {\n const scopeLogs = stripDiagnostics(options, entry.logs ?? []);\n const strippedScope = { ...entry, logs: scopeLogs };\n if (!strippedScope.logs)\n delete strippedScope.logs;\n if (entry.duration !== undefined && (options.perf === true || typeof options.perf === \"object\" && entry.duration >= options.perf.minimumDuration)) {\n stripped.push(strippedScope);\n } else if (scopeLogs) {\n delete strippedScope.duration;\n delete strippedScope.scopeCreateTimestamp;\n stripped.push(strippedScope);\n }\n } else {\n const matchesDevSeverity = entry.severity.dev && compareDiagnosticsSeverities(entry.severity.dev, options.dev) >= 0;\n const matchesEditorSeverity = entry.severity.editor && compareDiagnosticsSeverities(entry.severity.editor, options.editor) >= 0;\n if (matchesDevSeverity || matchesEditorSeverity) {\n stripped.push({ ...entry });\n }\n }\n });\n return stripped.length > 0 ? stripped : undefined;\n}\n"]}
@@ -1,17 +1,17 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- import { Schema } from "@itwin/core-backend";
5
- /** @internal */
6
- export declare class PresentationRules extends Schema {
7
- static get schemaName(): string;
8
- /** Registers this schema and it's elements' classes */
9
- static registerSchema(): void;
10
- }
11
- /** @internal */
12
- export declare namespace PresentationRules {
13
- enum CodeSpec {
14
- Ruleset = "PresentationRules:Ruleset"
15
- }
16
- }
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ import { Schema } from "@itwin/core-backend";
5
+ /** @internal */
6
+ export declare class PresentationRules extends Schema {
7
+ static get schemaName(): string;
8
+ /** Registers this schema and it's elements' classes */
9
+ static registerSchema(): void;
10
+ }
11
+ /** @internal */
12
+ export declare namespace PresentationRules {
13
+ enum CodeSpec {
14
+ Ruleset = "PresentationRules:Ruleset"
15
+ }
16
+ }
17
17
  //# sourceMappingURL=PresentationRulesDomain.d.ts.map
@@ -1,52 +1,56 @@
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 Core
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PresentationRules = void 0;
30
- const core_backend_1 = require("@itwin/core-backend");
31
- const RulesetElements = __importStar(require("./RulesetElements"));
32
- /** @internal */
33
- class PresentationRules extends core_backend_1.Schema {
34
- static get schemaName() { return "PresentationRules"; }
35
- /** Registers this schema and it's elements' classes */
36
- static registerSchema() {
37
- if (this !== core_backend_1.Schemas.getRegisteredSchema(PresentationRules.schemaName)) {
38
- core_backend_1.Schemas.registerSchema(PresentationRules);
39
- core_backend_1.ClassRegistry.registerModule(RulesetElements, this);
40
- }
41
- }
42
- }
43
- exports.PresentationRules = PresentationRules;
44
- /** @internal */
45
- /* istanbul ignore next */
46
- (function (PresentationRules) {
47
- let CodeSpec;
48
- (function (CodeSpec) {
49
- CodeSpec["Ruleset"] = "PresentationRules:Ruleset";
50
- })(CodeSpec = PresentationRules.CodeSpec || (PresentationRules.CodeSpec = {}));
51
- })(PresentationRules = exports.PresentationRules || (exports.PresentationRules = {}));
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 Core
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.PresentationRules = void 0;
34
+ const core_backend_1 = require("@itwin/core-backend");
35
+ const RulesetElements = __importStar(require("./RulesetElements"));
36
+ /** @internal */
37
+ class PresentationRules extends core_backend_1.Schema {
38
+ static get schemaName() { return "PresentationRules"; }
39
+ /** Registers this schema and it's elements' classes */
40
+ static registerSchema() {
41
+ if (this !== core_backend_1.Schemas.getRegisteredSchema(PresentationRules.schemaName)) {
42
+ core_backend_1.Schemas.registerSchema(PresentationRules);
43
+ core_backend_1.ClassRegistry.registerModule(RulesetElements, this);
44
+ }
45
+ }
46
+ }
47
+ exports.PresentationRules = PresentationRules;
48
+ /** @internal */
49
+ /* istanbul ignore next */
50
+ (function (PresentationRules) {
51
+ let CodeSpec;
52
+ (function (CodeSpec) {
53
+ CodeSpec["Ruleset"] = "PresentationRules:Ruleset";
54
+ })(CodeSpec = PresentationRules.CodeSpec || (PresentationRules.CodeSpec = {}));
55
+ })(PresentationRules = exports.PresentationRules || (exports.PresentationRules = {}));
52
56
  //# sourceMappingURL=PresentationRulesDomain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,mEAAqD;AAErD,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qBAAM;IACpC,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAE/E,uDAAuD;IAChD,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE;YACtE,sBAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,4BAAa,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AAVD,8CAUC;AAED,gBAAgB;AAChB,0BAA0B;AAC1B,WAAiB,iBAAiB;IAChC,IAAY,QAEX;IAFD,WAAY,QAAQ;QAClB,iDAAqC,CAAA;IACvC,CAAC,EAFW,QAAQ,GAAR,0BAAQ,KAAR,0BAAQ,QAEnB;AACH,CAAC,EAJgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAIjC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { ClassRegistry, Schema, Schemas } from \"@itwin/core-backend\";\r\nimport * as RulesetElements from \"./RulesetElements\";\r\n\r\n/** @internal */\r\nexport class PresentationRules extends Schema {\r\n public static override get schemaName(): string { return \"PresentationRules\"; }\r\n\r\n /** Registers this schema and it's elements' classes */\r\n public static registerSchema() {\r\n if (this !== Schemas.getRegisteredSchema(PresentationRules.schemaName)) {\r\n Schemas.registerSchema(PresentationRules);\r\n ClassRegistry.registerModule(RulesetElements, this);\r\n }\r\n }\r\n}\r\n\r\n/** @internal */\r\n/* istanbul ignore next */\r\nexport namespace PresentationRules { // eslint-disable-line no-redeclare\r\n export enum CodeSpec {\r\n Ruleset = \"PresentationRules:Ruleset\",\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,mEAAqD;AAErD,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qBAAM;IACpC,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAE/E,uDAAuD;IAChD,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE;YACtE,sBAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,4BAAa,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AAVD,8CAUC;AAED,gBAAgB;AAChB,0BAA0B;AAC1B,WAAiB,iBAAiB;IAChC,IAAY,QAEX;IAFD,WAAY,QAAQ;QAClB,iDAAqC,CAAA;IACvC,CAAC,EAFW,QAAQ,GAAR,0BAAQ,KAAR,0BAAQ,QAEnB;AACH,CAAC,EAJgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAIjC","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 { ClassRegistry, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as RulesetElements from \"./RulesetElements\";\n\n/** @internal */\nexport class PresentationRules extends Schema {\n public static override get schemaName(): string { return \"PresentationRules\"; }\n\n /** Registers this schema and it's elements' classes */\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(PresentationRules.schemaName)) {\n Schemas.registerSchema(PresentationRules);\n ClassRegistry.registerModule(RulesetElements, this);\n }\n }\n}\n\n/** @internal */\n/* istanbul ignore next */\nexport namespace PresentationRules { // eslint-disable-line no-redeclare\n export enum CodeSpec {\n Ruleset = \"PresentationRules:Ruleset\",\n }\n}\n"]}
@@ -1,22 +1,22 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- import { Id64String } from "@itwin/core-bentley";
5
- import { DefinitionElement, IModelDb } from "@itwin/core-backend";
6
- import { Code } from "@itwin/core-common";
7
- import { Ruleset as PresentationRuleset } from "@itwin/presentation-common";
8
- /** @internal */
9
- export declare class Ruleset extends DefinitionElement {
10
- /**
11
- * Name of the `Ruleset` element class.
12
- */
13
- static get className(): string;
14
- /**
15
- * Generates a unique code for a ruleset
16
- * @param iModelDb DB the ruleset is supposed to be inserted into
17
- * @param modelId ID of a the model this ruleset should be created in
18
- * @param ruleset The ruleset code is being created for
19
- */
20
- static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset): Code;
21
- }
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ import { Id64String } from "@itwin/core-bentley";
5
+ import { DefinitionElement, IModelDb } from "@itwin/core-backend";
6
+ import { Code } from "@itwin/core-common";
7
+ import { Ruleset as PresentationRuleset } from "@itwin/presentation-common";
8
+ /** @internal */
9
+ export declare class Ruleset extends DefinitionElement {
10
+ /**
11
+ * Name of the `Ruleset` element class.
12
+ */
13
+ static get className(): string;
14
+ /**
15
+ * Generates a unique code for a ruleset
16
+ * @param iModelDb DB the ruleset is supposed to be inserted into
17
+ * @param modelId ID of a the model this ruleset should be created in
18
+ * @param ruleset The ruleset code is being created for
19
+ */
20
+ static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset): Code;
21
+ }
22
22
  //# sourceMappingURL=RulesetElements.d.ts.map
@@ -1,39 +1,39 @@
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 Core
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Ruleset = void 0;
11
- const core_backend_1 = require("@itwin/core-backend");
12
- const core_common_1 = require("@itwin/core-common");
13
- const Utils_1 = require("../Utils");
14
- const PresentationRulesDomain_1 = require("./PresentationRulesDomain");
15
- /** @internal */
16
- class Ruleset extends core_backend_1.DefinitionElement {
17
- /**
18
- * Name of the `Ruleset` element class.
19
- */
20
- static get className() { return "Ruleset"; }
21
- /**
22
- * Generates a unique code for a ruleset
23
- * @param iModelDb DB the ruleset is supposed to be inserted into
24
- * @param modelId ID of a the model this ruleset should be created in
25
- * @param ruleset The ruleset code is being created for
26
- */
27
- static createRulesetCode(iModelDb, modelId, ruleset) {
28
- let codeValue = ruleset.id;
29
- if (ruleset.version)
30
- codeValue += `@${(0, Utils_1.normalizeVersion)(ruleset.version)}`;
31
- return new core_common_1.Code({
32
- spec: iModelDb.codeSpecs.getByName(PresentationRulesDomain_1.PresentationRules.CodeSpec.Ruleset).id,
33
- scope: modelId.toString(),
34
- value: codeValue,
35
- });
36
- }
37
- }
38
- exports.Ruleset = Ruleset;
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 Core
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Ruleset = void 0;
11
+ const core_backend_1 = require("@itwin/core-backend");
12
+ const core_common_1 = require("@itwin/core-common");
13
+ const Utils_1 = require("../Utils");
14
+ const PresentationRulesDomain_1 = require("./PresentationRulesDomain");
15
+ /** @internal */
16
+ class Ruleset extends core_backend_1.DefinitionElement {
17
+ /**
18
+ * Name of the `Ruleset` element class.
19
+ */
20
+ static get className() { return "Ruleset"; }
21
+ /**
22
+ * Generates a unique code for a ruleset
23
+ * @param iModelDb DB the ruleset is supposed to be inserted into
24
+ * @param modelId ID of a the model this ruleset should be created in
25
+ * @param ruleset The ruleset code is being created for
26
+ */
27
+ static createRulesetCode(iModelDb, modelId, ruleset) {
28
+ let codeValue = ruleset.id;
29
+ if (ruleset.version)
30
+ codeValue += `@${(0, Utils_1.normalizeVersion)(ruleset.version)}`;
31
+ return new core_common_1.Code({
32
+ spec: iModelDb.codeSpecs.getByName(PresentationRulesDomain_1.PresentationRules.CodeSpec.Ruleset).id,
33
+ scope: modelId.toString(),
34
+ value: codeValue,
35
+ });
36
+ }
37
+ }
38
+ exports.Ruleset = Ruleset;
39
39
  //# sourceMappingURL=RulesetElements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RulesetElements.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/RulesetElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,sDAAkE;AAClE,oDAA0C;AAE1C,oCAA4C;AAC5C,uEAA8D;AAE9D,gBAAgB;AAChB,MAAa,OAAQ,SAAQ,gCAAiB;IAC5C;;OAEG;IACI,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IAEpE;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAAC,QAAkB,EAAE,OAAmB,EAAE,OAA4B;QACnG,IAAI,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC;QAC3B,IAAI,OAAO,CAAC,OAAO;YACjB,SAAS,IAAI,IAAI,IAAA,wBAAgB,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAEvD,OAAO,IAAI,kBAAI,CAAC;YACd,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,2CAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;YACzE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE;YACzB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { DefinitionElement, IModelDb } from \"@itwin/core-backend\";\r\nimport { Code } from \"@itwin/core-common\";\r\nimport { Ruleset as PresentationRuleset } from \"@itwin/presentation-common\";\r\nimport { normalizeVersion } from \"../Utils\";\r\nimport { PresentationRules } from \"./PresentationRulesDomain\";\r\n\r\n/** @internal */\r\nexport class Ruleset extends DefinitionElement {\r\n /**\r\n * Name of the `Ruleset` element class.\r\n */\r\n public static override get className(): string { return \"Ruleset\"; }\r\n\r\n /**\r\n * Generates a unique code for a ruleset\r\n * @param iModelDb DB the ruleset is supposed to be inserted into\r\n * @param modelId ID of a the model this ruleset should be created in\r\n * @param ruleset The ruleset code is being created for\r\n */\r\n public static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset) {\r\n let codeValue = ruleset.id;\r\n if (ruleset.version)\r\n codeValue += `@${normalizeVersion(ruleset.version)}`;\r\n\r\n return new Code({\r\n spec: iModelDb.codeSpecs.getByName(PresentationRules.CodeSpec.Ruleset).id,\r\n scope: modelId.toString(),\r\n value: codeValue,\r\n });\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"RulesetElements.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/RulesetElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,sDAAkE;AAClE,oDAA0C;AAE1C,oCAA4C;AAC5C,uEAA8D;AAE9D,gBAAgB;AAChB,MAAa,OAAQ,SAAQ,gCAAiB;IAC5C;;OAEG;IACI,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IAEpE;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAAC,QAAkB,EAAE,OAAmB,EAAE,OAA4B;QACnG,IAAI,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC;QAC3B,IAAI,OAAO,CAAC,OAAO;YACjB,SAAS,IAAI,IAAI,IAAA,wBAAgB,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAEvD,OAAO,IAAI,kBAAI,CAAC;YACd,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,2CAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;YACzE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE;YACzB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","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 { Id64String } from \"@itwin/core-bentley\";\nimport { DefinitionElement, IModelDb } from \"@itwin/core-backend\";\nimport { Code } from \"@itwin/core-common\";\nimport { Ruleset as PresentationRuleset } from \"@itwin/presentation-common\";\nimport { normalizeVersion } from \"../Utils\";\nimport { PresentationRules } from \"./PresentationRulesDomain\";\n\n/** @internal */\nexport class Ruleset extends DefinitionElement {\n /**\n * Name of the `Ruleset` element class.\n */\n public static override get className(): string { return \"Ruleset\"; }\n\n /**\n * Generates a unique code for a ruleset\n * @param iModelDb DB the ruleset is supposed to be inserted into\n * @param modelId ID of a the model this ruleset should be created in\n * @param ruleset The ruleset code is being created for\n */\n public static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset) {\n let codeValue = ruleset.id;\n if (ruleset.version)\n codeValue += `@${normalizeVersion(ruleset.version)}`;\n\n return new Code({\n spec: iModelDb.codeSpecs.getByName(PresentationRules.CodeSpec.Ruleset).id,\n scope: modelId.toString(),\n value: codeValue,\n });\n }\n}\n"]}
@@ -1,20 +1,20 @@
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-backend/Presentation";
8
- export * from "./presentation-backend/PresentationManager";
9
- export * from "./presentation-backend/RulesetManager";
10
- export * from "./presentation-backend/RulesetVariablesManager";
11
- export * from "./presentation-backend/RulesetEmbedder";
12
- export * from "./presentation-backend/Utils";
13
- /**
14
- * @module Logging
15
- *
16
- * @docs-group-description Logging
17
- * Types related to logging in this package.
18
- */
19
- export * from "./presentation-backend/BackendLoggerCategory";
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-backend/Presentation";
8
+ export * from "./presentation-backend/PresentationManager";
9
+ export * from "./presentation-backend/RulesetManager";
10
+ export * from "./presentation-backend/RulesetVariablesManager";
11
+ export * from "./presentation-backend/RulesetEmbedder";
12
+ export * from "./presentation-backend/Utils";
13
+ /**
14
+ * @module Logging
15
+ *
16
+ * @docs-group-description Logging
17
+ * Types related to logging in this package.
18
+ */
19
+ export * from "./presentation-backend/BackendLoggerCategory";
20
20
  //# sourceMappingURL=presentation-backend.d.ts.map
@@ -1,36 +1,40 @@
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-backend/Presentation"), exports);
24
- __exportStar(require("./presentation-backend/PresentationManager"), exports);
25
- __exportStar(require("./presentation-backend/RulesetManager"), exports);
26
- __exportStar(require("./presentation-backend/RulesetVariablesManager"), exports);
27
- __exportStar(require("./presentation-backend/RulesetEmbedder"), exports);
28
- __exportStar(require("./presentation-backend/Utils"), exports);
29
- /**
30
- * @module Logging
31
- *
32
- * @docs-group-description Logging
33
- * Types related to logging in this package.
34
- */
35
- __exportStar(require("./presentation-backend/BackendLoggerCategory"), 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-backend/Presentation"), exports);
28
+ __exportStar(require("./presentation-backend/PresentationManager"), exports);
29
+ __exportStar(require("./presentation-backend/RulesetManager"), exports);
30
+ __exportStar(require("./presentation-backend/RulesetVariablesManager"), exports);
31
+ __exportStar(require("./presentation-backend/RulesetEmbedder"), exports);
32
+ __exportStar(require("./presentation-backend/Utils"), exports);
33
+ /**
34
+ * @module Logging
35
+ *
36
+ * @docs-group-description Logging
37
+ * Types related to logging in this package.
38
+ */
39
+ __exportStar(require("./presentation-backend/BackendLoggerCategory"), exports);
36
40
  //# sourceMappingURL=presentation-backend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,sEAAoD;AACpD,6EAA2D;AAC3D,wEAAsD;AACtD,iFAA+D;AAC/D,yEAAuD;AACvD,+DAA6C;AAE7C;;;;;GAKG;AACH,+EAA6D","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-backend/Presentation\";\r\nexport * from \"./presentation-backend/PresentationManager\";\r\nexport * from \"./presentation-backend/RulesetManager\";\r\nexport * from \"./presentation-backend/RulesetVariablesManager\";\r\nexport * from \"./presentation-backend/RulesetEmbedder\";\r\nexport * from \"./presentation-backend/Utils\";\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-backend/BackendLoggerCategory\";\r\n"]}
1
+ {"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,sEAAoD;AACpD,6EAA2D;AAC3D,wEAAsD;AACtD,iFAA+D;AAC/D,yEAAuD;AACvD,+DAA6C;AAE7C;;;;;GAKG;AACH,+EAA6D","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-backend/Presentation\";\nexport * from \"./presentation-backend/PresentationManager\";\nexport * from \"./presentation-backend/RulesetManager\";\nexport * from \"./presentation-backend/RulesetVariablesManager\";\nexport * from \"./presentation-backend/RulesetEmbedder\";\nexport * from \"./presentation-backend/Utils\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport * from \"./presentation-backend/BackendLoggerCategory\";\n"]}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@itwin/presentation-backend",
3
- "version": "4.0.0-dev.8",
3
+ "version": "4.0.0-dev.81",
4
4
  "description": "Backend of iTwin.js Presentation library",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/iTwin/itwinjs-core/tree/master/presentation/backend"
8
+ "url": "https://github.com/iTwin/itwinjs-core.git",
9
+ "directory": "presentation/backend"
9
10
  },
10
11
  "keywords": [
11
12
  "Bentley",
@@ -22,20 +23,22 @@
22
23
  "main": "lib/cjs/presentation-backend.js",
23
24
  "typings": "lib/cjs/presentation-backend",
24
25
  "peerDependencies": {
25
- "@itwin/core-backend": "^4.0.0-dev.8",
26
- "@itwin/core-bentley": "^4.0.0-dev.8",
27
- "@itwin/core-common": "^4.0.0-dev.8",
28
- "@itwin/core-quantity": "^4.0.0-dev.8",
29
- "@itwin/presentation-common": "^4.0.0-dev.8"
26
+ "@itwin/core-backend": "^4.0.0-dev.81",
27
+ "@itwin/core-bentley": "^4.0.0-dev.81",
28
+ "@itwin/core-common": "^4.0.0-dev.81",
29
+ "@itwin/core-quantity": "^4.0.0-dev.81",
30
+ "@itwin/ecschema-metadata": "^4.0.0-dev.81",
31
+ "@itwin/presentation-common": "^4.0.0-dev.81"
30
32
  },
31
33
  "devDependencies": {
32
- "@itwin/build-tools": "4.0.0-dev.8",
33
- "@itwin/core-backend": "4.0.0-dev.8",
34
- "@itwin/core-bentley": "4.0.0-dev.8",
35
- "@itwin/core-common": "4.0.0-dev.8",
36
- "@itwin/core-quantity": "4.0.0-dev.8",
37
- "@itwin/eslint-plugin": "4.0.0-dev.8",
38
- "@itwin/presentation-common": "4.0.0-dev.8",
34
+ "@itwin/build-tools": "4.0.0-dev.81",
35
+ "@itwin/core-backend": "4.0.0-dev.81",
36
+ "@itwin/core-bentley": "4.0.0-dev.81",
37
+ "@itwin/core-common": "4.0.0-dev.81",
38
+ "@itwin/core-quantity": "4.0.0-dev.81",
39
+ "@itwin/ecschema-metadata": "4.0.0-dev.81",
40
+ "@itwin/eslint-plugin": "^4.0.0-dev.33",
41
+ "@itwin/presentation-common": "4.0.0-dev.81",
39
42
  "@types/chai": "4.3.1",
40
43
  "@types/chai-as-promised": "^7",
41
44
  "@types/chai-jest-snapshot": "^1.3.0",
@@ -44,7 +47,7 @@
44
47
  "@types/faker": "^4.1.0",
45
48
  "@types/lolex": "^2.1.2",
46
49
  "@types/mocha": "^8.2.2",
47
- "@types/node": "18.11.5",
50
+ "@types/node": "^18.11.5",
48
51
  "@types/object-hash": "^1.3.0",
49
52
  "@types/semver": "7.3.10",
50
53
  "@types/sinon": "^9.0.0",
@@ -56,7 +59,7 @@
56
59
  "cpx2": "^3.0.0",
57
60
  "cross-env": "^5.1.4",
58
61
  "deep-equal": "^1",
59
- "eslint": "^7.11.0",
62
+ "eslint": "^8.36.0",
60
63
  "faker": "^4.1.0",
61
64
  "lolex": "^2.7.1",
62
65
  "mocha": "^10.0.0",
@@ -65,7 +68,7 @@
65
68
  "sinon": "^9.0.2",
66
69
  "sinon-chai": "^3.2.0",
67
70
  "typemoq": "^2.1.0",
68
- "typescript": "~4.4.0"
71
+ "typescript": "~5.0.2"
69
72
  },
70
73
  "dependencies": {
71
74
  "object-hash": "^1.3.1",
@@ -82,7 +85,6 @@
82
85
  },
83
86
  "scripts": {
84
87
  "build": "npm run -s build:cjs",
85
- "build:ci": "npm run -s build",
86
88
  "build:cjs": "npm run -s copy:assets && tsc 1>&2",
87
89
  "copy:assets": "cpx \"./assets/**/*\" ./lib/cjs/assets",
88
90
  "build:watch": "npm run -s build:cjs -- -w",