@itwin/presentation-backend 4.3.0-dev.20 → 4.3.0-dev.22

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 (21) hide show
  1. package/lib/cjs/presentation-backend/NativePlatform.d.ts +1 -0
  2. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  3. package/lib/cjs/presentation-backend/NativePlatform.js +3 -0
  4. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  5. package/lib/cjs/presentation-backend/PresentationManager.d.ts +2 -0
  6. package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
  7. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  8. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
  9. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +15 -12
  10. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  11. package/lib/cjs/presentation-backend/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -0
  12. package/lib/cjs/presentation-backend/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +701 -0
  13. package/lib/cjs/presentation-backend/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -0
  14. package/package.json +15 -16
  15. package/lib/cjs/assets/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +0 -14
  16. package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +0 -701
  17. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +0 -139
  18. package/lib/cjs/presentation-backend/Constants.d.ts +0 -9
  19. package/lib/cjs/presentation-backend/Constants.d.ts.map +0 -1
  20. package/lib/cjs/presentation-backend/Constants.js +0 -41
  21. package/lib/cjs/presentation-backend/Constants.js.map +0 -1
@@ -1,139 +0,0 @@
1
- {
2
- "$schema": "../../../common/Ruleset.schema.json",
3
- "id": "Functional",
4
- "supplementationInfo": {
5
- "supplementationPurpose": "Functional specific customization rules"
6
- },
7
- "requiredSchemas": [
8
- {
9
- "name": "BisCore"
10
- },
11
- {
12
- "name": "Functional"
13
- }
14
- ],
15
- "rules": [
16
- {
17
- "ruleType": "ContentModifier",
18
- "class": {
19
- "schemaName": "Functional",
20
- "className": "FunctionalElement"
21
- },
22
- "relatedProperties": [
23
- {
24
- "propertiesSource": {
25
- "relationship": {
26
- "schemaName": "Functional",
27
- "className": "FunctionalElementIsOfType"
28
- },
29
- "direction": "Forward"
30
- },
31
- "handleTargetClassPolymorphically": true,
32
- "relationshipMeaning": "RelatedInstance",
33
- "nestedRelatedProperties": [
34
- {
35
- "propertiesSource": {
36
- "relationship": {
37
- "schemaName": "BisCore",
38
- "className": "ElementOwnsUniqueAspect"
39
- },
40
- "direction": "Forward"
41
- },
42
- "handleTargetClassPolymorphically": true,
43
- "relationshipMeaning": "SameInstance"
44
- },
45
- {
46
- "propertiesSource": {
47
- "relationship": {
48
- "schemaName": "BisCore",
49
- "className": "ElementOwnsMultiAspects"
50
- },
51
- "direction": "Forward"
52
- },
53
- "handleTargetClassPolymorphically": true,
54
- "relationshipMeaning": "SameInstance"
55
- }
56
- ]
57
- }
58
- ]
59
- },
60
- {
61
- "ruleType": "Content",
62
- "condition": "ContentDisplayType = \"Graphics\" ANDALSO SelectedNode.IsOfClass(\"FunctionalElement\", \"Functional\")",
63
- "onlyIfNotHandled": true,
64
- "specifications": [
65
- {
66
- "specType": "ContentRelatedInstances",
67
- "relationshipPaths": [
68
- [
69
- {
70
- "relationship": {
71
- "schemaName": "BisCore",
72
- "className": "ElementOwnsChildElements"
73
- },
74
- "direction": "Forward",
75
- "targetClass": {
76
- "schemaName": "Functional",
77
- "className": "FunctionalElement"
78
- },
79
- "count": "*"
80
- },
81
- {
82
- "relationship": {
83
- "schemaName": "Functional",
84
- "className": "PhysicalElementFulfillsFunction"
85
- },
86
- "direction": "Backward"
87
- },
88
- {
89
- "relationship": {
90
- "schemaName": "BisCore",
91
- "className": "ElementOwnsChildElements"
92
- },
93
- "direction": "Forward",
94
- "targetClass": {
95
- "schemaName": "BisCore",
96
- "className": "GeometricElement"
97
- },
98
- "count": "*"
99
- }
100
- ],
101
- [
102
- {
103
- "relationship": {
104
- "schemaName": "BisCore",
105
- "className": "ElementOwnsChildElements"
106
- },
107
- "direction": "Forward",
108
- "targetClass": {
109
- "schemaName": "Functional",
110
- "className": "FunctionalElement"
111
- },
112
- "count": "*"
113
- },
114
- {
115
- "relationship": {
116
- "schemaName": "Functional",
117
- "className": "DrawingGraphicRepresentsFunctionalElement"
118
- },
119
- "direction": "Backward"
120
- },
121
- {
122
- "relationship": {
123
- "schemaName": "BisCore",
124
- "className": "ElementOwnsChildElements"
125
- },
126
- "direction": "Forward",
127
- "targetClass": {
128
- "schemaName": "BisCore",
129
- "className": "GeometricElement"
130
- },
131
- "count": "*"
132
- }
133
- ]
134
- ]
135
- }
136
- ]
137
- }
138
- ]
139
- }
@@ -1,9 +0,0 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- /**
5
- * Path to presentation-backend assets root directory.
6
- * @internal
7
- */
8
- export declare const PRESENTATION_BACKEND_ASSETS_ROOT: string;
9
- //# sourceMappingURL=Constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/presentation-backend/Constants.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;GAGG;AAEH,eAAO,MAAM,gCAAgC,QAA0H,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @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.PRESENTATION_BACKEND_ASSETS_ROOT = void 0;
34
- const path = __importStar(require("path"));
35
- /**
36
- * Path to presentation-backend assets root directory.
37
- * @internal
38
- */
39
- // istanbul ignore next
40
- exports.PRESENTATION_BACKEND_ASSETS_ROOT = (-1 !== __dirname.indexOf("presentation-backend")) ? path.join(__dirname, "../assets") : path.join(__dirname, "assets");
41
- //# sourceMappingURL=Constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../src/presentation-backend/Constants.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAE7B;;;GAGG;AACH,uBAAuB;AACV,QAAA,gCAAgC,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,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 * as path from \"path\";\r\n\r\n/**\r\n * Path to presentation-backend assets root directory.\r\n * @internal\r\n */\r\n// istanbul ignore next\r\nexport const PRESENTATION_BACKEND_ASSETS_ROOT = (-1 !== __dirname.indexOf(\"presentation-backend\")) ? path.join(__dirname, \"../assets\") : path.join(__dirname, \"assets\");\r\n"]}