@itwin/ecschema-rpcinterface-tests 5.6.0-dev.11 → 5.6.0-dev.13
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 +50 -5
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -44957,7 +44957,7 @@ class TextStyleSettings {
|
|
|
44957
44957
|
listMarker;
|
|
44958
44958
|
/** The frame settings of the [[TextAnnotation]]. */
|
|
44959
44959
|
frame;
|
|
44960
|
-
/**
|
|
44960
|
+
/** Multiplier used to calculate the margins to surround the document content. */
|
|
44961
44961
|
margins;
|
|
44962
44962
|
/** The alignment of the text content. */
|
|
44963
44963
|
justification;
|
|
@@ -68833,6 +68833,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68833
68833
|
|
|
68834
68834
|
|
|
68835
68835
|
|
|
68836
|
+
const loggingCategory = "ECClass";
|
|
68836
68837
|
/**
|
|
68837
68838
|
* A common abstract class for all of the ECClass types.
|
|
68838
68839
|
* @public @preview
|
|
@@ -68887,7 +68888,13 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
68887
68888
|
async getDerivedClasses() {
|
|
68888
68889
|
const derivedClasses = [];
|
|
68889
68890
|
for (const derivedClassKey of this.schema.context.classHierarchy.getDerivedClassKeys(this.key)) {
|
|
68890
|
-
|
|
68891
|
+
let derivedClass = await this.schema.getItem(derivedClassKey.name, ECClass); // if the derived class is in the same schema this will get it without going to the context
|
|
68892
|
+
if (derivedClass) {
|
|
68893
|
+
derivedClasses.push(derivedClass);
|
|
68894
|
+
continue;
|
|
68895
|
+
}
|
|
68896
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo(loggingCategory, `Derived class ${derivedClassKey.name} not found in schema ${this.schema.name}, looking in schema context.`);
|
|
68897
|
+
derivedClass = await this.schema.context.getSchemaItem(derivedClassKey, ECClass);
|
|
68891
68898
|
if (derivedClass)
|
|
68892
68899
|
derivedClasses.push(derivedClass);
|
|
68893
68900
|
}
|
|
@@ -69275,18 +69282,56 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
69275
69282
|
*/
|
|
69276
69283
|
async *getAllBaseClasses() {
|
|
69277
69284
|
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
69278
|
-
const baseClass = await this.
|
|
69285
|
+
const baseClass = await this.getClassFromReferencesRecursively(baseClassKey); // Search in schema ref tree all the way to the top
|
|
69279
69286
|
if (baseClass)
|
|
69280
69287
|
yield baseClass;
|
|
69281
69288
|
}
|
|
69282
69289
|
}
|
|
69290
|
+
/**
|
|
69291
|
+
* gets a class from this schema or its references recursively using the item key
|
|
69292
|
+
* @param itemKey
|
|
69293
|
+
* @returns ECClass if it could be found, undefined otherwise
|
|
69294
|
+
* @internal
|
|
69295
|
+
*/
|
|
69296
|
+
async getClassFromReferencesRecursively(itemKey) {
|
|
69297
|
+
const schemaList = [this.schema];
|
|
69298
|
+
while (schemaList.length > 0) {
|
|
69299
|
+
const currentSchema = schemaList.shift();
|
|
69300
|
+
if (currentSchema.schemaKey.compareByName(itemKey.schemaKey)) {
|
|
69301
|
+
const baseClass = await currentSchema.getItem(itemKey.name, ECClass);
|
|
69302
|
+
schemaList.splice(0); // clear the list
|
|
69303
|
+
return baseClass;
|
|
69304
|
+
}
|
|
69305
|
+
schemaList.push(...currentSchema.references);
|
|
69306
|
+
}
|
|
69307
|
+
return undefined;
|
|
69308
|
+
}
|
|
69283
69309
|
*getAllBaseClassesSync() {
|
|
69284
69310
|
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
69285
|
-
const baseClass = this.
|
|
69311
|
+
const baseClass = this.getClassFromReferencesRecursivelySync(baseClassKey); // Search in schema ref tree all the way to the top
|
|
69286
69312
|
if (baseClass)
|
|
69287
69313
|
yield baseClass;
|
|
69288
69314
|
}
|
|
69289
69315
|
}
|
|
69316
|
+
/**
|
|
69317
|
+
* gets a class from this schema or its references recursively using the item key synchronously
|
|
69318
|
+
* @param itemKey
|
|
69319
|
+
* @returns ECClass if it could be found, undefined otherwise
|
|
69320
|
+
* @internal
|
|
69321
|
+
*/
|
|
69322
|
+
getClassFromReferencesRecursivelySync(itemKey) {
|
|
69323
|
+
const schemaList = [this.schema];
|
|
69324
|
+
while (schemaList.length > 0) {
|
|
69325
|
+
const currentSchema = schemaList.shift();
|
|
69326
|
+
if (currentSchema.schemaKey.compareByName(itemKey.schemaKey)) {
|
|
69327
|
+
const baseClass = currentSchema.getItemSync(itemKey.name, ECClass);
|
|
69328
|
+
schemaList.splice(0); // clear the list
|
|
69329
|
+
return baseClass;
|
|
69330
|
+
}
|
|
69331
|
+
schemaList.push(...currentSchema.references);
|
|
69332
|
+
}
|
|
69333
|
+
return undefined;
|
|
69334
|
+
}
|
|
69290
69335
|
/**
|
|
69291
69336
|
*
|
|
69292
69337
|
* @param cache
|
|
@@ -320651,7 +320696,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
320651
320696
|
/***/ ((module) => {
|
|
320652
320697
|
|
|
320653
320698
|
"use strict";
|
|
320654
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.0-dev.
|
|
320699
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.0-dev.13","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 && npm run -s copy:draco","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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./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","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","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/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
320655
320700
|
|
|
320656
320701
|
/***/ })
|
|
320657
320702
|
|