@itwin/ecschema-rpcinterface-tests 4.6.0-dev.23 → 4.6.0-dev.24
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/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +96 -3
- 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_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|E:\\vsts_b\\65\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -32524,6 +32524,7 @@ class PropertyMetaData {
|
|
|
32524
32524
|
*/
|
|
32525
32525
|
class EntityMetaData {
|
|
32526
32526
|
constructor(jsonObj) {
|
|
32527
|
+
this.classId = jsonObj.classId;
|
|
32527
32528
|
this.ecclass = jsonObj.ecclass;
|
|
32528
32529
|
this.description = jsonObj.description;
|
|
32529
32530
|
this.modifier = jsonObj.modifier;
|
|
@@ -75532,6 +75533,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75532
75533
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
75533
75534
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
75534
75535
|
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
75536
|
+
/* harmony import */ var _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TxnEntityChanges */ "../../core/frontend/lib/esm/TxnEntityChanges.js");
|
|
75535
75537
|
/*---------------------------------------------------------------------------------------------
|
|
75536
75538
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
75537
75539
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -75543,6 +75545,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75543
75545
|
|
|
75544
75546
|
|
|
75545
75547
|
|
|
75548
|
+
|
|
75546
75549
|
/**
|
|
75547
75550
|
* Base class for notification handlers for events from the backend that are specific to a [[BriefcaseConnection]].
|
|
75548
75551
|
* @see [[BriefcaseTxns]].
|
|
@@ -75718,11 +75721,11 @@ class BriefcaseTxns extends BriefcaseNotificationHandler {
|
|
|
75718
75721
|
}
|
|
75719
75722
|
/** @internal */
|
|
75720
75723
|
notifyElementsChanged(changed) {
|
|
75721
|
-
this.onElementsChanged.raiseEvent(changed);
|
|
75724
|
+
this.onElementsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
75722
75725
|
}
|
|
75723
75726
|
/** @internal */
|
|
75724
75727
|
notifyModelsChanged(changed) {
|
|
75725
|
-
this.onModelsChanged.raiseEvent(changed);
|
|
75728
|
+
this.onModelsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
75726
75729
|
}
|
|
75727
75730
|
/** @internal */
|
|
75728
75731
|
notifyGeometryGuidsChanged(changes) {
|
|
@@ -88140,6 +88143,96 @@ class Tiles {
|
|
|
88140
88143
|
}
|
|
88141
88144
|
|
|
88142
88145
|
|
|
88146
|
+
/***/ }),
|
|
88147
|
+
|
|
88148
|
+
/***/ "../../core/frontend/lib/esm/TxnEntityChanges.js":
|
|
88149
|
+
/*!*******************************************************!*\
|
|
88150
|
+
!*** ../../core/frontend/lib/esm/TxnEntityChanges.js ***!
|
|
88151
|
+
\*******************************************************/
|
|
88152
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88153
|
+
|
|
88154
|
+
"use strict";
|
|
88155
|
+
__webpack_require__.r(__webpack_exports__);
|
|
88156
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88157
|
+
/* harmony export */ "EntityChanges": () => (/* binding */ EntityChanges),
|
|
88158
|
+
/* harmony export */ "Metadata": () => (/* binding */ Metadata)
|
|
88159
|
+
/* harmony export */ });
|
|
88160
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
88161
|
+
/*---------------------------------------------------------------------------------------------
|
|
88162
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
88163
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
88164
|
+
*--------------------------------------------------------------------------------------------*/
|
|
88165
|
+
/** @packageDocumentation
|
|
88166
|
+
* @module IModelConnection
|
|
88167
|
+
*/
|
|
88168
|
+
|
|
88169
|
+
class Metadata {
|
|
88170
|
+
constructor(name) {
|
|
88171
|
+
this.baseClasses = [];
|
|
88172
|
+
this.classFullName = name;
|
|
88173
|
+
}
|
|
88174
|
+
is(baseName) {
|
|
88175
|
+
return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));
|
|
88176
|
+
}
|
|
88177
|
+
}
|
|
88178
|
+
function* entityChangesIterator(changes, options) {
|
|
88179
|
+
let excludedMetaIndices;
|
|
88180
|
+
if (options?.includeMetadata) {
|
|
88181
|
+
for (let i = 0; i < changes.metadata.length; i++) {
|
|
88182
|
+
if (!options.includeMetadata(changes.metadata[i])) {
|
|
88183
|
+
excludedMetaIndices = excludedMetaIndices ?? new Set();
|
|
88184
|
+
excludedMetaIndices.add(i);
|
|
88185
|
+
}
|
|
88186
|
+
}
|
|
88187
|
+
}
|
|
88188
|
+
function* process(type) {
|
|
88189
|
+
if (options?.includeTypes && !options.includeTypes.includes(type)) {
|
|
88190
|
+
return;
|
|
88191
|
+
}
|
|
88192
|
+
const ids = changes[type];
|
|
88193
|
+
if (undefined === ids) {
|
|
88194
|
+
return;
|
|
88195
|
+
}
|
|
88196
|
+
const metaIndices = changes.args[`${type}Meta`];
|
|
88197
|
+
let index = 0;
|
|
88198
|
+
for (const id of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.iterable(ids)) {
|
|
88199
|
+
const metaIndex = metaIndices[index++];
|
|
88200
|
+
if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {
|
|
88201
|
+
continue;
|
|
88202
|
+
}
|
|
88203
|
+
const metadata = changes.metadata[metaIndex];
|
|
88204
|
+
yield { type, id, metadata };
|
|
88205
|
+
}
|
|
88206
|
+
}
|
|
88207
|
+
yield* process("inserted");
|
|
88208
|
+
yield* process("deleted");
|
|
88209
|
+
yield* process("updated");
|
|
88210
|
+
}
|
|
88211
|
+
class EntityChanges {
|
|
88212
|
+
constructor(args) {
|
|
88213
|
+
this.args = args;
|
|
88214
|
+
this.metadata = args.meta.map((x) => new Metadata(x.name));
|
|
88215
|
+
for (let i = 0; i < this.metadata.length; i++) {
|
|
88216
|
+
const meta = this.metadata[i];
|
|
88217
|
+
for (const baseIndex of args.meta[i].bases) {
|
|
88218
|
+
meta.baseClasses.push(this.metadata[baseIndex]);
|
|
88219
|
+
}
|
|
88220
|
+
}
|
|
88221
|
+
}
|
|
88222
|
+
get inserted() { return this.args.inserted; }
|
|
88223
|
+
get deleted() { return this.args.deleted; }
|
|
88224
|
+
get updated() { return this.args.updated; }
|
|
88225
|
+
[Symbol.iterator]() {
|
|
88226
|
+
return entityChangesIterator(this);
|
|
88227
|
+
}
|
|
88228
|
+
filter(options) {
|
|
88229
|
+
return {
|
|
88230
|
+
[Symbol.iterator]: () => entityChangesIterator(this, options),
|
|
88231
|
+
};
|
|
88232
|
+
}
|
|
88233
|
+
}
|
|
88234
|
+
|
|
88235
|
+
|
|
88143
88236
|
/***/ }),
|
|
88144
88237
|
|
|
88145
88238
|
/***/ "../../core/frontend/lib/esm/UserPreferences.js":
|
|
@@ -297055,7 +297148,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
297055
297148
|
/***/ ((module) => {
|
|
297056
297149
|
|
|
297057
297150
|
"use strict";
|
|
297058
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.
|
|
297151
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.24","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.6.0-dev.24","@itwin/core-bentley":"workspace:^4.6.0-dev.24","@itwin/core-common":"workspace:^4.6.0-dev.24","@itwin/core-geometry":"workspace:^4.6.0-dev.24","@itwin/core-orbitgt":"workspace:^4.6.0-dev.24","@itwin/core-quantity":"workspace:^4.6.0-dev.24"},"//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.52","@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.44.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","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.1.0","@itwin/object-storage-core":"^2.2.2","@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"}}');
|
|
297059
297152
|
|
|
297060
297153
|
/***/ })
|
|
297061
297154
|
|