@itwin/ecschema-rpcinterface-tests 5.1.0-dev.34 → 5.1.0-dev.36
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 +33 -16
- 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_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-24291b.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 +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\2\\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":""}
|
|
@@ -70006,17 +70006,17 @@ class SchemaFormatsProvider {
|
|
|
70006
70006
|
return undefined;
|
|
70007
70007
|
}
|
|
70008
70008
|
// Find the first presentation format that matches the provided unit system.
|
|
70009
|
-
const
|
|
70009
|
+
const unitSystemMatchers = getUnitSystemGroupMatchers(this._unitSystem);
|
|
70010
70010
|
const presentationFormats = kindOfQuantity.presentationFormats;
|
|
70011
|
-
for (const
|
|
70011
|
+
for (const matcher of unitSystemMatchers) {
|
|
70012
70012
|
for (const lazyFormat of presentationFormats) {
|
|
70013
70013
|
const format = await lazyFormat;
|
|
70014
70014
|
const unit = await (format.units && format.units[0][0]);
|
|
70015
70015
|
if (!unit) {
|
|
70016
70016
|
continue;
|
|
70017
70017
|
}
|
|
70018
|
-
const currentUnitSystem = unit.unitSystem;
|
|
70019
|
-
if (currentUnitSystem && currentUnitSystem
|
|
70018
|
+
const currentUnitSystem = await unit.unitSystem;
|
|
70019
|
+
if (currentUnitSystem && matcher(currentUnitSystem)) {
|
|
70020
70020
|
this._formatsRetrieved.add(itemKey.fullName);
|
|
70021
70021
|
return (0,_Metadata_OverrideFormat__WEBPACK_IMPORTED_MODULE_6__.getFormatProps)(format);
|
|
70022
70022
|
}
|
|
@@ -70025,7 +70025,7 @@ class SchemaFormatsProvider {
|
|
|
70025
70025
|
// If no matching presentation format was found, use persistence unit format if it matches unit system.
|
|
70026
70026
|
const persistenceUnit = await kindOfQuantity.persistenceUnit;
|
|
70027
70027
|
const persistenceUnitSystem = await persistenceUnit?.unitSystem;
|
|
70028
|
-
if (persistenceUnitSystem &&
|
|
70028
|
+
if (persistenceUnitSystem && unitSystemMatchers.some((matcher) => matcher(persistenceUnitSystem))) {
|
|
70029
70029
|
this._formatsRetrieved.add(itemKey.fullName);
|
|
70030
70030
|
return getPersistenceUnitFormatProps(persistenceUnit);
|
|
70031
70031
|
}
|
|
@@ -70075,16 +70075,20 @@ class SchemaFormatsProvider {
|
|
|
70075
70075
|
return this.getKindOfQuantityFormatFromSchema(itemKey);
|
|
70076
70076
|
}
|
|
70077
70077
|
}
|
|
70078
|
-
function
|
|
70079
|
-
|
|
70078
|
+
function getUnitSystemGroupMatchers(groupKey) {
|
|
70079
|
+
function createMatcher(name) {
|
|
70080
|
+
const names = Array.isArray(name) ? name : [name];
|
|
70081
|
+
return (unitSystem) => names.some((n) => n === unitSystem.name.toUpperCase());
|
|
70082
|
+
}
|
|
70083
|
+
switch (groupKey) {
|
|
70080
70084
|
case "imperial":
|
|
70081
|
-
return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
70085
|
+
return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
70082
70086
|
case "metric":
|
|
70083
|
-
return ["SI", "METRIC", "INTERNATIONAL", "FINANCE"];
|
|
70087
|
+
return [["SI", "METRIC"], "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
70084
70088
|
case "usCustomary":
|
|
70085
|
-
return ["USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
70089
|
+
return ["USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
70086
70090
|
case "usSurvey":
|
|
70087
|
-
return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
70091
|
+
return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
70088
70092
|
}
|
|
70089
70093
|
return [];
|
|
70090
70094
|
}
|
|
@@ -76289,7 +76293,7 @@ class AccuSnap {
|
|
|
76289
76293
|
return undefined;
|
|
76290
76294
|
const filterStatus = (this.isLocateEnabled ? await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.locateManager.filterHit(thisHit, _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateAction.AutoLocate, out) : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateFilterStatus.Accept);
|
|
76291
76295
|
if (_ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateFilterStatus.Accept !== filterStatus) {
|
|
76292
|
-
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp;
|
|
76296
|
+
out.snapStatus = _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.toolAdmin.wantToolTip(thisHit) ? _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByAppQuietly;
|
|
76293
76297
|
return undefined;
|
|
76294
76298
|
}
|
|
76295
76299
|
let snapModes;
|
|
@@ -76390,7 +76394,7 @@ class AccuSnap {
|
|
|
76390
76394
|
if (undefined !== firstRejected)
|
|
76391
76395
|
continue;
|
|
76392
76396
|
firstRejected = filterResponse.clone();
|
|
76393
|
-
firstRejected.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp;
|
|
76397
|
+
firstRejected.snapStatus = _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.toolAdmin.wantToolTip(thisHit) ? _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByAppQuietly;
|
|
76394
76398
|
}
|
|
76395
76399
|
if (undefined !== firstRejected)
|
|
76396
76400
|
out.setFrom(firstRejected);
|
|
@@ -108018,8 +108022,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
108018
108022
|
/* eslint-disable sort-imports */
|
|
108019
108023
|
|
|
108020
108024
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
108021
|
-
if (globalThis[globalSymbol])
|
|
108022
|
-
|
|
108025
|
+
if (globalThis[globalSymbol]) {
|
|
108026
|
+
// Get the stack trace from when the module was first loaded
|
|
108027
|
+
const firstLoadStack = globalThis[globalSymbol].stack;
|
|
108028
|
+
const error = new Error("Multiple @itwin/core-frontend imports detected! This may happen if:\n" +
|
|
108029
|
+
"- You have multiple versions of the package installed\n" +
|
|
108030
|
+
"- Your bundling configuration is incorrect\n" +
|
|
108031
|
+
"- You're importing from both ESM and CommonJS versions");
|
|
108032
|
+
/* eslint-disable no-console */
|
|
108033
|
+
console.error("Duplicate @itwin/core-frontend import:", error);
|
|
108034
|
+
console.error("First import occurred at:", firstLoadStack);
|
|
108035
|
+
console.error("Current import occurred at:", error.stack);
|
|
108036
|
+
/* eslint-enable no-console */
|
|
108037
|
+
throw error;
|
|
108038
|
+
}
|
|
108023
108039
|
// BEGIN GENERATED CODE
|
|
108024
108040
|
|
|
108025
108041
|
|
|
@@ -108289,6 +108305,7 @@ const getExtensionApi = (_id) => {
|
|
|
108289
108305
|
};
|
|
108290
108306
|
};
|
|
108291
108307
|
globalThis[globalSymbol] = {
|
|
108308
|
+
stack: new Error().stack,
|
|
108292
108309
|
getExtensionApi,
|
|
108293
108310
|
};
|
|
108294
108311
|
|
|
@@ -313580,7 +313597,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
313580
313597
|
/***/ ((module) => {
|
|
313581
313598
|
|
|
313582
313599
|
"use strict";
|
|
313583
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
313600
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.36","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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 --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 --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./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 webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"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"}}');
|
|
313584
313601
|
|
|
313585
313602
|
/***/ })
|
|
313586
313603
|
|