@itwin/rpcinterface-full-stack-tests 4.4.0-dev.26 → 4.4.0-dev.28
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/bundled-tests.js +164 -89
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -72770,6 +72770,18 @@ class RelationshipClass extends Class_1.ECClass {
|
|
|
72770
72770
|
setStrengthDirection(direction) {
|
|
72771
72771
|
this._strengthDirection = direction;
|
|
72772
72772
|
}
|
|
72773
|
+
/**
|
|
72774
|
+
* @alpha Used for schema editing.
|
|
72775
|
+
*/
|
|
72776
|
+
setSourceConstraint(source) {
|
|
72777
|
+
this._source = source;
|
|
72778
|
+
}
|
|
72779
|
+
/**
|
|
72780
|
+
* @alpha Used for schema editing.
|
|
72781
|
+
*/
|
|
72782
|
+
setTargetConstraint(target) {
|
|
72783
|
+
this._target = target;
|
|
72784
|
+
}
|
|
72773
72785
|
/**
|
|
72774
72786
|
* Save this RelationshipClass's properties to an object for serializing to JSON.
|
|
72775
72787
|
* @param standalone Serialization includes only this object (as opposed to the full schema).
|
|
@@ -72823,12 +72835,24 @@ class RelationshipConstraint {
|
|
|
72823
72835
|
this._relationshipClass = relClass;
|
|
72824
72836
|
this._roleLabel = roleLabel;
|
|
72825
72837
|
}
|
|
72826
|
-
get multiplicity() { return this._multiplicity; }
|
|
72827
|
-
|
|
72838
|
+
get multiplicity() { return this._multiplicity ?? RelationshipMultiplicity.zeroOne; }
|
|
72839
|
+
set multiplicity(multiplicity) {
|
|
72840
|
+
this._multiplicity = multiplicity;
|
|
72841
|
+
}
|
|
72842
|
+
get polymorphic() { return this._polymorphic ?? false; }
|
|
72843
|
+
set polymorphic(polymorphic) {
|
|
72844
|
+
this._polymorphic = polymorphic;
|
|
72845
|
+
}
|
|
72828
72846
|
get roleLabel() { return this._roleLabel; }
|
|
72847
|
+
set roleLabel(roleLabel) {
|
|
72848
|
+
this._roleLabel = roleLabel;
|
|
72849
|
+
}
|
|
72829
72850
|
get constraintClasses() { return this._constraintClasses; }
|
|
72830
72851
|
get relationshipClass() { return this._relationshipClass; }
|
|
72831
72852
|
get relationshipEnd() { return this._relationshipEnd; }
|
|
72853
|
+
set relationshipEnd(relationshipEnd) {
|
|
72854
|
+
this._relationshipEnd = relationshipEnd;
|
|
72855
|
+
}
|
|
72832
72856
|
get customAttributes() { return this._customAttributes; }
|
|
72833
72857
|
/** Returns the constraint name, ie. 'RelationshipName.Source/Target' */
|
|
72834
72858
|
get fullName() { return `${this._relationshipClass.name}:${this.isSource ? "Source" : "Target"}`; }
|
|
@@ -72860,6 +72884,19 @@ class RelationshipConstraint {
|
|
|
72860
72884
|
// TODO: Handle relationship constraints
|
|
72861
72885
|
this._constraintClasses.push(new DelayedPromise_1.DelayedPromiseWithProps(constraint.key, async () => constraint));
|
|
72862
72886
|
}
|
|
72887
|
+
/**
|
|
72888
|
+
* Removes the provided class as a constraint class from this constraint.
|
|
72889
|
+
* @param constraint The class to add as a constraint class.
|
|
72890
|
+
*/
|
|
72891
|
+
removeClass(constraint) {
|
|
72892
|
+
if (undefined === this._constraintClasses)
|
|
72893
|
+
return;
|
|
72894
|
+
this._constraintClasses.forEach((item, index) => {
|
|
72895
|
+
const constraintName = item.fullName;
|
|
72896
|
+
if (constraintName === constraint.fullName)
|
|
72897
|
+
this._constraintClasses?.splice(index, 1);
|
|
72898
|
+
});
|
|
72899
|
+
}
|
|
72863
72900
|
/**
|
|
72864
72901
|
* Save this RelationshipConstraint's properties to an object for serializing to JSON.
|
|
72865
72902
|
*/
|
|
@@ -82291,6 +82328,16 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
82291
82328
|
func(model);
|
|
82292
82329
|
}
|
|
82293
82330
|
}
|
|
82331
|
+
*getRealityModels() {
|
|
82332
|
+
for (const model of this.settings.contextRealityModels.models) {
|
|
82333
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(model instanceof _ContextRealityModelState__WEBPACK_IMPORTED_MODULE_5__.ContextRealityModelState);
|
|
82334
|
+
yield model;
|
|
82335
|
+
}
|
|
82336
|
+
}
|
|
82337
|
+
/** Iterate over the reality models attached to this display style. */
|
|
82338
|
+
get realityModels() {
|
|
82339
|
+
return this.getRealityModels();
|
|
82340
|
+
}
|
|
82294
82341
|
/** @internal */
|
|
82295
82342
|
forEachRealityTileTreeRef(func) {
|
|
82296
82343
|
this.forEachRealityModel((model) => func(model.treeRef));
|
|
@@ -143278,9 +143325,9 @@ class BatchedTileIdMap {
|
|
|
143278
143325
|
}
|
|
143279
143326
|
return entry.id;
|
|
143280
143327
|
}
|
|
143281
|
-
|
|
143282
|
-
|
|
143283
|
-
return
|
|
143328
|
+
getFeatureProperties(id) {
|
|
143329
|
+
const props = this._idMap?.get(id);
|
|
143330
|
+
return typeof props === "object" ? props : undefined;
|
|
143284
143331
|
}
|
|
143285
143332
|
}
|
|
143286
143333
|
|
|
@@ -149711,10 +149758,9 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
149711
149758
|
}
|
|
149712
149759
|
async getToolTip(hit) {
|
|
149713
149760
|
const tree = this.treeOwner.tileTree;
|
|
149714
|
-
if (
|
|
149761
|
+
if (!(tree instanceof _internal__WEBPACK_IMPORTED_MODULE_8__.RealityTileTree) || hit.iModel !== tree.iModel)
|
|
149715
149762
|
return undefined;
|
|
149716
|
-
const
|
|
149717
|
-
const batch = undefined !== map ? map.getBatchProperties(hit.sourceId) : undefined;
|
|
149763
|
+
const batch = tree.batchTableProperties?.getFeatureProperties(hit.sourceId);
|
|
149718
149764
|
if (undefined === batch && tree.modelId !== hit.sourceId)
|
|
149719
149765
|
return undefined;
|
|
149720
149766
|
const strings = [];
|
|
@@ -150716,6 +150762,12 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
150716
150762
|
}
|
|
150717
150763
|
}
|
|
150718
150764
|
}
|
|
150765
|
+
/** The mapping of per-feature JSON properties from this tile tree's batch table, if one is defined.
|
|
150766
|
+
* @beta
|
|
150767
|
+
*/
|
|
150768
|
+
get batchTableProperties() {
|
|
150769
|
+
return this.loader.getBatchIdMap();
|
|
150770
|
+
}
|
|
150719
150771
|
/** @internal */
|
|
150720
150772
|
get rootTile() { return this._rootTile; }
|
|
150721
150773
|
/** @internal */
|
|
@@ -286691,7 +286743,9 @@ class Parser {
|
|
|
286691
286743
|
}
|
|
286692
286744
|
processingNumber = true;
|
|
286693
286745
|
}
|
|
286694
|
-
|
|
286746
|
+
// Decimal separators must be replaced with '.' before converting to a number - parseFloat() only supports '.' as the decimal separator.
|
|
286747
|
+
const charToAdd = charCode === format.decimalSeparator.charCodeAt(0) ? "." : str[i];
|
|
286748
|
+
wipToken = wipToken.concat(charToAdd);
|
|
286695
286749
|
}
|
|
286696
286750
|
else {
|
|
286697
286751
|
if (processingNumber) {
|
|
@@ -288413,7 +288467,7 @@ class TestContext {
|
|
|
288413
288467
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
288414
288468
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
288415
288469
|
await core_frontend_1.NoRenderApp.startup({
|
|
288416
|
-
applicationVersion: "4.4.0-dev.
|
|
288470
|
+
applicationVersion: "4.4.0-dev.28",
|
|
288417
288471
|
applicationId: this.settings.gprid,
|
|
288418
288472
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
288419
288473
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -290037,17 +290091,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290037
290091
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
290038
290092
|
/* harmony export */ "LocalizationHelper": () => (/* binding */ LocalizationHelper)
|
|
290039
290093
|
/* harmony export */ });
|
|
290040
|
-
/* harmony import */ var
|
|
290041
|
-
/* harmony import */ var
|
|
290094
|
+
/* harmony import */ var _content_Content__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./content/Content */ "../../presentation/common/lib/esm/presentation-common/content/Content.js");
|
|
290095
|
+
/* harmony import */ var _content_Descriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./content/Descriptor */ "../../presentation/common/lib/esm/presentation-common/content/Descriptor.js");
|
|
290096
|
+
/* harmony import */ var _content_Value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./content/Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
290097
|
+
/* harmony import */ var _LabelDefinition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LabelDefinition */ "../../presentation/common/lib/esm/presentation-common/LabelDefinition.js");
|
|
290042
290098
|
/*---------------------------------------------------------------------------------------------
|
|
290043
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290044
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
290045
|
-
*--------------------------------------------------------------------------------------------*/
|
|
290099
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290100
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
290101
|
+
*--------------------------------------------------------------------------------------------*/
|
|
290046
290102
|
/** @packageDocumentation
|
|
290047
290103
|
* @module Core
|
|
290048
290104
|
*/
|
|
290049
290105
|
|
|
290050
290106
|
|
|
290107
|
+
|
|
290108
|
+
|
|
290051
290109
|
const KEY_PATTERN = /@[\w\d\-_]+:[\w\d\-\._]+?@/g;
|
|
290052
290110
|
/** @internal */
|
|
290053
290111
|
class LocalizationHelper {
|
|
@@ -290058,102 +290116,117 @@ class LocalizationHelper {
|
|
|
290058
290116
|
return text.replace(KEY_PATTERN, (key) => this._getLocalizedString(key.replace(/^@|@$/g, "")));
|
|
290059
290117
|
}
|
|
290060
290118
|
getLocalizedNodes(nodes) {
|
|
290061
|
-
|
|
290062
|
-
|
|
290063
|
-
|
|
290119
|
+
return nodes.map((n) => this.getLocalizedNode(n));
|
|
290120
|
+
}
|
|
290121
|
+
getLocalizedNodePathElement(npe) {
|
|
290122
|
+
return {
|
|
290123
|
+
...npe,
|
|
290124
|
+
node: this.getLocalizedNode(npe.node),
|
|
290125
|
+
children: npe.children.map((c) => this.getLocalizedNodePathElement(c)),
|
|
290126
|
+
};
|
|
290127
|
+
}
|
|
290128
|
+
getLocalizedDisplayValueGroup(group) {
|
|
290129
|
+
return {
|
|
290130
|
+
...group,
|
|
290131
|
+
displayValue: this.getLocalizedDisplayValue(group.displayValue),
|
|
290132
|
+
};
|
|
290064
290133
|
}
|
|
290065
290134
|
getLocalizedLabelDefinition(labelDefinition) {
|
|
290066
|
-
|
|
290135
|
+
const getLocalizedComposite = (compositeValue) => ({
|
|
290136
|
+
...compositeValue,
|
|
290137
|
+
values: compositeValue.values.map((value) => this.getLocalizedLabelDefinition(value)),
|
|
290138
|
+
});
|
|
290139
|
+
if (labelDefinition.typeName === _LabelDefinition__WEBPACK_IMPORTED_MODULE_3__.LabelDefinition.COMPOSITE_DEFINITION_TYPENAME) {
|
|
290140
|
+
return {
|
|
290141
|
+
...labelDefinition,
|
|
290142
|
+
rawValue: getLocalizedComposite(labelDefinition.rawValue),
|
|
290143
|
+
};
|
|
290144
|
+
}
|
|
290145
|
+
if (labelDefinition.typeName === "string") {
|
|
290146
|
+
return {
|
|
290147
|
+
...labelDefinition,
|
|
290148
|
+
rawValue: this.getLocalizedString(labelDefinition.rawValue),
|
|
290149
|
+
displayValue: this.getLocalizedString(labelDefinition.displayValue),
|
|
290150
|
+
};
|
|
290151
|
+
}
|
|
290067
290152
|
return labelDefinition;
|
|
290068
290153
|
}
|
|
290069
290154
|
getLocalizedLabelDefinitions(labelDefinitions) {
|
|
290070
|
-
labelDefinitions.
|
|
290071
|
-
return labelDefinitions;
|
|
290155
|
+
return labelDefinitions.map((labelDefinition) => this.getLocalizedLabelDefinition(labelDefinition));
|
|
290072
290156
|
}
|
|
290073
290157
|
getLocalizedContentDescriptor(descriptor) {
|
|
290074
|
-
|
|
290075
|
-
|
|
290076
|
-
|
|
290158
|
+
const clone = new _content_Descriptor__WEBPACK_IMPORTED_MODULE_1__.Descriptor(descriptor);
|
|
290159
|
+
clone.fields.forEach((field) => this.getLocalizedContentField(field));
|
|
290160
|
+
clone.categories.forEach((category) => this.getLocalizedCategoryDescription(category));
|
|
290161
|
+
return clone;
|
|
290077
290162
|
}
|
|
290078
290163
|
getLocalizedContentItems(items) {
|
|
290079
|
-
items.
|
|
290080
|
-
return items;
|
|
290164
|
+
return items.map((item) => this.getLocalizedContentItem(item));
|
|
290081
290165
|
}
|
|
290082
290166
|
getLocalizedContent(content) {
|
|
290083
|
-
this.getLocalizedContentDescriptor(content.descriptor);
|
|
290084
|
-
this.getLocalizedContentItems(content.contentSet);
|
|
290085
|
-
return content;
|
|
290167
|
+
return new _content_Content__WEBPACK_IMPORTED_MODULE_0__.Content(this.getLocalizedContentDescriptor(content.descriptor), this.getLocalizedContentItems(content.contentSet));
|
|
290086
290168
|
}
|
|
290087
290169
|
getLocalizedElementProperties(elem) {
|
|
290088
|
-
|
|
290089
|
-
|
|
290090
|
-
|
|
290091
|
-
|
|
290092
|
-
for (const key in item.displayValues) {
|
|
290093
|
-
// istanbul ignore else
|
|
290094
|
-
if (key)
|
|
290095
|
-
item.displayValues[key] = this.translateContentItemDisplayValue(item.displayValues[key]);
|
|
290096
|
-
}
|
|
290097
|
-
for (const key in item.values) {
|
|
290098
|
-
// istanbul ignore else
|
|
290099
|
-
if (key)
|
|
290100
|
-
item.values[key] = this.translateContentItemValue(item.values[key]);
|
|
290101
|
-
}
|
|
290102
|
-
this.translateLabelDefinition(item.label);
|
|
290170
|
+
return {
|
|
290171
|
+
...elem,
|
|
290172
|
+
label: this.getLocalizedString(elem.label),
|
|
290173
|
+
};
|
|
290103
290174
|
}
|
|
290104
|
-
|
|
290105
|
-
|
|
290106
|
-
|
|
290107
|
-
|
|
290108
|
-
}
|
|
290109
|
-
return
|
|
290175
|
+
// warning: this function mutates the item
|
|
290176
|
+
getLocalizedContentItem(item) {
|
|
290177
|
+
item.label = this.getLocalizedLabelDefinition(item.label);
|
|
290178
|
+
item.values = Object.entries(item.values).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedRawValue(v) }), {});
|
|
290179
|
+
item.displayValues = Object.entries(item.displayValues).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedDisplayValue(v) }), {});
|
|
290180
|
+
return item;
|
|
290110
290181
|
}
|
|
290111
|
-
|
|
290182
|
+
getLocalizedRawValue(value) {
|
|
290112
290183
|
if (typeof value === "string") {
|
|
290113
|
-
|
|
290184
|
+
return this.getLocalizedString(value);
|
|
290114
290185
|
}
|
|
290115
|
-
|
|
290116
|
-
|
|
290186
|
+
if (_content_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isNavigationValue(value)) {
|
|
290187
|
+
return {
|
|
290188
|
+
...value,
|
|
290189
|
+
label: this.getLocalizedLabelDefinition(value.label),
|
|
290190
|
+
};
|
|
290117
290191
|
}
|
|
290118
|
-
|
|
290119
|
-
|
|
290120
|
-
|
|
290121
|
-
|
|
290122
|
-
|
|
290123
|
-
|
|
290124
|
-
}
|
|
290125
|
-
for (const key in nestedValue.displayValues) {
|
|
290126
|
-
// istanbul ignore else
|
|
290127
|
-
if (key)
|
|
290128
|
-
nestedValue.displayValues[key] = this.translateContentItemDisplayValue(nestedValue.displayValues[key]);
|
|
290129
|
-
}
|
|
290130
|
-
}
|
|
290192
|
+
if (_content_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isNestedContent(value)) {
|
|
290193
|
+
return value.map((item) => ({
|
|
290194
|
+
...item,
|
|
290195
|
+
values: Object.entries(item.values).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedRawValue(v) }), {}),
|
|
290196
|
+
displayValues: Object.entries(item.displayValues).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedDisplayValue(v) }), {}),
|
|
290197
|
+
}));
|
|
290131
290198
|
}
|
|
290132
290199
|
return value;
|
|
290133
290200
|
}
|
|
290134
|
-
|
|
290201
|
+
// warning: this function mutates the field
|
|
290202
|
+
getLocalizedContentField(field) {
|
|
290135
290203
|
field.label = this.getLocalizedString(field.label);
|
|
290204
|
+
return field;
|
|
290136
290205
|
}
|
|
290137
|
-
|
|
290206
|
+
// warning: this function mutates the category
|
|
290207
|
+
getLocalizedCategoryDescription(category) {
|
|
290138
290208
|
category.label = this.getLocalizedString(category.label);
|
|
290139
290209
|
category.description = this.getLocalizedString(category.description);
|
|
290210
|
+
return category;
|
|
290140
290211
|
}
|
|
290141
|
-
|
|
290142
|
-
|
|
290143
|
-
|
|
290144
|
-
|
|
290145
|
-
node.description
|
|
290146
|
-
}
|
|
290147
|
-
translateLabelDefinition(labelDefinition) {
|
|
290148
|
-
const translateComposite = (compositeValue) => {
|
|
290149
|
-
compositeValue.values.map((value) => this.translateLabelDefinition(value));
|
|
290212
|
+
getLocalizedNode(node) {
|
|
290213
|
+
return {
|
|
290214
|
+
...node,
|
|
290215
|
+
label: this.getLocalizedLabelDefinition(node.label),
|
|
290216
|
+
...(node.description ? { description: this.getLocalizedString(node.description) } : undefined),
|
|
290150
290217
|
};
|
|
290151
|
-
|
|
290152
|
-
|
|
290153
|
-
|
|
290154
|
-
|
|
290155
|
-
|
|
290218
|
+
}
|
|
290219
|
+
getLocalizedDisplayValue(value) {
|
|
290220
|
+
if (typeof value === "undefined") {
|
|
290221
|
+
return undefined;
|
|
290222
|
+
}
|
|
290223
|
+
if (typeof value === "string") {
|
|
290224
|
+
return this.getLocalizedString(value);
|
|
290225
|
+
}
|
|
290226
|
+
if (Array.isArray(value)) {
|
|
290227
|
+
return value.map((v) => this.getLocalizedDisplayValue(v));
|
|
290156
290228
|
}
|
|
290229
|
+
return Object.entries(value).reduce((o, [k, v]) => ({ ...o, [k]: this.getLocalizedDisplayValue(v) }), {});
|
|
290157
290230
|
}
|
|
290158
290231
|
}
|
|
290159
290232
|
|
|
@@ -295299,7 +295372,8 @@ class PresentationManager {
|
|
|
295299
295372
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
295300
295373
|
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
295301
295374
|
const result = await this._requestsHandler.getNodesDescriptor(rpcOptions);
|
|
295302
|
-
|
|
295375
|
+
const descriptor = _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Descriptor.fromJSON(result);
|
|
295376
|
+
return descriptor ? this._localizationHelper.getLocalizedContentDescriptor(descriptor) : undefined;
|
|
295303
295377
|
}
|
|
295304
295378
|
/** Retrieves paths from root nodes to children nodes according to specified keys. Intersecting paths will be merged. */
|
|
295305
295379
|
async getNodePaths(requestOptions) {
|
|
@@ -295308,7 +295382,7 @@ class PresentationManager {
|
|
|
295308
295382
|
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
295309
295383
|
const result = await this._requestsHandler.getNodePaths(rpcOptions);
|
|
295310
295384
|
// eslint-disable-next-line deprecation/deprecation
|
|
295311
|
-
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON);
|
|
295385
|
+
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON).map((npe) => this._localizationHelper.getLocalizedNodePathElement(npe));
|
|
295312
295386
|
}
|
|
295313
295387
|
/** Retrieves paths from root nodes to nodes containing filter text in their label. */
|
|
295314
295388
|
async getFilteredNodePaths(requestOptions) {
|
|
@@ -295316,7 +295390,7 @@ class PresentationManager {
|
|
|
295316
295390
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
295317
295391
|
const result = await this._requestsHandler.getFilteredNodePaths(this.toRpcTokenOptions(options));
|
|
295318
295392
|
// eslint-disable-next-line deprecation/deprecation
|
|
295319
|
-
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON);
|
|
295393
|
+
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON).map((npe) => this._localizationHelper.getLocalizedNodePathElement(npe));
|
|
295320
295394
|
}
|
|
295321
295395
|
/**
|
|
295322
295396
|
* Get information about the sources of content when building it for specific ECClasses. Sources involve classes of the primary select instance,
|
|
@@ -295338,7 +295412,8 @@ class PresentationManager {
|
|
|
295338
295412
|
keys: stripTransientElementKeys(options.keys).toJSON(),
|
|
295339
295413
|
});
|
|
295340
295414
|
const result = await this._requestsHandler.getContentDescriptor(rpcOptions);
|
|
295341
|
-
|
|
295415
|
+
const descriptor = _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Descriptor.fromJSON(result);
|
|
295416
|
+
return descriptor ? this._localizationHelper.getLocalizedContentDescriptor(descriptor) : undefined;
|
|
295342
295417
|
}
|
|
295343
295418
|
/** Retrieves overall content set size. */
|
|
295344
295419
|
async getContentSetSize(requestOptions) {
|
|
@@ -295404,7 +295479,7 @@ class PresentationManager {
|
|
|
295404
295479
|
return {
|
|
295405
295480
|
...result,
|
|
295406
295481
|
// eslint-disable-next-line deprecation/deprecation
|
|
295407
|
-
items: result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.DisplayValueGroup.fromJSON),
|
|
295482
|
+
items: result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.DisplayValueGroup.fromJSON).map((g) => this._localizationHelper.getLocalizedDisplayValueGroup(g)),
|
|
295408
295483
|
};
|
|
295409
295484
|
}
|
|
295410
295485
|
/**
|
|
@@ -307225,7 +307300,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
307225
307300
|
/***/ ((module) => {
|
|
307226
307301
|
|
|
307227
307302
|
"use strict";
|
|
307228
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.
|
|
307303
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.28","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.4.0-dev.28","@itwin/core-bentley":"workspace:^4.4.0-dev.28","@itwin/core-common":"workspace:^4.4.0-dev.28","@itwin/core-geometry":"workspace:^4.4.0-dev.28","@itwin/core-orbitgt":"workspace:^4.4.0-dev.28","@itwin/core-quantity":"workspace:^4.4.0-dev.28"},"//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"}}');
|
|
307229
307304
|
|
|
307230
307305
|
/***/ }),
|
|
307231
307306
|
|