@itwin/presentation-backend 4.3.0-dev.8 → 4.4.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/lib/cjs/presentation-backend/NativePlatform.d.ts +3 -2
  3. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  4. package/lib/cjs/presentation-backend/NativePlatform.js +5 -3
  5. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  6. package/lib/cjs/presentation-backend/PresentationManager.d.ts +7 -9
  7. package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
  8. package/lib/cjs/presentation-backend/PresentationManager.js +3 -3
  9. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  10. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
  11. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +18 -16
  12. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  13. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts.map +1 -1
  14. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  15. package/lib/cjs/presentation-backend/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -0
  16. package/lib/cjs/presentation-backend/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +701 -0
  17. package/lib/cjs/presentation-backend/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -0
  18. package/package.json +16 -17
  19. package/lib/cjs/assets/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +0 -14
  20. package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +0 -701
  21. package/lib/cjs/assets/supplemental-presentation-rules/Functional.PresentationRuleSet.json +0 -139
  22. package/lib/cjs/presentation-backend/Constants.d.ts +0 -9
  23. package/lib/cjs/presentation-backend/Constants.d.ts.map +0 -1
  24. package/lib/cjs/presentation-backend/Constants.js +0 -41
  25. package/lib/cjs/presentation-backend/Constants.js.map +0 -1
@@ -1,701 +0,0 @@
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
- }