@itwin/rpcinterface-full-stack-tests 5.1.0-dev.64 → 5.1.0-dev.66
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 +129 -10
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -57067,6 +57067,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57067
57067
|
*/
|
|
57068
57068
|
var CommonLoggerCategory;
|
|
57069
57069
|
(function (CommonLoggerCategory) {
|
|
57070
|
+
/** The logger category used by common APIs relating to text annotations. */
|
|
57071
|
+
CommonLoggerCategory["Annotations"] = "core-common.Annotations";
|
|
57070
57072
|
/** The logger category used by common classes relating to ElementProps. */
|
|
57071
57073
|
CommonLoggerCategory["ElementProps"] = "core-common.ElementProps";
|
|
57072
57074
|
/** The logger category used by common classes relating to Geometry. */
|
|
@@ -73018,6 +73020,7 @@ class TextAnnotation {
|
|
|
73018
73020
|
"use strict";
|
|
73019
73021
|
__webpack_require__.r(__webpack_exports__);
|
|
73020
73022
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
73023
|
+
/* harmony export */ FieldRun: () => (/* binding */ FieldRun),
|
|
73021
73024
|
/* harmony export */ FractionRun: () => (/* binding */ FractionRun),
|
|
73022
73025
|
/* harmony export */ LineBreakRun: () => (/* binding */ LineBreakRun),
|
|
73023
73026
|
/* harmony export */ Paragraph: () => (/* binding */ Paragraph),
|
|
@@ -73110,6 +73113,7 @@ var Run;
|
|
|
73110
73113
|
case "fraction": return FractionRun.create(props);
|
|
73111
73114
|
case "tab": return TabRun.create(props);
|
|
73112
73115
|
case "linebreak": return LineBreakRun.create(props);
|
|
73116
|
+
case "field": return FieldRun.create(props);
|
|
73113
73117
|
}
|
|
73114
73118
|
}
|
|
73115
73119
|
Run.fromJSON = fromJSON;
|
|
@@ -73253,6 +73257,113 @@ class TabRun extends TextBlockComponent {
|
|
|
73253
73257
|
return other instanceof TabRun && super.equals(other);
|
|
73254
73258
|
}
|
|
73255
73259
|
}
|
|
73260
|
+
/** A [[Run]] that displays the formatted value of a property of some [Element]($backend).
|
|
73261
|
+
* When a [[TextBlock]] containing a [[FieldRun]] is written into the iModel as an [ITextAnnotation]($backend) element,
|
|
73262
|
+
* a dependency is established between the two elements via the [ElementDrivesTextAnnotation]($backend) relationship such that
|
|
73263
|
+
* whenever the source element specified by [[propertyHost]] is modified, the field(s) in the `ITextAnnotation` element are automatically
|
|
73264
|
+
* recalculated, causing their [[cachedContent]] to update. If the field's display string cannot be evaluated (for example, because the specified element or
|
|
73265
|
+
* property does not exist), then its cached content is set to [[FieldRun.invalidContentIndicator]].
|
|
73266
|
+
* A [[FieldRun]] displays its [[cachedContent]] in the same way that [[TextRun]]s display their `content`, including word wrapping where appropriate.
|
|
73267
|
+
* @beta
|
|
73268
|
+
*/
|
|
73269
|
+
class FieldRun extends TextBlockComponent {
|
|
73270
|
+
/** Display string used to signal an error in computing the field's value. */
|
|
73271
|
+
static invalidContentIndicator = "####";
|
|
73272
|
+
/** Discriminator field for the [[Run]] union. */
|
|
73273
|
+
type = "field";
|
|
73274
|
+
/** The element and BIS class containing the property described by [[propertyPath]]. */
|
|
73275
|
+
propertyHost;
|
|
73276
|
+
/** Describes how to obtain the property value from [[propertyHost]]. */
|
|
73277
|
+
propertyPath;
|
|
73278
|
+
/** Specifies how to format the property value obtained from [[propertyPath]] into a string to be stored in [[cachedContent]]. */
|
|
73279
|
+
formatter;
|
|
73280
|
+
_cachedContent;
|
|
73281
|
+
/** The field's most recently evaluated display string. */
|
|
73282
|
+
get cachedContent() {
|
|
73283
|
+
return this._cachedContent;
|
|
73284
|
+
}
|
|
73285
|
+
/** @internal Used by core-backend when re-evaluating field content. */
|
|
73286
|
+
setCachedContent(content) {
|
|
73287
|
+
this._cachedContent = content ?? FieldRun.invalidContentIndicator;
|
|
73288
|
+
}
|
|
73289
|
+
constructor(props) {
|
|
73290
|
+
super(props);
|
|
73291
|
+
this._cachedContent = props.cachedContent ?? FieldRun.invalidContentIndicator;
|
|
73292
|
+
this.propertyHost = props.propertyHost;
|
|
73293
|
+
this.propertyPath = props.propertyPath;
|
|
73294
|
+
this.formatter = props.formatter;
|
|
73295
|
+
}
|
|
73296
|
+
/** Create a FieldRun from its JSON representation. */
|
|
73297
|
+
static create(props) {
|
|
73298
|
+
return new FieldRun({
|
|
73299
|
+
...props,
|
|
73300
|
+
propertyHost: { ...props.propertyHost },
|
|
73301
|
+
propertyPath: structuredClone(props.propertyPath),
|
|
73302
|
+
formatter: structuredClone(props.formatter),
|
|
73303
|
+
});
|
|
73304
|
+
}
|
|
73305
|
+
/** Convert the FieldRun to its JSON representation. */
|
|
73306
|
+
toJSON() {
|
|
73307
|
+
const json = {
|
|
73308
|
+
...super.toJSON(),
|
|
73309
|
+
type: "field",
|
|
73310
|
+
propertyHost: { ...this.propertyHost },
|
|
73311
|
+
propertyPath: structuredClone(this.propertyPath),
|
|
73312
|
+
};
|
|
73313
|
+
if (this.cachedContent !== FieldRun.invalidContentIndicator) {
|
|
73314
|
+
json.cachedContent = this.cachedContent;
|
|
73315
|
+
}
|
|
73316
|
+
if (this.formatter) {
|
|
73317
|
+
json.formatter = structuredClone(this.formatter);
|
|
73318
|
+
}
|
|
73319
|
+
return json;
|
|
73320
|
+
}
|
|
73321
|
+
/** Create a deep copy of this FieldRun. */
|
|
73322
|
+
clone() {
|
|
73323
|
+
return new FieldRun(this.toJSON());
|
|
73324
|
+
}
|
|
73325
|
+
/** Convert this FieldRun to a simple string representation. */
|
|
73326
|
+
stringify() {
|
|
73327
|
+
return this.cachedContent;
|
|
73328
|
+
}
|
|
73329
|
+
/** Returns true if `this` is equivalent to `other`. */
|
|
73330
|
+
equals(other) {
|
|
73331
|
+
if (!(other instanceof FieldRun) || !super.equals(other)) {
|
|
73332
|
+
return false;
|
|
73333
|
+
}
|
|
73334
|
+
if (this.propertyHost.elementId !== other.propertyHost.elementId ||
|
|
73335
|
+
this.propertyHost.className !== other.propertyHost.className ||
|
|
73336
|
+
this.propertyHost.schemaName !== other.propertyHost.schemaName) {
|
|
73337
|
+
return false;
|
|
73338
|
+
}
|
|
73339
|
+
if (this.propertyPath.propertyName !== other.propertyPath.propertyName) {
|
|
73340
|
+
return false;
|
|
73341
|
+
}
|
|
73342
|
+
const thisAccessors = this.propertyPath.accessors ?? [];
|
|
73343
|
+
const otherAccessors = other.propertyPath.accessors ?? [];
|
|
73344
|
+
const thisJsonAccessors = this.propertyPath.jsonAccessors ?? [];
|
|
73345
|
+
const otherJsonAccessors = other.propertyPath.jsonAccessors ?? [];
|
|
73346
|
+
if (thisAccessors.length !== otherAccessors.length || thisJsonAccessors.length !== otherJsonAccessors.length) {
|
|
73347
|
+
return false;
|
|
73348
|
+
}
|
|
73349
|
+
if (!thisAccessors.every((value, index) => value === otherAccessors[index])) {
|
|
73350
|
+
return false;
|
|
73351
|
+
}
|
|
73352
|
+
if (!thisJsonAccessors.every((value, index) => value === otherJsonAccessors[index])) {
|
|
73353
|
+
return false;
|
|
73354
|
+
}
|
|
73355
|
+
if (this.formatter && other.formatter) {
|
|
73356
|
+
// ###TODO better comparison of formatter objects.
|
|
73357
|
+
if (JSON.stringify(this.formatter) !== JSON.stringify(other.formatter)) {
|
|
73358
|
+
return false;
|
|
73359
|
+
}
|
|
73360
|
+
}
|
|
73361
|
+
else if (this.formatter || other.formatter) {
|
|
73362
|
+
return false;
|
|
73363
|
+
}
|
|
73364
|
+
return true;
|
|
73365
|
+
}
|
|
73366
|
+
}
|
|
73256
73367
|
/** A collection of [[Run]]s within a [[TextBlock]]. Each paragraph within a text block is laid out on a separate line.
|
|
73257
73368
|
* @beta
|
|
73258
73369
|
*/
|
|
@@ -73818,6 +73929,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73818
73929
|
/* harmony export */ FeatureOverrides: () => (/* reexport safe */ _FeatureSymbology__WEBPACK_IMPORTED_MODULE_36__.FeatureOverrides),
|
|
73819
73930
|
/* harmony export */ FeatureTable: () => (/* reexport safe */ _FeatureTable__WEBPACK_IMPORTED_MODULE_37__.FeatureTable),
|
|
73820
73931
|
/* harmony export */ FeatureTableHeader: () => (/* reexport safe */ _tile_IModelTileIO__WEBPACK_IMPORTED_MODULE_154__.FeatureTableHeader),
|
|
73932
|
+
/* harmony export */ FieldRun: () => (/* reexport safe */ _annotation_TextBlock__WEBPACK_IMPORTED_MODULE_3__.FieldRun),
|
|
73821
73933
|
/* harmony export */ FillDisplay: () => (/* reexport safe */ _GeometryParams__WEBPACK_IMPORTED_MODULE_58__.FillDisplay),
|
|
73822
73934
|
/* harmony export */ FillFlags: () => (/* reexport safe */ _GraphicParams__WEBPACK_IMPORTED_MODULE_61__.FillFlags),
|
|
73823
73935
|
/* harmony export */ FontMap: () => (/* reexport safe */ _Fonts__WEBPACK_IMPORTED_MODULE_38__.FontMap),
|
|
@@ -97469,14 +97581,21 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
97469
97581
|
return this.traverseBaseClasses((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), targetClass);
|
|
97470
97582
|
}
|
|
97471
97583
|
}
|
|
97472
|
-
/**
|
|
97473
|
-
|
|
97474
|
-
|
|
97475
|
-
|
|
97476
|
-
|
|
97477
|
-
|
|
97478
|
-
|
|
97479
|
-
|
|
97584
|
+
/** @internal */
|
|
97585
|
+
isSync(targetClass, schemaName) {
|
|
97586
|
+
if (schemaName !== undefined) {
|
|
97587
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof (targetClass) === "string", "Expected targetClass of type string because schemaName was specified");
|
|
97588
|
+
const key = new _SchemaKey__WEBPACK_IMPORTED_MODULE_5__.SchemaItemKey(targetClass, new _SchemaKey__WEBPACK_IMPORTED_MODULE_5__.SchemaKey(schemaName));
|
|
97589
|
+
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, key))
|
|
97590
|
+
return true;
|
|
97591
|
+
return this.traverseBaseClassesSync((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), key);
|
|
97592
|
+
}
|
|
97593
|
+
else {
|
|
97594
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(ECClass.isECClass(targetClass), "Expected targetClass to be of type ECClass");
|
|
97595
|
+
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, targetClass))
|
|
97596
|
+
return true;
|
|
97597
|
+
return this.traverseBaseClassesSync((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), targetClass);
|
|
97598
|
+
}
|
|
97480
97599
|
}
|
|
97481
97600
|
/**
|
|
97482
97601
|
* @internal
|
|
@@ -335088,7 +335207,7 @@ class TestContext {
|
|
|
335088
335207
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
335089
335208
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
335090
335209
|
await core_frontend_1.NoRenderApp.startup({
|
|
335091
|
-
applicationVersion: "5.1.0-dev.
|
|
335210
|
+
applicationVersion: "5.1.0-dev.66",
|
|
335092
335211
|
applicationId: this.settings.gprid,
|
|
335093
335212
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
335094
335213
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -360177,7 +360296,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
360177
360296
|
/***/ ((module) => {
|
|
360178
360297
|
|
|
360179
360298
|
"use strict";
|
|
360180
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
360299
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.66","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","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/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@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.3.12","playwright":"~1.47.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/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"}}');
|
|
360181
360300
|
|
|
360182
360301
|
/***/ }),
|
|
360183
360302
|
|