@itwin/presentation-backend 4.3.0-dev.8 → 4.4.0-dev.1
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.
- package/CHANGELOG.md +38 -1
- package/lib/cjs/presentation-backend/NativePlatform.d.ts +3 -2
- package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/NativePlatform.js +5 -3
- package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManager.d.ts +7 -9
- package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManager.js +3 -3
- package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js +18 -16
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
- package/lib/cjs/presentation-backend/TemporaryStorage.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
- package/lib/cjs/presentation-backend/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -0
- package/lib/cjs/presentation-backend/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +701 -0
- package/lib/cjs/presentation-backend/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -0
- package/package.json +16 -17
- package/lib/cjs/assets/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +0 -14
- package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +0 -701
- package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +0 -139
- package/lib/cjs/presentation-backend/Constants.d.ts +0 -9
- package/lib/cjs/presentation-backend/Constants.d.ts.map +0 -1
- package/lib/cjs/presentation-backend/Constants.js +0 -41
- package/lib/cjs/presentation-backend/Constants.js.map +0 -1
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/presentation-backend",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0-dev.1",
|
|
4
4
|
"description": "Backend of iTwin.js Presentation library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"main": "lib/cjs/presentation-backend.js",
|
|
24
24
|
"typings": "lib/cjs/presentation-backend",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@itwin/core-backend": "^4.
|
|
27
|
-
"@itwin/core-bentley": "^4.
|
|
28
|
-
"@itwin/core-common": "^4.
|
|
29
|
-
"@itwin/core-quantity": "^4.
|
|
30
|
-
"@itwin/ecschema-metadata": "^4.
|
|
31
|
-
"@itwin/presentation-common": "^4.
|
|
26
|
+
"@itwin/core-backend": "^4.4.0-dev.1",
|
|
27
|
+
"@itwin/core-bentley": "^4.4.0-dev.1",
|
|
28
|
+
"@itwin/core-common": "^4.4.0-dev.1",
|
|
29
|
+
"@itwin/core-quantity": "^4.4.0-dev.1",
|
|
30
|
+
"@itwin/ecschema-metadata": "^4.4.0-dev.1",
|
|
31
|
+
"@itwin/presentation-common": "^4.4.0-dev.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@itwin/eslint-plugin": "4.0.0-dev.44",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/faker": "^4.1.0",
|
|
41
41
|
"@types/lolex": "^2.1.2",
|
|
42
42
|
"@types/mocha": "^8.2.2",
|
|
43
|
-
"@types/node": "18.16.
|
|
43
|
+
"@types/node": "~18.16.20",
|
|
44
44
|
"@types/object-hash": "^1.3.0",
|
|
45
45
|
"@types/semver": "7.3.10",
|
|
46
46
|
"@types/sinon": "^10.0.15",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"sinon-chai": "^3.2.0",
|
|
63
63
|
"typemoq": "^2.1.0",
|
|
64
64
|
"typescript": "~5.0.2",
|
|
65
|
-
"@itwin/core-
|
|
66
|
-
"@itwin/
|
|
67
|
-
"@itwin/core-
|
|
68
|
-
"@itwin/core-
|
|
69
|
-
"@itwin/
|
|
70
|
-
"@itwin/
|
|
71
|
-
"@itwin/
|
|
65
|
+
"@itwin/core-bentley": "4.4.0-dev.1",
|
|
66
|
+
"@itwin/ecschema-metadata": "4.4.0-dev.1",
|
|
67
|
+
"@itwin/core-quantity": "4.4.0-dev.1",
|
|
68
|
+
"@itwin/core-common": "4.4.0-dev.1",
|
|
69
|
+
"@itwin/presentation-common": "4.4.0-dev.1",
|
|
70
|
+
"@itwin/build-tools": "4.4.0-dev.1",
|
|
71
|
+
"@itwin/core-backend": "4.4.0-dev.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"object-hash": "^1.3.1",
|
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "npm run -s build:cjs",
|
|
82
|
-
"build:cjs": "
|
|
83
|
-
"copy:assets": "cpx \"./assets/**/*\" ./lib/cjs/assets",
|
|
82
|
+
"build:cjs": "tsc 1>&2",
|
|
84
83
|
"build:watch": "npm run -s build:cjs -- -w",
|
|
85
84
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
86
85
|
"cover": "nyc npm -s test",
|