@itwin/ecschema-rpcinterface-tests 5.14.0-dev.22 → 5.14.0-dev.23
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 +72 -38
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -26343,7 +26343,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26343
26343
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26344
26344
|
/* harmony export */ Base64EncodedString: () => (/* binding */ Base64EncodedString)
|
|
26345
26345
|
/* harmony export */ });
|
|
26346
|
-
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.
|
|
26346
|
+
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.4/node_modules/js-base64/base64.mjs");
|
|
26347
26347
|
/*---------------------------------------------------------------------------------------------
|
|
26348
26348
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
26349
26349
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -28139,7 +28139,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28139
28139
|
/* harmony export */ });
|
|
28140
28140
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
28141
28141
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
28142
|
-
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.
|
|
28142
|
+
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.4/node_modules/js-base64/base64.mjs");
|
|
28143
28143
|
/*---------------------------------------------------------------------------------------------
|
|
28144
28144
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
28145
28145
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -44632,6 +44632,11 @@ class TabRun extends TextBlockComponent {
|
|
|
44632
44632
|
return other instanceof TabRun && super.equals(other);
|
|
44633
44633
|
}
|
|
44634
44634
|
}
|
|
44635
|
+
function accessorsEqual(a, b) {
|
|
44636
|
+
const lhs = a ?? [];
|
|
44637
|
+
const rhs = b ?? [];
|
|
44638
|
+
return lhs.length === rhs.length && lhs.every((value, index) => value === rhs[index]);
|
|
44639
|
+
}
|
|
44635
44640
|
/** A [[Run]] that displays the formatted value of a property of some [Element]($backend).
|
|
44636
44641
|
* When a [[TextBlock]] containing a [[FieldRun]] is written into the iModel as an [ITextAnnotation]($backend) element,
|
|
44637
44642
|
* a dependency is established between the two elements via the [ElementDrivesTextAnnotation]($backend) relationship such that
|
|
@@ -44721,12 +44726,10 @@ class FieldRun extends TextBlockComponent {
|
|
|
44721
44726
|
if (this.propertyPath.propertyName !== other.propertyPath.propertyName) {
|
|
44722
44727
|
return false;
|
|
44723
44728
|
}
|
|
44724
|
-
|
|
44725
|
-
const otherAccessors = other.propertyPath.accessors ?? [];
|
|
44726
|
-
if (thisAccessors.length !== otherAccessors.length) {
|
|
44729
|
+
if (!accessorsEqual(this.propertyPath.accessors, other.propertyPath.accessors)) {
|
|
44727
44730
|
return false;
|
|
44728
44731
|
}
|
|
44729
|
-
if (!
|
|
44732
|
+
if (!accessorsEqual(this.propertyPath.jsonAccessors, other.propertyPath.jsonAccessors)) {
|
|
44730
44733
|
return false;
|
|
44731
44734
|
}
|
|
44732
44735
|
if (this.formatOptions && other.formatOptions) {
|
|
@@ -55872,9 +55875,8 @@ const formatters = {
|
|
|
55872
55875
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
55873
55876
|
"string": (v, o) => formatString(v.toString(), o),
|
|
55874
55877
|
"datetime": (v, o) => formatString(formatDateTime(v, o?.dateTime), o),
|
|
55875
|
-
|
|
55876
|
-
"
|
|
55877
|
-
"coordinate": (v, o) => formatString(formatPointBasic(v), o),
|
|
55878
|
+
"quantity": (v, o, fm) => formatString(formatMagnitudeValue(v, fm), o),
|
|
55879
|
+
"coordinate": (v, o, fm) => formatString(formatPoint(v, fm), o),
|
|
55878
55880
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
55879
55881
|
"boolean": (v, o) => formatString(v.toString(), o),
|
|
55880
55882
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
@@ -55915,27 +55917,58 @@ function formatDateTime(v, o) {
|
|
|
55915
55917
|
}
|
|
55916
55918
|
return undefined;
|
|
55917
55919
|
}
|
|
55918
|
-
|
|
55919
|
-
|
|
55920
|
-
|
|
55921
|
-
|
|
55922
|
-
|
|
55923
|
-
|
|
55924
|
-
parts.push(z);
|
|
55925
|
-
}
|
|
55926
|
-
return `(${parts.join(", ")})`;
|
|
55920
|
+
/** A `"quantity"` magnitude rendered through `formatMagnitude`, or its raw string
|
|
55921
|
+
* representation when no callback was supplied or the value is not a number.
|
|
55922
|
+
*/
|
|
55923
|
+
function formatMagnitudeValue(v, formatMagnitude) {
|
|
55924
|
+
if (formatMagnitude && typeof v === "number") {
|
|
55925
|
+
return formatMagnitude(v);
|
|
55927
55926
|
}
|
|
55928
|
-
|
|
55927
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
55928
|
+
return v.toString();
|
|
55929
55929
|
}
|
|
55930
|
-
/**
|
|
55931
|
-
|
|
55930
|
+
/** A coordinate rendered as `(x, y[, z])`, each component passed through `formatMagnitude` when
|
|
55931
|
+
* one is supplied. Without a callback the components render bare, with no unit labels — Core
|
|
55932
|
+
* carries no built-in coordinate format.
|
|
55933
|
+
*/
|
|
55934
|
+
function formatPoint(v, formatMagnitude) {
|
|
55935
|
+
const magnitudes = getCoordinateMagnitudes(v);
|
|
55936
|
+
if (!magnitudes) {
|
|
55937
|
+
return undefined;
|
|
55938
|
+
}
|
|
55939
|
+
return `(${magnitudes.map((m) => formatMagnitude ? formatMagnitude(m) : `${m}`).join(", ")})`;
|
|
55940
|
+
}
|
|
55941
|
+
/** Formats `value` through the per-type entry in [[formatters]], wrapping the result with
|
|
55942
|
+
* prefix/suffix/case.
|
|
55943
|
+
*
|
|
55944
|
+
* `formatMagnitude` is consulted only by the `"quantity"` and `"coordinate"` branches. Omitting
|
|
55945
|
+
* it falls those values back to `value.toString()`.
|
|
55946
|
+
* @internal
|
|
55947
|
+
*/
|
|
55948
|
+
function formatFieldValue({ value, options, formatMagnitude }) {
|
|
55932
55949
|
const formatter = formatters[value.type];
|
|
55933
|
-
return formatter ? formatter(value.value, options) : undefined;
|
|
55950
|
+
return formatter ? formatter(value.value, options, formatMagnitude) : undefined;
|
|
55934
55951
|
}
|
|
55935
|
-
/**
|
|
55952
|
+
/** Type guard for [[FieldPropertyType]] strings that have a built-in per-type formatter.
|
|
55953
|
+
* @internal
|
|
55954
|
+
*/
|
|
55936
55955
|
function isKnownFieldPropertyType(type) {
|
|
55937
55956
|
return type in formatters;
|
|
55938
55957
|
}
|
|
55958
|
+
/** The `x`, `y` and (when present) `z` components of a coordinate value, or `undefined` if `v` is
|
|
55959
|
+
* not one.
|
|
55960
|
+
*/
|
|
55961
|
+
function getCoordinateMagnitudes(v) {
|
|
55962
|
+
if (typeof v !== "object" || !("x" in v) || !("y" in v)) {
|
|
55963
|
+
return undefined;
|
|
55964
|
+
}
|
|
55965
|
+
const parts = [v.x, v.y];
|
|
55966
|
+
const z = "z" in v ? v.z : undefined;
|
|
55967
|
+
if (undefined !== z) {
|
|
55968
|
+
parts.push(z);
|
|
55969
|
+
}
|
|
55970
|
+
return parts;
|
|
55971
|
+
}
|
|
55939
55972
|
|
|
55940
55973
|
|
|
55941
55974
|
/***/ },
|
|
@@ -57426,7 +57459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57426
57459
|
/* harmony export */ RpcNotFoundResponse: () => (/* binding */ RpcNotFoundResponse),
|
|
57427
57460
|
/* harmony export */ RpcPendingResponse: () => (/* binding */ RpcPendingResponse)
|
|
57428
57461
|
/* harmony export */ });
|
|
57429
|
-
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.
|
|
57462
|
+
/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! js-base64 */ "../../common/temp/node_modules/.pnpm/js-base64@3.9.4/node_modules/js-base64/base64.mjs");
|
|
57430
57463
|
/* harmony import */ var _RpcInterface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../RpcInterface */ "../../core/common/lib/esm/RpcInterface.js");
|
|
57431
57464
|
/* harmony import */ var _RpcManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../RpcManager */ "../../core/common/lib/esm/RpcManager.js");
|
|
57432
57465
|
/* harmony import */ var _RpcConfiguration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./RpcConfiguration */ "../../core/common/lib/esm/rpc/core/RpcConfiguration.js");
|
|
@@ -116575,6 +116608,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
116575
116608
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
116576
116609
|
/* eslint-disable @itwin/no-internal-barrel-imports */
|
|
116577
116610
|
/* eslint-disable sort-imports */
|
|
116611
|
+
/* eslint-disable @typescript-eslint/no-deprecated -- the extension runtime must keep exposing deprecated public APIs until they are removed */
|
|
116578
116612
|
|
|
116579
116613
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
116580
116614
|
if (globalThis[globalSymbol]) {
|
|
@@ -314499,7 +314533,7 @@ class BaseFormat {
|
|
|
314499
314533
|
_stationBaseFactor; // optional positive integer base factor for station formatting; default is 1
|
|
314500
314534
|
_ratioType; // required if type is ratio; options: oneToN, NToOne, ValueBased, useGreatestCommonDivisor
|
|
314501
314535
|
_ratioFormatType; // defaults to Decimal if not specified
|
|
314502
|
-
_ratioSeparator; // default is ":"; separator
|
|
314536
|
+
_ratioSeparator; // default is ":"; separator string used in ratio formatting
|
|
314503
314537
|
_azimuthBase; // value always clockwise from north
|
|
314504
314538
|
_azimuthBaseUnit; // unit for azimuthBase value
|
|
314505
314539
|
_azimuthCounterClockwise; // if set to true, azimuth values are returned counter-clockwise from base
|
|
@@ -314601,11 +314635,12 @@ class BaseFormat {
|
|
|
314601
314635
|
if (undefined === formatProps.ratioType)
|
|
314602
314636
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.InvalidJson, `The Format ${this.name} is 'Ratio' type therefore the attribute 'ratioType' is required.`);
|
|
314603
314637
|
this._ratioType = (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.parseRatioType)(formatProps.ratioType, this.name);
|
|
314604
|
-
if (undefined !== formatProps.ratioSeparator) { // optional; default is
|
|
314638
|
+
if (undefined !== formatProps.ratioSeparator) { // optional; default is ":"
|
|
314605
314639
|
if (typeof (formatProps.ratioSeparator) !== "string")
|
|
314606
314640
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.InvalidJson, `The Format ${this.name} has an invalid 'ratioSeparator' attribute. It should be of type 'string'.`);
|
|
314607
|
-
|
|
314608
|
-
|
|
314641
|
+
const nonSpaceCharacters = [...formatProps.ratioSeparator].filter((character) => character !== " ");
|
|
314642
|
+
if (nonSpaceCharacters.length !== 1 || nonSpaceCharacters[0].trim().length === 0)
|
|
314643
|
+
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.InvalidJson, `The Format ${this.name} has an invalid 'ratioSeparator' attribute. It should contain exactly one non-space character, optionally surrounded by spaces.`);
|
|
314609
314644
|
this._ratioSeparator = formatProps.ratioSeparator;
|
|
314610
314645
|
}
|
|
314611
314646
|
else {
|
|
@@ -317297,8 +317332,8 @@ class Parser {
|
|
|
317297
317332
|
static parseRatioFormat(inString, spec) {
|
|
317298
317333
|
if (!inString)
|
|
317299
317334
|
return { ok: false, error: ParseError.NoValueOrUnitFoundInString };
|
|
317300
|
-
const separator = spec.format.ratioSeparator
|
|
317301
|
-
const parts = inString.split(separator);
|
|
317335
|
+
const separator = spec.format.ratioSeparator?.split(" ").join("") || ":";
|
|
317336
|
+
const parts = inString.split(separator).map((p) => p.trim());
|
|
317302
317337
|
if (parts.length > 2)
|
|
317303
317338
|
return { ok: false, error: ParseError.UnableToConvertParseTokensToQuantity };
|
|
317304
317339
|
// If the string doesn't contain the expected separator but contains other ratio-like separators,
|
|
@@ -324938,9 +324973,9 @@ flatbuffers.ByteBuffer.prototype.createLong = function(low, high) {
|
|
|
324938
324973
|
|
|
324939
324974
|
/***/ },
|
|
324940
324975
|
|
|
324941
|
-
/***/ "../../common/temp/node_modules/.pnpm/js-base64@3.9.
|
|
324976
|
+
/***/ "../../common/temp/node_modules/.pnpm/js-base64@3.9.4/node_modules/js-base64/base64.mjs"
|
|
324942
324977
|
/*!**********************************************************************************************!*\
|
|
324943
|
-
!*** ../../common/temp/node_modules/.pnpm/js-base64@3.9.
|
|
324978
|
+
!*** ../../common/temp/node_modules/.pnpm/js-base64@3.9.4/node_modules/js-base64/base64.mjs ***!
|
|
324944
324979
|
\**********************************************************************************************/
|
|
324945
324980
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
324946
324981
|
|
|
@@ -324980,7 +325015,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
324980
325015
|
*
|
|
324981
325016
|
* @author Dan Kogai (https://github.com/dankogai)
|
|
324982
325017
|
*/
|
|
324983
|
-
const version = '3.9.
|
|
325018
|
+
const version = '3.9.4';
|
|
324984
325019
|
/**
|
|
324985
325020
|
* @deprecated use lowercase `version`.
|
|
324986
325021
|
*/
|
|
@@ -337294,7 +337329,7 @@ class WMS {
|
|
|
337294
337329
|
(module) {
|
|
337295
337330
|
|
|
337296
337331
|
"use strict";
|
|
337297
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.14.0-dev.
|
|
337332
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.14.0-dev.23","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 build: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: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 && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","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 build:test-worker && vitest --run","cover":"npm run build:test-worker && vitest --run","build:test-worker":"vite build --config ./src/test/worker/vite.config.mts 1>&2","build:workers":"rimraf lib/workers/webpack && vite build --config ./src/workers/ImdlParser/vite.config.mts 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":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.11","@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":"^6.0.0","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.10","@vitest/coverage-v8":"^4.1.10","cpx2":"^8.0.0","eslint":"^9.31.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","typescript":"~5.6.2","vite":"^6.4.3","vitest":"^4.1.10","vite-plugin-static-copy":"2.2.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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.4.5","@loaders.gl/draco":"^4.4.5","fuse.js":"^3.3.0","wms-capabilities":"0.6.0"}}');
|
|
337298
337333
|
|
|
337299
337334
|
/***/ },
|
|
337300
337335
|
|
|
@@ -337400,10 +337435,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"version":"01.00.00","sourceEcSchemaV
|
|
|
337400
337435
|
/******/ // This file contains only the entry chunk.
|
|
337401
337436
|
/******/ // The chunk loading function for additional chunks
|
|
337402
337437
|
/******/ __webpack_require__.e = (chunkId) => {
|
|
337403
|
-
/******/
|
|
337404
|
-
/******/
|
|
337405
|
-
/******/
|
|
337406
|
-
/******/ }, []));
|
|
337438
|
+
/******/ const promises = [];
|
|
337439
|
+
/******/ __webpack_require__.f.j(chunkId, promises);
|
|
337440
|
+
/******/ return Promise.all(promises);
|
|
337407
337441
|
/******/ };
|
|
337408
337442
|
/******/
|
|
337409
337443
|
/******/ /* webpack/runtime/get javascript chunk filename */
|