@itwin/rpcinterface-full-stack-tests 5.1.0-dev.7 → 5.1.0-dev.9

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.
@@ -101662,20 +101662,16 @@ class ECSchemaRpcLocater {
101662
101662
  return undefined;
101663
101663
  }
101664
101664
  /**
101665
- * Attempts to get a schema from the schema rpc locater. Yields undefined if no matching schema is found.
101666
- * @param schemaKey Key to look up
101667
- * @param matchType How to match key against candidate schemas
101668
- * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.
101665
+ * This method is not supported for locating schemas over RPC/HTTP.
101666
+ * Use the asynchronous `getSchema` method instead.
101667
+ * @param _schemaKey Key to look up
101668
+ * @param _matchType How to match key against candidate schemas
101669
+ * @param _context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.
101670
+ * @throws Error Always throws an error indicating this method is not supported.
101671
+ * @deprecated in 5.0 Use the asynchronous `getSchema` method for schema retrieval.
101669
101672
  */
101670
- getSchemaSync(schemaKey, matchType, context) {
101671
- const schemaJson = _ECSchemaRpcInterface__WEBPACK_IMPORTED_MODULE_1__.ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name).then((props) => {
101672
- return props;
101673
- });
101674
- const schema = _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.Schema.fromJsonSync(schemaJson, context || new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.SchemaContext());
101675
- if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {
101676
- return schema;
101677
- }
101678
- return undefined;
101673
+ getSchemaSync(_schemaKey, _matchType, _context) {
101674
+ throw new Error("getSchemaSync is not supported. Use the asynchronous getSchema method instead.");
101679
101675
  }
101680
101676
  }
101681
101677
 
@@ -103890,6 +103886,8 @@ class AccuDraw {
103890
103886
  onFieldKeyinStatusChange(_index) { }
103891
103887
  /** Called to request focus change to the specified input field */
103892
103888
  setFocusItem(_index) { }
103889
+ /** Called to get the item field that currently has input focus */
103890
+ getFocusItem() { return undefined; }
103893
103891
  static getMinPolarMag(origin) {
103894
103892
  return (1.0e-12 * (1.0 + origin.magnitude()));
103895
103893
  }
@@ -197678,6 +197676,7 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
197678
197676
  this._controls.overlay.remove();
197679
197677
  this._controls = undefined;
197680
197678
  this.unsuspendToolTips();
197679
+ this.removedControlRect();
197681
197680
  }
197682
197681
  createControlDiv() {
197683
197682
  const div = document.createElement("div");
@@ -197765,6 +197764,10 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
197765
197764
  style.outlineWidth = button.outlineWidth;
197766
197765
  return itemLock;
197767
197766
  }
197767
+ /** Called after the controls have been removed from the view. */
197768
+ removedControlRect() { }
197769
+ /** Called after the position of the controls in the supplied view is updated. */
197770
+ changedControlRect(_rect, _vp) { }
197768
197771
  /** Use to override the position of the controls in the supplied view. */
197769
197772
  modifyControlRect(_rect, _vp) { }
197770
197773
  /** Return the ViewRect currently occupied by the controls in the supplied view. */
@@ -197861,6 +197864,8 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
197861
197864
  return; // Keep showing at last valid location...
197862
197865
  this._controls.div.style.left = `${controlRect.left}px`;
197863
197866
  this._controls.div.style.top = `${controlRect.top}px`;
197867
+ this.changedControlRect(controlRect, vp);
197868
+ return;
197864
197869
  }
197865
197870
  get _isFocusHome() {
197866
197871
  return (document.body === document.activeElement);
@@ -197883,6 +197888,13 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
197883
197888
  // Indicate when keyboard shortcuts can't be used (i.e. focus not at AccuDraw or Home) by changing compass to monochrome...
197884
197889
  return (this._isFocusHome || this._isFocusAccuDraw);
197885
197890
  }
