@itwin/ecschema-rpcinterface-tests 4.0.0-dev.81 → 4.0.0-dev.83
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/_d48c.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +47 -9
- 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/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_5_0_node_modules_itwin_obj-e3e81d.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\10\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -63928,9 +63928,9 @@ class JsonParser extends AbstractParser_1.AbstractParser {
|
|
|
63928
63928
|
return jsonObj;
|
|
63929
63929
|
}
|
|
63930
63930
|
/**
|
|
63931
|
-
* Type checks format and returns
|
|
63931
|
+
* Type checks format and returns SchemaItemFormatProps interface
|
|
63932
63932
|
* @param jsonObj
|
|
63933
|
-
* @returns
|
|
63933
|
+
* @returns SchemaItemFormatProps
|
|
63934
63934
|
*/
|
|
63935
63935
|
parseFormat(jsonObj) {
|
|
63936
63936
|
this.checkSchemaItemProps(jsonObj);
|
|
@@ -68072,7 +68072,7 @@ exports.MutableMixin = MutableMixin;
|
|
|
68072
68072
|
* @module Metadata
|
|
68073
68073
|
*/
|
|
68074
68074
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68075
|
-
exports.OverrideFormat = void 0;
|
|
68075
|
+
exports.getFormatProps = exports.OverrideFormat = void 0;
|
|
68076
68076
|
const XmlSerializationUtils_1 = __webpack_require__(/*! ../Deserialization/XmlSerializationUtils */ "../../core/ecschema-metadata/lib/cjs/Deserialization/XmlSerializationUtils.js");
|
|
68077
68077
|
const ECObjects_1 = __webpack_require__(/*! ../ECObjects */ "../../core/ecschema-metadata/lib/cjs/ECObjects.js");
|
|
68078
68078
|
/**
|
|
@@ -68146,11 +68146,49 @@ class OverrideFormat {
|
|
|
68146
68146
|
*/
|
|
68147
68147
|
static isOverrideFormat(object) {
|
|
68148
68148
|
const overrideFormat = object;
|
|
68149
|
-
return overrideFormat !== undefined && overrideFormat.name !== undefined && overrideFormat.parent !== undefined &&
|
|
68150
|
-
|
|
68149
|
+
return overrideFormat !== undefined && overrideFormat.name !== undefined && overrideFormat.parent !== undefined && overrideFormat.parent.schemaItemType === ECObjects_1.SchemaItemType.Format;
|
|
68150
|
+
}
|
|
68151
|
+
/**
|
|
68152
|
+
* Returns a JSON object that contains the specification for the OverrideFormat where the precision and units properties have been overriden.
|
|
68153
|
+
* If the precision and/or units properties have been overriden, the returned object will contain a "name" and a "parent" property.
|
|
68154
|
+
* The "name" property identifies the OverrideFormat object itself and the "parent" property identifies the Format that has been overriden.
|
|
68155
|
+
* This method is not intended for complete serialization as it does not serialize any of the schema item properties.
|
|
68156
|
+
*/
|
|
68157
|
+
getFormatProps() {
|
|
68158
|
+
const formatJson = this.parent.toJSON();
|
|
68159
|
+
if (this.parent.fullName !== this.fullName) {
|
|
68160
|
+
// Update name and parent properties to distinguish it from parent Format
|
|
68161
|
+
formatJson.name = this.fullName;
|
|
68162
|
+
formatJson.parent = this.parent.fullName;
|
|
68163
|
+
}
|
|
68164
|
+
// Update Precision overriden property
|
|
68165
|
+
formatJson.precision = this.precision;
|
|
68166
|
+
if (this.units !== undefined) {
|
|
68167
|
+
// Update Units overriden property
|
|
68168
|
+
const units = [];
|
|
68169
|
+
for (const unit of this.units) {
|
|
68170
|
+
units.push({
|
|
68171
|
+
name: unit[0].fullName,
|
|
68172
|
+
label: unit[1],
|
|
68173
|
+
});
|
|
68174
|
+
}
|
|
68175
|
+
formatJson.composite = {
|
|
68176
|
+
spacer: (this.spacer !== " ") ? this.spacer : undefined,
|
|
68177
|
+
includeZero: (this.includeZero === false) ? this.includeZero : undefined,
|
|
68178
|
+
units,
|
|
68179
|
+
};
|
|
68180
|
+
}
|
|
68181
|
+
return formatJson;
|
|
68151
68182
|
}
|
|
68152
68183
|
}
|
|
68153
68184
|
exports.OverrideFormat = OverrideFormat;
|
|
68185
|
+
/**
|
|
68186
|
+
* @internal
|
|
68187
|
+
*/
|
|
68188
|
+
function getFormatProps(format) {
|
|
68189
|
+
return OverrideFormat.isOverrideFormat(format) ? format.getFormatProps() : format.toJSON();
|
|
68190
|
+
}
|
|
68191
|
+
exports.getFormatProps = getFormatProps;
|
|
68154
68192
|
|
|
68155
68193
|
|
|
68156
68194
|
/***/ }),
|
|
@@ -71399,10 +71437,10 @@ class SchemaUnitProvider {
|
|
|
71399
71437
|
return this.getUnitsProps(foundUnit);
|
|
71400
71438
|
}
|
|
71401
71439
|
/**
|
|
71402
|
-
* Gets the @itwin/core-quantity
|
|
71440
|
+
* Gets the @itwin/core-quantity UnitConversionProps for the given fromUnit and toUnit.
|
|
71403
71441
|
* @param fromUnit The UnitProps of the 'from' unit.
|
|
71404
71442
|
* @param toUnit The UnitProps of the 'to' unit.
|
|
71405
|
-
* @returns The
|
|
71443
|
+
* @returns The UnitConversionProps interface from the @itwin/core-quantity package.
|
|
71406
71444
|
*/
|
|
71407
71445
|
async getConversion(fromUnit, toUnit) {
|
|
71408
71446
|
const conversion = await this._unitConverter.calculateConversion(fromUnit.name, toUnit.name);
|
|
@@ -99425,7 +99463,7 @@ class BasicUnitsProvider {
|
|
|
99425
99463
|
return new ConversionData();
|
|
99426
99464
|
}
|
|
99427
99465
|
}
|
|
99428
|
-
/** Class that implements the minimum
|
|
99466
|
+
/** Class that implements the minimum UnitConversionProps interface to provide information needed to convert unit values.
|
|
99429
99467
|
* @alpha
|
|
99430
99468
|
*/
|
|
99431
99469
|
class ConversionData {
|
|
@@ -285326,7 +285364,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
285326
285364
|
/***/ ((module) => {
|
|
285327
285365
|
|
|
285328
285366
|
"use strict";
|
|
285329
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.
|
|
285367
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.83","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","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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-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"},"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.0.0-dev.83","@itwin/core-bentley":"workspace:^4.0.0-dev.83","@itwin/core-common":"workspace:^4.0.0-dev.83","@itwin/core-geometry":"workspace:^4.0.0-dev.83","@itwin/core-orbitgt":"workspace:^4.0.0-dev.83","@itwin/core-quantity":"workspace:^4.0.0-dev.83"},"//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.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","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.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
285330
285368
|
|
|
285331
285369
|
/***/ })
|
|
285332
285370
|
|