@itwin/presentation-backend 4.1.0-dev.35 → 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 (26) 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 +704 -704
  3. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -139
  4. package/lib/cjs/presentation-backend/BackendLoggerCategory.js.map +1 -1
  5. package/lib/cjs/presentation-backend/Constants.js.map +1 -1
  6. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +12 -12
  7. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  8. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  9. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  10. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  11. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  12. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  13. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  14. package/lib/cjs/presentation-backend/RulesetEmbedder.js +3 -3
  15. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  16. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  17. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  18. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +16 -16
  19. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  20. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  21. package/lib/cjs/presentation-backend/UpdatesTracker.js.map +1 -1
  22. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  23. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  24. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  25. package/lib/cjs/presentation-backend.js.map +1 -1
  26. package/package.json +14 -14
@@ -1,705 +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
- "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
- ]
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
705
  }