@itwin/presentation-backend 4.0.0-dev.11 → 4.0.0-dev.17

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 (61) hide show
  1. package/lib/cjs/assets/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -14
  2. package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +761 -761
  3. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -139
  4. package/lib/cjs/presentation-backend/BackendLoggerCategory.d.ts +41 -41
  5. package/lib/cjs/presentation-backend/BackendLoggerCategory.js +50 -50
  6. package/lib/cjs/presentation-backend/BackendLoggerCategory.js.map +1 -1
  7. package/lib/cjs/presentation-backend/Constants.d.ts +8 -8
  8. package/lib/cjs/presentation-backend/Constants.js +36 -36
  9. package/lib/cjs/presentation-backend/Constants.js.map +1 -1
  10. package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +11 -11
  11. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +274 -274
  12. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  13. package/lib/cjs/presentation-backend/NativePlatform.d.ts +87 -87
  14. package/lib/cjs/presentation-backend/NativePlatform.js +140 -140
  15. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  16. package/lib/cjs/presentation-backend/Presentation.d.ts +106 -106
  17. package/lib/cjs/presentation-backend/Presentation.js +150 -150
  18. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  19. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +12 -12
  20. package/lib/cjs/presentation-backend/PresentationIpcHandler.js +41 -41
  21. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  22. package/lib/cjs/presentation-backend/PresentationManager.d.ts +445 -445
  23. package/lib/cjs/presentation-backend/PresentationManager.js +311 -311
  24. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  25. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +61 -61
  26. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +430 -430
  27. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  28. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +62 -62
  29. package/lib/cjs/presentation-backend/PresentationRpcImpl.js +388 -388
  30. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  31. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts +102 -102
  32. package/lib/cjs/presentation-backend/RulesetEmbedder.js +282 -282
  33. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  34. package/lib/cjs/presentation-backend/RulesetManager.d.ts +53 -53
  35. package/lib/cjs/presentation-backend/RulesetManager.js +73 -73
  36. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  37. package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +140 -140
  38. package/lib/cjs/presentation-backend/RulesetVariablesManager.js +129 -129
  39. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  40. package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +28 -28
  41. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +229 -229
  42. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  43. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +123 -123
  44. package/lib/cjs/presentation-backend/TemporaryStorage.js +151 -151
  45. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  46. package/lib/cjs/presentation-backend/UpdatesTracker.d.ts +27 -27
  47. package/lib/cjs/presentation-backend/UpdatesTracker.js +54 -54
  48. package/lib/cjs/presentation-backend/UpdatesTracker.js.map +1 -1
  49. package/lib/cjs/presentation-backend/Utils.d.ts +49 -49
  50. package/lib/cjs/presentation-backend/Utils.js +106 -106
  51. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  52. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.d.ts +16 -16
  53. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +51 -51
  54. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  55. package/lib/cjs/presentation-backend/domain/RulesetElements.d.ts +21 -21
  56. package/lib/cjs/presentation-backend/domain/RulesetElements.js +38 -38
  57. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  58. package/lib/cjs/presentation-backend.d.ts +19 -19
  59. package/lib/cjs/presentation-backend.js +35 -35
  60. package/lib/cjs/presentation-backend.js.map +1 -1
  61. package/package.json +14 -14
@@ -1,52 +1,52 @@
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
+ 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 = {}));
52
52
  //# 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,36 @@
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
+ 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);
36
36
  //# 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-backend",
3
- "version": "4.0.0-dev.11",
3
+ "version": "4.0.0-dev.17",
4
4
  "description": "Backend of iTwin.js Presentation library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,20 +22,20 @@
22
22
  "main": "lib/cjs/presentation-backend.js",
23
23
  "typings": "lib/cjs/presentation-backend",
24
24
  "peerDependencies": {
25
- "@itwin/core-backend": "^4.0.0-dev.11",
26
- "@itwin/core-bentley": "^4.0.0-dev.11",
27
- "@itwin/core-common": "^4.0.0-dev.11",
28
- "@itwin/core-quantity": "^4.0.0-dev.11",
29
- "@itwin/presentation-common": "^4.0.0-dev.11"
25
+ "@itwin/core-backend": "^4.0.0-dev.17",
26
+ "@itwin/core-bentley": "^4.0.0-dev.17",
27
+ "@itwin/core-common": "^4.0.0-dev.17",
28
+ "@itwin/core-quantity": "^4.0.0-dev.17",
29
+ "@itwin/presentation-common": "^4.0.0-dev.17"
30
30
  },
31
31
  "devDependencies": {
32
- "@itwin/build-tools": "4.0.0-dev.11",
33
- "@itwin/core-backend": "4.0.0-dev.11",
34
- "@itwin/core-bentley": "4.0.0-dev.11",
35
- "@itwin/core-common": "4.0.0-dev.11",
36
- "@itwin/core-quantity": "4.0.0-dev.11",
37
- "@itwin/eslint-plugin": "4.0.0-dev.11",
38
- "@itwin/presentation-common": "4.0.0-dev.11",
32
+ "@itwin/build-tools": "4.0.0-dev.17",
33
+ "@itwin/core-backend": "4.0.0-dev.17",
34
+ "@itwin/core-bentley": "4.0.0-dev.17",
35
+ "@itwin/core-common": "4.0.0-dev.17",
36
+ "@itwin/core-quantity": "4.0.0-dev.17",
37
+ "@itwin/eslint-plugin": "4.0.0-dev.17",
38
+ "@itwin/presentation-common": "4.0.0-dev.17",
39
39
  "@types/chai": "4.3.1",
40
40
  "@types/chai-as-promised": "^7",
41
41
  "@types/chai-jest-snapshot": "^1.3.0",
@@ -44,7 +44,7 @@
44
44
  "@types/faker": "^4.1.0",
45
45
  "@types/lolex": "^2.1.2",
46
46
  "@types/mocha": "^8.2.2",
47
- "@types/node": "18.11.5",
47
+ "@types/node": "^18.11.5",
48
48
  "@types/object-hash": "^1.3.0",
49
49
  "@types/semver": "7.3.10",
50
50
  "@types/sinon": "^9.0.0",