@itwin/presentation-backend 4.1.0-dev.8 → 4.1.0-dev.80

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 (31) hide show
  1. package/CHANGELOG.md +81 -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 +701 -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 +1 -1
  13. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  14. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  15. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  16. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +1 -1
  17. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  18. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  19. package/lib/cjs/presentation-backend/RulesetEmbedder.js +3 -3
  20. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  21. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  22. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  23. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +16 -16
  24. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  25. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  26. package/lib/cjs/presentation-backend/UpdatesTracker.js.map +1 -1
  27. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  28. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  29. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  30. package/lib/cjs/presentation-backend.js.map +1 -1
  31. package/package.json +19 -25
@@ -1,697 +1,701 @@
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
+ "propertyCategories": [
237
+ {
238
+ "id": "source_information",
239
+ "label": "Source Information",
240
+ "parentId": {
241
+ "type": "Root"
242
+ },
243
+ "autoExpand": true
244
+ },
245
+ {
246
+ "id": "model_source",
247
+ "label": "Model Source",
248
+ "parentId": "source_information",
249
+ "autoExpand": true
250
+ },
251
+ {
252
+ "id": "secondary_sources",
253
+ "label": "Secondary Sources",
254
+ "parentId": "source_information",
255
+ "autoExpand": true
256
+ },
257
+ {
258
+ "id": "document_link",
259
+ "label": "Document Link",
260
+ "parentId": "source_information",
261
+ "autoExpand": true
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "ruleType": "ContentModifier",
267
+ "class": {
268
+ "schemaName": "BisCore",
269
+ "className": "ElementAspect"
270
+ },
271
+ "propertyCategories": [
272
+ {
273
+ "id": "source_information",
274
+ "label": "Source Information",
275
+ "parentId": {
276
+ "type": "Root"
277
+ },
278
+ "autoExpand": true
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "ruleType": "ContentModifier",
284
+ "class": {
285
+ "schemaName": "BisCore",
286
+ "className": "Element"
287
+ },
288
+ "relatedProperties": [
289
+ {
290
+ "propertiesSource": {
291
+ "relationship": {
292
+ "schemaName": "BisCore",
293
+ "className": "ElementOwnsUniqueAspect"
294
+ },
295
+ "direction": "Forward"
296
+ },
297
+ "handleTargetClassPolymorphically": true,
298
+ "relationshipMeaning": "SameInstance",
299
+ "skipIfDuplicate": true
300
+ },
301
+ {
302
+ "propertiesSource": {
303
+ "relationship": {
304
+ "schemaName": "BisCore",
305
+ "className": "ElementOwnsMultiAspects"
306
+ },
307
+ "direction": "Forward"
308
+ },
309
+ "handleTargetClassPolymorphically": true,
310
+ "relationshipMeaning": "SameInstance",
311
+ "skipIfDuplicate": true
312
+ }
313
+ ],
314
+ "applyOnNestedContent": true
315
+ },
316
+ {
317
+ "ruleType": "ContentModifier",
318
+ "class": {
319
+ "schemaName": "BisCore",
320
+ "className": "Element"
321
+ },
322
+ "relatedProperties": [
323
+ {
324
+ "propertiesSource": {
325
+ "relationship": {
326
+ "schemaName": "BisCore",
327
+ "className": "ElementHasLinks"
328
+ },
329
+ "direction": "Forward"
330
+ },
331
+ "handleTargetClassPolymorphically": true,
332
+ "relationshipMeaning": "RelatedInstance",
333
+ "skipIfDuplicate": true
334
+ },
335
+ {
336
+ "propertiesSource": {
337
+ "relationship": {
338
+ "schemaName": "BisCore",
339
+ "className": "ElementGroupsMembers"
340
+ },
341
+ "targetClass": {
342
+ "schemaName": "BisCore",
343
+ "className": "GroupInformationElement"
344
+ },
345
+ "direction": "Backward"
346
+ },
347
+ "handleTargetClassPolymorphically": true,
348
+ "relationshipMeaning": "RelatedInstance",
349
+ "nestedRelatedProperties": [
350
+ {
351
+ "propertiesSource": {
352
+ "relationship": {
353
+ "schemaName": "BisCore",
354
+ "className": "ElementHasLinks"
355
+ },
356
+ "direction": "Forward"
357
+ },
358
+ "handleTargetClassPolymorphically": true,
359
+ "autoExpand": true,
360
+ "relationshipMeaning": "RelatedInstance"
361
+ }
362
+ ],
363
+ "skipIfDuplicate": true
364
+ },
365
+ {
366
+ "propertiesSource": [
367
+ {
368
+ "relationship": {
369
+ "schemaName": "BisCore",
370
+ "className": "ModelContainsElements"
371
+ },
372
+ "direction": "Backward"
373
+ },
374
+ {
375
+ "relationship": {
376
+ "schemaName": "BisCore",
377
+ "className": "ModelModelsElement"
378
+ },
379
+ "direction": "Forward"
380
+ },
381
+ {
382
+ "relationship": {
383
+ "schemaName": "BisCore",
384
+ "className": "ElementHasLinks"
385
+ },
386
+ "targetClass": {
387
+ "schemaName": "BisCore",
388
+ "className": "RepositoryLink"
389
+ },
390
+ "direction": "Forward"
391
+ }
392
+ ],
393
+ "properties": [
394
+ {
395
+ "name": "Url",
396
+ "overridesPriority": 1001,
397
+ "labelOverride": "Path",
398
+ "categoryId": "model_source",
399
+ "isDisplayed": true
400
+ },
401
+ {
402
+ "name": "UserLabel",
403
+ "overridesPriority": 1001,
404
+ "labelOverride": "Name",
405
+ "categoryId": "model_source",
406
+ "isDisplayed": true
407
+ }
408
+ ],
409
+ "relationshipMeaning": "SameInstance",
410
+ "skipIfDuplicate": true
411
+ }
412
+ ]
413
+ },
414
+ {
415
+ "ruleType": "ContentModifier",
416
+ "requiredSchemas": [
417
+ {
418
+ "name": "BisCore",
419
+ "minVersion": "1.0.2"
420
+ }
421
+ ],
422
+ "class": {
423
+ "schemaName": "BisCore",
424
+ "className": "Element"
425
+ },
426
+ "relatedProperties": [
427
+ {
428
+ "relationshipMeaning": "SameInstance",
429
+ "propertiesSource": [
430
+ {
431
+ "relationship": {
432
+ "schemaName": "BisCore",
433
+ "className": "ElementOwnsMultiAspects"
434
+ },
435
+ "direction": "Forward",
436
+ "targetClass": {
437
+ "schemaName": "BisCore",
438
+ "className": "ExternalSourceAspect"
439
+ }
440
+ }
441
+ ],
442
+ "instanceFilter": "this.Kind <> \"Relationship\"",
443
+ "properties": [
444
+ {
445
+ "name": "Identifier",
446
+ "overridesPriority": 1001,
447
+ "categoryId": "source_information",
448
+ "labelOverride": "Source Element ID",
449
+ "isDisplayed": true
450
+ }
451
+ ],
452
+ "skipIfDuplicate": true
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "ruleType": "ContentModifier",
458
+ "requiredSchemas": [
459
+ {
460
+ "name": "BisCore",
461
+ "minVersion": "1.0.13"
462
+ }
463
+ ],
464
+ "class": {
465
+ "schemaName": "BisCore",
466
+ "className": "Element"
467
+ },
468
+ "relatedProperties": [
469
+ {
470
+ "relationshipMeaning": "SameInstance",
471
+ "propertiesSource": [
472
+ {
473
+ "relationship": {
474
+ "schemaName": "BisCore",
475
+ "className": "ElementOwnsMultiAspects"
476
+ },
477
+ "direction": "Forward",
478
+ "targetClass": {
479
+ "schemaName": "BisCore",
480
+ "className": "ExternalSourceAspect"
481
+ }
482
+ }
483
+ ],
484
+ "instanceFilter": "this.Kind <> \"Relationship\"",
485
+ "properties": "_none_",
486
+ "autoExpand": true,
487
+ "nestedRelatedProperties": [
488
+ {
489
+ "relationshipMeaning": "SameInstance",
490
+ "autoExpand": true,
491
+ "propertiesSource": [
492
+ {
493
+ "relationship": {
494
+ "schemaName": "BisCore",
495
+ "className": "ElementIsFromSource"
496
+ },
497
+ "direction": "Forward"
498
+ },
499
+ {
500
+ "relationship": {
501
+ "schemaName": "BisCore",
502
+ "className": "ExternalSourceIsInRepository"
503
+ },
504
+ "direction": "Forward"
505
+ }
506
+ ],
507
+ "handleTargetClassPolymorphically": true,
508
+ "properties": [
509
+ {
510
+ "name": "*",
511
+ "categoryId": "document_link"
512
+ },
513
+ {
514
+ "name": "UserLabel",
515
+ "labelOverride": "Name",
516
+ "isDisplayed": true,
517
+ "doNotHideOtherPropertiesOnDisplayOverride": true
518
+ },
519
+ {
520
+ "name": "Url",
521
+ "labelOverride": "Path"
522
+ },
523
+ {
524
+ "name": "Model",
525
+ "isDisplayed": false
526
+ }
527
+ ],
528
+ "skipIfDuplicate": true
529
+ },
530
+ {
531
+ "relationshipMeaning": "SameInstance",
532
+ "autoExpand": true,
533
+ "propertiesSource": [
534
+ {
535
+ "relationship": {
536
+ "schemaName": "BisCore",
537
+ "className": "ElementIsFromSource"
538
+ },
539
+ "direction": "Forward",
540
+ "targetClass": {
541
+ "schemaName": "BisCore",
542
+ "className": "ExternalSourceGroup"
543
+ }
544
+ },
545
+ {
546
+ "relationship": {
547
+ "schemaName": "BisCore",
548
+ "className": "ExternalSourceGroupGroupsSources"
549
+ },
550
+ "direction": "Forward"
551
+ },
552
+ {
553
+ "relationship": {
554
+ "schemaName": "BisCore",
555
+ "className": "ExternalSourceIsInRepository"
556
+ },
557
+ "direction": "Forward"
558
+ }
559
+ ],
560
+ "properties": [
561
+ {
562
+ "name": "UserLabel",
563
+ "categoryId": "secondary_sources",
564
+ "labelOverride": "Name",
565
+ "isDisplayed": true
566
+ },
567
+ {
568
+ "name": "Url",
569
+ "categoryId": "secondary_sources",
570
+ "labelOverride": "Path"
571
+ }
572
+ ],
573
+ "skipIfDuplicate": true
574
+ }
575
+ ],
576
+ "skipIfDuplicate": true
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "ruleType": "ContentModifier",
582
+ "class": {
583
+ "schemaName": "BisCore",
584
+ "className": "GeometricElement3d"
585
+ },
586
+ "relatedProperties": [
587
+ {
588
+ "propertiesSource": {
589
+ "relationship": {
590
+ "schemaName": "BisCore",
591
+ "className": "GeometricElement3dHasTypeDefinition"
592
+ },
593
+ "direction": "Forward"
594
+ },
595
+ "handleTargetClassPolymorphically": true,
596
+ "relationshipMeaning": "RelatedInstance",
597
+ "skipIfDuplicate": true
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "ruleType": "ContentModifier",
603
+ "class": {
604
+ "schemaName": "BisCore",
605
+ "className": "GeometricElement2d"
606
+ },
607
+ "relatedProperties": [
608
+ {
609
+ "propertiesSource": {
610
+ "relationship": {
611
+ "schemaName": "BisCore",
612
+ "className": "GeometricElement2dHasTypeDefinition"
613
+ },
614
+ "direction": "Forward"
615
+ },
616
+ "handleTargetClassPolymorphically": true,
617
+ "relationshipMeaning": "RelatedInstance",
618
+ "skipIfDuplicate": true
619
+ }
620
+ ]
621
+ },
622
+ {
623
+ "ruleType": "ContentModifier",
624
+ "class": {
625
+ "schemaName": "BisCore",
626
+ "className": "DrawingGraphic"
627
+ },
628
+ "relatedProperties": [
629
+ {
630
+ "propertiesSource": {
631
+ "relationship": {
632
+ "schemaName": "BisCore",
633
+ "className": "DrawingGraphicRepresentsElement"
634
+ },
635
+ "direction": "Forward"
636
+ },
637
+ "handleTargetClassPolymorphically": true,
638
+ "relationshipMeaning": "RelatedInstance",
639
+ "skipIfDuplicate": true
640
+ }
641
+ ]
642
+ },
643
+ {
644
+ "ruleType": "ContentModifier",
645
+ "class": {
646
+ "schemaName": "BisCore",
647
+ "className": "GraphicalElement3d"
648
+ },
649
+ "relatedProperties": [
650
+ {
651
+ "propertiesSource": {
652
+ "relationship": {
653
+ "schemaName": "BisCore",
654
+ "className": "GraphicalElement3dRepresentsElement"
655
+ },
656
+ "direction": "Forward"
657
+ },
658
+ "handleTargetClassPolymorphically": true,
659
+ "relationshipMeaning": "RelatedInstance",
660
+ "skipIfDuplicate": true
661
+ }
662
+ ]
663
+ },
664
+ {
665
+ "ruleType": "ContentModifier",
666
+ "class": {
667
+ "schemaName": "BisCore",
668
+ "className": "TypeDefinitionElement"
669
+ },
670
+ "propertyOverrides": [
671
+ {
672
+ "name": "IsPrivate",
673
+ "isDisplayed": false
674
+ },
675
+ {
676
+ "name": "Recipe",
677
+ "isDisplayed": false
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "ruleType": "ContentModifier",
683
+ "requiredSchemas": [
684
+ {
685
+ "name": "BisCore",
686
+ "minVersion": "1.0.11"
687
+ }
688
+ ],
689
+ "class": {
690
+ "schemaName": "BisCore",
691
+ "className": "PhysicalType"
692
+ },
693
+ "propertyOverrides": [
694
+ {
695
+ "name": "PhysicalMaterial",
696
+ "labelOverride": "Physical Material"
697
+ }
698
+ ]
699
+ }
700
+ ]
701
+ }