@itwin/rpcinterface-full-stack-tests 4.3.0-dev.16 → 4.3.0-dev.17
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 +25 -21
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -145251,7 +145251,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
145251
145251
|
}
|
|
145252
145252
|
get doDrapeBackgroundMap() { return this.tree.doDrapeBackgroundMap; }
|
|
145253
145253
|
get wantDeduplicatedVertices() { return this._deduplicateVertices; }
|
|
145254
|
-
get maxDepth() { return
|
|
145254
|
+
get maxDepth() { return Number.MAX_SAFE_INTEGER; }
|
|
145255
145255
|
get minDepth() { return 0; }
|
|
145256
145256
|
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_8__.TileLoadPriority.Context; }
|
|
145257
145257
|
getBatchIdMap() { return this._batchedIdMap; }
|
|
@@ -281790,7 +281790,7 @@ class TestContext {
|
|
|
281790
281790
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
281791
281791
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
281792
281792
|
await core_frontend_1.NoRenderApp.startup({
|
|
281793
|
-
applicationVersion: "4.3.0-dev.
|
|
281793
|
+
applicationVersion: "4.3.0-dev.17",
|
|
281794
281794
|
applicationId: this.settings.gprid,
|
|
281795
281795
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
281796
281796
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -285936,32 +285936,36 @@ class ContentPropertyValueFormatter {
|
|
|
285936
285936
|
this._koqValueFormatter = _koqValueFormatter;
|
|
285937
285937
|
}
|
|
285938
285938
|
async formatPropertyValue(field, value, unitSystem) {
|
|
285939
|
-
|
|
285940
|
-
|
|
285941
|
-
|
|
285942
|
-
|
|
285943
|
-
|
|
285944
|
-
|
|
285945
|
-
|
|
285946
|
-
|
|
285947
|
-
|
|
285939
|
+
const doubleFormatter = isFieldWithKoq(field)
|
|
285940
|
+
? async (rawValue) => {
|
|
285941
|
+
const koq = field.properties[0].property.kindOfQuantity;
|
|
285942
|
+
const formattedValue = await this._koqValueFormatter.format(rawValue, { koqName: koq.name, unitSystem });
|
|
285943
|
+
if (formattedValue !== undefined)
|
|
285944
|
+
return formattedValue;
|
|
285945
|
+
return formatDouble(rawValue);
|
|
285946
|
+
}
|
|
285947
|
+
: async (rawValue) => formatDouble(rawValue);
|
|
285948
|
+
return this.formatValue(field.type, value, { doubleFormatter });
|
|
285949
|
+
}
|
|
285950
|
+
async formatValue(type, value, ctx) {
|
|
285948
285951
|
switch (type.valueFormat) {
|
|
285949
285952
|
case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Primitive:
|
|
285950
|
-
return this.formatPrimitiveValue(type, value);
|
|
285953
|
+
return this.formatPrimitiveValue(type, value, ctx);
|
|
285951
285954
|
case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Array:
|
|
285952
285955
|
return this.formatArrayValue(type, value);
|
|
285953
285956
|
case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Struct:
|
|
285954
285957
|
return this.formatStructValue(type, value);
|
|
285955
285958
|
}
|
|
285956
285959
|
}
|
|
285957
|
-
formatPrimitiveValue(type, value) {
|
|
285960
|
+
async formatPrimitiveValue(type, value, ctx) {
|
|
285958
285961
|
if (value === undefined)
|
|
285959
285962
|
return "";
|
|
285963
|
+
const formatDoubleValue = async (raw) => ctx ? ctx.doubleFormatter(raw) : formatDouble(raw);
|
|
285960
285964
|
if (type.typeName === "point2d" && isPoint2d(value)) {
|
|
285961
|
-
return `X: ${
|
|
285965
|
+
return `X: ${await formatDoubleValue(value.x)}; Y: ${await formatDoubleValue(value.y)}`;
|
|
285962
285966
|
}
|
|
285963
285967
|
if (type.typeName === "point3d" && isPoint3d(value)) {
|
|
285964
|
-
return `X: ${
|
|
285968
|
+
return `X: ${await formatDoubleValue(value.x)}; Y: ${await formatDoubleValue(value.y)}; Z: ${await formatDoubleValue(value.z)}`;
|
|
285965
285969
|
}
|
|
285966
285970
|
if (type.typeName === "dateTime") {
|
|
285967
285971
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof value === "string");
|
|
@@ -285977,7 +285981,7 @@ class ContentPropertyValueFormatter {
|
|
|
285977
285981
|
}
|
|
285978
285982
|
if (type.typeName === "double") {
|
|
285979
285983
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(isNumber(value));
|
|
285980
|
-
return
|
|
285984
|
+
return formatDoubleValue(value);
|
|
285981
285985
|
}
|
|
285982
285986
|
if (type.typeName === "navigation") {
|
|
285983
285987
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isNavigationValue(value));
|
|
@@ -285985,19 +285989,19 @@ class ContentPropertyValueFormatter {
|
|
|
285985
285989
|
}
|
|
285986
285990
|
return value.toString();
|
|
285987
285991
|
}
|
|
285988
|
-
formatStructValue(type, value) {
|
|
285992
|
+
async formatStructValue(type, value) {
|
|
285989
285993
|
if (!_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isMap(value))
|
|
285990
285994
|
return {};
|
|
285991
285995
|
const formattedMember = {};
|
|
285992
285996
|
for (const member of type.members) {
|
|
285993
|
-
formattedMember[member.name] = this.formatValue(member.type, value[member.name]);
|
|
285997
|
+
formattedMember[member.name] = await this.formatValue(member.type, value[member.name]);
|
|
285994
285998
|
}
|
|
285995
285999
|
return formattedMember;
|
|
285996
286000
|
}
|
|
285997
|
-
formatArrayValue(type, value) {
|
|
286001
|
+
async formatArrayValue(type, value) {
|
|
285998
286002
|
if (!_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isArray(value))
|
|
285999
286003
|
return [];
|
|
286000
|
-
return value.map((arrayVal) => this.formatValue(type.memberType, arrayVal));
|
|
286004
|
+
return Promise.all(value.map(async (arrayVal) => this.formatValue(type.memberType, arrayVal)));
|
|
286001
286005
|
}
|
|
286002
286006
|
}
|
|
286003
286007
|
function formatDouble(value) {
|
|
@@ -301198,7 +301202,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
301198
301202
|
/***/ ((module) => {
|
|
301199
301203
|
|
|
301200
301204
|
"use strict";
|
|
301201
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.
|
|
301205
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.17","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","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.3.0-dev.17","@itwin/core-bentley":"workspace:^4.3.0-dev.17","@itwin/core-common":"workspace:^4.3.0-dev.17","@itwin/core-geometry":"workspace:^4.3.0-dev.17","@itwin/core-orbitgt":"workspace:^4.3.0-dev.17","@itwin/core-quantity":"workspace:^4.3.0-dev.17"},"//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":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","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.1.0","@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"}}');
|
|
301202
301206
|
|
|
301203
301207
|
/***/ }),
|
|
301204
301208
|
|