@itwin/rpcinterface-full-stack-tests 4.10.0-dev.23 → 4.10.0-dev.25
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 +42 -32
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -72559,7 +72559,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
|
|
|
72559
72559
|
*/
|
|
72560
72560
|
toJSON(standalone = false, includeSchemaVersion = false) {
|
|
72561
72561
|
const schemaJson = super.toJSON(standalone, includeSchemaVersion);
|
|
72562
|
-
schemaJson.type =
|
|
72562
|
+
schemaJson.type = this.type;
|
|
72563
72563
|
schemaJson.precision = this.precision;
|
|
72564
72564
|
// this._spacer = " ";
|
|
72565
72565
|
// this._includeZero = true;
|
|
@@ -72567,7 +72567,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
|
|
|
72567
72567
|
if (0.0 !== this.roundFactor)
|
|
72568
72568
|
schemaJson.roundFactor = this.roundFactor;
|
|
72569
72569
|
if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.ShowSignOption.OnlyNegative !== this.showSignOption)
|
|
72570
|
-
schemaJson.showSignOption =
|
|
72570
|
+
schemaJson.showSignOption = this.showSignOption;
|
|
72571
72571
|
if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatTraits.Uninitialized !== this.formatTraits)
|
|
72572
72572
|
schemaJson.formatTraits = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTraitsToArray)(this.formatTraits);
|
|
72573
72573
|
if ("." !== this.decimalSeparator)
|
|
@@ -72579,7 +72579,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
|
|
|
72579
72579
|
if (undefined !== this.minWidth)
|
|
72580
72580
|
schemaJson.minWidth = this.minWidth;
|
|
72581
72581
|
if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatType.Scientific === this.type && undefined !== this.scientificType)
|
|
72582
|
-
schemaJson.scientificType =
|
|
72582
|
+
schemaJson.scientificType = this.scientificType;
|
|
72583
72583
|
if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatType.Station === this.type) {
|
|
72584
72584
|
if (undefined !== this.stationOffsetSize)
|
|
72585
72585
|
schemaJson.stationOffsetSize = this.stationOffsetSize;
|
|
@@ -72605,10 +72605,10 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
|
|
|
72605
72605
|
/** @internal */
|
|
72606
72606
|
async toXml(schemaXml) {
|
|
72607
72607
|
const itemElement = await super.toXml(schemaXml);
|
|
72608
|
-
itemElement.setAttribute("type",
|
|
72608
|
+
itemElement.setAttribute("type", this.type.toLowerCase());
|
|
72609
72609
|
itemElement.setAttribute("precision", this.precision.toString());
|
|
72610
72610
|
itemElement.setAttribute("roundFactor", this.roundFactor.toString());
|
|
72611
|
-
itemElement.setAttribute("showSignOption",
|
|
72611
|
+
itemElement.setAttribute("showSignOption", this.showSignOption);
|
|
72612
72612
|
itemElement.setAttribute("decimalSeparator", this.decimalSeparator);
|
|
72613
72613
|
itemElement.setAttribute("thousandSeparator", this.thousandSeparator);
|
|
72614
72614
|
itemElement.setAttribute("uomSeparator", this.uomSeparator);
|
|
@@ -72616,7 +72616,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
|
|
|
72616
72616
|
if (undefined !== this.minWidth)
|
|
72617
72617
|
itemElement.setAttribute("minWidth", this.minWidth.toString());
|
|
72618
72618
|
if (undefined !== this.scientificType)
|
|
72619
|
-
itemElement.setAttribute("scientificType",
|
|
72619
|
+
itemElement.setAttribute("scientificType", this.scientificType);
|
|
72620
72620
|
if (undefined !== this.stationOffsetSize)
|
|
72621
72621
|
itemElement.setAttribute("stationOffsetSize", this.stationOffsetSize.toString());
|
|
72622
72622
|
const formatTraits = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTraitsToArray)(this.formatTraits);
|
|
@@ -292992,16 +292992,16 @@ class Format extends BaseFormat {
|
|
|
292992
292992
|
const azimuthBaseUnit = this.azimuthBaseUnit ? this.azimuthBaseUnit.name : undefined;
|
|
292993
292993
|
const revolutionUnit = this.revolutionUnit ? this.revolutionUnit.name : undefined;
|
|
292994
292994
|
const baseFormatProps = {
|
|
292995
|
-
type:
|
|
292995
|
+
type: this.type,
|
|
292996
292996
|
precision: this.precision,
|
|
292997
292997
|
roundFactor: this.roundFactor,
|
|
292998
292998
|
minWidth: this.minWidth,
|
|
292999
|
-
showSignOption:
|
|
292999
|
+
showSignOption: this.showSignOption,
|
|
293000
293000
|
formatTraits: (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.formatTraitsToArray)(this.formatTraits),
|
|
293001
293001
|
decimalSeparator: this.decimalSeparator,
|
|
293002
293002
|
thousandSeparator: this.thousandSeparator,
|
|
293003
293003
|
uomSeparator: this.uomSeparator,
|
|
293004
|
-
scientificType: this.scientificType
|
|
293004
|
+
scientificType: this.scientificType ? this.scientificType : undefined,
|
|
293005
293005
|
ratioType: this.ratioType,
|
|
293006
293006
|
stationOffsetSize: this.stationOffsetSize,
|
|
293007
293007
|
stationSeparator: this.stationSeparator,
|
|
@@ -293157,28 +293157,28 @@ var DecimalPrecision;
|
|
|
293157
293157
|
var FormatType;
|
|
293158
293158
|
(function (FormatType) {
|
|
293159
293159
|
/** Decimal display (ie 2.125) */
|
|
293160
|
-
FormatType[
|
|
293160
|
+
FormatType["Decimal"] = "Decimal";
|
|
293161
293161
|
/** Fractional display (ie 2-1/8) */
|
|
293162
|
-
FormatType[
|
|
293162
|
+
FormatType["Fractional"] = "Fractional";
|
|
293163
293163
|
/** Scientific Notation (ie 1.04e3) */
|
|
293164
|
-
FormatType[
|
|
293164
|
+
FormatType["Scientific"] = "Scientific";
|
|
293165
293165
|
/** Civil Engineering Stationing (ie 1+00). */
|
|
293166
|
-
FormatType[
|
|
293166
|
+
FormatType["Station"] = "Station";
|
|
293167
293167
|
/** Bearing angle e.g. N05:00:00E. Requires provided quantities to be of the angle phenomenon */
|
|
293168
|
-
FormatType[
|
|
293168
|
+
FormatType["Bearing"] = "Bearing";
|
|
293169
293169
|
/** Azimuth angle e.g. 45°30'00". Requires provided quantities to be of the angle phenomenon */
|
|
293170
|
-
FormatType[
|
|
293170
|
+
FormatType["Azimuth"] = "Azimuth";
|
|
293171
293171
|
/** Ratio display e,g. 1:2 or 0.3:1. */
|
|
293172
|
-
FormatType[
|
|
293172
|
+
FormatType["Ratio"] = "Ratio";
|
|
293173
293173
|
})(FormatType || (FormatType = {}));
|
|
293174
293174
|
/** required if type is scientific
|
|
293175
293175
|
* @beta */
|
|
293176
293176
|
var ScientificType;
|
|
293177
293177
|
(function (ScientificType) {
|
|
293178
293178
|
/** Non-zero value left of decimal point (ie 1.2345e3) */
|
|
293179
|
-
ScientificType[
|
|
293179
|
+
ScientificType["Normalized"] = "Normalized";
|
|
293180
293180
|
/** Zero value left of decimal point (ie 0.12345e4) */
|
|
293181
|
-
ScientificType[
|
|
293181
|
+
ScientificType["ZeroNormalized"] = "ZeroNormalized";
|
|
293182
293182
|
})(ScientificType || (ScientificType = {}));
|
|
293183
293183
|
/** required if type is ratio
|
|
293184
293184
|
* @beta */
|
|
@@ -293198,16 +293198,25 @@ var RatioType;
|
|
|
293198
293198
|
var ShowSignOption;
|
|
293199
293199
|
(function (ShowSignOption) {
|
|
293200
293200
|
/** Never show a sign even if the value is negative. */
|
|
293201
|
-
ShowSignOption[
|
|
293201
|
+
ShowSignOption["NoSign"] = "NoSign";
|
|
293202
293202
|
/** Only show a sign when the value is negative. */
|
|
293203
|
-
ShowSignOption[
|
|
293203
|
+
ShowSignOption["OnlyNegative"] = "OnlyNegative";
|
|
293204
293204
|
/** Always show a sign whether the value is positive or negative. */
|
|
293205
|
-
ShowSignOption[
|
|
293205
|
+
ShowSignOption["SignAlways"] = "SignAlways";
|
|
293206
293206
|
/** Only show a sign when the value is negative but use parentheses instead of a negative sign. For example, -10 is formatted as `(10)`. */
|
|
293207
|
-
ShowSignOption[
|
|
293207
|
+
ShowSignOption["NegativeParentheses"] = "NegativeParentheses";
|
|
293208
293208
|
})(ShowSignOption || (ShowSignOption = {}));
|
|
293209
293209
|
// parse and toString methods
|
|
293210
|
-
/**
|
|
293210
|
+
/**
|
|
293211
|
+
* @beta
|
|
293212
|
+
* @deprecated in 4.10. ScientificType is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
293213
|
+
*/
|
|
293214
|
+
function scientificTypeToString(scientificType) {
|
|
293215
|
+
return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
|
|
293216
|
+
}
|
|
293217
|
+
/**
|
|
293218
|
+
* @beta
|
|
293219
|
+
*/
|
|
293211
293220
|
function parseScientificType(scientificType, formatName) {
|
|
293212
293221
|
switch (scientificType.toLowerCase()) {
|
|
293213
293222
|
case "normalized": return ScientificType.Normalized;
|
|
@@ -293217,10 +293226,6 @@ function parseScientificType(scientificType, formatName) {
|
|
|
293217
293226
|
}
|
|
293218
293227
|
}
|
|
293219
293228
|
/** @beta */
|
|
293220
|
-
function scientificTypeToString(scientificType) {
|
|
293221
|
-
return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
|
|
293222
|
-
}
|
|
293223
|
-
/** @beta */
|
|
293224
293229
|
function parseRatioType(ratioType, formatName) {
|
|
293225
293230
|
const normalizedValue = ratioType.toLowerCase();
|
|
293226
293231
|
for (const key in RatioType) {
|
|
@@ -293244,7 +293249,10 @@ function parseShowSignOption(showSignOption, formatName) {
|
|
|
293244
293249
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityStatus.InvalidJson, `The Format ${formatName} has an invalid 'showSignOption' attribute.`);
|
|
293245
293250
|
}
|
|
293246
293251
|
}
|
|
293247
|
-
/**
|
|
293252
|
+
/**
|
|
293253
|
+
* @beta
|
|
293254
|
+
* @deprecated in 4.10. ShowSignOption is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
293255
|
+
*/
|
|
293248
293256
|
function showSignOptionToString(showSign) {
|
|
293249
293257
|
switch (showSign) {
|
|
293250
293258
|
case ShowSignOption.NegativeParentheses: return "NegativeParentheses";
|
|
@@ -293335,7 +293343,9 @@ function parseFormatType(jsonObjType, formatName) {
|
|
|
293335
293343
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityStatus.InvalidJson, `The Format ${formatName} has an invalid 'type' attribute.`);
|
|
293336
293344
|
}
|
|
293337
293345
|
}
|
|
293338
|
-
/** @beta
|
|
293346
|
+
/** @beta
|
|
293347
|
+
* @deprecated in 4.10. FormatType is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
293348
|
+
*/
|
|
293339
293349
|
function formatTypeToString(type) {
|
|
293340
293350
|
switch (type) {
|
|
293341
293351
|
case FormatType.Decimal: return "Decimal";
|
|
@@ -294780,7 +294790,7 @@ class Parser {
|
|
|
294780
294790
|
inString = inString.substring(0, inString.length - DirectionLabel.West.length);
|
|
294781
294791
|
matchedSuffix = DirectionLabel.West;
|
|
294782
294792
|
}
|
|
294783
|
-
if (matchedPrefix === null
|
|
294793
|
+
if (matchedPrefix === null || matchedSuffix === null) {
|
|
294784
294794
|
return { ok: false, error: ParseError.BearingPrefixOrSuffixMissing };
|
|
294785
294795
|
}
|
|
294786
294796
|
const parsedResult = this.parseAndProcessTokens(inString, spec.format, spec.unitConversions);
|
|
@@ -296370,7 +296380,7 @@ class TestContext {
|
|
|
296370
296380
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
296371
296381
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
296372
296382
|
await core_frontend_1.NoRenderApp.startup({
|
|
296373
|
-
applicationVersion: "4.10.0-dev.
|
|
296383
|
+
applicationVersion: "4.10.0-dev.25",
|
|
296374
296384
|
applicationId: this.settings.gprid,
|
|
296375
296385
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
296376
296386
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -321239,7 +321249,7 @@ function __disposeResources(env) {
|
|
|
321239
321249
|
/***/ ((module) => {
|
|
321240
321250
|
|
|
321241
321251
|
"use strict";
|
|
321242
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.
|
|
321252
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.25","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 --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./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 -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.10.0-dev.25","@itwin/core-bentley":"workspace:^4.10.0-dev.25","@itwin/core-common":"workspace:^4.10.0-dev.25","@itwin/core-geometry":"workspace:^4.10.0-dev.25","@itwin/core-orbitgt":"workspace:^4.10.0-dev.25","@itwin/core-quantity":"workspace:^4.10.0-dev.25"},"//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.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.2","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","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.2.4","@itwin/object-storage-core":"^2.2.5","@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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
321243
321253
|
|
|
321244
321254
|
/***/ }),
|
|
321245
321255
|
|