197891
+ /** Get the item field that currently has input focus.
197892
+ */
197893
+ getFocusItem() {
197894
+ if (!this._isFocusAccuDraw)
197895
+ return undefined;
197896
+ return this._focusItem;
197897
+ }
197886
197898
  /** Request to set focus to the specified AccuDraw input field to start entering values.
197887
197899
  * The focused input field will be indicated by the background color.
197888
197900
  */
@@ -204715,6 +204727,7 @@ class CurrentInputState {
204715
204727
  lastButton = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeButton.Data;
204716
204728
  inputSource = _Tool__WEBPACK_IMPORTED_MODULE_13__.InputSource.Unknown;
204717
204729
  lastMotion = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d();
204730
+ lastMotionEvent;
204718
204731
  lastWheelEvent;
204719
204732
  lastTouchStart;
204720
204733
  touchTapTimer;
@@ -204732,7 +204745,7 @@ class CurrentInputState {
204732
204745
  onStartDrag(button) { this.button[button].isDragging = true; }
204733
204746
  onInstallTool() {
204734
204747
  this.clearKeyQualifiers();
204735
- this.lastWheelEvent = undefined;
204748
+ this.lastWheelEvent = this.lastMotionEvent = undefined;
204736
204749
  this.lastTouchStart = this.touchTapTimer = this.touchTapCount = undefined;
204737
204750
  }
204738
204751
  clearKeyQualifiers() { this.qualifiers = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeModifierKeys.None; }
@@ -205007,6 +205020,9 @@ class ToolAdmin {
205007
205020
  this.clearMotionPromises();
205008
205021
  // make sure tools don't think the cursor is still in this viewport.
205009
205022
  this.onMouseLeave(vp);
205023
+ // Invalidate last motion if for this viewport...
205024
+ if (this.currentInputState.lastMotionEvent?.viewport === vp)
205025
+ this.currentInputState.lastMotionEvent = undefined;
205010
205026
  // Remove any events associated with this viewport.
205011
205027
  ToolAdmin._toolEvents = ToolAdmin._toolEvents.filter((ev) => ev.vp !== vp);
205012
205028
  }
@@ -205370,6 +205386,7 @@ class ToolAdmin {
205370
205386
  toolPromise.then(() => {
205371
205387
  if (undefined === this._toolMotionPromise)
205372
205388
  return; // Only early return if canceled, result from a previous motion is preferable to showing nothing...
205389
+ this.currentInputState.lastMotionEvent = motion; // Save to use for simulation motion...
205373
205390
  // Update decorations when dynamics are inactive...
205374
205391
  if (!_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.inDynamicsMode) {
205375
205392
  vp.invalidateDecorations();
@@ -206111,7 +206128,8 @@ class ToolAdmin {
206111
206128
  }
206112
206129
  /** Can be called by tools to invoke their [[InteractiveTool.onDynamicFrame]] method without requiring a motion event. */
206113
206130
  simulateMotionEvent() {
206114
- this.updateDynamics(undefined, undefined, true);
206131
+ // NOTE: Prefer last resolved motion over current cursor location which could be out of the view, or moved from last AccuSnap etc.
206132
+ this.updateDynamics(this.currentInputState.lastMotionEvent, undefined, true);
206115
206133
  }
206116
206134
  /** @internal */
206117
206135
  setIncompatibleViewportCursor(restore) {
@@ -329490,7 +329508,7 @@ class TestContext {
329490
329508
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
329491
329509
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
329492
329510
  await core_frontend_1.NoRenderApp.startup({
329493
- applicationVersion: "5.1.0-dev.7",
329511
+ applicationVersion: "5.1.0-dev.9",
329494
329512
  applicationId: this.settings.gprid,
329495
329513
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
329496
329514
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -354558,7 +354576,7 @@ var loadLanguages = instance.loadLanguages;
354558
354576
  /***/ ((module) => {
354559
354577
 
354560
354578
  "use strict";
354561
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.7","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","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.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","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"}}');
354579
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.9","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","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.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","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"}}');
354562
354580
 
354563
354581
  /***/ }),
354564
354582