@itwin/rpcinterface-full-stack-tests 4.2.0-dev.3 → 4.2.0-dev.5
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/_0062.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +63 -2
- 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_4_7_node_modules_loaders_gl_draco_di-02c2bd.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\12\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.4.7\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -279629,7 +279629,7 @@ class TestContext {
|
|
|
279629
279629
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
279630
279630
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
279631
279631
|
await core_frontend_1.NoRenderApp.startup({
|
|
279632
|
-
applicationVersion: "4.2.0-dev.
|
|
279632
|
+
applicationVersion: "4.2.0-dev.5",
|
|
279633
279633
|
applicationId: this.settings.gprid,
|
|
279634
279634
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
279635
279635
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -279731,6 +279731,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
279731
279731
|
/* harmony export */ combineFieldNames: () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_31__.combineFieldNames),
|
|
279732
279732
|
/* harmony export */ compareDiagnosticsSeverities: () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.compareDiagnosticsSeverities),
|
|
279733
279733
|
/* harmony export */ createFieldHierarchies: () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_31__.createFieldHierarchies),
|
|
279734
|
+
/* harmony export */ getFieldByDescriptor: () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.getFieldByDescriptor),
|
|
279734
279735
|
/* harmony export */ getFieldByName: () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.getFieldByName),
|
|
279735
279736
|
/* harmony export */ getInstancesCount: () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.getInstancesCount),
|
|
279736
279737
|
/* harmony export */ isComputeSelectionRequestOptions: () => (/* reexport safe */ _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__.isComputeSelectionRequestOptions),
|
|
@@ -283002,6 +283003,13 @@ class Descriptor {
|
|
|
283002
283003
|
getFieldByName(name, recurse) {
|
|
283003
283004
|
return (0,_Fields__WEBPACK_IMPORTED_MODULE_3__.getFieldByName)(this.fields, name, recurse);
|
|
283004
283005
|
}
|
|
283006
|
+
/**
|
|
283007
|
+
* Get field by its descriptor.
|
|
283008
|
+
* @beta
|
|
283009
|
+
*/
|
|
283010
|
+
getFieldByDescriptor(fieldDescriptor, recurse) {
|
|
283011
|
+
return (0,_Fields__WEBPACK_IMPORTED_MODULE_3__.getFieldByDescriptor)(this.fields, fieldDescriptor, recurse);
|
|
283012
|
+
}
|
|
283005
283013
|
/**
|
|
283006
283014
|
* Create descriptor overrides object from this descriptor.
|
|
283007
283015
|
* @public
|
|
@@ -283100,6 +283108,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
283100
283108
|
/* harmony export */ FieldDescriptorType: () => (/* binding */ FieldDescriptorType),
|
|
283101
283109
|
/* harmony export */ NestedContentField: () => (/* binding */ NestedContentField),
|
|
283102
283110
|
/* harmony export */ PropertiesField: () => (/* binding */ PropertiesField),
|
|
283111
|
+
/* harmony export */ getFieldByDescriptor: () => (/* binding */ getFieldByDescriptor),
|
|
283103
283112
|
/* harmony export */ getFieldByName: () => (/* binding */ getFieldByName)
|
|
283104
283113
|
/* harmony export */ });
|
|
283105
283114
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
@@ -283255,6 +283264,14 @@ class Field {
|
|
|
283255
283264
|
fieldName: this.name,
|
|
283256
283265
|
};
|
|
283257
283266
|
}
|
|
283267
|
+
/**
|
|
283268
|
+
* Checks if this field matches given field descriptor
|
|
283269
|
+
* @see [[getFieldDescriptor]]
|
|
283270
|
+
* @beta
|
|
283271
|
+
*/
|
|
283272
|
+
matchesDescriptor(descriptor) {
|
|
283273
|
+
return FieldDescriptor.isNamed(descriptor) && descriptor.fieldName === this.name;
|
|
283274
|
+
}
|
|
283258
283275
|
}
|
|
283259
283276
|
/**
|
|
283260
283277
|
* Describes a content field that's based on one or more similar
|
|
@@ -283331,6 +283348,37 @@ class PropertiesField extends Field {
|
|
|
283331
283348
|
})),
|
|
283332
283349
|
};
|
|
283333
283350
|
}
|
|
283351
|
+
/**
|
|
283352
|
+
* Checks if this field matches given field descriptor
|
|
283353
|
+
* @see [[getFieldDescriptor]]
|
|
283354
|
+
* @beta
|
|
283355
|
+
*/
|
|
283356
|
+
matchesDescriptor(descriptor) {
|
|
283357
|
+
if (!FieldDescriptor.isProperties(descriptor)) {
|
|
283358
|
+
return false;
|
|
283359
|
+
}
|
|
283360
|
+
// ensure at least one descriptor property matches at least one property of this field
|
|
283361
|
+
if (!this.properties.some(({ property: fieldProperty }) => descriptor.properties.some((descriptorProperty) => fieldProperty.name === descriptorProperty.name && fieldProperty.classInfo.name === descriptorProperty.class))) {
|
|
283362
|
+
return false;
|
|
283363
|
+
}
|
|
283364
|
+
// ensure path from select to property in field and in descriptor matches
|
|
283365
|
+
let stepsCount = 0;
|
|
283366
|
+
let currAncestor = this.parent;
|
|
283367
|
+
while (currAncestor) {
|
|
283368
|
+
const pathFromCurrentToItsParent = _EC__WEBPACK_IMPORTED_MODULE_1__.RelationshipPath.reverse(currAncestor.pathToPrimaryClass);
|
|
283369
|
+
for (const step of pathFromCurrentToItsParent) {
|
|
283370
|
+
if (descriptor.pathFromSelectToPropertyClass.length < stepsCount + 1) {
|
|
283371
|
+
return false;
|
|
283372
|
+
}
|
|
283373
|
+
if (!_EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.equals(step, descriptor.pathFromSelectToPropertyClass[descriptor.pathFromSelectToPropertyClass.length - stepsCount - 1])) {
|
|
283374
|
+
return false;
|
|
283375
|
+
}
|
|
283376
|
+
++stepsCount;
|
|
283377
|
+
}
|
|
283378
|
+
currAncestor = currAncestor.parent;
|
|
283379
|
+
}
|
|
283380
|
+
return true;
|
|
283381
|
+
}
|
|
283334
283382
|
}
|
|
283335
283383
|
/**
|
|
283336
283384
|
* Describes a content field that contains [Nested content]($docs/presentation/content/Terminology#nested-content).
|
|
@@ -283456,6 +283504,19 @@ const getFieldByName = (fields, name, recurse) => {
|
|
|
283456
283504
|
}
|
|
283457
283505
|
return undefined;
|
|
283458
283506
|
};
|
|
283507
|
+
/** @internal */
|
|
283508
|
+
const getFieldByDescriptor = (fields, fieldDescriptor, recurse) => {
|
|
283509
|
+
for (const field of fields) {
|
|
283510
|
+
if (field.matchesDescriptor(fieldDescriptor))
|
|
283511
|
+
return field;
|
|
283512
|
+
if (recurse && field.isNestedContentField()) {
|
|
283513
|
+
const nested = getFieldByDescriptor(field.nestedFields, fieldDescriptor, recurse);
|
|
283514
|
+
if (nested)
|
|
283515
|
+
return nested;
|
|
283516
|
+
}
|
|
283517
|
+
}
|
|
283518
|
+
return undefined;
|
|
283519
|
+
};
|
|
283459
283520
|
/**
|
|
283460
283521
|
* Types of different field descriptors.
|
|
283461
283522
|
* @public
|
|
@@ -299002,7 +299063,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
299002
299063
|
/***/ ((module) => {
|
|
299003
299064
|
|
|
299004
299065
|
"use strict";
|
|
299005
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.
|
|
299066
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.5","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.2.0-dev.5","@itwin/core-bentley":"workspace:^4.2.0-dev.5","@itwin/core-common":"workspace:^4.2.0-dev.5","@itwin/core-geometry":"workspace:^4.2.0-dev.5","@itwin/core-orbitgt":"workspace:^4.2.0-dev.5","@itwin/core-quantity":"workspace:^4.2.0-dev.5"},"//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.1.2","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","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.0.0","@itwin/object-storage-core":"^2.0.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"}}');
|
|
299006
299067
|
|
|
299007
299068
|
/***/ }),
|
|
299008
299069
|
|