@itwin/presentation-backend 4.1.0-dev.4 → 4.1.0-dev.40

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 (29) hide show
  1. package/CHANGELOG.md +26 -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 +705 -697
  4. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -139
  5. package/lib/cjs/presentation-backend/BackendLoggerCategory.js.map +1 -1
  6. package/lib/cjs/presentation-backend/Constants.js.map +1 -1
  7. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +12 -12
  8. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  9. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  10. package/lib/cjs/presentation-backend/NativePlatform.js +4 -1
  11. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  12. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  13. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  14. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  15. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  16. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  17. package/lib/cjs/presentation-backend/RulesetEmbedder.js +3 -3
  18. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  19. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  20. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  21. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +16 -16
  22. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  23. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  24. package/lib/cjs/presentation-backend/UpdatesTracker.js.map +1 -1
  25. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  26. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  27. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  28. package/lib/cjs/presentation-backend.js.map +1 -1
  29. package/package.json +14 -14
@@ -1,697 +1,705 @@
1
- {
2
- "$schema": "../../../common/Ruleset.schema.json",
3
- "id": "BisCore",
4
- "supplementationInfo": {
5
- "supplementationPurpose": "BisCore specific customization rules"
6
- },
7
- "requiredSchemas": [
8
- {
9
- "name": "BisCore"
10
- }
11
- ],
12
- "rules": [
13
- {
14
- "ruleType": "InstanceLabelOverride",
15
- "onlyIfNotHandled": true,
16
- "class": {
17
- "schemaName": "BisCore",
18
- "className": "GeometricElement"
19
- },
20
- "values": [
21
- {
22
- "specType": "Property",
23
- "propertyName": "CodeValue"
24
- },
25
- {
26
- "specType": "Composite",
27
- "separator": " ",
28
- "parts": [
29
- {
30
- "spec": {
31
- "specType": "Property",
32
- "propertyName": "UserLabel"
33
- },
34
- "isRequired": true
35
- },
36
- {
37
- "spec": {
38
- "specType": "Composite",
39
- "separator": "",
40
- "parts": [
41
- {
42
- "spec": {
43
- "specType": "String",
44
- "value": "["
45
- }
46
- },
47
- {
48
- "spec": {
49
- "specType": "BriefcaseId"
50
- }
51
- },
52
- {
53
- "spec": {
54
- "specType": "String",
55
- "value": "-"
56
- }
57
- },
58
- {
59
- "spec": {
60
- "specType": "LocalId"
61
- }
62
- },
63
- {
64
- "spec": {
65
- "specType": "String",
66
- "value": "]"
67
- }
68
- }
69
- ]
70
- }
71
- }
72
- ]
73
- },
74
- {
75
- "specType": "Composite",
76
- "separator": " ",
77
- "parts": [
78
- {
79
- "spec": {
80
- "specType": "ClassLabel"
81
- },
82
- "isRequired": true
83
- },
84
- {
85
- "spec": {
86
- "specType": "Composite",
87
- "separator": "",
88
- "parts": [
89
- {
90
- "spec": {
91
- "specType": "String",
92
- "value": "["
93
- }
94
- },
95
- {
96
- "spec": {
97
- "specType": "BriefcaseId"
98
- }
99
- },
100
- {
101
- "spec": {
102
- "specType": "String",
103
- "value": "-"
104
- }
105
- },
106
- {
107
- "spec": {
108
- "specType": "LocalId"
109
- }
110
- },
111
- {
112
- "spec": {
113
- "specType": "String",
114
- "value": "]"
115
- }
116
- }
117
- ]
118
- }
119
- }
120
- ]
121
- }
122
- ]
123
- },
124
- {
125
- "ruleType": "InstanceLabelOverride",
126
- "onlyIfNotHandled": true,
127
- "class": {
128
- "schemaName": "BisCore",
129
- "className": "Element"
130
- },
131
- "values": [
132
- {
133
- "specType": "Property",
134
- "propertyName": "UserLabel"
135
- },
136
- {
137
- "specType": "Property",
138
- "propertyName": "CodeValue"
139
- },
140
- {
141
- "specType": "Composite",
142
- "separator": " ",
143
- "parts": [
144
- {
145
- "spec": {
146
- "specType": "ClassLabel"
147
- },
148
- "isRequired": true
149
- },
150
- {
151
- "spec": {
152
- "specType": "Composite",
153
- "separator": "",
154
- "parts": [
155
- {
156
- "spec": {
157
- "specType": "String",
158
- "value": "["
159
- }
160
- },
161
- {
162
- "spec": {
163
- "specType": "BriefcaseId"
164
- }
165
- },
166
- {
167
- "spec": {
168
- "specType": "String",
169
- "value": "-"
170
- }
171
- },
172
- {
173
- "spec": {
174
- "specType": "LocalId"
175
- }
176
- },
177
- {
178
- "spec": {
179
- "specType": "String",
180
- "value": "]"
181
- }
182
- }
183
- ]
184
- }
185
- }
186
- ]
187
- }
188
- ]
189
- },
190
- {
191
- "ruleType": "InstanceLabelOverride",
192
- "onlyIfNotHandled": true,
193
- "class": {
194
- "schemaName": "BisCore",
195
- "className": "RepositoryModel"
196
- },
197
- "values": [
198
- {
199
- "specType": "RelatedInstanceLabel",
200
- "pathToRelatedInstance": {
201
- "relationship": {
202
- "schemaName": "BisCore",
203
- "className": "ModelModelsElement"
204
- },
205
- "direction": "Forward",
206
- "targetClass": {
207
- "schemaName": "BisCore",
208
- "className": "Subject"
209
- }
210
- }
211
- }
212
- ]
213
- },
214
- {
215
- "ruleType": "InstanceLabelOverride",
216
- "onlyIfNotHandled": true,
217
- "class": {
218
- "schemaName": "BisCore",
219
- "className": "Model"
220
- },
221
- "values": [
222
- {
223
- "specType": "RelatedInstanceLabel",
224
- "pathToRelatedInstance": {
225
- "relationship": {
226
- "schemaName": "BisCore",
227
- "className": "ModelModelsElement"
228
- },
229
- "direction": "Forward"
230
- }
231
- }
232
- ]
233
- },
234
- {
235
- "ruleType": "ContentModifier",
236
- "class": {
237
- "schemaName": "BisCore",
238
- "className": "Element"
239
- },
240
- "relatedProperties": [
241
- {
242
- "propertiesSource": {
243
- "relationship": {
244
- "schemaName": "BisCore",
245
- "className": "ElementOwnsUniqueAspect"
246
- },
247
- "direction": "Forward"
248
- },
249
- "handleTargetClassPolymorphically": true,
250
- "relationshipMeaning": "SameInstance",
251
- "skipIfDuplicate": true
252
- },
253
- {
254
- "propertiesSource": {
255
- "relationship": {
256
- "schemaName": "BisCore",
257
- "className": "ElementOwnsMultiAspects"
258
- },
259
- "direction": "Forward"
260
- },
261
- "handleTargetClassPolymorphically": true,
262
- "relationshipMeaning": "SameInstance",
263
- "skipIfDuplicate": true
264
- }
265
- ],
266
- "applyOnNestedContent": true
267
- },
268
- {
269
- "ruleType": "ContentModifier",
270
- "class": {
271
- "schemaName": "BisCore",
272
- "className": "Element"
273
- },
274
- "propertyCategories": [
275
- {
276
- "id": "source_information",
277
- "label": "Source Information",
278
- "parentId": {
279
- "type": "Root"
280
- },
281
- "autoExpand": true
282
- },
283
- {
284
- "id": "model_source",
285
- "label": "Model Source",
286
- "parentId": "source_information",
287
- "autoExpand": true
288
- }
289
- ],
290
- "relatedProperties": [
291
- {
292
- "propertiesSource": {
293
- "relationship": {
294
- "schemaName": "BisCore",
295
- "className": "ElementHasLinks"
296
- },
297
- "direction": "Forward"
298
- },
299
- "handleTargetClassPolymorphically": true,
300
- "relationshipMeaning": "RelatedInstance",
301
- "skipIfDuplicate": true
302
- },
303
- {
304
- "propertiesSource": {
305
- "relationship": {
306
- "schemaName": "BisCore",
307
- "className": "ElementGroupsMembers"
308
- },
309
- "targetClass": {
310
- "schemaName": "BisCore",
311
- "className": "GroupInformationElement"
312
- },
313
- "direction": "Backward"
314
- },
315
- "handleTargetClassPolymorphically": true,
316
- "relationshipMeaning": "RelatedInstance",
317
- "nestedRelatedProperties": [
318
- {
319
- "propertiesSource": {
320
- "relationship": {
321
- "schemaName": "BisCore",
322
- "className": "ElementHasLinks"
323
- },
324
- "direction": "Forward"
325
- },
326
- "handleTargetClassPolymorphically": true,
327
- "autoExpand": true,
328
- "relationshipMeaning": "RelatedInstance"
329
- }
330
- ],
331
- "skipIfDuplicate": true
332
- },
333
- {
334
- "propertiesSource": [
335
- {
336
- "relationship": {
337
- "schemaName": "BisCore",
338
- "className": "ModelContainsElements"
339
- },
340
- "direction": "Backward"
341
- },
342
- {
343
- "relationship": {
344
- "schemaName": "BisCore",
345
- "className": "ModelModelsElement"
346
- },
347
- "direction": "Forward"
348
- },
349
- {
350
- "relationship": {
351
- "schemaName": "BisCore",
352
- "className": "ElementHasLinks"
353
- },
354
- "targetClass": {
355
- "schemaName": "BisCore",
356
- "className": "RepositoryLink"
357
- },
358
- "direction": "Forward"
359
- }
360
- ],
361
- "properties": [
362
- {
363
- "name": "Url",
364
- "overridesPriority": 1001,
365
- "labelOverride": "Path",
366
- "categoryId": "model_source",
367
- "isDisplayed": true
368
- },
369
- {
370
- "name": "UserLabel",
371
- "overridesPriority": 1001,
372
- "labelOverride": "Name",
373
- "categoryId": "model_source",
374
- "isDisplayed": true
375
- }
376
- ],
377
- "relationshipMeaning": "SameInstance",
378
- "skipIfDuplicate": true
379
- }
380
- ]
381
- },
382
- {
383
- "ruleType": "ContentModifier",
384
- "requiredSchemas": [
385
- {
386
- "name": "BisCore",
387
- "minVersion": "1.0.2"
388
- }
389
- ],
390
- "class": {
391
- "schemaName": "BisCore",
392
- "className": "Element"
393
- },
394
- "propertyCategories": [
395
- {
396
- "id": "source_information",
397
- "label": "Source Information"
398
- }
399
- ],
400
- "relatedProperties": [
401
- {
402
- "relationshipMeaning": "SameInstance",
403
- "propertiesSource": [
404
- {
405
- "relationship": {
406
- "schemaName": "BisCore",
407
- "className": "ElementOwnsMultiAspects"
408
- },
409
- "direction": "Forward",
410
- "targetClass": {
411
- "schemaName": "BisCore",
412
- "className": "ExternalSourceAspect"
413
- }
414
- }
415
- ],
416
- "instanceFilter": "this.Kind <> \"Relationship\"",
417
- "properties": [
418
- {
419
- "name": "Identifier",
420
- "overridesPriority": 1001,
421
- "categoryId": "source_information",
422
- "labelOverride": "Source Element ID",
423
- "isDisplayed": true
424
- }
425
- ],
426
- "skipIfDuplicate": true
427
- }
428
- ]
429
- },
430
- {
431
- "ruleType": "ContentModifier",
432
- "requiredSchemas": [
433
- {
434
- "name": "BisCore",
435
- "minVersion": "1.0.13"
436
- }
437
- ],
438
- "class": {
439
- "schemaName": "BisCore",
440
- "className": "Element"
441
- },
442
- "propertyCategories": [
443
- {
444
- "id": "source_information",
445
- "label": "Source Information",
446
- "parentId": {
447
- "type": "Root"
448
- },
449
- "autoExpand": true
450
- },
451
- {
452
- "id": "secondary_sources",
453
- "label": "Secondary Sources",
454
- "parentId": "source_information",
455
- "autoExpand": true
456
- },
457
- {
458
- "id": "document_link",
459
- "label": "Document Link",
460
- "parentId": "source_information",
461
- "autoExpand": true
462
- }
463
- ],
464
- "relatedProperties": [
465
- {
466
- "relationshipMeaning": "SameInstance",
467
- "propertiesSource": [
468
- {
469
- "relationship": {
470
- "schemaName": "BisCore",
471
- "className": "ElementOwnsMultiAspects"
472
- },
473
- "direction": "Forward",
474
- "targetClass": {
475
- "schemaName": "BisCore",
476
- "className": "ExternalSourceAspect"
477
- }
478
- }
479
- ],
480
- "instanceFilter": "this.Kind <> \"Relationship\"",
481
- "properties": "_none_",
482
- "autoExpand": true,
483
- "nestedRelatedProperties": [
484
- {
485
- "relationshipMeaning": "SameInstance",
486
- "autoExpand": true,
487
- "propertiesSource": [
488
- {
489
- "relationship": {
490
- "schemaName": "BisCore",
491
- "className": "ElementIsFromSource"
492
- },
493
- "direction": "Forward"
494
- },
495
- {
496
- "relationship": {
497
- "schemaName": "BisCore",
498
- "className": "ExternalSourceIsInRepository"
499
- },
500
- "direction": "Forward"
501
- }
502
- ],
503
- "handleTargetClassPolymorphically": true,
504
- "properties": [
505
- {
506
- "name": "*",
507
- "categoryId": "document_link"
508
- },
509
- {
510
- "name": "UserLabel",
511
- "labelOverride": "Name",
512
- "isDisplayed": true,
513
- "doNotHideOtherPropertiesOnDisplayOverride": true
514
- },
515
- {
516
- "name": "Url",
517
- "labelOverride": "Path"
518
- },
519
- {
520
- "name": "Model",
521
- "isDisplayed": false
522
- }
523
- ],
524
- "skipIfDuplicate": true
525
- },
526
- {
527
- "relationshipMeaning": "SameInstance",
528
- "autoExpand": true,
529
- "propertiesSource": [
530
- {
531
- "relationship": {
532
- "schemaName": "BisCore",
533
- "className": "ElementIsFromSource"
534
- },
535
- "direction": "Forward",
536
- "targetClass": {
537
- "schemaName": "BisCore",
538
- "className": "ExternalSourceGroup"
539
- }
540
- },
541
- {
542
- "relationship": {
543
- "schemaName": "BisCore",
544
- "className": "ExternalSourceGroupGroupsSources"
545
- },
546
- "direction": "Forward"
547
- },
548
- {
549
- "relationship": {
550
- "schemaName": "BisCore",
551
- "className": "ExternalSourceIsInRepository"
552
- },
553
- "direction": "Forward"
554
- }
555
- ],
556
- "properties": [
557
- {
558
- "name": "UserLabel",
559
- "categoryId": "secondary_sources",
560
- "labelOverride": "Name",
561
- "isDisplayed": true
562
- },
563
- {
564
- "name": "Url",
565
- "categoryId": "secondary_sources",
566
- "labelOverride": "Path"
567
- }
568
- ],
569
- "skipIfDuplicate": true
570
- }
571
- ],
572
- "skipIfDuplicate": true
573
- }
574
- ]
575
- },
576
- {
577
- "ruleType": "ContentModifier",
578
- "class": {
579
- "schemaName": "BisCore",
580
- "className": "GeometricElement3d"
581
- },
582
- "relatedProperties": [
583
- {
584
- "propertiesSource": {
585
- "relationship": {
586
- "schemaName": "BisCore",
587
- "className": "GeometricElement3dHasTypeDefinition"
588
- },
589
- "direction": "Forward"
590
- },
591
- "handleTargetClassPolymorphically": true,
592
- "relationshipMeaning": "RelatedInstance",
593
- "skipIfDuplicate": true
594
- }
595
- ]
596
- },
597
- {
598
- "ruleType": "ContentModifier",
599
- "class": {
600
- "schemaName": "BisCore",
601
- "className": "GeometricElement2d"
602
- },
603
- "relatedProperties": [
604
- {
605
- "propertiesSource": {
606
- "relationship": {
607
- "schemaName": "BisCore",
608
- "className": "GeometricElement2dHasTypeDefinition"
609
- },
610
- "direction": "Forward"
611
- },
612
- "handleTargetClassPolymorphically": true,
613
- "relationshipMeaning": "RelatedInstance",
614
- "skipIfDuplicate": true
615
- }
616
- ]
617
- },
618
- {
619
- "ruleType": "ContentModifier",
620
- "class": {
621
- "schemaName": "BisCore",
622
- "className": "DrawingGraphic"
623
- },
624
- "relatedProperties": [
625
- {
626
- "propertiesSource": {
627
- "relationship": {
628
- "schemaName": "BisCore",
629
- "className": "DrawingGraphicRepresentsElement"
630
- },
631
- "direction": "Forward"
632
- },
633
- "handleTargetClassPolymorphically": true,
634
- "relationshipMeaning": "RelatedInstance",
635
- "skipIfDuplicate": true
636
- }
637
- ]
638
- },
639
- {
640
- "ruleType": "ContentModifier",
641
- "class": {
642
- "schemaName": "BisCore",
643
- "className": "GraphicalElement3d"
644
- },
645
- "relatedProperties": [
646
- {
647
- "propertiesSource": {
648
- "relationship": {
649
- "schemaName": "BisCore",
650
- "className": "GraphicalElement3dRepresentsElement"
651
- },
652
- "direction": "Forward"
653
- },
654
- "handleTargetClassPolymorphically": true,
655
- "relationshipMeaning": "RelatedInstance",
656
- "skipIfDuplicate": true
657
- }
658
- ]
659
- },
660
- {
661
- "ruleType": "ContentModifier",
662
- "class": {
663
- "schemaName": "BisCore",
664
- "className": "TypeDefinitionElement"
665
- },
666
- "propertyOverrides": [
667
- {
668
- "name": "IsPrivate",
669
- "isDisplayed": false
670
- },
671
- {
672
- "name": "Recipe",
673
- "isDisplayed": false
674
- }
675
- ]
676
- },
677
- {
678
- "ruleType": "ContentModifier",
679
- "requiredSchemas": [
680
- {
681
- "name": "BisCore",
682
- "minVersion": "1.0.11"
683
- }
684
- ],
685
- "class": {
686
- "schemaName": "BisCore",
687
- "className": "PhysicalType"
688
- },
689
- "propertyOverrides": [
690
- {
691
- "name": "PhysicalMaterial",
692
- "labelOverride": "Physical Material"
693
- }
694
- ]
695
- }
696
- ]
697
- }
1
+ {
2
+ "$schema": "../../../common/Ruleset.schema.json",
3
+ "id": "BisCore",
4
+ "supplementationInfo": {
5
+ "supplementationPurpose": "BisCore specific customization rules"
6
+ },
7
+ "requiredSchemas": [
8
+ {
9
+ "name": "BisCore"
10
+ }
11
+ ],
12
+ "rules": [
13
+ {
14
+ "ruleType": "InstanceLabelOverride",
15
+ "onlyIfNotHandled": true,
16
+ "class": {
17
+ "schemaName": "BisCore",
18
+ "className": "GeometricElement"
19
+ },
20
+ "values": [
21
+ {
22
+ "specType": "Property",
23
+ "propertyName": "CodeValue"
24
+ },
25
+ {
26
+ "specType": "Composite",
27
+ "separator": " ",
28
+ "parts": [
29
+ {
30
+ "spec": {
31
+ "specType": "Property",
32
+ "propertyName": "UserLabel"
33
+ },
34
+ "isRequired": true
35
+ },
36
+ {
37
+ "spec": {
38
+ "specType": "Composite",
39
+ "separator": "",
40
+ "parts": [
41
+ {
42
+ "spec": {
43
+ "specType": "String",
44
+ "value": "["
45
+ }
46
+ },
47
+ {
48
+ "spec": {
49
+ "specType": "BriefcaseId"
50
+ }
51
+ },
52
+ {
53
+ "spec": {
54
+ "specType": "String",
55
+ "value": "-"
56
+ }
57
+ },
58
+ {
59
+ "spec": {
60
+ "specType": "LocalId"
61
+ }
62
+ },
63
+ {
64
+ "spec": {
65
+ "specType": "String",
66
+ "value": "]"
67
+ }
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "specType": "Composite",
76
+ "separator": " ",
77
+ "parts": [
78
+ {
79
+ "spec": {
80
+ "specType": "ClassLabel"
81
+ },
82
+ "isRequired": true
83
+ },
84
+ {
85
+ "spec": {
86
+ "specType": "Composite",
87
+ "separator": "",
88
+ "parts": [
89
+ {
90
+ "spec": {
91
+ "specType": "String",
92
+ "value": "["
93
+ }
94
+ },
95
+ {
96
+ "spec": {
97
+ "specType": "BriefcaseId"
98
+ }
99
+ },
100
+ {
101
+ "spec": {
102
+ "specType": "String",
103
+ "value": "-"
104
+ }
105
+ },
106
+ {
107
+ "spec": {
108
+ "specType": "LocalId"
109
+ }
110
+ },
111
+ {
112
+ "spec": {
113
+ "specType": "String",
114
+ "value": "]"
115
+ }
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "ruleType": "InstanceLabelOverride",
126
+ "onlyIfNotHandled": true,
127
+ "class": {
128
+ "schemaName": "BisCore",
129
+ "className": "Element"
130
+ },
131
+ "values": [
132
+ {
133
+ "specType": "Property",
134
+ "propertyName": "UserLabel"
135
+ },
136
+ {
137
+ "specType": "Property",
138
+ "propertyName": "CodeValue"
139
+ },
140
+ {
141
+ "specType": "Composite",
142
+ "separator": " ",
143
+ "parts": [
144
+ {
145
+ "spec": {
146
+ "specType": "ClassLabel"
147
+ },
148
+ "isRequired": true
149
+ },
150
+ {
151
+ "spec": {
152
+ "specType": "Composite",
153
+ "separator": "",
154
+ "parts": [
155
+ {
156
+ "spec": {
157
+ "specType": "String",
158
+ "value": "["
159
+ }
160
+ },
161
+ {
162
+ "spec": {
163
+ "specType": "BriefcaseId"
164
+ }
165
+ },
166
+ {
167
+ "spec": {
168
+ "specType": "String",
169
+ "value": "-"
170
+ }
171
+ },
172
+ {
173
+ "spec": {
174
+ "specType": "LocalId"
175
+ }
176
+ },
177
+ {
178
+ "spec": {
179
+ "specType": "String",
180
+ "value": "]"
181
+ }
182
+ }
183
+ ]
184
+ }
185
+ }
186
+ ]
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "ruleType": "InstanceLabelOverride",
192
+ "onlyIfNotHandled": true,
193
+ "class": {
194
+ "schemaName": "BisCore",
195
+ "className": "RepositoryModel"
196
+ },
197
+ "values": [
198
+ {
199
+ "specType": "RelatedInstanceLabel",
200
+ "pathToRelatedInstance": {
201
+ "relationship": {
202
+ "schemaName": "BisCore",
203
+ "className": "ModelModelsElement"
204
+ },
205
+ "direction": "Forward",
206
+ "targetClass": {
207
+ "schemaName": "BisCore",
208
+ "className": "Subject"
209
+ }
210
+ }
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "ruleType": "InstanceLabelOverride",
216
+ "onlyIfNotHandled": true,
217
+ "class": {
218
+ "schemaName": "BisCore",
219
+ "className": "Model"
220
+ },
221
+ "values": [
222
+ {
223
+ "specType": "RelatedInstanceLabel",
224
+ "pathToRelatedInstance": {
225
+ "relationship": {
226
+ "schemaName": "BisCore",
227
+ "className": "ModelModelsElement"
228
+ },
229
+ "direction": "Forward"
230
+ }
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "ruleType": "ContentModifier",
236
+ "class": {
237
+ "schemaName": "BisCore",
238
+ "className": "Element"
239
+ },
240
+ "propertyCategories": [
241
+ {
242
+ "id": "source_information",
243
+ "label": "Source Information",
244
+ "parentId": {
245
+ "type": "Root"
246
+ },
247
+ "autoExpand": true
248
+ },
249
+ {
250
+ "id": "model_source",
251
+ "label": "Model Source",
252
+ "parentId": "source_information",
253
+ "autoExpand": true
254
+ },
255
+ {
256
+ "id": "secondary_sources",
257
+ "label": "Secondary Sources",
258
+ "parentId": "source_information",
259
+ "autoExpand": true
260
+ },
261
+ {
262
+ "id": "document_link",
263
+ "label": "Document Link",
264
+ "parentId": "source_information",
265
+ "autoExpand": true
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "ruleType": "ContentModifier",
271
+ "class": {
272
+ "schemaName": "BisCore",
273
+ "className": "ElementAspect"
274
+ },
275
+ "propertyCategories": [
276
+ {
277
+ "id": "source_information",
278
+ "label": "Source Information",
279
+ "parentId": {
280
+ "type": "Root"
281
+ },
282
+ "autoExpand": true
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "ruleType": "ContentModifier",
288
+ "class": {
289
+ "schemaName": "BisCore",
290
+ "className": "Element"
291
+ },
292
+ "relatedProperties": [
293
+ {
294
+ "propertiesSource": {
295
+ "relationship": {
296
+ "schemaName": "BisCore",
297
+ "className": "ElementOwnsUniqueAspect"
298
+ },
299
+ "direction": "Forward"
300
+ },
301
+ "handleTargetClassPolymorphically": true,
302
+ "relationshipMeaning": "SameInstance",
303
+ "skipIfDuplicate": true
304
+ },
305
+ {
306
+ "propertiesSource": {
307
+ "relationship": {
308
+ "schemaName": "BisCore",
309
+ "className": "ElementOwnsMultiAspects"
310
+ },
311
+ "direction": "Forward"
312
+ },
313
+ "handleTargetClassPolymorphically": true,
314
+ "relationshipMeaning": "SameInstance",
315
+ "skipIfDuplicate": true
316
+ }
317
+ ],
318
+ "applyOnNestedContent": true
319
+ },
320
+ {
321
+ "ruleType": "ContentModifier",
322
+ "class": {
323
+ "schemaName": "BisCore",
324
+ "className": "Element"
325
+ },
326
+ "relatedProperties": [
327
+ {
328
+ "propertiesSource": {
329
+ "relationship": {
330
+ "schemaName": "BisCore",
331
+ "className": "ElementHasLinks"
332
+ },
333
+ "direction": "Forward"
334
+ },
335
+ "handleTargetClassPolymorphically": true,
336
+ "relationshipMeaning": "RelatedInstance",
337
+ "skipIfDuplicate": true
338
+ },
339
+ {
340
+ "propertiesSource": {
341
+ "relationship": {
342
+ "schemaName": "BisCore",
343
+ "className": "ElementGroupsMembers"
344
+ },
345
+ "targetClass": {
346
+ "schemaName": "BisCore",
347
+ "className": "GroupInformationElement"
348
+ },
349
+ "direction": "Backward"
350
+ },
351
+ "handleTargetClassPolymorphically": true,
352
+ "relationshipMeaning": "RelatedInstance",
353
+ "nestedRelatedProperties": [
354
+ {
355
+ "propertiesSource": {
356
+ "relationship": {
357
+ "schemaName": "BisCore",
358
+ "className": "ElementHasLinks"
359
+ },
360
+ "direction": "Forward"
361
+ },
362
+ "handleTargetClassPolymorphically": true,
363
+ "autoExpand": true,
364
+ "relationshipMeaning": "RelatedInstance"
365
+ }
366
+ ],
367
+ "skipIfDuplicate": true
368
+ },
369
+ {
370
+ "propertiesSource": [
371
+ {
372
+ "relationship": {
373
+ "schemaName": "BisCore",
374
+ "className": "ModelContainsElements"
375
+ },
376
+ "direction": "Backward"
377
+ },
378
+ {
379
+ "relationship": {
380
+ "schemaName": "BisCore",
381
+ "className": "ModelModelsElement"
382
+ },
383
+ "direction": "Forward"
384
+ },
385
+ {
386
+ "relationship": {
387
+ "schemaName": "BisCore",
388
+ "className": "ElementHasLinks"
389
+ },
390
+ "targetClass": {
391
+ "schemaName": "BisCore",
392
+ "className": "RepositoryLink"
393
+ },
394
+ "direction": "Forward"
395
+ }
396
+ ],
397
+ "properties": [
398
+ {
399
+ "name": "Url",
400
+ "overridesPriority": 1001,
401
+ "labelOverride": "Path",
402
+ "categoryId": "model_source",
403
+ "isDisplayed": true
404
+ },
405
+ {
406
+ "name": "UserLabel",
407
+ "overridesPriority": 1001,
408
+ "labelOverride": "Name",
409
+ "categoryId": "model_source",
410
+ "isDisplayed": true
411
+ }
412
+ ],
413
+ "relationshipMeaning": "SameInstance",
414
+ "skipIfDuplicate": true
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "ruleType": "ContentModifier",
420
+ "requiredSchemas": [
421
+ {
422
+ "name": "BisCore",
423
+ "minVersion": "1.0.2"
424
+ }
425
+ ],
426
+ "class": {
427
+ "schemaName": "BisCore",
428
+ "className": "Element"
429
+ },
430
+ "relatedProperties": [
431
+ {
432
+ "relationshipMeaning": "SameInstance",
433
+ "propertiesSource": [
434
+ {
435
+ "relationship": {
436
+ "schemaName": "BisCore",
437
+ "className": "ElementOwnsMultiAspects"
438
+ },
439
+ "direction": "Forward",
440
+ "targetClass": {
441
+ "schemaName": "BisCore",
442
+ "className": "ExternalSourceAspect"
443
+ }
444
+ }
445
+ ],
446
+ "instanceFilter": "this.Kind <> \"Relationship\"",
447
+ "properties": [
448
+ {
449
+ "name": "Identifier",
450
+ "overridesPriority": 1001,
451
+ "categoryId": "source_information",
452
+ "labelOverride": "Source Element ID",
453
+ "isDisplayed": true
454
+ }
455
+ ],
456
+ "skipIfDuplicate": true
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "ruleType": "ContentModifier",
462
+ "requiredSchemas": [
463
+ {
464
+ "name": "BisCore",
465
+ "minVersion": "1.0.13"
466
+ }
467
+ ],
468
+ "class": {
469
+ "schemaName": "BisCore",
470
+ "className": "Element"
471
+ },
472
+ "relatedProperties": [
473
+ {
474
+ "relationshipMeaning": "SameInstance",
475
+ "propertiesSource": [
476
+ {
477
+ "relationship": {
478
+ "schemaName": "BisCore",
479
+ "className": "ElementOwnsMultiAspects"
480
+ },
481
+ "direction": "Forward",
482
+ "targetClass": {
483
+ "schemaName": "BisCore",
484
+ "className": "ExternalSourceAspect"
485
+ }
486
+ }
487
+ ],
488
+ "instanceFilter": "this.Kind <> \"Relationship\"",
489
+ "properties": "_none_",
490
+ "autoExpand": true,
491
+ "nestedRelatedProperties": [
492
+ {
493
+ "relationshipMeaning": "SameInstance",
494
+ "autoExpand": true,
495
+ "propertiesSource": [
496
+ {
497
+ "relationship": {
498
+ "schemaName": "BisCore",
499
+ "className": "ElementIsFromSource"
500
+ },
501
+ "direction": "Forward"
502
+ },
503
+ {
504
+ "relationship": {
505
+ "schemaName": "BisCore",
506
+ "className": "ExternalSourceIsInRepository"
507
+ },
508
+ "direction": "Forward"
509
+ }
510
+ ],
511
+ "handleTargetClassPolymorphically": true,
512
+ "properties": [
513
+ {
514
+ "name": "*",
515
+ "categoryId": "document_link"
516
+ },
517
+ {
518
+ "name": "UserLabel",
519
+ "labelOverride": "Name",
520
+ "isDisplayed": true,
521
+ "doNotHideOtherPropertiesOnDisplayOverride": true
522
+ },
523
+ {
524
+ "name": "Url",
525
+ "labelOverride": "Path"
526
+ },
527
+ {
528
+ "name": "Model",
529
+ "isDisplayed": false
530
+ }
531
+ ],
532
+ "skipIfDuplicate": true
533
+ },
534
+ {
535
+ "relationshipMeaning": "SameInstance",
536
+ "autoExpand": true,
537
+ "propertiesSource": [
538
+ {
539
+ "relationship": {
540
+ "schemaName": "BisCore",
541
+ "className": "ElementIsFromSource"
542
+ },
543
+ "direction": "Forward",
544
+ "targetClass": {
545
+ "schemaName": "BisCore",
546
+ "className": "ExternalSourceGroup"
547
+ }
548
+ },
549
+ {
550
+ "relationship": {
551
+ "schemaName": "BisCore",
552
+ "className": "ExternalSourceGroupGroupsSources"
553
+ },
554
+ "direction": "Forward"
555
+ },
556
+ {
557
+ "relationship": {
558
+ "schemaName": "BisCore",
559
+ "className": "ExternalSourceIsInRepository"
560
+ },
561
+ "direction": "Forward"
562
+ }
563
+ ],
564
+ "properties": [
565
+ {
566
+ "name": "UserLabel",
567
+ "categoryId": "secondary_sources",
568
+ "labelOverride": "Name",
569
+ "isDisplayed": true
570
+ },
571
+ {
572
+ "name": "Url",
573
+ "categoryId": "secondary_sources",
574
+ "labelOverride": "Path"
575
+ }
576
+ ],
577
+ "skipIfDuplicate": true
578
+ }
579
+ ],
580
+ "skipIfDuplicate": true
581
+ }
582
+ ]
583
+ },
584
+ {
585
+ "ruleType": "ContentModifier",
586
+ "class": {
587
+ "schemaName": "BisCore",
588
+ "className": "GeometricElement3d"
589
+ },
590
+ "relatedProperties": [
591
+ {
592
+ "propertiesSource": {
593
+ "relationship": {
594
+ "schemaName": "BisCore",
595
+ "className": "GeometricElement3dHasTypeDefinition"
596
+ },
597
+ "direction": "Forward"
598
+ },
599
+ "handleTargetClassPolymorphically": true,
600
+ "relationshipMeaning": "RelatedInstance",
601
+ "skipIfDuplicate": true
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "ruleType": "ContentModifier",
607
+ "class": {
608
+ "schemaName": "BisCore",
609
+ "className": "GeometricElement2d"
610
+ },
611
+ "relatedProperties": [
612
+ {
613
+ "propertiesSource": {
614
+ "relationship": {
615
+ "schemaName": "BisCore",
616
+ "className": "GeometricElement2dHasTypeDefinition"
617
+ },
618
+ "direction": "Forward"
619
+ },
620
+ "handleTargetClassPolymorphically": true,
621
+ "relationshipMeaning": "RelatedInstance",
622
+ "skipIfDuplicate": true
623
+ }
624
+ ]
625
+ },
626
+ {
627
+ "ruleType": "ContentModifier",
628
+ "class": {
629
+ "schemaName": "BisCore",
630
+ "className": "DrawingGraphic"
631
+ },
632
+ "relatedProperties": [
633
+ {
634
+ "propertiesSource": {
635
+ "relationship": {
636
+ "schemaName": "BisCore",
637
+ "className": "DrawingGraphicRepresentsElement"
638
+ },
639
+ "direction": "Forward"
640
+ },
641
+ "handleTargetClassPolymorphically": true,
642
+ "relationshipMeaning": "RelatedInstance",
643
+ "skipIfDuplicate": true
644
+ }
645
+ ]
646
+ },
647
+ {
648
+ "ruleType": "ContentModifier",
649
+ "class": {
650
+ "schemaName": "BisCore",
651
+ "className": "GraphicalElement3d"
652
+ },
653
+ "relatedProperties": [
654
+ {
655
+ "propertiesSource": {
656
+ "relationship": {
657
+ "schemaName": "BisCore",
658
+ "className": "GraphicalElement3dRepresentsElement"
659
+ },
660
+ "direction": "Forward"
661
+ },
662
+ "handleTargetClassPolymorphically": true,
663
+ "relationshipMeaning": "RelatedInstance",
664
+ "skipIfDuplicate": true
665
+ }
666
+ ]
667
+ },
668
+ {
669
+ "ruleType": "ContentModifier",
670
+ "class": {
671
+ "schemaName": "BisCore",
672
+ "className": "TypeDefinitionElement"
673
+ },
674
+ "propertyOverrides": [
675
+ {
676
+ "name": "IsPrivate",
677
+ "isDisplayed": false
678
+ },
679
+ {
680
+ "name": "Recipe",
681
+ "isDisplayed": false
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "ruleType": "ContentModifier",
687
+ "requiredSchemas": [
688
+ {
689
+ "name": "BisCore",
690
+ "minVersion": "1.0.11"
691
+ }
692
+ ],
693
+ "class": {
694
+ "schemaName": "BisCore",
695
+ "className": "PhysicalType"
696
+ },
697
+ "propertyOverrides": [
698
+ {
699
+ "name": "PhysicalMaterial",
700
+ "labelOverride": "Physical Material"
701
+ }
702
+ ]
703
+ }
704
+ ]
705
+ }