@itwin/rpcinterface-full-stack-tests 4.5.0-dev.32 → 4.5.0-dev.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +205 -28
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\161\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -145086,7 +145086,7 @@ function trsMatrix(translation, rotation, scale, result) {
|
|
|
145086
145086
|
const rotTf = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createRefs(undefined, rotation ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createFromQuaternion(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point4d.create(rotation[0], rotation[1], rotation[2], rotation[3])) : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.identity);
|
|
145087
145087
|
rotTf.matrix.transposeInPlace(); // See comment on Matrix3d.createFromQuaternion
|
|
145088
145088
|
const transTf = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createTranslation(translation ? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(translation[0], translation[1], translation[2]) : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.createZero());
|
|
145089
|
-
const tf =
|
|
145089
|
+
const tf = rotTf.multiplyTransformTransform(scaleTf, result);
|
|
145090
145090
|
transTf.multiplyTransformTransform(tf, tf);
|
|
145091
145091
|
return tf;
|
|
145092
145092
|
}
|
|
@@ -289593,7 +289593,7 @@ class TestContext {
|
|
|
289593
289593
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
289594
289594
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
289595
289595
|
await core_frontend_1.NoRenderApp.startup({
|
|
289596
|
-
applicationVersion: "4.5.0-dev.
|
|
289596
|
+
applicationVersion: "4.5.0-dev.35",
|
|
289597
289597
|
applicationId: this.settings.gprid,
|
|
289598
289598
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
289599
289599
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -289620,6 +289620,7 @@ exports.TestContext = TestContext;
|
|
|
289620
289620
|
"use strict";
|
|
289621
289621
|
__webpack_require__.r(__webpack_exports__);
|
|
289622
289622
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
289623
|
+
/* harmony export */ "ArrayPropertiesField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.ArrayPropertiesField),
|
|
289623
289624
|
/* harmony export */ "AsyncTasksTracker": () => (/* reexport safe */ _presentation_common_AsyncTasks__WEBPACK_IMPORTED_MODULE_0__.AsyncTasksTracker),
|
|
289624
289625
|
/* harmony export */ "CategoryDescription": () => (/* reexport safe */ _presentation_common_content_Category__WEBPACK_IMPORTED_MODULE_20__.CategoryDescription),
|
|
289625
289626
|
/* harmony export */ "ChildNodeSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_38__.ChildNodeSpecificationTypes),
|
|
@@ -289686,6 +289687,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289686
289687
|
/* harmony export */ "SelectClassInfo": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.SelectClassInfo),
|
|
289687
289688
|
/* harmony export */ "SortDirection": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.SortDirection),
|
|
289688
289689
|
/* harmony export */ "StandardNodeTypes": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_34__.StandardNodeTypes),
|
|
289690
|
+
/* harmony export */ "StructPropertiesField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.StructPropertiesField),
|
|
289689
289691
|
/* harmony export */ "UPDATE_FULL": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.UPDATE_FULL),
|
|
289690
289692
|
/* harmony export */ "Value": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__.Value),
|
|
289691
289693
|
/* harmony export */ "VariableValueType": () => (/* reexport safe */ _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_76__.VariableValueType),
|
|
@@ -291377,11 +291379,28 @@ class LocalizationHelper {
|
|
|
291377
291379
|
displayValues: Object.entries(item.displayValues).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedDisplayValue(v) }), {}),
|
|
291378
291380
|
}));
|
|
291379
291381
|
}
|
|
291382
|
+
if (_content_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isArray(value)) {
|
|
291383
|
+
return value.map((v) => this.getLocalizedRawValue(v));
|
|
291384
|
+
}
|
|
291385
|
+
if (_content_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isMap(value)) {
|
|
291386
|
+
return Object.entries(value).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedRawValue(v) }), {});
|
|
291387
|
+
}
|
|
291380
291388
|
return value;
|
|
291381
291389
|
}
|
|
291382
291390
|
// warning: this function mutates the field
|
|
291383
291391
|
getLocalizedContentField(field) {
|
|
291384
291392
|
field.label = this.getLocalizedString(field.label);
|
|
291393
|
+
if (field.isPropertiesField()) {
|
|
291394
|
+
if (field.isStructPropertiesField()) {
|
|
291395
|
+
field.memberFields = field.memberFields.map((m) => this.getLocalizedContentField(m));
|
|
291396
|
+
}
|
|
291397
|
+
else if (field.isArrayPropertiesField()) {
|
|
291398
|
+
field.itemsField = this.getLocalizedContentField(field.itemsField);
|
|
291399
|
+
}
|
|
291400
|
+
}
|
|
291401
|
+
else if (field.isNestedContentField()) {
|
|
291402
|
+
field.nestedFields = field.nestedFields.map((m) => this.getLocalizedContentField(m));
|
|
291403
|
+
}
|
|
291385
291404
|
return field;
|
|
291386
291405
|
}
|
|
291387
291406
|
// warning: this function mutates the category
|
|
@@ -291404,7 +291423,7 @@ class LocalizationHelper {
|
|
|
291404
291423
|
if (typeof value === "string") {
|
|
291405
291424
|
return this.getLocalizedString(value);
|
|
291406
291425
|
}
|
|
291407
|
-
if (
|
|
291426
|
+
if (_content_Value__WEBPACK_IMPORTED_MODULE_2__.DisplayValue.isArray(value)) {
|
|
291408
291427
|
return value.map((v) => this.getLocalizedDisplayValue(v));
|
|
291409
291428
|
}
|
|
291410
291429
|
return Object.entries(value).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedDisplayValue(v) }), {});
|
|
@@ -291574,7 +291593,7 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
|
|
|
291574
291593
|
/** The immutable name of the interface. */
|
|
291575
291594
|
PresentationRpcInterface.interfaceName = "PresentationRpcInterface"; // eslint-disable-line @typescript-eslint/naming-convention
|
|
291576
291595
|
/** The semantic version of the interface. */
|
|
291577
|
-
PresentationRpcInterface.interfaceVersion = "4.
|
|
291596
|
+
PresentationRpcInterface.interfaceVersion = "4.1.0";
|
|
291578
291597
|
__decorate([
|
|
291579
291598
|
_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RpcOperation.setPolicy({ allowResponseCompression: true })
|
|
291580
291599
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -293312,11 +293331,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293312
293331
|
"use strict";
|
|
293313
293332
|
__webpack_require__.r(__webpack_exports__);
|
|
293314
293333
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
293334
|
+
/* harmony export */ "ArrayPropertiesField": () => (/* binding */ ArrayPropertiesField),
|
|
293315
293335
|
/* harmony export */ "Field": () => (/* binding */ Field),
|
|
293316
293336
|
/* harmony export */ "FieldDescriptor": () => (/* binding */ FieldDescriptor),
|
|
293317
293337
|
/* harmony export */ "FieldDescriptorType": () => (/* binding */ FieldDescriptorType),
|
|
293318
293338
|
/* harmony export */ "NestedContentField": () => (/* binding */ NestedContentField),
|
|
293319
293339
|
/* harmony export */ "PropertiesField": () => (/* binding */ PropertiesField),
|
|
293340
|
+
/* harmony export */ "StructPropertiesField": () => (/* binding */ StructPropertiesField),
|
|
293320
293341
|
/* harmony export */ "getFieldByDescriptor": () => (/* binding */ getFieldByDescriptor),
|
|
293321
293342
|
/* harmony export */ "getFieldByName": () => (/* binding */ getFieldByName)
|
|
293322
293343
|
/* harmony export */ });
|
|
@@ -293337,14 +293358,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
293337
293358
|
|
|
293338
293359
|
|
|
293339
293360
|
|
|
293340
|
-
|
|
293341
|
-
const isPropertiesField = (field) => {
|
|
293361
|
+
function isPropertiesField(field) {
|
|
293342
293362
|
return !!field.properties;
|
|
293343
|
-
}
|
|
293344
|
-
|
|
293345
|
-
|
|
293363
|
+
}
|
|
293364
|
+
function isArrayPropertiesField(field) {
|
|
293365
|
+
return !!field.itemsField;
|
|
293366
|
+
}
|
|
293367
|
+
function isStructPropertiesField(field) {
|
|
293368
|
+
return !!field.memberFields;
|
|
293369
|
+
}
|
|
293370
|
+
function isNestedContentField(field) {
|
|
293346
293371
|
return !!field.nestedFields;
|
|
293347
|
-
}
|
|
293372
|
+
}
|
|
293348
293373
|
/**
|
|
293349
293374
|
* Describes a single content field. A field is usually represented as a grid column
|
|
293350
293375
|
* or a property pane row.
|
|
@@ -293410,23 +293435,7 @@ class Field {
|
|
|
293410
293435
|
};
|
|
293411
293436
|
}
|
|
293412
293437
|
/** Serialize this object to compressed JSON */
|
|
293413
|
-
toCompressedJSON(
|
|
293414
|
-
if (this.isPropertiesField()) {
|
|
293415
|
-
return {
|
|
293416
|
-
...this.toJSON(),
|
|
293417
|
-
properties: this.properties.map((property) => _Property__WEBPACK_IMPORTED_MODULE_4__.Property.toCompressedJSON(property, classesMap)),
|
|
293418
|
-
};
|
|
293419
|
-
}
|
|
293420
|
-
if (this.isNestedContentField()) {
|
|
293421
|
-
const { id, ...leftOverInfo } = this.contentClassInfo;
|
|
293422
|
-
classesMap[id] = leftOverInfo;
|
|
293423
|
-
return {
|
|
293424
|
-
...this.toJSON(),
|
|
293425
|
-
contentClassInfo: id,
|
|
293426
|
-
pathToPrimaryClass: this.pathToPrimaryClass.map((classInfo) => _EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.toCompressedJSON(classInfo, classesMap)),
|
|
293427
|
-
nestedFields: this.nestedFields.map((field) => field.toCompressedJSON(classesMap)),
|
|
293428
|
-
};
|
|
293429
|
-
}
|
|
293438
|
+
toCompressedJSON(_classesMap) {
|
|
293430
293439
|
return this.toJSON();
|
|
293431
293440
|
}
|
|
293432
293441
|
/** Deserialize [[Field]] from JSON */
|
|
@@ -293519,6 +293528,14 @@ class PropertiesField extends Field {
|
|
|
293519
293528
|
super(category, name, label, description, isReadonly, priority, editor, renderer);
|
|
293520
293529
|
this.properties = properties;
|
|
293521
293530
|
}
|
|
293531
|
+
/** Is this a an array property field */
|
|
293532
|
+
isArrayPropertiesField() {
|
|
293533
|
+
return false;
|
|
293534
|
+
}
|
|
293535
|
+
/** Is this a an struct property field */
|
|
293536
|
+
isStructPropertiesField() {
|
|
293537
|
+
return false;
|
|
293538
|
+
}
|
|
293522
293539
|
clone() {
|
|
293523
293540
|
const clone = new PropertiesField(this.category, this.name, this.label, this.type, this.isReadonly, this.priority, this.properties, this.editor, this.renderer);
|
|
293524
293541
|
clone.rebuildParentship(this.parent);
|
|
@@ -293531,11 +293548,24 @@ class PropertiesField extends Field {
|
|
|
293531
293548
|
properties: this.properties,
|
|
293532
293549
|
};
|
|
293533
293550
|
}
|
|
293551
|
+
/** Serialize this object to compressed JSON */
|
|
293552
|
+
toCompressedJSON(classesMap) {
|
|
293553
|
+
return {
|
|
293554
|
+
...super.toCompressedJSON(classesMap),
|
|
293555
|
+
properties: this.properties.map((property) => _Property__WEBPACK_IMPORTED_MODULE_4__.Property.toCompressedJSON(property, classesMap)),
|
|
293556
|
+
};
|
|
293557
|
+
}
|
|
293534
293558
|
/** Deserialize [[PropertiesField]] from JSON */
|
|
293535
293559
|
static fromJSON(json, categories) {
|
|
293536
293560
|
if (!json) {
|
|
293537
293561
|
return undefined;
|
|
293538
293562
|
}
|
|
293563
|
+
if (isArrayPropertiesField(json)) {
|
|
293564
|
+
return ArrayPropertiesField.fromJSON(json, categories);
|
|
293565
|
+
}
|
|
293566
|
+
if (isStructPropertiesField(json)) {
|
|
293567
|
+
return StructPropertiesField.fromJSON(json, categories);
|
|
293568
|
+
}
|
|
293539
293569
|
const field = Object.create(PropertiesField.prototype);
|
|
293540
293570
|
return Object.assign(field, json, {
|
|
293541
293571
|
category: this.getCategoryFromFieldJson(json, categories),
|
|
@@ -293546,6 +293576,12 @@ class PropertiesField extends Field {
|
|
|
293546
293576
|
* @public
|
|
293547
293577
|
*/
|
|
293548
293578
|
static fromCompressedJSON(json, classesMap, categories) {
|
|
293579
|
+
if (isArrayPropertiesField(json)) {
|
|
293580
|
+
return ArrayPropertiesField.fromCompressedJSON(json, classesMap, categories);
|
|
293581
|
+
}
|
|
293582
|
+
if (isStructPropertiesField(json)) {
|
|
293583
|
+
return StructPropertiesField.fromCompressedJSON(json, classesMap, categories);
|
|
293584
|
+
}
|
|
293549
293585
|
const field = Object.create(PropertiesField.prototype);
|
|
293550
293586
|
return Object.assign(field, json, {
|
|
293551
293587
|
category: this.getCategoryFromFieldJson(json, categories),
|
|
@@ -293604,6 +293640,110 @@ class PropertiesField extends Field {
|
|
|
293604
293640
|
return true;
|
|
293605
293641
|
}
|
|
293606
293642
|
}
|
|
293643
|
+
/**
|
|
293644
|
+
* Describes a content field that's based on one or more similar EC array properties.
|
|
293645
|
+
* @public
|
|
293646
|
+
*/
|
|
293647
|
+
class ArrayPropertiesField extends PropertiesField {
|
|
293648
|
+
constructor(category, name, label, description, itemsField, isReadonly, priority, properties, editor, renderer) {
|
|
293649
|
+
super(category, name, label, description, isReadonly, priority, properties, editor, renderer);
|
|
293650
|
+
this.itemsField = itemsField;
|
|
293651
|
+
}
|
|
293652
|
+
isArrayPropertiesField() {
|
|
293653
|
+
return true;
|
|
293654
|
+
}
|
|
293655
|
+
clone() {
|
|
293656
|
+
const clone = new ArrayPropertiesField(this.category, this.name, this.label, this.type, this.itemsField.clone(), this.isReadonly, this.priority, this.properties, this.editor, this.renderer);
|
|
293657
|
+
clone.rebuildParentship(this.parent);
|
|
293658
|
+
return clone;
|
|
293659
|
+
}
|
|
293660
|
+
/** Serialize this object to JSON */
|
|
293661
|
+
toJSON() {
|
|
293662
|
+
return {
|
|
293663
|
+
...super.toJSON(),
|
|
293664
|
+
itemsField: this.itemsField.toJSON(),
|
|
293665
|
+
};
|
|
293666
|
+
}
|
|
293667
|
+
/** Serialize this object to compressed JSON */
|
|
293668
|
+
toCompressedJSON(classesMap) {
|
|
293669
|
+
return {
|
|
293670
|
+
...super.toCompressedJSON(classesMap),
|
|
293671
|
+
itemsField: this.itemsField.toCompressedJSON(classesMap),
|
|
293672
|
+
};
|
|
293673
|
+
}
|
|
293674
|
+
/** Deserialize [[ArrayPropertiesField]] from JSON */
|
|
293675
|
+
static fromJSON(json, categories) {
|
|
293676
|
+
const field = Object.create(ArrayPropertiesField.prototype);
|
|
293677
|
+
return Object.assign(field, json, {
|
|
293678
|
+
category: this.getCategoryFromFieldJson(json, categories),
|
|
293679
|
+
itemsField: PropertiesField.fromJSON(json.itemsField, categories),
|
|
293680
|
+
});
|
|
293681
|
+
}
|
|
293682
|
+
/**
|
|
293683
|
+
* Deserialize an [[ArrayPropertiesField]] from compressed JSON.
|
|
293684
|
+
* @public
|
|
293685
|
+
*/
|
|
293686
|
+
static fromCompressedJSON(json, classesMap, categories) {
|
|
293687
|
+
const field = Object.create(ArrayPropertiesField.prototype);
|
|
293688
|
+
return Object.assign(field, json, {
|
|
293689
|
+
category: this.getCategoryFromFieldJson(json, categories),
|
|
293690
|
+
properties: json.properties.map((propertyJson) => fromCompressedPropertyJSON(propertyJson, classesMap)),
|
|
293691
|
+
itemsField: PropertiesField.fromCompressedJSON(json.itemsField, classesMap, categories),
|
|
293692
|
+
});
|
|
293693
|
+
}
|
|
293694
|
+
}
|
|
293695
|
+
/**
|
|
293696
|
+
* Describes a content field that's based on one or more similar EC struct properties.
|
|
293697
|
+
* @public
|
|
293698
|
+
*/
|
|
293699
|
+
class StructPropertiesField extends PropertiesField {
|
|
293700
|
+
constructor(category, name, label, description, memberFields, isReadonly, priority, properties, editor, renderer) {
|
|
293701
|
+
super(category, name, label, description, isReadonly, priority, properties, editor, renderer);
|
|
293702
|
+
this.memberFields = memberFields;
|
|
293703
|
+
}
|
|
293704
|
+
isStructPropertiesField() {
|
|
293705
|
+
return true;
|
|
293706
|
+
}
|
|
293707
|
+
clone() {
|
|
293708
|
+
const clone = new StructPropertiesField(this.category, this.name, this.label, this.type, this.memberFields.map((m) => m.clone()), this.isReadonly, this.priority, this.properties, this.editor, this.renderer);
|
|
293709
|
+
clone.rebuildParentship(this.parent);
|
|
293710
|
+
return clone;
|
|
293711
|
+
}
|
|
293712
|
+
/** Serialize this object to JSON */
|
|
293713
|
+
toJSON() {
|
|
293714
|
+
return {
|
|
293715
|
+
...super.toJSON(),
|
|
293716
|
+
memberFields: this.memberFields.map((m) => m.toJSON()),
|
|
293717
|
+
};
|
|
293718
|
+
}
|
|
293719
|
+
/** Serialize this object to compressed JSON */
|
|
293720
|
+
toCompressedJSON(classesMap) {
|
|
293721
|
+
return {
|
|
293722
|
+
...super.toCompressedJSON(classesMap),
|
|
293723
|
+
memberFields: this.memberFields.map((m) => m.toCompressedJSON(classesMap)),
|
|
293724
|
+
};
|
|
293725
|
+
}
|
|
293726
|
+
/** Deserialize [[StructPropertiesField]] from JSON */
|
|
293727
|
+
static fromJSON(json, categories) {
|
|
293728
|
+
const field = Object.create(StructPropertiesField.prototype);
|
|
293729
|
+
return Object.assign(field, json, {
|
|
293730
|
+
category: this.getCategoryFromFieldJson(json, categories),
|
|
293731
|
+
memberFields: json.memberFields.map((m) => PropertiesField.fromJSON(m, categories)),
|
|
293732
|
+
});
|
|
293733
|
+
}
|
|
293734
|
+
/**
|
|
293735
|
+
* Deserialize a [[StructPropertiesField]] from compressed JSON.
|
|
293736
|
+
* @public
|
|
293737
|
+
*/
|
|
293738
|
+
static fromCompressedJSON(json, classesMap, categories) {
|
|
293739
|
+
const field = Object.create(StructPropertiesField.prototype);
|
|
293740
|
+
return Object.assign(field, json, {
|
|
293741
|
+
category: this.getCategoryFromFieldJson(json, categories),
|
|
293742
|
+
properties: json.properties.map((propertyJson) => fromCompressedPropertyJSON(propertyJson, classesMap)),
|
|
293743
|
+
memberFields: json.memberFields.map((m) => PropertiesField.fromCompressedJSON(m, classesMap, categories)),
|
|
293744
|
+
});
|
|
293745
|
+
}
|
|
293746
|
+
}
|
|
293607
293747
|
/**
|
|
293608
293748
|
* Describes a content field that contains [Nested content]($docs/presentation/content/Terminology#nested-content).
|
|
293609
293749
|
*
|
|
@@ -293662,6 +293802,17 @@ class NestedContentField extends Field {
|
|
|
293662
293802
|
autoExpand: this.autoExpand,
|
|
293663
293803
|
};
|
|
293664
293804
|
}
|
|
293805
|
+
/** Serialize this object to compressed JSON */
|
|
293806
|
+
toCompressedJSON(classesMap) {
|
|
293807
|
+
const { id, ...leftOverInfo } = this.contentClassInfo;
|
|
293808
|
+
classesMap[id] = leftOverInfo;
|
|
293809
|
+
return {
|
|
293810
|
+
...super.toCompressedJSON(classesMap),
|
|
293811
|
+
contentClassInfo: id,
|
|
293812
|
+
pathToPrimaryClass: this.pathToPrimaryClass.map((classInfo) => _EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.toCompressedJSON(classInfo, classesMap)),
|
|
293813
|
+
nestedFields: this.nestedFields.map((field) => field.toCompressedJSON(classesMap)),
|
|
293814
|
+
};
|
|
293815
|
+
}
|
|
293665
293816
|
/**
|
|
293666
293817
|
* Deserialize [[NestedContentField]] from JSON
|
|
293667
293818
|
* @deprecated in 3.x. Use [[NestedContentField.fromCompressedJSON]]
|
|
@@ -294022,6 +294173,11 @@ class ContentFormatter {
|
|
|
294022
294173
|
await this.formatNestedContentDisplayValues(value, field.nestedFields);
|
|
294023
294174
|
continue;
|
|
294024
294175
|
}
|
|
294176
|
+
// format property items
|
|
294177
|
+
if (field.isPropertiesField()) {
|
|
294178
|
+
displayValues[field.name] = await this.formatPropertyValue(value, field);
|
|
294179
|
+
continue;
|
|
294180
|
+
}
|
|
294025
294181
|
displayValues[field.name] = await this._propertyValueFormatter.formatPropertyValue(field, value, this._unitSystem);
|
|
294026
294182
|
}
|
|
294027
294183
|
}
|
|
@@ -294030,6 +294186,27 @@ class ContentFormatter {
|
|
|
294030
294186
|
await this.formatValues(nestedValue.values, nestedValue.displayValues, fields, nestedValue.mergedFieldNames);
|
|
294031
294187
|
}
|
|
294032
294188
|
}
|
|
294189
|
+
async formatPropertyValue(value, field) {
|
|
294190
|
+
if (field.isArrayPropertiesField()) {
|
|
294191
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_3__.Value.isArray(value));
|
|
294192
|
+
return this.formatArrayItems(value, field);
|
|
294193
|
+
}
|
|
294194
|
+
if (field.isStructPropertiesField()) {
|
|
294195
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_3__.Value.isMap(value));
|
|
294196
|
+
return this.formatStructMembers(value, field);
|
|
294197
|
+
}
|
|
294198
|
+
return this._propertyValueFormatter.formatPropertyValue(field, value, this._unitSystem);
|
|
294199
|
+
}
|
|
294200
|
+
async formatArrayItems(itemValues, field) {
|
|
294201
|
+
return Promise.all(itemValues.map(async (value) => this.formatPropertyValue(value, field.itemsField)));
|
|
294202
|
+
}
|
|
294203
|
+
async formatStructMembers(memberValues, field) {
|
|
294204
|
+
const displayValues = {};
|
|
294205
|
+
await Promise.all(field.memberFields.map(async (memberField) => {
|
|
294206
|
+
displayValues[memberField.name] = await this.formatPropertyValue(memberValues[memberField.name], memberField);
|
|
294207
|
+
}));
|
|
294208
|
+
return displayValues;
|
|
294209
|
+
}
|
|
294033
294210
|
}
|
|
294034
294211
|
/** @alpha */
|
|
294035
294212
|
class ContentPropertyValueFormatter {
|
|
@@ -309112,7 +309289,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
309112
309289
|
/***/ ((module) => {
|
|
309113
309290
|
|
|
309114
309291
|
"use strict";
|
|
309115
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.
|
|
309292
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.35","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.5.0-dev.35","@itwin/core-bentley":"workspace:^4.5.0-dev.35","@itwin/core-common":"workspace:^4.5.0-dev.35","@itwin/core-geometry":"workspace:^4.5.0-dev.35","@itwin/core-orbitgt":"workspace:^4.5.0-dev.35","@itwin/core-quantity":"workspace:^4.5.0-dev.35"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
309116
309293
|
|
|
309117
309294
|
/***/ }),
|
|
309118
309295
|
|