@itwin/ecschema-rpcinterface-tests 4.3.0-dev.14 → 4.3.0-dev.15
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 +33 -10
- 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_14_node_modules_loaders_gl_draco_d-aa4ff5.bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -76594,8 +76594,11 @@ class SectionAttachmentInfo {
|
|
|
76594
76594
|
displaySpatialView: this._displaySpatialView,
|
|
76595
76595
|
};
|
|
76596
76596
|
}
|
|
76597
|
-
clone() {
|
|
76598
|
-
|
|
76597
|
+
clone(iModel) {
|
|
76598
|
+
let spatialView = this._spatialView;
|
|
76599
|
+
if (spatialView instanceof _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewState3d)
|
|
76600
|
+
spatialView = spatialView.clone(iModel);
|
|
76601
|
+
return new SectionAttachmentInfo(spatialView, this._drawingToSpatialTransform, this._displaySpatialView);
|
|
76599
76602
|
}
|
|
76600
76603
|
preload(options) {
|
|
76601
76604
|
if (!this.wantDisplayed)
|
|
@@ -76789,7 +76792,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
76789
76792
|
if (categories instanceof DrawingViewState) {
|
|
76790
76793
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
76791
76794
|
this._modelLimits = { ...categories._modelLimits };
|
|
76792
|
-
this._attachmentInfo = categories._attachmentInfo.clone();
|
|
76795
|
+
this._attachmentInfo = categories._attachmentInfo.clone(iModel);
|
|
76793
76796
|
}
|
|
76794
76797
|
else {
|
|
76795
76798
|
this._viewedExtents = extents;
|
|
@@ -85275,6 +85278,7 @@ class SheetBorder {
|
|
|
85275
85278
|
* SheetViewState.load(). The Attachments object is created in SheetViewState.attachToViewport and disposed of in SheetViewState.detachFromViewport.
|
|
85276
85279
|
*/
|
|
85277
85280
|
class ViewAttachmentsInfo {
|
|
85281
|
+
get attachments() { return this._attachments; }
|
|
85278
85282
|
constructor(attachments) {
|
|
85279
85283
|
this._attachments = attachments;
|
|
85280
85284
|
}
|
|
@@ -85298,9 +85302,19 @@ class ViewAttachmentsInfo {
|
|
|
85298
85302
|
toJSON() {
|
|
85299
85303
|
return this.isLoaded ? this._props.map((x) => x.id) : [...this._ids];
|
|
85300
85304
|
}
|
|
85301
|
-
clone() {
|
|
85302
|
-
|
|
85303
|
-
|
|
85305
|
+
clone(iModel) {
|
|
85306
|
+
let attachments = this._attachments;
|
|
85307
|
+
if (this.isLoaded) {
|
|
85308
|
+
// Need to clone the attached ViewStates.
|
|
85309
|
+
attachments = attachments.map((attachment) => {
|
|
85310
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof attachment !== "string");
|
|
85311
|
+
return {
|
|
85312
|
+
...attachment,
|
|
85313
|
+
attachedView: attachment.attachedView.clone(iModel),
|
|
85314
|
+
};
|
|
85315
|
+
});
|
|
85316
|
+
}
|
|
85317
|
+
return new ViewAttachmentsInfo(attachments);
|
|
85304
85318
|
}
|
|
85305
85319
|
preload(options) {
|
|
85306
85320
|
if (this.isLoaded)
|
|
@@ -85463,7 +85477,16 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
85463
85477
|
}
|
|
85464
85478
|
/** Strictly for testing. @internal */
|
|
85465
85479
|
get viewAttachmentProps() {
|
|
85466
|
-
return this._attachmentsInfo.viewAttachmentProps
|
|
85480
|
+
return this._attachmentsInfo.viewAttachmentProps.map((x) => {
|
|
85481
|
+
return {
|
|
85482
|
+
...x,
|
|
85483
|
+
attachedView: undefined,
|
|
85484
|
+
};
|
|
85485
|
+
});
|
|
85486
|
+
}
|
|
85487
|
+
/** Strictly for testing. @internal */
|
|
85488
|
+
get viewAttachmentInfos() {
|
|
85489
|
+
return this._attachmentsInfo.attachments;
|
|
85467
85490
|
}
|
|
85468
85491
|
/** Strictly for testing. @internal */
|
|
85469
85492
|
get attachments() {
|
|
@@ -85478,7 +85501,7 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
85478
85501
|
if (categories instanceof SheetViewState) {
|
|
85479
85502
|
// we are coming from clone...
|
|
85480
85503
|
this.sheetSize = categories.sheetSize.clone();
|
|
85481
|
-
this._attachmentsInfo = categories._attachmentsInfo.clone();
|
|
85504
|
+
this._attachmentsInfo = categories._attachmentsInfo.clone(iModel);
|
|
85482
85505
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
85483
85506
|
}
|
|
85484
85507
|
else {
|
|
@@ -148453,7 +148476,7 @@ class ArcGisUtilities {
|
|
|
148453
148476
|
// and return information needed to initiate the authentification process... the end-user
|
|
148454
148477
|
// will have to provide his credentials before we can fully validate this source.
|
|
148455
148478
|
if (json.error.code === ArcGisErrorCode.TokenRequired) {
|
|
148456
|
-
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
148479
|
+
return (userName || password) ? { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials } : { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
148457
148480
|
}
|
|
148458
148481
|
else if (json.error.code === ArcGisErrorCode.InvalidCredentials)
|
|
148459
148482
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials };
|
|
@@ -289384,7 +289407,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
289384
289407
|
/***/ ((module) => {
|
|
289385
289408
|
|
|
289386
289409
|
"use strict";
|
|
289387
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.
|
|
289410
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.15","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.3.0-dev.15","@itwin/core-bentley":"workspace:^4.3.0-dev.15","@itwin/core-common":"workspace:^4.3.0-dev.15","@itwin/core-geometry":"workspace:^4.3.0-dev.15","@itwin/core-orbitgt":"workspace:^4.3.0-dev.15","@itwin/core-quantity":"workspace:^4.3.0-dev.15"},"//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.3.10","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","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.1.0","@itwin/object-storage-core":"^2.1.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"}}');
|
|
289388
289411
|
|
|
289389
289412
|
/***/ })
|
|
289390
289413
|
|