@itwin/rpcinterface-full-stack-tests 3.6.0-dev.55 → 3.6.0-dev.60
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/{_cb67.bundled-tests.js → _07c5.bundled-tests.js} +3 -3
- package/lib/dist/_07c5.bundled-tests.js.map +1 -0
- package/lib/dist/bundled-tests.js +837 -527
- 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_4_0_node_modules_itwin_obj-3576c6.bundled-tests.js.map +1 -1
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_12_node_modules_loaders_gl_draco_d-b19815.bundled-tests.js → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984.bundled-tests.js} +72 -72
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_12_node_modules_loaders_gl_draco_d-b19815.bundled-tests.js.map → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984.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 +14 -14
- package/lib/dist/_cb67.bundled-tests.js.map +0 -1
|
@@ -9634,7 +9634,7 @@ function BufferBigIntNotDefined () {
|
|
|
9634
9634
|
"use strict";
|
|
9635
9635
|
|
|
9636
9636
|
|
|
9637
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.
|
|
9637
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js");
|
|
9638
9638
|
|
|
9639
9639
|
var callBind = __webpack_require__(/*! ./ */ "../../common/temp/node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js");
|
|
9640
9640
|
|
|
@@ -9661,7 +9661,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
9661
9661
|
|
|
9662
9662
|
|
|
9663
9663
|
var bind = __webpack_require__(/*! function-bind */ "../../common/temp/node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js");
|
|
9664
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.
|
|
9664
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js");
|
|
9665
9665
|
|
|
9666
9666
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
9667
9667
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
@@ -21368,9 +21368,9 @@ module.exports = getFuncName;
|
|
|
21368
21368
|
|
|
21369
21369
|
/***/ }),
|
|
21370
21370
|
|
|
21371
|
-
/***/ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.
|
|
21371
|
+
/***/ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js":
|
|
21372
21372
|
/*!****************************************************************************************************!*\
|
|
21373
|
-
!*** ../../common/temp/node_modules/.pnpm/get-intrinsic@1.
|
|
21373
|
+
!*** ../../common/temp/node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js ***!
|
|
21374
21374
|
\****************************************************************************************************/
|
|
21375
21375
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
21376
21376
|
|
|
@@ -21439,6 +21439,8 @@ var INTRINSICS = {
|
|
|
21439
21439
|
'%AsyncIteratorPrototype%': needsEval,
|
|
21440
21440
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
21441
21441
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
21442
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
21443
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
21442
21444
|
'%Boolean%': Boolean,
|
|
21443
21445
|
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
21444
21446
|
'%Date%': Date,
|
|
@@ -21494,6 +21496,14 @@ var INTRINSICS = {
|
|
|
21494
21496
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
21495
21497
|
};
|
|
21496
21498
|
|
|
21499
|
+
try {
|
|
21500
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
21501
|
+
} catch (e) {
|
|
21502
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
21503
|
+
var errorProto = getProto(getProto(e));
|
|
21504
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
21505
|
+
}
|
|
21506
|
+
|
|
21497
21507
|
var doEval = function doEval(name) {
|
|
21498
21508
|
var value;
|
|
21499
21509
|
if (name === '%AsyncFunction%') {
|
|
@@ -21817,8 +21827,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21817
21827
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21818
21828
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
21819
21829
|
/* harmony export */ });
|
|
21820
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
21821
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
21830
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
21831
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
21822
21832
|
|
|
21823
21833
|
|
|
21824
21834
|
|
|
@@ -45602,7 +45612,7 @@ module.exports = validRange
|
|
|
45602
45612
|
"use strict";
|
|
45603
45613
|
|
|
45604
45614
|
|
|
45605
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.
|
|
45615
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../common/temp/node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js");
|
|
45606
45616
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../common/temp/node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js");
|
|
45607
45617
|
var inspect = __webpack_require__(/*! object-inspect */ "../../common/temp/node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js");
|
|
45608
45618
|
|
|
@@ -56852,14 +56862,15 @@ var CodeScopeSpec;
|
|
|
56852
56862
|
/** The Code value must be unique among other elements also scoped by the same element */
|
|
56853
56863
|
Type[Type["RelatedElement"] = 4] = "RelatedElement";
|
|
56854
56864
|
})(Type = CodeScopeSpec.Type || (CodeScopeSpec.Type = {}));
|
|
56855
|
-
/**
|
|
56865
|
+
/**
|
|
56866
|
+
* Requirements for how the CodeScope Element is identified.
|
|
56856
56867
|
* @public
|
|
56857
56868
|
*/
|
|
56858
56869
|
let ScopeRequirement;
|
|
56859
56870
|
(function (ScopeRequirement) {
|
|
56860
|
-
/** The
|
|
56871
|
+
/** The ElementId of CodeScope element identifies its scope. Used for Codes that are unique only within a single iModel. */
|
|
56861
56872
|
ScopeRequirement[ScopeRequirement["ElementId"] = 1] = "ElementId";
|
|
56862
|
-
/** The
|
|
56873
|
+
/** The FederationGuid of the CodeScope element identifies its scope. Used for Codes that are globally unique. */
|
|
56863
56874
|
ScopeRequirement[ScopeRequirement["FederationGuid"] = 2] = "FederationGuid";
|
|
56864
56875
|
})(ScopeRequirement = CodeScopeSpec.ScopeRequirement || (CodeScopeSpec.ScopeRequirement = {}));
|
|
56865
56876
|
})(CodeScopeSpec || (CodeScopeSpec = {}));
|
|
@@ -97790,11 +97801,6 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
97790
97801
|
* @beta
|
|
97791
97802
|
*/
|
|
97792
97803
|
this.onClose = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
97793
|
-
/** Event called immediately after *this* IModelConnection has its displayed extents expanded.
|
|
97794
|
-
* @note This event is called only for this IModelConnection.
|
|
97795
|
-
* @internal
|
|
97796
|
-
*/
|
|
97797
|
-
this.onDisplayedExtentsExpansion = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
97798
97804
|
this._snapRpc = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OneAtATimeAction(async (props) => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).requestSnap(this.getRpcProps(), _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.sessionId, props));
|
|
97799
97805
|
this._toolTipRpc = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OneAtATimeAction(async (id) => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getToolTipMessage(this.getRpcProps(), id));
|
|
97800
97806
|
/** Event called immediately after map elevation request is completed. This occurs only in the case where background map terrain is displayed
|
|
@@ -97813,9 +97819,11 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
97813
97819
|
this.hilited = new _SelectionSet__WEBPACK_IMPORTED_MODULE_8__.HiliteSet(this);
|
|
97814
97820
|
this.tiles = new _Tiles__WEBPACK_IMPORTED_MODULE_11__.Tiles(this);
|
|
97815
97821
|
this.geoServices = new _GeoServices__WEBPACK_IMPORTED_MODULE_4__.GeoServices(this);
|
|
97822
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
97816
97823
|
this.displayedExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(this.projectExtents);
|
|
97817
97824
|
this.onProjectExtentsChanged.addListener(() => {
|
|
97818
97825
|
// Compute new displayed extents as the union of the ranges we previously expanded by with the new project extents.
|
|
97826
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
97819
97827
|
this.expandDisplayedExtents(this._extentsExpansion);
|
|
97820
97828
|
});
|
|
97821
97829
|
this.hilited.onModelSubCategoryModeChanged.addListener(() => {
|
|
@@ -98126,12 +98134,14 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
98126
98134
|
/** Expand this iModel's [[displayedExtents]] to include the specified range.
|
|
98127
98135
|
* This is done automatically when reality models are added to a spatial view. In some cases a [[TiledGraphicsProvider]] may wish to expand
|
|
98128
98136
|
* the extents explicitly to include its geometry.
|
|
98137
|
+
* @deprecated in 3.6. See [[displayedExtents]].
|
|
98129
98138
|
*/
|
|
98130
98139
|
expandDisplayedExtents(range) {
|
|
98131
98140
|
this._extentsExpansion.extendRange(range);
|
|
98141
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
98132
98142
|
this.displayedExtents.setFrom(this.projectExtents);
|
|
98143
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
98133
98144
|
this.displayedExtents.extendRange(this._extentsExpansion);
|
|
98134
|
-
this.onDisplayedExtentsExpansion.raiseEvent();
|
|
98135
98145
|
}
|
|
98136
98146
|
/** @internal */
|
|
98137
98147
|
getMapEcefToDb(bimElevationBias) {
|
|
@@ -103539,28 +103549,42 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
|
|
|
103539
103549
|
markModelSelectorChanged() {
|
|
103540
103550
|
this._treeRefs.update();
|
|
103541
103551
|
}
|
|
103542
|
-
/** Get world-space viewed extents based on the iModel's project extents.
|
|
103552
|
+
/** Get world-space viewed extents based on the iModel's project extents.
|
|
103553
|
+
* @deprecated in 3.6. These extents are based on [[IModelConnection.displayedExtents]], which is deprecated. Consider using [[computeFitRange]] or [[getViewedExtents]] instead.
|
|
103554
|
+
*/
|
|
103543
103555
|
getDisplayedExtents() {
|
|
103556
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
103544
103557
|
const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.displayedExtents);
|
|
103545
103558
|
extents.scaleAboutCenterInPlace(1.0001); // projectExtents. lying smack up against the extents is not excluded by frustum...
|
|
103546
103559
|
extents.extendRange(this.getGroundExtents());
|
|
103547
103560
|
return extents;
|
|
103548
103561
|
}
|
|
103562
|
+
computeBaseExtents() {
|
|
103563
|
+
const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.projectExtents);
|
|
103564
|
+
// Ensure geometry coincident with planes of the project extents is not clipped.
|
|
103565
|
+
extents.scaleAboutCenterInPlace(1.0001);
|
|
103566
|
+
// Ensure ground plane is not clipped, if it's being drawn.
|
|
103567
|
+
extents.extendRange(this.getGroundExtents());
|
|
103568
|
+
return extents;
|
|
103569
|
+
}
|
|
103549
103570
|
/** Compute world-space range appropriate for fitting the view. If that range is null, use the displayed extents. */
|
|
103550
103571
|
computeFitRange() {
|
|
103551
|
-
//
|
|
103572
|
+
// Fit to the union of the ranges of all loaded tile trees.
|
|
103552
103573
|
const range = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
103553
103574
|
this.forEachTileTreeRef((ref) => {
|
|
103554
103575
|
ref.unionFitRange(range);
|
|
103555
103576
|
});
|
|
103577
|
+
// Fall back to the project extents if necessary.
|
|
103556
103578
|
if (range.isNull)
|
|
103557
|
-
range.setFrom(this.
|
|
103579
|
+
range.setFrom(this.computeBaseExtents());
|
|
103580
|
+
// Avoid ridiculously small extents.
|
|
103558
103581
|
range.ensureMinLengths(1.0);
|
|
103559
103582
|
return range;
|
|
103560
103583
|
}
|
|
103561
103584
|
getViewedExtents() {
|
|
103562
|
-
|
|
103563
|
-
|
|
103585
|
+
// Encompass the project extents and ground plane.
|
|
103586
|
+
const extents = this.computeBaseExtents();
|
|
103587
|
+
// Include any tile trees that extend outside the project extents.
|
|
103564
103588
|
extents.extendRange(this.computeFitRange());
|
|
103565
103589
|
return extents;
|
|
103566
103590
|
}
|
|
@@ -109770,9 +109794,6 @@ class Viewport {
|
|
|
109770
109794
|
removals.push(this.iModel.onMapElevationLoaded.addListener((_iModel) => {
|
|
109771
109795
|
this.synchWithView();
|
|
109772
109796
|
}));
|
|
109773
|
-
removals.push(this.iModel.onDisplayedExtentsExpansion.addListener(() => {
|
|
109774
|
-
this.invalidateController();
|
|
109775
|
-
}));
|
|
109776
109797
|
}
|
|
109777
109798
|
}
|
|
109778
109799
|
registerDisplayStyleListeners(style) {
|
|
@@ -153793,7 +153814,7 @@ class GltfReader {
|
|
|
153793
153814
|
if (dracoMeshes.length === 0)
|
|
153794
153815
|
return;
|
|
153795
153816
|
try {
|
|
153796
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
153817
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984"), __webpack_require__.e("_07c5")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.13/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
153797
153818
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
153798
153819
|
}
|
|
153799
153820
|
catch (err) {
|
|
@@ -153940,14 +153961,16 @@ class GltfReader {
|
|
|
153940
153961
|
}
|
|
153941
153962
|
let nMap;
|
|
153942
153963
|
if (normalMap) {
|
|
153964
|
+
const greenUp = true;
|
|
153943
153965
|
if (texture) {
|
|
153944
153966
|
nMap = {
|
|
153945
153967
|
normalMap,
|
|
153968
|
+
greenUp,
|
|
153946
153969
|
};
|
|
153947
153970
|
}
|
|
153948
153971
|
else {
|
|
153949
153972
|
texture = normalMap;
|
|
153950
|
-
nMap = {};
|
|
153973
|
+
nMap = { greenUp };
|
|
153951
153974
|
}
|
|
153952
153975
|
}
|
|
153953
153976
|
if (!texture)
|
|
@@ -156628,6 +156651,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156628
156651
|
this.viewFlagOverrides = {};
|
|
156629
156652
|
this._tileGraphics = new Map();
|
|
156630
156653
|
const worldContentRange = this.iModelTransform.multiplyRange(cloudRange);
|
|
156654
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
156631
156655
|
this.iModel.expandDisplayedExtents(worldContentRange);
|
|
156632
156656
|
this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
|
|
156633
156657
|
this.rootTile = new OrbitGtRootTile(this._tileParams, this);
|
|
@@ -156979,7 +157003,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
156979
157003
|
async function decodeDracoPointCloud(buf) {
|
|
156980
157004
|
var _a, _b, _c, _d, _e, _f;
|
|
156981
157005
|
try {
|
|
156982
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
157006
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984"), __webpack_require__.e("_07c5")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.13/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
156983
157007
|
const mesh = await dracoLoader.parse(buf, {});
|
|
156984
157008
|
if (mesh.topology !== "point-list")
|
|
156985
157009
|
return undefined;
|
|
@@ -158130,6 +158154,7 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_7__.Realit
|
|
|
158130
158154
|
this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
|
|
158131
158155
|
if (!this.isContentUnbounded && !this.rootTile.contentRange.isNull) {
|
|
158132
158156
|
const worldContentRange = this.iModelTransform.multiplyRange(this.rootTile.contentRange);
|
|
158157
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
158133
158158
|
this.iModel.expandDisplayedExtents(worldContentRange);
|
|
158134
158159
|
}
|
|
158135
158160
|
}
|
|
@@ -160384,12 +160409,20 @@ class TileAdmin {
|
|
|
160384
160409
|
this.contextPreloadParentDepth = Math.max(0, Math.min((options.contextPreloadParentDepth === undefined ? 2 : options.contextPreloadParentDepth), 8));
|
|
160385
160410
|
// If unspecified skip one level before preloading of parents of context tiles.
|
|
160386
160411
|
this.contextPreloadParentSkip = Math.max(0, Math.min((options.contextPreloadParentSkip === undefined ? 1 : options.contextPreloadParentSkip), 5));
|
|
160387
|
-
|
|
160388
|
-
this.
|
|
160389
|
-
|
|
160390
|
-
|
|
160391
|
-
|
|
160392
|
-
|
|
160412
|
+
const removals = [
|
|
160413
|
+
this.onTileLoad.addListener(() => this.invalidateAllScenes()),
|
|
160414
|
+
this.onTileChildrenLoad.addListener(() => this.invalidateAllScenes()),
|
|
160415
|
+
this.onTileTreeLoad.addListener(() => {
|
|
160416
|
+
// A reality model tile tree's range may extend outside of the project extents - we'll want to recompute the extents
|
|
160417
|
+
// of any spatial view's that may be displaying the reality model.
|
|
160418
|
+
for (const user of this.tileUsers)
|
|
160419
|
+
if (user instanceof _Viewport__WEBPACK_IMPORTED_MODULE_5__.Viewport && user.view.isSpatialView())
|
|
160420
|
+
user.invalidateController();
|
|
160421
|
+
}),
|
|
160422
|
+
];
|
|
160423
|
+
this._cleanup = () => {
|
|
160424
|
+
removals.forEach((removal) => removal());
|
|
160425
|
+
};
|
|
160393
160426
|
}
|
|
160394
160427
|
/** Create a TileAdmin suitable for passing to [[IModelApp.startup]] via [[IModelAppOptions.tileAdmin]] to customize aspects of
|
|
160395
160428
|
* its behavior.
|
|
@@ -163637,7 +163670,8 @@ class ArcGisUtilities {
|
|
|
163637
163670
|
* @return Validation Status. If successful, a list of available sub-layers will also be returned.
|
|
163638
163671
|
*/
|
|
163639
163672
|
static async validateSource(url, formatId, capabilitiesFilter, userName, password, ignoreCache) {
|
|
163640
|
-
const
|
|
163673
|
+
const metadata = await this.getServiceJson(url, formatId, userName, password, ignoreCache);
|
|
163674
|
+
const json = metadata === null || metadata === void 0 ? void 0 : metadata.content;
|
|
163641
163675
|
if (json === undefined) {
|
|
163642
163676
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidUrl };
|
|
163643
163677
|
}
|
|
@@ -163653,18 +163687,20 @@ class ArcGisUtilities {
|
|
|
163653
163687
|
}
|
|
163654
163688
|
// Check this service support the expected queries
|
|
163655
163689
|
let hasCapabilities = false;
|
|
163656
|
-
|
|
163657
|
-
|
|
163658
|
-
|
|
163659
|
-
|
|
163660
|
-
|
|
163661
|
-
|
|
163662
|
-
}
|
|
163690
|
+
let capsArray = [];
|
|
163691
|
+
if (json.capabilities && typeof json.capabilities === "string") {
|
|
163692
|
+
const capabilities = json.capabilities;
|
|
163693
|
+
capsArray = capabilities.split(",").map((entry) => entry.toLowerCase());
|
|
163694
|
+
const filtered = capsArray.filter((element, _index, _array) => capabilitiesFilter.includes(element));
|
|
163695
|
+
hasCapabilities = (filtered.length === capabilitiesFilter.length);
|
|
163663
163696
|
}
|
|
163664
|
-
catch { }
|
|
163665
163697
|
if (!hasCapabilities) {
|
|
163666
163698
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidFormat };
|
|
163667
163699
|
}
|
|
163700
|
+
// Only EPSG:3857 is supported with pre-rendered tiles.
|
|
163701
|
+
if (json.tileInfo && capsArray.includes("tilesonly") && !ArcGisUtilities.isEpsg3857Compatible(json.tileInfo)) {
|
|
163702
|
+
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCoordinateSystem };
|
|
163703
|
+
}
|
|
163668
163704
|
let subLayers;
|
|
163669
163705
|
if (json.layers) {
|
|
163670
163706
|
subLayers = new Array();
|
|
@@ -163676,35 +163712,62 @@ class ArcGisUtilities {
|
|
|
163676
163712
|
}
|
|
163677
163713
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.Valid, subLayers };
|
|
163678
163714
|
}
|
|
163715
|
+
/**
|
|
163716
|
+
* Validate MapService tiling metadata and checks if the tile tree is 'Google Maps' compatible.
|
|
163717
|
+
*/
|
|
163718
|
+
static isEpsg3857Compatible(tileInfo) {
|
|
163719
|
+
var _a;
|
|
163720
|
+
if (((_a = tileInfo.spatialReference) === null || _a === void 0 ? void 0 : _a.latestWkid) !== 3857 || !Array.isArray(tileInfo.lods))
|
|
163721
|
+
return false;
|
|
163722
|
+
const zeroLod = tileInfo.lods[0];
|
|
163723
|
+
return zeroLod.level === 0 && Math.abs(zeroLod.resolution - 156543.03392800014) < .001;
|
|
163724
|
+
}
|
|
163679
163725
|
/**
|
|
163680
163726
|
* Fetch an ArcGIS service metadata, and returns its JSON representation.
|
|
163681
163727
|
* If an access client has been configured for the specified formatId,
|
|
163682
163728
|
* it will be used to apply required security token.
|
|
163683
163729
|
* By default, response for each URL are cached.
|
|
163684
163730
|
*/
|
|
163685
|
-
static async getServiceJson(url, formatId, userName, password, ignoreCache) {
|
|
163731
|
+
static async getServiceJson(url, formatId, userName, password, ignoreCache, requireToken) {
|
|
163686
163732
|
if (!ignoreCache) {
|
|
163687
163733
|
const cached = ArcGisUtilities._serviceCache.get(url);
|
|
163688
163734
|
if (cached !== undefined)
|
|
163689
163735
|
return cached;
|
|
163690
163736
|
}
|
|
163737
|
+
let accessTokenRequired = false;
|
|
163691
163738
|
try {
|
|
163692
|
-
|
|
163739
|
+
let tmpUrl = new URL(url);
|
|
163693
163740
|
tmpUrl.searchParams.append("f", "json");
|
|
163694
|
-
|
|
163695
|
-
if (
|
|
163696
|
-
|
|
163741
|
+
// In some cases, caller might already know token is required, so append it immediately
|
|
163742
|
+
if (requireToken) {
|
|
163743
|
+
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.mapLayerFormatRegistry.getAccessClient(formatId);
|
|
163744
|
+
if (accessClient) {
|
|
163745
|
+
accessTokenRequired = true;
|
|
163746
|
+
await ArcGisUtilities.appendSecurityToken(tmpUrl, accessClient, { mapLayerUrl: new URL(url), userName, password });
|
|
163747
|
+
}
|
|
163748
|
+
}
|
|
163749
|
+
let response = await fetch(tmpUrl.toString(), { method: "GET" });
|
|
163750
|
+
// Append security token when corresponding error code is returned by ArcGIS service
|
|
163751
|
+
let errorCode = await ArcGisUtilities.checkForResponseErrorCode(response);
|
|
163752
|
+
if (!accessTokenRequired
|
|
163753
|
+
&& errorCode !== undefined
|
|
163754
|
+
&& errorCode === ArcGisErrorCode.TokenRequired) {
|
|
163755
|
+
accessTokenRequired = true;
|
|
163756
|
+
// If token required
|
|
163757
|
+
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.mapLayerFormatRegistry.getAccessClient(formatId);
|
|
163758
|
+
if (accessClient) {
|
|
163759
|
+
tmpUrl = new URL(url);
|
|
163760
|
+
tmpUrl.searchParams.append("f", "json");
|
|
163761
|
+
await ArcGisUtilities.appendSecurityToken(tmpUrl, accessClient, { mapLayerUrl: new URL(url), userName, password });
|
|
163762
|
+
response = await fetch(tmpUrl.toString(), { method: "GET" });
|
|
163763
|
+
errorCode = await ArcGisUtilities.checkForResponseErrorCode(response);
|
|
163764
|
+
}
|
|
163697
163765
|
}
|
|
163698
|
-
const response = await fetch(tmpUrl.toString(), { method: "GET" });
|
|
163699
|
-
const errorCode = await ArcGisUtilities.checkForResponseErrorCode(response);
|
|
163700
163766
|
const json = await response.json();
|
|
163701
|
-
|
|
163702
|
-
|
|
163703
|
-
|
|
163704
|
-
|
|
163705
|
-
ArcGisUtilities._serviceCache.set(url, undefined);
|
|
163706
|
-
}
|
|
163707
|
-
return json; // Always return json, even though it contains an error code.
|
|
163767
|
+
const info = { content: json, accessTokenRequired };
|
|
163768
|
+
// Cache the response only if it doesn't contain any error.
|
|
163769
|
+
ArcGisUtilities._serviceCache.set(url, (errorCode === undefined ? info : undefined));
|
|
163770
|
+
return info; // Always return json, even though it contains an error code.
|
|
163708
163771
|
}
|
|
163709
163772
|
catch (_error) {
|
|
163710
163773
|
ArcGisUtilities._serviceCache.set(url, undefined);
|
|
@@ -163715,19 +163778,19 @@ class ArcGisUtilities {
|
|
|
163715
163778
|
*/
|
|
163716
163779
|
static async checkForResponseErrorCode(response) {
|
|
163717
163780
|
var _a, _b, _c;
|
|
163718
|
-
|
|
163781
|
+
const tmpResponse = response;
|
|
163782
|
+
if (response.headers && ((_a = tmpResponse.headers.get("content-type")) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes("json"))) {
|
|
163719
163783
|
try {
|
|
163720
163784
|
// Note:
|
|
163721
163785
|
// Since response stream can only be read once (i.e. calls to .json() method)
|
|
163722
163786
|
// we have to clone the response object in order to check for potential error code,
|
|
163723
163787
|
// but still keep the response stream as unread.
|
|
163724
|
-
const clonedResponse =
|
|
163788
|
+
const clonedResponse = tmpResponse.clone();
|
|
163725
163789
|
const json = await clonedResponse.json();
|
|
163726
163790
|
if (((_b = json === null || json === void 0 ? void 0 : json.error) === null || _b === void 0 ? void 0 : _b.code) !== undefined)
|
|
163727
163791
|
return (_c = json === null || json === void 0 ? void 0 : json.error) === null || _c === void 0 ? void 0 : _c.code;
|
|
163728
163792
|
}
|
|
163729
|
-
catch {
|
|
163730
|
-
}
|
|
163793
|
+
catch { }
|
|
163731
163794
|
}
|
|
163732
163795
|
return undefined;
|
|
163733
163796
|
}
|
|
@@ -164571,8 +164634,53 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
|
|
|
164571
164634
|
constructor(settings, usesCachedTiles) {
|
|
164572
164635
|
var _a;
|
|
164573
164636
|
super(settings, usesCachedTiles);
|
|
164637
|
+
/** Flag indicating if access token should be added to request.
|
|
164638
|
+
* @note We assume a service to require access token for the entire viewing session.
|
|
164639
|
+
*/
|
|
164640
|
+
this._accessTokenRequired = false;
|
|
164574
164641
|
this._accessClient = (_a = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry) === null || _a === void 0 ? void 0 : _a.getAccessClient(settings.formatId);
|
|
164575
164642
|
}
|
|
164643
|
+
/** Updates the accessClient token state whenever the status of the provider change.
|
|
164644
|
+
* @internal
|
|
164645
|
+
* */
|
|
164646
|
+
onStatusUpdated(status) {
|
|
164647
|
+
var _a;
|
|
164648
|
+
if (status === _internal__WEBPACK_IMPORTED_MODULE_0__.MapLayerImageryProviderStatus.RequireAuth) {
|
|
164649
|
+
// Invalidate the token, so a new one get generated
|
|
164650
|
+
if (((_a = this._accessClient) === null || _a === void 0 ? void 0 : _a.invalidateToken) !== undefined && this._lastAccessToken !== undefined) {
|
|
164651
|
+
this._accessClient.invalidateToken(this._lastAccessToken);
|
|
164652
|
+
}
|
|
164653
|
+
// Make sure we don't re-use this token again (i.e force login process)
|
|
164654
|
+
this._lastAccessToken = undefined;
|
|
164655
|
+
}
|
|
164656
|
+
}
|
|
164657
|
+
/**
|
|
164658
|
+
* Fetch an ArcGIS service metadata, and returns its JSON representation.
|
|
164659
|
+
* This wrapper maintains token state and should be used instead of the the ArcGisUtilities version.
|
|
164660
|
+
*/
|
|
164661
|
+
async getServiceJson() {
|
|
164662
|
+
let metadata;
|
|
164663
|
+
try {
|
|
164664
|
+
metadata = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.getServiceJson(this._settings.url, this._settings.formatId, this._settings.userName, this._settings.password);
|
|
164665
|
+
}
|
|
164666
|
+
catch (_e) {
|
|
164667
|
+
}
|
|
164668
|
+
if (metadata && metadata.accessTokenRequired) {
|
|
164669
|
+
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry.getAccessClient(this._settings.formatId);
|
|
164670
|
+
if (accessClient) {
|
|
164671
|
+
try {
|
|
164672
|
+
// Keep track of last used access token, so we can invalidate it later when an errors occurs
|
|
164673
|
+
const accessToken = await accessClient.getAccessToken({ mapLayerUrl: new URL(this._settings.url) });
|
|
164674
|
+
this._lastAccessToken = accessToken;
|
|
164675
|
+
}
|
|
164676
|
+
catch {
|
|
164677
|
+
}
|
|
164678
|
+
}
|
|
164679
|
+
// By turning this ON, tiles requests will include security token
|
|
164680
|
+
this._accessTokenRequired = metadata.accessTokenRequired;
|
|
164681
|
+
}
|
|
164682
|
+
return metadata;
|
|
164683
|
+
}
|
|
164576
164684
|
/**
|
|
164577
164685
|
* Make a request to an ArcGIS service using the provided URL and init parameters.
|
|
164578
164686
|
* @param url URL to query
|
|
@@ -164581,28 +164689,35 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
|
|
|
164581
164689
|
*/
|
|
164582
164690
|
async fetch(url, options) {
|
|
164583
164691
|
var _a, _b;
|
|
164692
|
+
let errorCode;
|
|
164584
164693
|
const urlObj = new URL(url);
|
|
164585
|
-
|
|
164586
|
-
|
|
164587
|
-
|
|
164588
|
-
|
|
164589
|
-
|
|
164590
|
-
|
|
164591
|
-
});
|
|
164592
|
-
}
|
|
164593
|
-
}
|
|
164594
|
-
catch {
|
|
164694
|
+
if (this._accessTokenRequired && this._accessClient) {
|
|
164695
|
+
this._lastAccessToken = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.appendSecurityToken(urlObj, this._accessClient, {
|
|
164696
|
+
mapLayerUrl: new URL(this._settings.url),
|
|
164697
|
+
userName: this._settings.userName,
|
|
164698
|
+
password: this._settings.password
|
|
164699
|
+
});
|
|
164595
164700
|
}
|
|
164596
164701
|
let response = await fetch(urlObj.toString(), options);
|
|
164597
|
-
|
|
164702
|
+
if ((this._lastAccessToken && response.status === 400)
|
|
164703
|
+
|| ((_a = response.headers.get("content-type")) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes("htm"))) {
|
|
164704
|
+
// For some reasons when we make a request with the fetch() api and there is a token error
|
|
164705
|
+
// we receive a status 400 instead of proper json response. (i.e doing the same request in the browser gives a different response)
|
|
164706
|
+
// For some other request, we also seen error message in html.
|
|
164707
|
+
// When it occurs, we fall back to root service request so we get a proper JSON response with error code.
|
|
164708
|
+
const tmpUrl = new URL(this._settings.url);
|
|
164709
|
+
if (this._lastAccessToken && this._accessTokenRequired)
|
|
164710
|
+
tmpUrl.searchParams.append("token", this._lastAccessToken.token);
|
|
164711
|
+
tmpUrl.searchParams.append("f", "json");
|
|
164712
|
+
response = await fetch(tmpUrl.toString(), options);
|
|
164713
|
+
}
|
|
164714
|
+
errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response.clone());
|
|
164598
164715
|
if (errorCode !== undefined &&
|
|
164599
164716
|
(errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.TokenRequired || errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.InvalidToken)) {
|
|
164600
|
-
let hasTokenError = true;
|
|
164601
|
-
// **** Legacy token ONLY ***
|
|
164602
|
-
// Token might have expired, make a second attempt by forcing new token.
|
|
164603
164717
|
if (this._settings.userName && this._settings.userName.length > 0 && this._lastAccessToken) {
|
|
164604
|
-
//
|
|
164605
|
-
|
|
164718
|
+
// **** Legacy token ONLY ***
|
|
164719
|
+
// Token might have expired, make a second attempt by forcing new token.
|
|
164720
|
+
if (((_b = this._accessClient) === null || _b === void 0 ? void 0 : _b.invalidateToken) !== undefined && this._lastAccessToken !== undefined)
|
|
164606
164721
|
this._accessClient.invalidateToken(this._lastAccessToken);
|
|
164607
164722
|
const urlObj2 = new URL(url);
|
|
164608
164723
|
if (this._accessClient) {
|
|
@@ -164615,32 +164730,21 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
|
|
|
164615
164730
|
// Make a second attempt with refreshed token
|
|
164616
164731
|
response = await fetch(urlObj2.toString(), options);
|
|
164617
164732
|
errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response.clone());
|
|
164618
|
-
if (errorCode !== undefined &&
|
|
164619
|
-
(errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.TokenRequired || errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.InvalidToken)) {
|
|
164620
|
-
// OK at this point, if response still contain a token error, we assume end-user will
|
|
164621
|
-
// have to provide credentials again. Change the layer status so we
|
|
164622
|
-
// don't make additional invalid requests..
|
|
164623
|
-
if (((_b = this._accessClient) === null || _b === void 0 ? void 0 : _b.invalidateToken) !== undefined && this._lastAccessToken !== undefined) {
|
|
164624
|
-
this._accessClient.invalidateToken(this._lastAccessToken);
|
|
164625
|
-
this._lastAccessToken = undefined;
|
|
164626
|
-
}
|
|
164627
|
-
}
|
|
164628
|
-
else {
|
|
164629
|
-
hasTokenError = false;
|
|
164630
|
-
}
|
|
164631
164733
|
}
|
|
164632
|
-
if (
|
|
164633
|
-
|
|
164634
|
-
|
|
164635
|
-
|
|
164636
|
-
|
|
164637
|
-
|
|
164734
|
+
if (errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.TokenRequired || errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.InvalidToken) {
|
|
164735
|
+
// Looks like the initially generated token has expired.
|
|
164736
|
+
if (this.status === _internal__WEBPACK_IMPORTED_MODULE_0__.MapLayerImageryProviderStatus.Valid) {
|
|
164737
|
+
// Only report new status change to avoid spamming the UI
|
|
164738
|
+
this.setStatus(_internal__WEBPACK_IMPORTED_MODULE_0__.MapLayerImageryProviderStatus.RequireAuth);
|
|
164739
|
+
this.onStatusChanged.raiseEvent(this);
|
|
164740
|
+
const msg = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.localization.getLocalizedString("iModelJs:MapLayers.Messages.FetchTooltipTokenError", { layerName: this._settings.name });
|
|
164741
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.notifications.outputMessage(new _NotificationManager__WEBPACK_IMPORTED_MODULE_2__.NotifyMessageDetails(_NotificationManager__WEBPACK_IMPORTED_MODULE_2__.OutputMessagePriority.Warning, msg));
|
|
164742
|
+
}
|
|
164638
164743
|
}
|
|
164639
164744
|
}
|
|
164640
164745
|
return response;
|
|
164641
164746
|
}
|
|
164642
164747
|
}
|
|
164643
|
-
ArcGISImageryProvider._serviceCache = new Map();
|
|
164644
164748
|
|
|
164645
164749
|
|
|
164646
164750
|
/***/ }),
|
|
@@ -164663,6 +164767,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
164663
164767
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
164664
164768
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ "../../common/temp/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js");
|
|
164665
164769
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);
|
|
164770
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
164666
164771
|
/*---------------------------------------------------------------------------------------------
|
|
164667
164772
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
164668
164773
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -164676,6 +164781,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
164676
164781
|
|
|
164677
164782
|
|
|
164678
164783
|
|
|
164784
|
+
|
|
164785
|
+
const loggerCategory = "MapLayerImageryProvider.ArcGISMapLayerImageryProvider";
|
|
164679
164786
|
/** @internal */
|
|
164680
164787
|
class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGISImageryProvider {
|
|
164681
164788
|
constructor(settings) {
|
|
@@ -164685,6 +164792,8 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
|
|
|
164685
164792
|
this._copyrightText = "Copyright";
|
|
164686
164793
|
this._querySupported = false;
|
|
164687
164794
|
this._tileMapSupported = false;
|
|
164795
|
+
this._mapSupported = false;
|
|
164796
|
+
this._tilesOnly = false;
|
|
164688
164797
|
this._accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry.getAccessClient(settings.formatId);
|
|
164689
164798
|
}
|
|
164690
164799
|
get _filterByCartoRange() { return false; } // Can't trust footprint ranges (USGS Hydro)
|
|
@@ -164713,6 +164822,7 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
|
|
|
164713
164822
|
return await this.getImageFromTileResponse(tileResponse, zoomLevel);
|
|
164714
164823
|
}
|
|
164715
164824
|
catch (error) {
|
|
164825
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_6__.Logger.logError(loggerCategory, `Error occurred when loading tile(${row},${column},${zoomLevel}) : ${error}`);
|
|
164716
164826
|
return undefined;
|
|
164717
164827
|
}
|
|
164718
164828
|
}
|
|
@@ -164749,18 +164859,12 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
|
|
|
164749
164859
|
resolveChildren(childIds); // Resolve all children
|
|
164750
164860
|
}
|
|
164751
164861
|
}
|
|
164752
|
-
isEpsg3857Compatible(tileInfo) {
|
|
164753
|
-
var _a;
|
|
164754
|
-
if (((_a = tileInfo.spatialReference) === null || _a === void 0 ? void 0 : _a.latestWkid) !== 3857 || !Array.isArray(tileInfo.lods))
|
|
164755
|
-
return false;
|
|
164756
|
-
const zeroLod = tileInfo.lods[0];
|
|
164757
|
-
return zeroLod.level === 0 && Math.abs(zeroLod.resolution - 156543.03392800014) < .001;
|
|
164758
|
-
}
|
|
164759
164862
|
async initialize() {
|
|
164760
164863
|
var _a, _b, _c, _d, _e;
|
|
164761
|
-
const
|
|
164762
|
-
if (
|
|
164864
|
+
const metadata = await this.getServiceJson();
|
|
164865
|
+
if ((metadata === null || metadata === void 0 ? void 0 : metadata.content) === undefined)
|
|
164763
164866
|
throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.ServerError(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.ValidationFailed, "");
|
|
164867
|
+
const json = metadata.content;
|
|
164764
164868
|
if (((_a = json === null || json === void 0 ? void 0 : json.error) === null || _a === void 0 ? void 0 : _a.code) === _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGisErrorCode.TokenRequired || ((_b = json === null || json === void 0 ? void 0 : json.error) === null || _b === void 0 ? void 0 : _b.code) === _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGisErrorCode.InvalidToken) {
|
|
164765
164869
|
// Check again layer status, it might have change during await.
|
|
164766
164870
|
if (this.status === _internal__WEBPACK_IMPORTED_MODULE_2__.MapLayerImageryProviderStatus.Valid) {
|
|
@@ -164768,54 +164872,68 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
|
|
|
164768
164872
|
return; // By returning (i.e not throwing), we ensure the tileTree get created and current provider is preserved to report status.
|
|
164769
164873
|
}
|
|
164770
164874
|
}
|
|
164771
|
-
|
|
164772
|
-
|
|
164773
|
-
|
|
164774
|
-
|
|
164775
|
-
|
|
164776
|
-
|
|
164777
|
-
|
|
164778
|
-
|
|
164779
|
-
|
|
164780
|
-
|
|
164781
|
-
|
|
164782
|
-
|
|
164875
|
+
this.serviceJson = json;
|
|
164876
|
+
if (json.capabilities) {
|
|
164877
|
+
const capabilities = json.capabilities.split(",");
|
|
164878
|
+
this._querySupported = capabilities.includes("Query");
|
|
164879
|
+
this._tileMapSupported = capabilities.includes("Tilemap");
|
|
164880
|
+
this._mapSupported = capabilities.includes("Map");
|
|
164881
|
+
this._tilesOnly = capabilities.includes("TilesOnly");
|
|
164882
|
+
}
|
|
164883
|
+
if (json.copyrightText)
|
|
164884
|
+
this._copyrightText = json.copyrightText;
|
|
164885
|
+
this._usesCachedTiles = !!json.tileInfo;
|
|
164886
|
+
if (this._usesCachedTiles) {
|
|
164887
|
+
// Only EPSG:3857 is supported with pre-rendered tiles. Fall back to 'Export' queries if possible otherwise throw.
|
|
164888
|
+
if (!_internal__WEBPACK_IMPORTED_MODULE_2__.ArcGisUtilities.isEpsg3857Compatible(json.tileInfo)) {
|
|
164889
|
+
if (this._mapSupported && !this._tilesOnly) {
|
|
164890
|
+
this._usesCachedTiles = false;
|
|
164891
|
+
}
|
|
164892
|
+
else {
|
|
164893
|
+
throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.ServerError(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.ValidationFailed, "Invalid coordinate system");
|
|
164783
164894
|
}
|
|
164784
164895
|
}
|
|
164896
|
+
}
|
|
164897
|
+
if (this._usesCachedTiles) {
|
|
164898
|
+
// Read max LOD
|
|
164899
|
+
if (json.maxScale !== undefined && json.maxScale !== 0 && Array.isArray(json.tileInfo.lods)) {
|
|
164900
|
+
for (; this._maxDepthFromLod < json.tileInfo.lods.length && json.tileInfo.lods[this._maxDepthFromLod].scale > json.maxScale; this._maxDepthFromLod++)
|
|
164901
|
+
;
|
|
164902
|
+
}
|
|
164785
164903
|
// Create tile map object only if we are going to request tiles from this server and it support tilemap requests.
|
|
164786
|
-
if (this.
|
|
164904
|
+
if (this._tileMapSupported) {
|
|
164787
164905
|
this._tileMap = new _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGISTileMap(this._settings.url, this._settings, (_d = (_c = json.tileInfo) === null || _c === void 0 ? void 0 : _c.lods) === null || _d === void 0 ? void 0 : _d.length, this._accessClient);
|
|
164788
164906
|
}
|
|
164789
|
-
|
|
164790
|
-
|
|
164791
|
-
|
|
164792
|
-
|
|
164793
|
-
|
|
164794
|
-
|
|
164795
|
-
}
|
|
164796
|
-
|
|
164797
|
-
|
|
164798
|
-
|
|
164799
|
-
|
|
164800
|
-
|
|
164801
|
-
|
|
164802
|
-
}
|
|
164803
|
-
|
|
164804
|
-
|
|
164805
|
-
|
|
164806
|
-
|
|
164807
|
-
|
|
164808
|
-
|
|
164809
|
-
}
|
|
164810
|
-
|
|
164811
|
-
|
|
164812
|
-
|
|
164813
|
-
|
|
164814
|
-
|
|
164815
|
-
|
|
164816
|
-
|
|
164817
|
-
|
|
164818
|
-
|
|
164907
|
+
}
|
|
164908
|
+
// Read range using fullextent from service metadata
|
|
164909
|
+
if (json.fullExtent) {
|
|
164910
|
+
if (json.fullExtent.spatialReference.latestWkid === 3857 || json.fullExtent.spatialReference.wkid === 102100) {
|
|
164911
|
+
const range3857 = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_4__.Range2d.createFrom({
|
|
164912
|
+
low: { x: json.fullExtent.xmin, y: json.fullExtent.ymin },
|
|
164913
|
+
high: { x: json.fullExtent.xmax, y: json.fullExtent.ymax }
|
|
164914
|
+
});
|
|
164915
|
+
const west = this.getEPSG4326Lon(range3857.xLow);
|
|
164916
|
+
const south = this.getEPSG4326Lat(range3857.yLow);
|
|
164917
|
+
const east = this.getEPSG4326Lon(range3857.xHigh);
|
|
164918
|
+
const north = this.getEPSG4326Lat(range3857.yHigh);
|
|
164919
|
+
this.cartoRange = _internal__WEBPACK_IMPORTED_MODULE_2__.MapCartoRectangle.fromDegrees(west, south, east, north);
|
|
164920
|
+
}
|
|
164921
|
+
}
|
|
164922
|
+
// Read minLOD if available
|
|
164923
|
+
if (json.minLOD !== undefined) {
|
|
164924
|
+
const minLod = parseInt(json.minLOD, 10);
|
|
164925
|
+
if (!Number.isNaN(minLod)) {
|
|
164926
|
+
this._minDepthFromLod = minLod;
|
|
164927
|
+
}
|
|
164928
|
+
}
|
|
164929
|
+
else if (json.minScale) {
|
|
164930
|
+
// Read min LOD using minScale
|
|
164931
|
+
const minScale = json.minScale;
|
|
164932
|
+
if (((_e = json.tileInfo) === null || _e === void 0 ? void 0 : _e.lods) !== undefined && (0,lodash__WEBPACK_IMPORTED_MODULE_5__.isArray)(json.tileInfo.lods)) {
|
|
164933
|
+
for (const lod of json.tileInfo.lods) {
|
|
164934
|
+
if (lod.scale < minScale) {
|
|
164935
|
+
this._minDepthFromLod = lod.level;
|
|
164936
|
+
break;
|
|
164819
164937
|
}
|
|
164820
164938
|
}
|
|
164821
164939
|
}
|
|
@@ -166402,7 +166520,7 @@ class WmtsMapLayerFormat extends ImageryMapLayerFormat {
|
|
|
166402
166520
|
}
|
|
166403
166521
|
if (supportedTms.length === 0) {
|
|
166404
166522
|
// This WMTS server doesn't support either GoogleMaps or WSG84
|
|
166405
|
-
return { status: _internal__WEBPACK_IMPORTED_MODULE_0__.MapLayerSourceStatus.
|
|
166523
|
+
return { status: _internal__WEBPACK_IMPORTED_MODULE_0__.MapLayerSourceStatus.InvalidCoordinateSystem };
|
|
166406
166524
|
}
|
|
166407
166525
|
let subLayerId = 0;
|
|
166408
166526
|
(_c = capabilities === null || capabilities === void 0 ? void 0 : capabilities.contents) === null || _c === void 0 ? void 0 : _c.layers.forEach((layer) => {
|
|
@@ -166435,7 +166553,8 @@ class WmtsMapLayerFormat extends ImageryMapLayerFormat {
|
|
|
166435
166553
|
WmtsMapLayerFormat.formatId = "WMTS";
|
|
166436
166554
|
class ArcGISMapLayerFormat extends ImageryMapLayerFormat {
|
|
166437
166555
|
static async validateSource(url, userName, password, ignoreCache) {
|
|
166438
|
-
|
|
166556
|
+
// Some Map service supporting only tiles don't include the 'Map' capabilities, thus we can't make it mandatory.
|
|
166557
|
+
return _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.validateSource(url, this.formatId, [], userName, password, ignoreCache);
|
|
166439
166558
|
}
|
|
166440
166559
|
static createImageryProvider(settings) {
|
|
166441
166560
|
return new _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGISMapLayerImageryProvider(settings);
|
|
@@ -166535,13 +166654,6 @@ class MapLayerImageryProvider {
|
|
|
166535
166654
|
this._mercatorTilingScheme = new _internal__WEBPACK_IMPORTED_MODULE_5__.WebMercatorTilingScheme();
|
|
166536
166655
|
this._geographicTilingScheme = new _internal__WEBPACK_IMPORTED_MODULE_5__.GeographicTilingScheme(2, 1, true);
|
|
166537
166656
|
}
|
|
166538
|
-
/** @internal */
|
|
166539
|
-
setStatus(status) {
|
|
166540
|
-
if (this.status !== status) {
|
|
166541
|
-
this._status = status;
|
|
166542
|
-
this.onStatusChanged.raiseEvent(this);
|
|
166543
|
-
}
|
|
166544
|
-
}
|
|
166545
166657
|
get status() { return this._status; }
|
|
166546
166658
|
resetStatus() { this.setStatus(MapLayerImageryProviderStatus.Valid); }
|
|
166547
166659
|
get tileSize() { return this._usesCachedTiles ? tileImageSize : untiledImageSize; }
|
|
@@ -166613,6 +166725,21 @@ class MapLayerImageryProvider {
|
|
|
166613
166725
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "Invalid tile content type");
|
|
166614
166726
|
return undefined;
|
|
166615
166727
|
}
|
|
166728
|
+
/** Change the status of this provider.
|
|
166729
|
+
* Sub-classes should override 'onStatusUpdated' instead of this method.
|
|
166730
|
+
* @internal */
|
|
166731
|
+
setStatus(status) {
|
|
166732
|
+
if (this._status !== status) {
|
|
166733
|
+
this.onStatusUpdated(status);
|
|
166734
|
+
this._status = status;
|
|
166735
|
+
this.onStatusChanged.raiseEvent(this);
|
|
166736
|
+
}
|
|
166737
|
+
}
|
|
166738
|
+
/** Method called whenever the status changes, giving the opportunity to sub-classes to have a custom behavior.
|
|
166739
|
+
* @internal
|
|
166740
|
+
* */
|
|
166741
|
+
onStatusUpdated(_newStatus) {
|
|
166742
|
+
}
|
|
166616
166743
|
/** @internal */
|
|
166617
166744
|
setRequestAuthorization(headers) {
|
|
166618
166745
|
if (this._settings.userName && this._settings.password) {
|
|
@@ -166800,6 +166927,8 @@ var MapLayerSourceStatus;
|
|
|
166800
166927
|
MapLayerSourceStatus[MapLayerSourceStatus["InvalidUrl"] = 4] = "InvalidUrl";
|
|
166801
166928
|
/** Authorization is required to access this map layer source. */
|
|
166802
166929
|
MapLayerSourceStatus[MapLayerSourceStatus["RequireAuth"] = 5] = "RequireAuth";
|
|
166930
|
+
/** Map-layer coordinate system is not supported */
|
|
166931
|
+
MapLayerSourceStatus[MapLayerSourceStatus["InvalidCoordinateSystem"] = 6] = "InvalidCoordinateSystem";
|
|
166803
166932
|
})(MapLayerSourceStatus || (MapLayerSourceStatus = {}));
|
|
166804
166933
|
/** A source for map layers. These may be catalogued for convenient use by users or applications.
|
|
166805
166934
|
* @public
|
|
@@ -167462,7 +167591,6 @@ class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
|
|
|
167462
167591
|
if (undefined !== this._graphic && this.imageryIsReady)
|
|
167463
167592
|
return this._graphic;
|
|
167464
167593
|
const geometry = this.renderGeometry;
|
|
167465
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== geometry);
|
|
167466
167594
|
if (undefined === geometry)
|
|
167467
167595
|
return undefined;
|
|
167468
167596
|
const textures = this.getDrapeTextures();
|
|
@@ -286561,7 +286689,7 @@ class TestContext {
|
|
|
286561
286689
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
286562
286690
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
286563
286691
|
await core_frontend_1.NoRenderApp.startup({
|
|
286564
|
-
applicationVersion: "3.6.0-dev.
|
|
286692
|
+
applicationVersion: "3.6.0-dev.60",
|
|
286565
286693
|
applicationId: this.settings.gprid,
|
|
286566
286694
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
286567
286695
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -286733,14 +286861,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
286733
286861
|
/* harmony export */ "VariableValueType": () => (/* reexport safe */ _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_74__.VariableValueType),
|
|
286734
286862
|
/* harmony export */ "VariableValueTypes": () => (/* reexport safe */ _presentation_common_RulesetVariables__WEBPACK_IMPORTED_MODULE_8__.VariableValueTypes),
|
|
286735
286863
|
/* harmony export */ "addFieldHierarchy": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.addFieldHierarchy),
|
|
286736
|
-
/* harmony export */ "applyOptionalPrefix": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.applyOptionalPrefix),
|
|
286737
286864
|
/* harmony export */ "combineDiagnosticsSeverities": () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.combineDiagnosticsSeverities),
|
|
286865
|
+
/* harmony export */ "combineFieldNames": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.combineFieldNames),
|
|
286738
286866
|
/* harmony export */ "compareDiagnosticsSeverities": () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.compareDiagnosticsSeverities),
|
|
286739
286867
|
/* harmony export */ "createFieldHierarchies": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.createFieldHierarchies),
|
|
286740
286868
|
/* harmony export */ "getFieldByName": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_24__.getFieldByName),
|
|
286741
286869
|
/* harmony export */ "getInstancesCount": () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.getInstancesCount),
|
|
286742
286870
|
/* harmony export */ "isComputeSelectionRequestOptions": () => (/* reexport safe */ _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__.isComputeSelectionRequestOptions),
|
|
286743
286871
|
/* harmony export */ "isSingleElementPropertiesRequestOptions": () => (/* reexport safe */ _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__.isSingleElementPropertiesRequestOptions),
|
|
286872
|
+
/* harmony export */ "parseCombinedFieldNames": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.parseCombinedFieldNames),
|
|
286744
286873
|
/* harmony export */ "traverseContent": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.traverseContent),
|
|
286745
286874
|
/* harmony export */ "traverseContentItem": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.traverseContentItem),
|
|
286746
286875
|
/* harmony export */ "traverseFieldHierarchy": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_30__.traverseFieldHierarchy)
|
|
@@ -287143,37 +287272,64 @@ var InstanceKey;
|
|
|
287143
287272
|
return lhs.id.localeCompare(rhs.id);
|
|
287144
287273
|
}
|
|
287145
287274
|
InstanceKey.compare = compare;
|
|
287146
|
-
/**
|
|
287147
|
-
|
|
287148
|
-
|
|
287275
|
+
/**
|
|
287276
|
+
* Serialize [[InstanceKey]] to JSON
|
|
287277
|
+
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
287278
|
+
*/
|
|
287279
|
+
// istanbul ignore next
|
|
287280
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287281
|
+
function toJSON(key) {
|
|
287282
|
+
return { ...key };
|
|
287149
287283
|
}
|
|
287150
287284
|
InstanceKey.toJSON = toJSON;
|
|
287151
|
-
/**
|
|
287285
|
+
/**
|
|
287286
|
+
* Deserialize [[InstanceKey]] from JSON
|
|
287287
|
+
* @deprecated in 3.x. Use [[InstanceKey]].
|
|
287288
|
+
*/
|
|
287289
|
+
// istanbul ignore next
|
|
287290
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287152
287291
|
function fromJSON(json) {
|
|
287153
|
-
return { ...json
|
|
287292
|
+
return { ...json };
|
|
287154
287293
|
}
|
|
287155
287294
|
InstanceKey.fromJSON = fromJSON;
|
|
287156
287295
|
})(InstanceKey || (InstanceKey = {}));
|
|
287157
287296
|
/** @public */
|
|
287158
287297
|
var ClassInfo;
|
|
287159
287298
|
(function (ClassInfo) {
|
|
287160
|
-
/**
|
|
287299
|
+
/**
|
|
287300
|
+
* Serialize [[ClassInfo]] to JSON
|
|
287301
|
+
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
287302
|
+
*/
|
|
287303
|
+
// istanbul ignore next
|
|
287304
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287161
287305
|
function toJSON(info) {
|
|
287162
|
-
return { ...info
|
|
287306
|
+
return { ...info };
|
|
287163
287307
|
}
|
|
287164
287308
|
ClassInfo.toJSON = toJSON;
|
|
287165
|
-
/**
|
|
287309
|
+
/**
|
|
287310
|
+
* Deserialize [[ClassInfo]] from JSON
|
|
287311
|
+
* @deprecated in 3.x. Use [[ClassInfo]].
|
|
287312
|
+
*/
|
|
287313
|
+
// istanbul ignore next
|
|
287314
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287166
287315
|
function fromJSON(json) {
|
|
287167
|
-
return { ...json
|
|
287316
|
+
return { ...json };
|
|
287168
287317
|
}
|
|
287169
287318
|
ClassInfo.fromJSON = fromJSON;
|
|
287170
287319
|
})(ClassInfo || (ClassInfo = {}));
|
|
287171
|
-
/**
|
|
287320
|
+
/**
|
|
287321
|
+
* Contains utilities for working with objects of [[NavigationPropertyInfo]] type.
|
|
287322
|
+
* @beta
|
|
287323
|
+
*/
|
|
287172
287324
|
var NavigationPropertyInfo;
|
|
287173
287325
|
(function (NavigationPropertyInfo) {
|
|
287174
|
-
/**
|
|
287326
|
+
/**
|
|
287327
|
+
* Serialize [[NavigationPropertyInfo]] to JSON
|
|
287328
|
+
* @deprecated in 3.x. Use [[toCompressedJSON]].
|
|
287329
|
+
*/
|
|
287330
|
+
// istanbul ignore next
|
|
287175
287331
|
function toJSON(info) {
|
|
287176
|
-
return { ...info
|
|
287332
|
+
return { ...info };
|
|
287177
287333
|
}
|
|
287178
287334
|
NavigationPropertyInfo.toJSON = toJSON;
|
|
287179
287335
|
/** Serialize [[NavigationPropertyInfo]] to compressed JSON */
|
|
@@ -287189,9 +287345,13 @@ var NavigationPropertyInfo;
|
|
|
287189
287345
|
};
|
|
287190
287346
|
}
|
|
287191
287347
|
NavigationPropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
287192
|
-
/**
|
|
287348
|
+
/**
|
|
287349
|
+
* Deserialize [[NavigationPropertyInfo]] from JSON
|
|
287350
|
+
* @deprecated in 3.x. Use [[fromCompressedJSON]].
|
|
287351
|
+
*/
|
|
287352
|
+
// istanbul ignore next
|
|
287193
287353
|
function fromJSON(json) {
|
|
287194
|
-
return { ...json
|
|
287354
|
+
return { ...json };
|
|
287195
287355
|
}
|
|
287196
287356
|
NavigationPropertyInfo.fromJSON = fromJSON;
|
|
287197
287357
|
/** Deserialize [[NavigationPropertyInfo]] from compressed JSON */
|
|
@@ -287207,13 +287367,13 @@ var NavigationPropertyInfo;
|
|
|
287207
287367
|
/** @public */
|
|
287208
287368
|
var PropertyInfo;
|
|
287209
287369
|
(function (PropertyInfo) {
|
|
287210
|
-
/**
|
|
287370
|
+
/**
|
|
287371
|
+
* Serialize [[PropertyInfo]] to JSON
|
|
287372
|
+
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
287373
|
+
*/
|
|
287374
|
+
// istanbul ignore next
|
|
287211
287375
|
function toJSON(info) {
|
|
287212
|
-
return {
|
|
287213
|
-
...info,
|
|
287214
|
-
classInfo: ClassInfo.toJSON(info.classInfo),
|
|
287215
|
-
...(info.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toJSON(info.navigationPropertyInfo) } : undefined),
|
|
287216
|
-
};
|
|
287376
|
+
return { ...info };
|
|
287217
287377
|
}
|
|
287218
287378
|
PropertyInfo.toJSON = toJSON;
|
|
287219
287379
|
/** Serialize [[PropertyInfo]] to compressed JSON */
|
|
@@ -287228,27 +287388,25 @@ var PropertyInfo;
|
|
|
287228
287388
|
};
|
|
287229
287389
|
}
|
|
287230
287390
|
PropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
287231
|
-
/**
|
|
287391
|
+
/**
|
|
287392
|
+
* Deserialize [[PropertyInfo]] from JSON
|
|
287393
|
+
* @deprecated in 3.x. Use [[PropertyInfo]].
|
|
287394
|
+
*/
|
|
287395
|
+
// istanbul ignore next
|
|
287232
287396
|
function fromJSON(json) {
|
|
287233
|
-
return {
|
|
287234
|
-
...json,
|
|
287235
|
-
classInfo: ClassInfo.fromJSON(json.classInfo),
|
|
287236
|
-
...(json.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.fromJSON(json.navigationPropertyInfo) } : undefined),
|
|
287237
|
-
};
|
|
287397
|
+
return { ...json };
|
|
287238
287398
|
}
|
|
287239
287399
|
PropertyInfo.fromJSON = fromJSON;
|
|
287240
287400
|
})(PropertyInfo || (PropertyInfo = {}));
|
|
287241
287401
|
/** @public */
|
|
287242
287402
|
var RelatedClassInfo;
|
|
287243
287403
|
(function (RelatedClassInfo) {
|
|
287244
|
-
/**
|
|
287404
|
+
/**
|
|
287405
|
+
* Serialize [[RelatedClassInfo]] to JSON
|
|
287406
|
+
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
287407
|
+
*/
|
|
287245
287408
|
function toJSON(info) {
|
|
287246
|
-
return {
|
|
287247
|
-
...info,
|
|
287248
|
-
sourceClassInfo: ClassInfo.toJSON(info.sourceClassInfo),
|
|
287249
|
-
targetClassInfo: ClassInfo.toJSON(info.targetClassInfo),
|
|
287250
|
-
relationshipInfo: ClassInfo.toJSON(info.relationshipInfo),
|
|
287251
|
-
};
|
|
287409
|
+
return { ...info };
|
|
287252
287410
|
}
|
|
287253
287411
|
RelatedClassInfo.toJSON = toJSON;
|
|
287254
287412
|
/** Serialize [[RelatedClassInfo]] to compressed JSON */
|
|
@@ -287267,32 +287425,24 @@ var RelatedClassInfo;
|
|
|
287267
287425
|
};
|
|
287268
287426
|
}
|
|
287269
287427
|
RelatedClassInfo.toCompressedJSON = toCompressedJSON;
|
|
287270
|
-
/**
|
|
287428
|
+
/**
|
|
287429
|
+
* Deserialize [[RelatedClassInfo]] from JSON
|
|
287430
|
+
* @deprecated in 3.x. Use [[RelatedClassInfo]].
|
|
287431
|
+
*/
|
|
287271
287432
|
function fromJSON(json) {
|
|
287272
|
-
|
|
287273
|
-
return {
|
|
287274
|
-
...json,
|
|
287275
|
-
sourceClassInfo: ClassInfo.fromJSON(json.sourceClassInfo),
|
|
287276
|
-
targetClassInfo: ClassInfo.fromJSON(json.targetClassInfo),
|
|
287277
|
-
isPolymorphicTargetClass: (_a = json.isPolymorphicTargetClass) !== null && _a !== void 0 ? _a : false,
|
|
287278
|
-
relationshipInfo: ClassInfo.fromJSON(json.relationshipInfo),
|
|
287279
|
-
isPolymorphicRelationship: (_b = json.isPolymorphicRelationship) !== null && _b !== void 0 ? _b : false,
|
|
287280
|
-
};
|
|
287433
|
+
return { ...json };
|
|
287281
287434
|
}
|
|
287282
287435
|
RelatedClassInfo.fromJSON = fromJSON;
|
|
287283
287436
|
/** Deserialize [[RelatedClassInfo]] from compressed JSON */
|
|
287284
287437
|
function fromCompressedJSON(json, classesMap) {
|
|
287285
|
-
var _a, _b;
|
|
287286
287438
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(json.sourceClassInfo));
|
|
287287
287439
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(json.targetClassInfo));
|
|
287288
287440
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(json.relationshipInfo));
|
|
287289
287441
|
return {
|
|
287290
287442
|
...json,
|
|
287291
|
-
sourceClassInfo:
|
|
287292
|
-
targetClassInfo:
|
|
287293
|
-
|
|
287294
|
-
relationshipInfo: ClassInfo.fromJSON({ id: json.relationshipInfo, ...classesMap[json.relationshipInfo] }),
|
|
287295
|
-
isPolymorphicRelationship: (_b = json.isPolymorphicRelationship) !== null && _b !== void 0 ? _b : false,
|
|
287443
|
+
sourceClassInfo: { id: json.sourceClassInfo, ...classesMap[json.sourceClassInfo] },
|
|
287444
|
+
targetClassInfo: { id: json.targetClassInfo, ...classesMap[json.targetClassInfo] },
|
|
287445
|
+
relationshipInfo: { id: json.relationshipInfo, ...classesMap[json.relationshipInfo] },
|
|
287296
287446
|
};
|
|
287297
287447
|
}
|
|
287298
287448
|
RelatedClassInfo.fromCompressedJSON = fromCompressedJSON;
|
|
@@ -287327,6 +287477,7 @@ var RelatedClassInfo;
|
|
|
287327
287477
|
RelatedClassInfo.strip = strip;
|
|
287328
287478
|
})(RelatedClassInfo || (RelatedClassInfo = {}));
|
|
287329
287479
|
/** @public */
|
|
287480
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
287330
287481
|
var RelatedClassInfoWithOptionalRelationship;
|
|
287331
287482
|
(function (RelatedClassInfoWithOptionalRelationship) {
|
|
287332
287483
|
/** Serialize [[RelatedClassInfoWithOptionalRelationship]] to compressed JSON */
|
|
@@ -287350,7 +287501,6 @@ var RelatedClassInfoWithOptionalRelationship;
|
|
|
287350
287501
|
RelatedClassInfoWithOptionalRelationship.toCompressedJSON = toCompressedJSON;
|
|
287351
287502
|
/** Deserialize [[RelatedClassInfoWithOptionalRelationship]] from compressed JSON */
|
|
287352
287503
|
function fromCompressedJSON(json, classesMap) {
|
|
287353
|
-
var _a;
|
|
287354
287504
|
const { sourceClassInfo, targetClassInfo, relationshipInfo, ...otherProps } = json;
|
|
287355
287505
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(sourceClassInfo));
|
|
287356
287506
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(targetClassInfo));
|
|
@@ -287358,10 +287508,9 @@ var RelatedClassInfoWithOptionalRelationship;
|
|
|
287358
287508
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(classesMap.hasOwnProperty(relationshipInfo));
|
|
287359
287509
|
return {
|
|
287360
287510
|
...otherProps,
|
|
287361
|
-
sourceClassInfo:
|
|
287362
|
-
targetClassInfo:
|
|
287363
|
-
|
|
287364
|
-
...(relationshipInfo ? { relationshipInfo: ClassInfo.fromJSON({ id: relationshipInfo, ...classesMap[relationshipInfo] }) } : undefined),
|
|
287511
|
+
sourceClassInfo: { id: sourceClassInfo, ...classesMap[sourceClassInfo] },
|
|
287512
|
+
targetClassInfo: { id: targetClassInfo, ...classesMap[targetClassInfo] },
|
|
287513
|
+
...(relationshipInfo ? { relationshipInfo: { id: relationshipInfo, ...classesMap[relationshipInfo] } } : undefined),
|
|
287365
287514
|
};
|
|
287366
287515
|
}
|
|
287367
287516
|
RelatedClassInfoWithOptionalRelationship.fromCompressedJSON = fromCompressedJSON;
|
|
@@ -287612,6 +287761,7 @@ class KeySet {
|
|
|
287612
287761
|
get nodeKeys() {
|
|
287613
287762
|
const set = new Set();
|
|
287614
287763
|
for (const serialized of this._nodeKeys) {
|
|
287764
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287615
287765
|
const key = _hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serialized));
|
|
287616
287766
|
set.add(key);
|
|
287617
287767
|
}
|
|
@@ -287644,6 +287794,7 @@ class KeySet {
|
|
|
287644
287794
|
}
|
|
287645
287795
|
addKeySet(keyset, pred) {
|
|
287646
287796
|
for (const key of keyset._nodeKeys) {
|
|
287797
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287647
287798
|
if (!pred || pred(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(key))))
|
|
287648
287799
|
this._nodeKeys.add(key);
|
|
287649
287800
|
}
|
|
@@ -287872,6 +288023,7 @@ class KeySet {
|
|
|
287872
288023
|
if (some(entry[1], (id) => callback({ className, id })))
|
|
287873
288024
|
return true;
|
|
287874
288025
|
}
|
|
288026
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287875
288027
|
return some(this._nodeKeys, (serializedKey) => callback(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serializedKey))));
|
|
287876
288028
|
}
|
|
287877
288029
|
/** Iterate over all keys in this keyset. */
|
|
@@ -287882,6 +288034,7 @@ class KeySet {
|
|
|
287882
288034
|
ids.forEach((id) => callback({ className: recentClassName, id }, index++));
|
|
287883
288035
|
});
|
|
287884
288036
|
this._nodeKeys.forEach((serializedKey) => {
|
|
288037
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287885
288038
|
callback(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serializedKey)), index++);
|
|
287886
288039
|
});
|
|
287887
288040
|
}
|
|
@@ -287919,6 +288072,7 @@ class KeySet {
|
|
|
287919
288072
|
instanceKeys.push([className, compressedIds.length > 0 ? compressedIds : _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid]);
|
|
287920
288073
|
}
|
|
287921
288074
|
}
|
|
288075
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287922
288076
|
const nodeKeys = [];
|
|
287923
288077
|
for (const serializedKey of this._nodeKeys.values())
|
|
287924
288078
|
nodeKeys.push(JSON.parse(serializedKey));
|
|
@@ -287970,55 +288124,52 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
287970
288124
|
/** @public */
|
|
287971
288125
|
var LabelCompositeValue;
|
|
287972
288126
|
(function (LabelCompositeValue) {
|
|
287973
|
-
/**
|
|
288127
|
+
/**
|
|
288128
|
+
* Serialize given [[LabelCompositeValue]] to JSON
|
|
288129
|
+
* @deprecated in 3.x. Use [[LabelCompositeValue]].
|
|
288130
|
+
*/
|
|
288131
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287974
288132
|
function toJSON(compositeValue) {
|
|
287975
|
-
return { ...compositeValue
|
|
288133
|
+
return { ...compositeValue };
|
|
287976
288134
|
}
|
|
287977
288135
|
LabelCompositeValue.toJSON = toJSON;
|
|
287978
|
-
/**
|
|
288136
|
+
/**
|
|
288137
|
+
* Deserialize [[LabelCompositeValue]] from JSON
|
|
288138
|
+
* @deprecated in 3.x. Use [[LabelCompositeValue]].
|
|
288139
|
+
*/
|
|
288140
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287979
288141
|
function fromJSON(json) {
|
|
287980
|
-
return {
|
|
287981
|
-
...json,
|
|
287982
|
-
values: json.values.map(LabelDefinition.fromJSON),
|
|
287983
|
-
};
|
|
288142
|
+
return { ...json };
|
|
287984
288143
|
}
|
|
287985
288144
|
LabelCompositeValue.fromJSON = fromJSON;
|
|
287986
288145
|
})(LabelCompositeValue || (LabelCompositeValue = {}));
|
|
287987
288146
|
/** @public */
|
|
287988
288147
|
var LabelDefinition;
|
|
287989
288148
|
(function (LabelDefinition) {
|
|
287990
|
-
/**
|
|
288149
|
+
/**
|
|
288150
|
+
* Serialize given [[LabelDefinition]] to JSON
|
|
288151
|
+
* @deprecated in 3.x. Use [[LabelDefinition]].
|
|
288152
|
+
*/
|
|
288153
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
287991
288154
|
function toJSON(labelDefinition) {
|
|
287992
|
-
return {
|
|
287993
|
-
displayValue: labelDefinition.displayValue,
|
|
287994
|
-
typeName: labelDefinition.typeName,
|
|
287995
|
-
rawValue: isCompositeDefinition(labelDefinition) ? LabelCompositeValue.toJSON(labelDefinition.rawValue) : labelDefinition.rawValue,
|
|
287996
|
-
};
|
|
288155
|
+
return { ...labelDefinition };
|
|
287997
288156
|
}
|
|
287998
288157
|
LabelDefinition.toJSON = toJSON;
|
|
287999
|
-
/**
|
|
288158
|
+
/**
|
|
288159
|
+
* Deserialize [[LabelDefinition]] from JSON
|
|
288160
|
+
* @deprecated in 3.x. Use [[LabelDefinition]].
|
|
288161
|
+
*/
|
|
288162
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288000
288163
|
function fromJSON(json) {
|
|
288001
288164
|
if (typeof json === "string")
|
|
288002
|
-
return JSON.parse(json
|
|
288003
|
-
return {
|
|
288004
|
-
...json,
|
|
288005
|
-
rawValue: isCompositeDefinition(json) ? LabelCompositeValue.fromJSON(json.rawValue) : json.rawValue,
|
|
288006
|
-
};
|
|
288165
|
+
return JSON.parse(json);
|
|
288166
|
+
return { ...json };
|
|
288007
288167
|
}
|
|
288008
288168
|
LabelDefinition.fromJSON = fromJSON;
|
|
288009
288169
|
/** @internal */
|
|
288010
288170
|
LabelDefinition.COMPOSITE_DEFINITION_TYPENAME = "composite";
|
|
288011
|
-
/**
|
|
288012
|
-
* Reviver function that can be used as a second argument for
|
|
288013
|
-
* `JSON.parse` method when parsing [[LabelDefinition]] objects.
|
|
288014
|
-
*
|
|
288015
|
-
* @internal
|
|
288016
|
-
*/
|
|
288017
|
-
function reviver(key, value) {
|
|
288018
|
-
return key === "" ? fromJSON(value) : value;
|
|
288019
|
-
}
|
|
288020
|
-
LabelDefinition.reviver = reviver;
|
|
288021
288171
|
/** @internal */
|
|
288172
|
+
// istanbul ignore next
|
|
288022
288173
|
function isCompositeDefinition(def) {
|
|
288023
288174
|
return def.typeName === LabelDefinition.COMPOSITE_DEFINITION_TYPENAME;
|
|
288024
288175
|
}
|
|
@@ -288209,7 +288360,7 @@ function isComputeSelectionRequestOptions(options) {
|
|
|
288209
288360
|
}
|
|
288210
288361
|
/**
|
|
288211
288362
|
* Checks if supplied request options are for single or multiple element properties.
|
|
288212
|
-
* @
|
|
288363
|
+
* @internal
|
|
288213
288364
|
*/
|
|
288214
288365
|
function isSingleElementPropertiesRequestOptions(options) {
|
|
288215
288366
|
return options.elementId !== undefined;
|
|
@@ -288258,13 +288409,12 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
|
|
|
288258
288409
|
===========================================================================================*/
|
|
288259
288410
|
async getNodesCount(_token, _options) { return this.forward(arguments); }
|
|
288260
288411
|
async getPagedNodes(_token, _options) { return this.forward(arguments); }
|
|
288261
|
-
/** @
|
|
288412
|
+
/** @beta */
|
|
288262
288413
|
async getNodesDescriptor(_token, _options) { return this.forward(arguments); }
|
|
288263
288414
|
// TODO: add paged version of this (#387280)
|
|
288264
288415
|
async getNodePaths(_token, _options) { return this.forward(arguments); }
|
|
288265
288416
|
// TODO: add paged version of this (#387280)
|
|
288266
288417
|
async getFilteredNodePaths(_token, _options) { return this.forward(arguments); }
|
|
288267
|
-
/** @beta */
|
|
288268
288418
|
async getContentSources(_token, _options) { return this.forward(arguments); }
|
|
288269
288419
|
async getContentDescriptor(_token, _options) {
|
|
288270
288420
|
arguments[1] = { ...arguments[1], transport: "unparsed-json" };
|
|
@@ -288277,10 +288427,8 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
|
|
|
288277
288427
|
async getContentSetSize(_token, _options) { return this.forward(arguments); }
|
|
288278
288428
|
async getPagedContent(_token, _options) { return this.forward(arguments); }
|
|
288279
288429
|
async getPagedContentSet(_token, _options) { return this.forward(arguments); }
|
|
288280
|
-
/** @beta */
|
|
288281
288430
|
async getElementProperties(_token, _options) { return this.forward(arguments); }
|
|
288282
288431
|
async getPagedDistinctValues(_token, _options) { return this.forward(arguments); }
|
|
288283
|
-
/** @beta */
|
|
288284
288432
|
async getContentInstanceKeys(_token, _options) { return this.forward(arguments); }
|
|
288285
288433
|
async getDisplayLabelDefinition(_token, _options) { return this.forward(arguments); }
|
|
288286
288434
|
async getPagedDisplayLabelDefinitions(_token, _options) { return this.forward(arguments); }
|
|
@@ -288327,7 +288475,7 @@ __decorate([
|
|
|
288327
288475
|
__decorate([
|
|
288328
288476
|
_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RpcOperation.setPolicy({ allowResponseCompression: true })
|
|
288329
288477
|
], PresentationRpcInterface.prototype, "computeSelection", null);
|
|
288330
|
-
/** @
|
|
288478
|
+
/** @internal */
|
|
288331
288479
|
var PresentationIpcEvents;
|
|
288332
288480
|
(function (PresentationIpcEvents) {
|
|
288333
288481
|
/**
|
|
@@ -288481,7 +288629,9 @@ class RpcRequestsHandler {
|
|
|
288481
288629
|
async getNodesCount(options) {
|
|
288482
288630
|
return this.request(this.rpcClient.getNodesCount.bind(this.rpcClient), options);
|
|
288483
288631
|
}
|
|
288632
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288484
288633
|
async getPagedNodes(options) {
|
|
288634
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288485
288635
|
return this.request(this.rpcClient.getPagedNodes.bind(this.rpcClient), options);
|
|
288486
288636
|
}
|
|
288487
288637
|
async getNodesDescriptor(options) {
|
|
@@ -288490,10 +288640,14 @@ class RpcRequestsHandler {
|
|
|
288490
288640
|
return JSON.parse(response);
|
|
288491
288641
|
return response;
|
|
288492
288642
|
}
|
|
288643
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288493
288644
|
async getNodePaths(options) {
|
|
288645
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288494
288646
|
return this.request(this.rpcClient.getNodePaths.bind(this.rpcClient), options);
|
|
288495
288647
|
}
|
|
288648
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288496
288649
|
async getFilteredNodePaths(options) {
|
|
288650
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288497
288651
|
return this.request(this.rpcClient.getFilteredNodePaths.bind(this.rpcClient), options);
|
|
288498
288652
|
}
|
|
288499
288653
|
async getContentSources(options) {
|
|
@@ -288511,7 +288665,9 @@ class RpcRequestsHandler {
|
|
|
288511
288665
|
async getPagedContentSet(options) {
|
|
288512
288666
|
return this.request(this.rpcClient.getPagedContentSet.bind(this.rpcClient), options);
|
|
288513
288667
|
}
|
|
288668
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288514
288669
|
async getPagedDistinctValues(options) {
|
|
288670
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288515
288671
|
return this.request(this.rpcClient.getPagedDistinctValues.bind(this.rpcClient), options);
|
|
288516
288672
|
}
|
|
288517
288673
|
async getElementProperties(options) {
|
|
@@ -288530,7 +288686,9 @@ class RpcRequestsHandler {
|
|
|
288530
288686
|
return this.request(this.rpcClient.getSelectionScopes.bind(this.rpcClient), options);
|
|
288531
288687
|
}
|
|
288532
288688
|
async computeSelection(options) {
|
|
288533
|
-
return this.request(
|
|
288689
|
+
return this.request(
|
|
288690
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288691
|
+
this.rpcClient.computeSelection.bind(this.rpcClient), options);
|
|
288534
288692
|
}
|
|
288535
288693
|
}
|
|
288536
288694
|
function isOptionsWithRuleset(options) {
|
|
@@ -288955,6 +289113,7 @@ var ExpandedNodeUpdateRecord;
|
|
|
288955
289113
|
function toJSON(obj) {
|
|
288956
289114
|
return {
|
|
288957
289115
|
...obj,
|
|
289116
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288958
289117
|
node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toJSON(obj.node),
|
|
288959
289118
|
};
|
|
288960
289119
|
}
|
|
@@ -288963,6 +289122,7 @@ var ExpandedNodeUpdateRecord;
|
|
|
288963
289122
|
function fromJSON(json) {
|
|
288964
289123
|
return {
|
|
288965
289124
|
...json,
|
|
289125
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288966
289126
|
node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromJSON(json.node),
|
|
288967
289127
|
};
|
|
288968
289128
|
}
|
|
@@ -288975,6 +289135,7 @@ var HierarchyUpdateRecord;
|
|
|
288975
289135
|
function toJSON(obj) {
|
|
288976
289136
|
return {
|
|
288977
289137
|
...obj,
|
|
289138
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288978
289139
|
parent: obj.parent ? _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent) : undefined,
|
|
288979
289140
|
expandedNodes: obj.expandedNodes ? obj.expandedNodes.map(ExpandedNodeUpdateRecord.toJSON) : undefined,
|
|
288980
289141
|
};
|
|
@@ -288984,6 +289145,7 @@ var HierarchyUpdateRecord;
|
|
|
288984
289145
|
function fromJSON(json) {
|
|
288985
289146
|
return {
|
|
288986
289147
|
...json,
|
|
289148
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
288987
289149
|
parent: json.parent ? _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent) : undefined,
|
|
288988
289150
|
expandedNodes: json.expandedNodes ? json.expandedNodes.map(ExpandedNodeUpdateRecord.fromJSON) : undefined,
|
|
288989
289151
|
};
|
|
@@ -289011,50 +289173,66 @@ var HierarchyUpdateInfo;
|
|
|
289011
289173
|
/** @public */
|
|
289012
289174
|
var PartialHierarchyModification;
|
|
289013
289175
|
(function (PartialHierarchyModification) {
|
|
289014
|
-
/**
|
|
289176
|
+
/**
|
|
289177
|
+
* Serialize given object to JSON.
|
|
289178
|
+
* @deprecated in 3.x. Use [[PartialHierarchyModification]]
|
|
289179
|
+
*/
|
|
289180
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289015
289181
|
function toJSON(obj) {
|
|
289016
289182
|
switch (obj.type) {
|
|
289017
289183
|
case "Insert":
|
|
289018
289184
|
return {
|
|
289019
289185
|
type: "Insert",
|
|
289186
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289020
289187
|
parent: obj.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent),
|
|
289021
289188
|
position: obj.position,
|
|
289189
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289022
289190
|
node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toJSON(obj.node),
|
|
289023
289191
|
};
|
|
289024
289192
|
case "Update":
|
|
289025
289193
|
return {
|
|
289026
289194
|
type: "Update",
|
|
289195
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289027
289196
|
target: _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.target),
|
|
289028
289197
|
changes: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toPartialJSON(obj.changes),
|
|
289029
289198
|
};
|
|
289030
289199
|
case "Delete":
|
|
289031
289200
|
return {
|
|
289032
289201
|
type: "Delete",
|
|
289202
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289033
289203
|
parent: obj.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent),
|
|
289034
289204
|
position: obj.position,
|
|
289035
289205
|
};
|
|
289036
289206
|
}
|
|
289037
289207
|
}
|
|
289038
289208
|
PartialHierarchyModification.toJSON = toJSON;
|
|
289039
|
-
/**
|
|
289209
|
+
/**
|
|
289210
|
+
* Deserialize given object from JSON
|
|
289211
|
+
* @deprecated in 3.x. Use [[PartialHierarchyModification]]
|
|
289212
|
+
*/
|
|
289213
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289040
289214
|
function fromJSON(json) {
|
|
289041
289215
|
switch (json.type) {
|
|
289042
289216
|
case "Insert":
|
|
289043
289217
|
return {
|
|
289044
289218
|
type: "Insert",
|
|
289219
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289045
289220
|
parent: json.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent),
|
|
289046
289221
|
position: json.position,
|
|
289222
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289047
289223
|
node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromJSON(json.node),
|
|
289048
289224
|
};
|
|
289049
289225
|
case "Update":
|
|
289050
289226
|
return {
|
|
289051
289227
|
type: "Update",
|
|
289228
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289052
289229
|
target: _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.target),
|
|
289053
289230
|
changes: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromPartialJSON(json.changes),
|
|
289054
289231
|
};
|
|
289055
289232
|
case "Delete":
|
|
289056
289233
|
return {
|
|
289057
289234
|
type: "Delete",
|
|
289235
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289058
289236
|
parent: json.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent),
|
|
289059
289237
|
position: json.position,
|
|
289060
289238
|
};
|
|
@@ -289065,18 +289243,28 @@ var PartialHierarchyModification;
|
|
|
289065
289243
|
/** @public */
|
|
289066
289244
|
var HierarchyCompareInfo;
|
|
289067
289245
|
(function (HierarchyCompareInfo) {
|
|
289068
|
-
/**
|
|
289246
|
+
/**
|
|
289247
|
+
* Serialize given object to JSON.
|
|
289248
|
+
* @deprecated in 3.x. Use [[HierarchyCompareInfo]]
|
|
289249
|
+
*/
|
|
289250
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289069
289251
|
function toJSON(obj) {
|
|
289070
289252
|
return {
|
|
289071
289253
|
...obj,
|
|
289254
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289072
289255
|
changes: obj.changes.map((change) => PartialHierarchyModification.toJSON(change)),
|
|
289073
289256
|
};
|
|
289074
289257
|
}
|
|
289075
289258
|
HierarchyCompareInfo.toJSON = toJSON;
|
|
289076
|
-
/**
|
|
289259
|
+
/**
|
|
289260
|
+
* Deserialize given object from JSON
|
|
289261
|
+
* @deprecated in 3.x. Use [[HierarchyCompareInfo]]
|
|
289262
|
+
*/
|
|
289263
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289077
289264
|
function fromJSON(json) {
|
|
289078
289265
|
return {
|
|
289079
289266
|
...json,
|
|
289267
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
289080
289268
|
changes: json.changes.map((change) => PartialHierarchyModification.fromJSON(change)),
|
|
289081
289269
|
};
|
|
289082
289270
|
}
|
|
@@ -289165,11 +289353,10 @@ var CategoryDescription;
|
|
|
289165
289353
|
(function (CategoryDescription) {
|
|
289166
289354
|
/** Serialize given category to JSON */
|
|
289167
289355
|
function toJSON(category) {
|
|
289168
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
289169
289356
|
const { parent, ...rest } = category;
|
|
289170
289357
|
return {
|
|
289171
289358
|
...rest,
|
|
289172
|
-
...(
|
|
289359
|
+
...(parent ? { parent: parent.name } : undefined),
|
|
289173
289360
|
};
|
|
289174
289361
|
}
|
|
289175
289362
|
CategoryDescription.toJSON = toJSON;
|
|
@@ -289283,17 +289470,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289283
289470
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
289284
289471
|
/* harmony export */ "FIELD_NAMES_SEPARATOR": () => (/* binding */ FIELD_NAMES_SEPARATOR),
|
|
289285
289472
|
/* harmony export */ "addFieldHierarchy": () => (/* binding */ addFieldHierarchy),
|
|
289286
|
-
/* harmony export */ "
|
|
289473
|
+
/* harmony export */ "combineFieldNames": () => (/* binding */ combineFieldNames),
|
|
289287
289474
|
/* harmony export */ "createFieldHierarchies": () => (/* binding */ createFieldHierarchies),
|
|
289475
|
+
/* harmony export */ "parseCombinedFieldNames": () => (/* binding */ parseCombinedFieldNames),
|
|
289288
289476
|
/* harmony export */ "traverseContent": () => (/* binding */ traverseContent),
|
|
289289
289477
|
/* harmony export */ "traverseContentItem": () => (/* binding */ traverseContentItem),
|
|
289290
289478
|
/* harmony export */ "traverseFieldHierarchy": () => (/* binding */ traverseFieldHierarchy)
|
|
289291
289479
|
/* harmony export */ });
|
|
289292
289480
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
289293
|
-
/* harmony import */ var
|
|
289294
|
-
/* harmony import */ var
|
|
289295
|
-
/* harmony import */ var
|
|
289296
|
-
/* harmony import */ var
|
|
289481
|
+
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Content */ "../../presentation/common/lib/esm/presentation-common/content/Content.js");
|
|
289482
|
+
/* harmony import */ var _Fields__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fields */ "../../presentation/common/lib/esm/presentation-common/content/Fields.js");
|
|
289483
|
+
/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Item */ "../../presentation/common/lib/esm/presentation-common/content/Item.js");
|
|
289484
|
+
/* harmony import */ var _TypeDescription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TypeDescription */ "../../presentation/common/lib/esm/presentation-common/content/TypeDescription.js");
|
|
289485
|
+
/* harmony import */ var _Value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
289297
289486
|
/*---------------------------------------------------------------------------------------------
|
|
289298
289487
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
289299
289488
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -289306,12 +289495,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
289306
289495
|
|
|
289307
289496
|
|
|
289308
289497
|
|
|
289309
|
-
|
|
289498
|
+
|
|
289499
|
+
/**
|
|
289500
|
+
* An utility for traversing field hierarchy. Stops traversal as soon as `cb` returns `false`.
|
|
289501
|
+
* @public
|
|
289502
|
+
*/
|
|
289310
289503
|
function traverseFieldHierarchy(hierarchy, cb) {
|
|
289311
289504
|
if (cb(hierarchy))
|
|
289312
289505
|
hierarchy.childFields.forEach((childHierarchy) => traverseFieldHierarchy(childHierarchy, cb));
|
|
289313
289506
|
}
|
|
289314
|
-
/**
|
|
289507
|
+
/**
|
|
289508
|
+
* An utility to traverse content using provided visitor. Provides means to parse content into different formats,
|
|
289509
|
+
* for different components.
|
|
289510
|
+
* @public
|
|
289511
|
+
*/
|
|
289315
289512
|
function traverseContent(visitor, content) {
|
|
289316
289513
|
if (!visitor.startContent({ descriptor: content.descriptor }))
|
|
289317
289514
|
return;
|
|
@@ -289326,18 +289523,12 @@ function traverseContent(visitor, content) {
|
|
|
289326
289523
|
visitor.finishContent();
|
|
289327
289524
|
}
|
|
289328
289525
|
}
|
|
289329
|
-
/**
|
|
289526
|
+
/**
|
|
289527
|
+
* An utility for calling [[traverseContent]] when there's only one content item.
|
|
289528
|
+
* @public
|
|
289529
|
+
*/
|
|
289330
289530
|
function traverseContentItem(visitor, descriptor, item) {
|
|
289331
|
-
|
|
289332
|
-
return;
|
|
289333
|
-
try {
|
|
289334
|
-
const fieldHierarchies = createFieldHierarchies(descriptor.fields);
|
|
289335
|
-
visitor.processFieldHierarchies({ hierarchies: fieldHierarchies });
|
|
289336
|
-
traverseContentItemFields(visitor, fieldHierarchies, item);
|
|
289337
|
-
}
|
|
289338
|
-
finally {
|
|
289339
|
-
visitor.finishContent();
|
|
289340
|
-
}
|
|
289531
|
+
traverseContent(visitor, new _Content__WEBPACK_IMPORTED_MODULE_1__.Content(descriptor, [item]));
|
|
289341
289532
|
}
|
|
289342
289533
|
class VisitedCategories {
|
|
289343
289534
|
constructor(_visitor, category) {
|
|
@@ -289387,27 +289578,27 @@ function traverseContentItemField(visitor, fieldHierarchy, item) {
|
|
|
289387
289578
|
return;
|
|
289388
289579
|
try {
|
|
289389
289580
|
const rootToThisField = createFieldPath(fieldHierarchy.field);
|
|
289390
|
-
let
|
|
289581
|
+
let parentFieldName;
|
|
289391
289582
|
const pathUpToField = rootToThisField.slice(undefined, -1);
|
|
289392
289583
|
for (let i = 0; i < pathUpToField.length; ++i) {
|
|
289393
289584
|
const parentField = pathUpToField[i];
|
|
289394
289585
|
const nextField = rootToThisField[i + 1];
|
|
289395
289586
|
if (item.isFieldMerged(parentField.name)) {
|
|
289396
|
-
visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: parentField,
|
|
289587
|
+
visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: parentField, parentFieldName });
|
|
289397
289588
|
return;
|
|
289398
289589
|
}
|
|
289399
289590
|
const { emptyNestedItem, convertedItem } = convertNestedContentItemToStructArrayItem(item, parentField, nextField);
|
|
289400
289591
|
if (emptyNestedItem)
|
|
289401
289592
|
return;
|
|
289402
289593
|
item = convertedItem;
|
|
289403
|
-
|
|
289594
|
+
parentFieldName = combineFieldNames(parentField.name, parentFieldName);
|
|
289404
289595
|
}
|
|
289405
289596
|
if (item.isFieldMerged(fieldHierarchy.field.name)) {
|
|
289406
|
-
visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: fieldHierarchy.field,
|
|
289597
|
+
visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: fieldHierarchy.field, parentFieldName });
|
|
289407
289598
|
return;
|
|
289408
289599
|
}
|
|
289409
289600
|
if (fieldHierarchy.field.isNestedContentField()) {
|
|
289410
|
-
fieldHierarchy = convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy,
|
|
289601
|
+
fieldHierarchy = convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy, parentFieldName);
|
|
289411
289602
|
const { emptyNestedItem, convertedItem } = convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHierarchy);
|
|
289412
289603
|
if (emptyNestedItem)
|
|
289413
289604
|
return;
|
|
@@ -289418,84 +289609,87 @@ function traverseContentItemField(visitor, fieldHierarchy, item) {
|
|
|
289418
289609
|
...fieldHierarchy,
|
|
289419
289610
|
field: Object.assign(fieldHierarchy.field.clone(), {
|
|
289420
289611
|
type: {
|
|
289421
|
-
valueFormat:
|
|
289612
|
+
valueFormat: _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Array,
|
|
289422
289613
|
typeName: `${fieldHierarchy.field.type.typeName}[]`,
|
|
289423
289614
|
memberType: fieldHierarchy.field.type,
|
|
289424
289615
|
},
|
|
289425
289616
|
}),
|
|
289426
289617
|
};
|
|
289427
289618
|
}
|
|
289428
|
-
traverseContentItemFieldValue(visitor, fieldHierarchy, item.mergedFieldNames, fieldHierarchy.field.type,
|
|
289619
|
+
traverseContentItemFieldValue(visitor, fieldHierarchy, item.mergedFieldNames, fieldHierarchy.field.type, parentFieldName, item.values[fieldHierarchy.field.name], item.displayValues[fieldHierarchy.field.name]);
|
|
289429
289620
|
}
|
|
289430
289621
|
finally {
|
|
289431
289622
|
visitor.finishField();
|
|
289432
289623
|
}
|
|
289433
289624
|
}
|
|
289434
|
-
function traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289625
|
+
function traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue) {
|
|
289435
289626
|
if (rawValue !== undefined) {
|
|
289436
|
-
if (valueType.valueFormat ===
|
|
289437
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289438
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289439
|
-
return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289627
|
+
if (valueType.valueFormat === _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Array) {
|
|
289628
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isArray(rawValue));
|
|
289629
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.DisplayValue.isArray(displayValue));
|
|
289630
|
+
return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
|
|
289440
289631
|
}
|
|
289441
|
-
if (valueType.valueFormat ===
|
|
289442
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289443
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289444
|
-
return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289632
|
+
if (valueType.valueFormat === _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Struct) {
|
|
289633
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isMap(rawValue));
|
|
289634
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.DisplayValue.isMap(displayValue));
|
|
289635
|
+
return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
|
|
289445
289636
|
}
|
|
289446
289637
|
}
|
|
289447
|
-
traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289638
|
+
traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);
|
|
289448
289639
|
}
|
|
289449
|
-
function traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289640
|
+
function traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValues, displayValues) {
|
|
289450
289641
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(rawValues.length === displayValues.length);
|
|
289451
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(valueType.valueFormat ===
|
|
289452
|
-
if (!visitor.startArray({ hierarchy: fieldHierarchy, valueType,
|
|
289642
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(valueType.valueFormat === _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Array);
|
|
289643
|
+
if (!visitor.startArray({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues }))
|
|
289453
289644
|
return;
|
|
289454
289645
|
try {
|
|
289455
289646
|
const itemType = valueType.memberType;
|
|
289456
289647
|
rawValues.forEach((_, i) => {
|
|
289457
|
-
traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, itemType,
|
|
289648
|
+
traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, itemType, parentFieldName, rawValues[i], displayValues[i]);
|
|
289458
289649
|
});
|
|
289459
289650
|
}
|
|
289460
289651
|
finally {
|
|
289461
289652
|
visitor.finishArray();
|
|
289462
289653
|
}
|
|
289463
289654
|
}
|
|
289464
|
-
function traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289465
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(valueType.valueFormat ===
|
|
289466
|
-
if (!visitor.startStruct({ hierarchy: fieldHierarchy, valueType,
|
|
289655
|
+
function traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValues, displayValues) {
|
|
289656
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(valueType.valueFormat === _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Struct);
|
|
289657
|
+
if (!visitor.startStruct({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues }))
|
|
289467
289658
|
return;
|
|
289468
289659
|
try {
|
|
289469
289660
|
if (fieldHierarchy.field.isNestedContentField())
|
|
289470
|
-
|
|
289661
|
+
parentFieldName = combineFieldNames(fieldHierarchy.field.name, parentFieldName);
|
|
289471
289662
|
valueType.members.forEach((memberDescription) => {
|
|
289472
289663
|
let memberField = fieldHierarchy.childFields.find((f) => f.field.name === memberDescription.name);
|
|
289473
289664
|
if (!memberField) {
|
|
289474
289665
|
// Not finding a member field means we're traversing an ECStruct. We still need to carry member information, so we
|
|
289475
289666
|
// create a fake field to represent the member
|
|
289476
289667
|
memberField = {
|
|
289477
|
-
field: new
|
|
289668
|
+
field: new _Fields__WEBPACK_IMPORTED_MODULE_2__.Field(fieldHierarchy.field.category, memberDescription.name, memberDescription.label, memberDescription.type, fieldHierarchy.field.isReadonly, 0),
|
|
289478
289669
|
childFields: [],
|
|
289479
289670
|
};
|
|
289480
289671
|
}
|
|
289481
|
-
traverseContentItemFieldValue(visitor, memberField, mergedFieldNames, memberDescription.type,
|
|
289672
|
+
traverseContentItemFieldValue(visitor, memberField, mergedFieldNames, memberDescription.type, parentFieldName, rawValues[memberDescription.name], displayValues[memberDescription.name]);
|
|
289482
289673
|
});
|
|
289483
289674
|
}
|
|
289484
289675
|
finally {
|
|
289485
289676
|
visitor.finishStruct();
|
|
289486
289677
|
}
|
|
289487
289678
|
}
|
|
289488
|
-
function traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType,
|
|
289679
|
+
function traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue) {
|
|
289489
289680
|
if (-1 !== mergedFieldNames.indexOf(fieldHierarchy.field.name)) {
|
|
289490
|
-
visitor.processMergedValue({ mergedField: fieldHierarchy.field, requestedField: fieldHierarchy.field,
|
|
289681
|
+
visitor.processMergedValue({ mergedField: fieldHierarchy.field, requestedField: fieldHierarchy.field, parentFieldName });
|
|
289491
289682
|
return;
|
|
289492
289683
|
}
|
|
289493
|
-
visitor.processPrimitiveValue({ field: fieldHierarchy.field, valueType,
|
|
289684
|
+
visitor.processPrimitiveValue({ field: fieldHierarchy.field, valueType, parentFieldName, rawValue, displayValue });
|
|
289494
289685
|
}
|
|
289495
289686
|
/**
|
|
289496
|
-
|
|
289497
|
-
|
|
289498
|
-
|
|
289687
|
+
* Parses a list of [[Field]] objects into a list of [[FieldHierarchy]].
|
|
289688
|
+
*
|
|
289689
|
+
* @param ignoreCategories Enables adding all of the `nestedFields` to parent field's `childFields`
|
|
289690
|
+
* without considering categories.
|
|
289691
|
+
*
|
|
289692
|
+
* @public
|
|
289499
289693
|
*/
|
|
289500
289694
|
function createFieldHierarchies(fields, ignoreCategories) {
|
|
289501
289695
|
const hierarchies = new Array();
|
|
@@ -289587,7 +289781,10 @@ function mergeHierarchies(lhs, rhs) {
|
|
|
289587
289781
|
});
|
|
289588
289782
|
return result;
|
|
289589
289783
|
}
|
|
289590
|
-
/**
|
|
289784
|
+
/**
|
|
289785
|
+
* Adds a field hierarchy into root field hierarchies list. *
|
|
289786
|
+
* @public
|
|
289787
|
+
*/
|
|
289591
289788
|
function addFieldHierarchy(rootHierarchies, hierarchy) {
|
|
289592
289789
|
var _a;
|
|
289593
289790
|
const match = findRelatedFields(rootHierarchies, hierarchy);
|
|
@@ -289614,14 +289811,24 @@ function createFieldPath(field) {
|
|
|
289614
289811
|
}
|
|
289615
289812
|
/** @internal */
|
|
289616
289813
|
const FIELD_NAMES_SEPARATOR = "$";
|
|
289617
|
-
/**
|
|
289618
|
-
|
|
289619
|
-
|
|
289814
|
+
/**
|
|
289815
|
+
* Combines given field names in a way that allows them to be parsed back into a list of individual names using the [[parseCombinedFieldNames]] function.
|
|
289816
|
+
* @public
|
|
289817
|
+
*/
|
|
289818
|
+
function combineFieldNames(fieldName, parentFieldName) {
|
|
289819
|
+
return parentFieldName ? `${parentFieldName}${FIELD_NAMES_SEPARATOR}${fieldName}` : fieldName;
|
|
289820
|
+
}
|
|
289821
|
+
/**
|
|
289822
|
+
* Parses given combined field names string, constructed using [[combineFieldNames]], into a list of individual field names.
|
|
289823
|
+
* @public
|
|
289824
|
+
*/
|
|
289825
|
+
function parseCombinedFieldNames(combinedName) {
|
|
289826
|
+
return combinedName ? combinedName.split(FIELD_NAMES_SEPARATOR) : [];
|
|
289620
289827
|
}
|
|
289621
289828
|
function convertNestedContentItemToStructArrayItem(item, field, nextField) {
|
|
289622
289829
|
var _a;
|
|
289623
289830
|
const value = (_a = item.values[field.name]) !== null && _a !== void 0 ? _a : [];
|
|
289624
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289831
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isNestedContent(value));
|
|
289625
289832
|
if (value.length === 0)
|
|
289626
289833
|
return { emptyNestedItem: true, convertedItem: item };
|
|
289627
289834
|
const nextFieldValues = { raw: [], display: [] };
|
|
@@ -289630,7 +289837,7 @@ function convertNestedContentItemToStructArrayItem(item, field, nextField) {
|
|
|
289630
289837
|
const nextDisplayValue = ncv.displayValues[nextField.name];
|
|
289631
289838
|
if (nextField.isNestedContentField()) {
|
|
289632
289839
|
if (nextRawValue) {
|
|
289633
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289840
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isNestedContent(nextRawValue));
|
|
289634
289841
|
nextFieldValues.raw.push(...nextRawValue);
|
|
289635
289842
|
}
|
|
289636
289843
|
}
|
|
@@ -289639,23 +289846,23 @@ function convertNestedContentItemToStructArrayItem(item, field, nextField) {
|
|
|
289639
289846
|
nextFieldValues.display.push(nextDisplayValue);
|
|
289640
289847
|
}
|
|
289641
289848
|
});
|
|
289642
|
-
const convertedItem = new
|
|
289849
|
+
const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, item.classInfo, { [nextField.name]: nextFieldValues.raw }, { [nextField.name]: nextFieldValues.display }, item.mergedFieldNames, item.extendedData); // eslint-disable-line deprecation/deprecation
|
|
289643
289850
|
return { emptyNestedItem: false, convertedItem };
|
|
289644
289851
|
}
|
|
289645
|
-
function convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy,
|
|
289852
|
+
function convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy, parentFieldName) {
|
|
289646
289853
|
const fieldName = fieldHierarchy.field.name;
|
|
289647
289854
|
const convertedChildFieldHierarchies = fieldHierarchy.childFields.map((child) => {
|
|
289648
289855
|
if (child.field.isNestedContentField())
|
|
289649
|
-
return convertNestedContentFieldHierarchyToStructArrayHierarchy(child,
|
|
289856
|
+
return convertNestedContentFieldHierarchyToStructArrayHierarchy(child, combineFieldNames(fieldName, parentFieldName));
|
|
289650
289857
|
return child;
|
|
289651
289858
|
});
|
|
289652
289859
|
const convertedFieldHierarchy = {
|
|
289653
289860
|
field: Object.assign(fieldHierarchy.field.clone(), {
|
|
289654
289861
|
type: {
|
|
289655
|
-
valueFormat:
|
|
289862
|
+
valueFormat: _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Array,
|
|
289656
289863
|
typeName: `${fieldHierarchy.field.type.typeName}[]`,
|
|
289657
289864
|
memberType: {
|
|
289658
|
-
valueFormat:
|
|
289865
|
+
valueFormat: _TypeDescription__WEBPACK_IMPORTED_MODULE_4__.PropertyValueFormat.Struct,
|
|
289659
289866
|
typeName: fieldHierarchy.field.type.typeName,
|
|
289660
289867
|
members: convertedChildFieldHierarchies.map((member) => ({
|
|
289661
289868
|
name: member.field.name,
|
|
@@ -289682,7 +289889,7 @@ function convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy,
|
|
|
289682
289889
|
}
|
|
289683
289890
|
if (childFieldHierarchy.field.isNestedContentField()) {
|
|
289684
289891
|
const value = values[childFieldName];
|
|
289685
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289892
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isNestedContent(value));
|
|
289686
289893
|
const convertedValues = convertNestedContentValuesToStructArrayValuesRecursive(childFieldHierarchy, value);
|
|
289687
289894
|
values[childFieldName] = convertedValues.raw;
|
|
289688
289895
|
displayValues[childFieldName] = convertedValues.display;
|
|
@@ -289698,11 +289905,11 @@ function convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy,
|
|
|
289698
289905
|
function convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHierarchy) {
|
|
289699
289906
|
const fieldName = fieldHierarchy.field.name;
|
|
289700
289907
|
const rawValue = item.values[fieldName];
|
|
289701
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(
|
|
289908
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_5__.Value.isNestedContent(rawValue));
|
|
289702
289909
|
if (rawValue.length === 0)
|
|
289703
289910
|
return { emptyNestedItem: true, convertedItem: item };
|
|
289704
289911
|
const converted = convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy, rawValue);
|
|
289705
|
-
const convertedItem = new
|
|
289912
|
+
const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, item.classInfo, { [fieldName]: converted.raw }, { [fieldName]: converted.display }, converted.mergedFieldNames, item.extendedData); // eslint-disable-line deprecation/deprecation
|
|
289706
289913
|
return { emptyNestedItem: false, convertedItem };
|
|
289707
289914
|
}
|
|
289708
289915
|
|
|
@@ -289804,8 +290011,6 @@ var ContentFlags;
|
|
|
289804
290011
|
/**
|
|
289805
290012
|
* Set related input keys on [[Item]] objects when creating content. This helps identify which [[Item]] is associated to which
|
|
289806
290013
|
* given input key at the cost of performance creating those items.
|
|
289807
|
-
*
|
|
289808
|
-
* @beta
|
|
289809
290014
|
*/
|
|
289810
290015
|
ContentFlags[ContentFlags["IncludeInputKeys"] = 256] = "IncludeInputKeys";
|
|
289811
290016
|
/**
|
|
@@ -290108,6 +290313,7 @@ class Field {
|
|
|
290108
290313
|
if (isPropertiesField(json))
|
|
290109
290314
|
return PropertiesField.fromJSON(json, categories);
|
|
290110
290315
|
if (isNestedContentField(json))
|
|
290316
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290111
290317
|
return NestedContentField.fromJSON(json, categories);
|
|
290112
290318
|
const field = Object.create(Field.prototype);
|
|
290113
290319
|
return Object.assign(field, json, {
|
|
@@ -290187,7 +290393,7 @@ class PropertiesField extends Field {
|
|
|
290187
290393
|
toJSON() {
|
|
290188
290394
|
return {
|
|
290189
290395
|
...super.toJSON(),
|
|
290190
|
-
properties: this.properties
|
|
290396
|
+
properties: this.properties,
|
|
290191
290397
|
};
|
|
290192
290398
|
}
|
|
290193
290399
|
/** Deserialize [[PropertiesField]] from JSON */
|
|
@@ -290197,7 +290403,6 @@ class PropertiesField extends Field {
|
|
|
290197
290403
|
const field = Object.create(PropertiesField.prototype);
|
|
290198
290404
|
return Object.assign(field, json, {
|
|
290199
290405
|
category: this.getCategoryFromFieldJson(json, categories),
|
|
290200
|
-
properties: json.properties.map(_Property__WEBPACK_IMPORTED_MODULE_4__.Property.fromJSON),
|
|
290201
290406
|
});
|
|
290202
290407
|
}
|
|
290203
290408
|
/**
|
|
@@ -290290,16 +290495,18 @@ class NestedContentField extends Field {
|
|
|
290290
290495
|
autoExpand: this.autoExpand,
|
|
290291
290496
|
};
|
|
290292
290497
|
}
|
|
290293
|
-
/**
|
|
290498
|
+
/**
|
|
290499
|
+
* Deserialize [[NestedContentField]] from JSON
|
|
290500
|
+
* @deprecated in 3.x. Use [[NestedContentField.fromCompressedJSON]]
|
|
290501
|
+
*/
|
|
290294
290502
|
static fromJSON(json, categories) {
|
|
290295
290503
|
if (!json)
|
|
290296
290504
|
return undefined;
|
|
290297
290505
|
const field = Object.create(NestedContentField.prototype);
|
|
290298
290506
|
return Object.assign(field, json, this.fromCommonJSON(json, categories), {
|
|
290299
|
-
nestedFields: json.nestedFields
|
|
290507
|
+
nestedFields: json.nestedFields
|
|
290508
|
+
.map((nestedFieldJson) => Field.fromJSON(nestedFieldJson, categories))
|
|
290300
290509
|
.filter((nestedField) => !!nestedField),
|
|
290301
|
-
contentClassInfo: _EC__WEBPACK_IMPORTED_MODULE_1__.ClassInfo.fromJSON(json.contentClassInfo),
|
|
290302
|
-
pathToPrimaryClass: json.pathToPrimaryClass.map(_EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.fromJSON),
|
|
290303
290510
|
});
|
|
290304
290511
|
}
|
|
290305
290512
|
/**
|
|
@@ -290313,10 +290520,11 @@ class NestedContentField extends Field {
|
|
|
290313
290520
|
category: this.getCategoryFromFieldJson(json, categories),
|
|
290314
290521
|
nestedFields: json.nestedFields.map((nestedFieldJson) => Field.fromCompressedJSON(nestedFieldJson, classesMap, categories))
|
|
290315
290522
|
.filter((nestedField) => !!nestedField),
|
|
290316
|
-
contentClassInfo:
|
|
290523
|
+
contentClassInfo: { id: json.contentClassInfo, ...classesMap[json.contentClassInfo] },
|
|
290317
290524
|
pathToPrimaryClass: json.pathToPrimaryClass.map((stepJson) => _EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.fromCompressedJSON(stepJson, classesMap)),
|
|
290318
290525
|
});
|
|
290319
290526
|
}
|
|
290527
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290320
290528
|
static fromCommonJSON(json, categories) {
|
|
290321
290529
|
var _a, _b;
|
|
290322
290530
|
return {
|
|
@@ -290406,9 +290614,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290406
290614
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
290407
290615
|
/* harmony export */ "Item": () => (/* binding */ Item)
|
|
290408
290616
|
/* harmony export */ });
|
|
290409
|
-
/* harmony import */ var
|
|
290410
|
-
/* harmony import */ var
|
|
290411
|
-
/* harmony import */ var _Value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
290617
|
+
/* harmony import */ var _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../LabelDefinition */ "../../presentation/common/lib/esm/presentation-common/LabelDefinition.js");
|
|
290618
|
+
/* harmony import */ var _Value__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
|
|
290412
290619
|
/*---------------------------------------------------------------------------------------------
|
|
290413
290620
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290414
290621
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -290418,7 +290625,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290418
290625
|
*/
|
|
290419
290626
|
|
|
290420
290627
|
|
|
290421
|
-
|
|
290422
290628
|
/**
|
|
290423
290629
|
* A data structure that represents a single content record.
|
|
290424
290630
|
* @public
|
|
@@ -290443,7 +290649,7 @@ class Item {
|
|
|
290443
290649
|
this.displayValues = displayValues;
|
|
290444
290650
|
this.mergedFieldNames = mergedFieldNames;
|
|
290445
290651
|
this.extendedData = extendedData;
|
|
290446
|
-
this.label = (typeof label === "string") ?
|
|
290652
|
+
this.label = (typeof label === "string") ? _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.fromLabelString(label) : label;
|
|
290447
290653
|
}
|
|
290448
290654
|
/**
|
|
290449
290655
|
* Is value of field with the specified name merged in this record.
|
|
@@ -290456,12 +290662,12 @@ class Item {
|
|
|
290456
290662
|
const { label, ...baseItem } = this;
|
|
290457
290663
|
return {
|
|
290458
290664
|
...baseItem,
|
|
290459
|
-
|
|
290460
|
-
|
|
290461
|
-
|
|
290462
|
-
|
|
290463
|
-
|
|
290464
|
-
labelDefinition:
|
|
290665
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290666
|
+
values: _Value__WEBPACK_IMPORTED_MODULE_1__.Value.toJSON(this.values),
|
|
290667
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290668
|
+
displayValues: _Value__WEBPACK_IMPORTED_MODULE_1__.DisplayValue.toJSON(this.displayValues),
|
|
290669
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290670
|
+
labelDefinition: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.toJSON(label),
|
|
290465
290671
|
};
|
|
290466
290672
|
}
|
|
290467
290673
|
/** Deserialize [[Item]] from JSON */
|
|
@@ -290473,18 +290679,17 @@ class Item {
|
|
|
290473
290679
|
const item = Object.create(Item.prototype);
|
|
290474
290680
|
const { labelDefinition, ...baseJson } = json;
|
|
290475
290681
|
return Object.assign(item, baseJson, {
|
|
290476
|
-
|
|
290477
|
-
|
|
290478
|
-
|
|
290479
|
-
|
|
290480
|
-
|
|
290481
|
-
label:
|
|
290682
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290683
|
+
values: _Value__WEBPACK_IMPORTED_MODULE_1__.Value.fromJSON(json.values),
|
|
290684
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290685
|
+
displayValues: _Value__WEBPACK_IMPORTED_MODULE_1__.DisplayValue.fromJSON(json.displayValues),
|
|
290686
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290687
|
+
label: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.fromJSON(labelDefinition),
|
|
290482
290688
|
});
|
|
290483
290689
|
}
|
|
290484
290690
|
/**
|
|
290485
290691
|
* Reviver function that can be used as a second argument for
|
|
290486
290692
|
* `JSON.parse` method when parsing Item objects.
|
|
290487
|
-
*
|
|
290488
290693
|
* @internal
|
|
290489
290694
|
*/
|
|
290490
290695
|
static reviver(key, value) {
|
|
@@ -290518,11 +290723,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290518
290723
|
/** @public */
|
|
290519
290724
|
var Property;
|
|
290520
290725
|
(function (Property) {
|
|
290521
|
-
/**
|
|
290726
|
+
/**
|
|
290727
|
+
* Serialize [[Property]] to JSON
|
|
290728
|
+
* @deprecated in 3.x. Use [[toCompressedJSON]]
|
|
290729
|
+
*/
|
|
290730
|
+
// istanbul ignore next
|
|
290522
290731
|
function toJSON(prop) {
|
|
290523
|
-
return {
|
|
290524
|
-
property: _EC__WEBPACK_IMPORTED_MODULE_0__.PropertyInfo.toJSON(prop.property),
|
|
290525
|
-
};
|
|
290732
|
+
return { ...prop };
|
|
290526
290733
|
}
|
|
290527
290734
|
Property.toJSON = toJSON;
|
|
290528
290735
|
/** Serialize [[Property]] to compressed JSON */
|
|
@@ -290532,11 +290739,13 @@ var Property;
|
|
|
290532
290739
|
};
|
|
290533
290740
|
}
|
|
290534
290741
|
Property.toCompressedJSON = toCompressedJSON;
|
|
290535
|
-
/**
|
|
290742
|
+
/**
|
|
290743
|
+
* Deserializes [[Property]] from JSON
|
|
290744
|
+
* @deprecated in 3.x. Use [[Property]]
|
|
290745
|
+
*/
|
|
290746
|
+
// istanbul ignore next
|
|
290536
290747
|
function fromJSON(json) {
|
|
290537
|
-
return {
|
|
290538
|
-
property: _EC__WEBPACK_IMPORTED_MODULE_0__.PropertyInfo.fromJSON(json.property),
|
|
290539
|
-
};
|
|
290748
|
+
return { ...json };
|
|
290540
290749
|
}
|
|
290541
290750
|
Property.fromJSON = fromJSON;
|
|
290542
290751
|
})(Property || (Property = {}));
|
|
@@ -290613,7 +290822,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290613
290822
|
/* harmony export */ "NestedContentValue": () => (/* binding */ NestedContentValue),
|
|
290614
290823
|
/* harmony export */ "Value": () => (/* binding */ Value)
|
|
290615
290824
|
/* harmony export */ });
|
|
290616
|
-
/* harmony import */ var _EC__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../EC */ "../../presentation/common/lib/esm/presentation-common/EC.js");
|
|
290617
290825
|
/*---------------------------------------------------------------------------------------------
|
|
290618
290826
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
290619
290827
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -290621,7 +290829,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290621
290829
|
/** @packageDocumentation
|
|
290622
290830
|
* @module Content
|
|
290623
290831
|
*/
|
|
290624
|
-
|
|
290625
290832
|
/** @public */
|
|
290626
290833
|
var Value;
|
|
290627
290834
|
(function (Value) {
|
|
@@ -290645,11 +290852,16 @@ var Value;
|
|
|
290645
290852
|
return isNestedContentValue(value);
|
|
290646
290853
|
}
|
|
290647
290854
|
Value.isNestedContent = isNestedContent;
|
|
290648
|
-
/**
|
|
290855
|
+
/**
|
|
290856
|
+
* Serialize [[Value]] to JSON
|
|
290857
|
+
* @deprecated in 3.x. Use [[Value]]
|
|
290858
|
+
*/
|
|
290859
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290649
290860
|
function fromJSON(json) {
|
|
290650
290861
|
if (json === null)
|
|
290651
290862
|
return undefined;
|
|
290652
290863
|
if (isNestedContentValue(json))
|
|
290864
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290653
290865
|
return json.map(NestedContentValue.fromJSON);
|
|
290654
290866
|
if (isArrayValue(json))
|
|
290655
290867
|
return valuesArrayFromJSON(json);
|
|
@@ -290658,11 +290870,16 @@ var Value;
|
|
|
290658
290870
|
return json;
|
|
290659
290871
|
}
|
|
290660
290872
|
Value.fromJSON = fromJSON;
|
|
290661
|
-
/**
|
|
290873
|
+
/**
|
|
290874
|
+
* Deserialize [[Value]] from JSON
|
|
290875
|
+
* @deprecated in 3.x. Use [[Value]]
|
|
290876
|
+
*/
|
|
290877
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290662
290878
|
function toJSON(value) {
|
|
290663
290879
|
if (undefined === value)
|
|
290664
290880
|
return null;
|
|
290665
290881
|
if (isNestedContentValue(value))
|
|
290882
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290666
290883
|
return value.map(NestedContentValue.toJSON);
|
|
290667
290884
|
if (isArrayValue(value))
|
|
290668
290885
|
return valuesArrayToJSON(value);
|
|
@@ -290690,7 +290907,11 @@ var DisplayValue;
|
|
|
290690
290907
|
return isMapValue(value);
|
|
290691
290908
|
}
|
|
290692
290909
|
DisplayValue.isMap = isMap;
|
|
290693
|
-
/**
|
|
290910
|
+
/**
|
|
290911
|
+
* Serialize [[DisplayValue]] to JSON
|
|
290912
|
+
* @deprecated in 3.x. Use [[DisplayValue]]
|
|
290913
|
+
*/
|
|
290914
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290694
290915
|
function fromJSON(json) {
|
|
290695
290916
|
if (json === null)
|
|
290696
290917
|
return undefined;
|
|
@@ -290701,7 +290922,11 @@ var DisplayValue;
|
|
|
290701
290922
|
return json;
|
|
290702
290923
|
}
|
|
290703
290924
|
DisplayValue.fromJSON = fromJSON;
|
|
290704
|
-
/**
|
|
290925
|
+
/**
|
|
290926
|
+
* Deserialize [[DisplayValue]] from JSON
|
|
290927
|
+
* @deprecated in 3.x. Use [[DisplayValue]]
|
|
290928
|
+
*/
|
|
290929
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290705
290930
|
function toJSON(value) {
|
|
290706
290931
|
if (undefined === value)
|
|
290707
290932
|
return null;
|
|
@@ -290716,23 +290941,29 @@ var DisplayValue;
|
|
|
290716
290941
|
/** @public */
|
|
290717
290942
|
var NestedContentValue;
|
|
290718
290943
|
(function (NestedContentValue) {
|
|
290719
|
-
/**
|
|
290720
|
-
|
|
290944
|
+
/**
|
|
290945
|
+
* Serialize [[NestedContentValue]] to JSON
|
|
290946
|
+
* @deprecated in 3.x. Use [[NestedContentValue]]
|
|
290947
|
+
*/
|
|
290948
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290949
|
+
function toJSON(value) {
|
|
290721
290950
|
return {
|
|
290722
|
-
|
|
290723
|
-
values: valuesMapToJSON(
|
|
290724
|
-
displayValues: displayValuesMapToJSON(
|
|
290725
|
-
mergedFieldNames: json.mergedFieldNames,
|
|
290951
|
+
...value,
|
|
290952
|
+
values: valuesMapToJSON(value.values),
|
|
290953
|
+
displayValues: displayValuesMapToJSON(value.displayValues),
|
|
290726
290954
|
};
|
|
290727
290955
|
}
|
|
290728
290956
|
NestedContentValue.toJSON = toJSON;
|
|
290729
|
-
/**
|
|
290957
|
+
/**
|
|
290958
|
+
* Deserialize [[NestedContentValue]] from JSON
|
|
290959
|
+
* @deprecated in 3.x. Use [[NestedContentValue]]
|
|
290960
|
+
*/
|
|
290961
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290730
290962
|
function fromJSON(json) {
|
|
290731
290963
|
return {
|
|
290732
|
-
|
|
290964
|
+
...json,
|
|
290733
290965
|
values: valuesMapFromJSON(json.values),
|
|
290734
290966
|
displayValues: displayValuesMapFromJSON(json.displayValues),
|
|
290735
|
-
mergedFieldNames: json.mergedFieldNames,
|
|
290736
290967
|
};
|
|
290737
290968
|
}
|
|
290738
290969
|
NestedContentValue.fromJSON = fromJSON;
|
|
@@ -290740,23 +290971,36 @@ var NestedContentValue;
|
|
|
290740
290971
|
/** @public */
|
|
290741
290972
|
var DisplayValueGroup;
|
|
290742
290973
|
(function (DisplayValueGroup) {
|
|
290743
|
-
/**
|
|
290974
|
+
/**
|
|
290975
|
+
* Serialize [[DisplayValueGroup]] to JSON
|
|
290976
|
+
* @deprecated in 3.x. Use [[DisplayValueGroup]]
|
|
290977
|
+
*/
|
|
290978
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290744
290979
|
function toJSON(group) {
|
|
290745
290980
|
return {
|
|
290981
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290746
290982
|
displayValue: DisplayValue.toJSON(group.displayValue),
|
|
290983
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290747
290984
|
groupedRawValues: group.groupedRawValues.map(Value.toJSON),
|
|
290748
290985
|
};
|
|
290749
290986
|
}
|
|
290750
290987
|
DisplayValueGroup.toJSON = toJSON;
|
|
290751
|
-
/**
|
|
290988
|
+
/**
|
|
290989
|
+
* Deserialize [[DisplayValueGroup]] from JSON
|
|
290990
|
+
* @deprecated in 3.x. Use [[DisplayValueGroup]]
|
|
290991
|
+
*/
|
|
290992
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290752
290993
|
function fromJSON(json) {
|
|
290753
290994
|
return {
|
|
290995
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290754
290996
|
displayValue: DisplayValue.fromJSON(json.displayValue),
|
|
290997
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290755
290998
|
groupedRawValues: json.groupedRawValues.map(Value.fromJSON),
|
|
290756
290999
|
};
|
|
290757
291000
|
}
|
|
290758
291001
|
DisplayValueGroup.fromJSON = fromJSON;
|
|
290759
291002
|
})(DisplayValueGroup || (DisplayValueGroup = {}));
|
|
291003
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290760
291004
|
function isNestedContentValue(v) {
|
|
290761
291005
|
return (v !== undefined) && Array.isArray(v)
|
|
290762
291006
|
&& ((v.length === 0)
|
|
@@ -290765,64 +291009,84 @@ function isNestedContentValue(v) {
|
|
|
290765
291009
|
&& v[0].displayValues !== undefined
|
|
290766
291010
|
&& v[0].mergedFieldNames !== undefined);
|
|
290767
291011
|
}
|
|
291012
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290768
291013
|
function isArrayValue(v) {
|
|
290769
291014
|
// note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.
|
|
290770
291015
|
// we have other means to determine the type of value.
|
|
290771
291016
|
return (v !== undefined) && Array.isArray(v);
|
|
290772
291017
|
}
|
|
291018
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290773
291019
|
function isMapValue(v) {
|
|
290774
291020
|
return (v !== undefined) && (typeof v === "object") && !Array.isArray(v);
|
|
290775
291021
|
}
|
|
290776
291022
|
function isPrimitiveValue(v) {
|
|
290777
291023
|
return !isArrayValue(v) && !isMapValue(v);
|
|
290778
291024
|
}
|
|
291025
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290779
291026
|
function valuesArrayFromJSON(json) {
|
|
291027
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290780
291028
|
return json.map(Value.fromJSON);
|
|
290781
291029
|
}
|
|
291030
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290782
291031
|
function valuesArrayToJSON(values) {
|
|
291032
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290783
291033
|
return values.map(Value.toJSON);
|
|
290784
291034
|
}
|
|
291035
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290785
291036
|
function valuesMapFromJSON(json) {
|
|
290786
291037
|
const map = {};
|
|
290787
291038
|
for (const key in json) {
|
|
290788
291039
|
/* istanbul ignore else */
|
|
290789
291040
|
if (json.hasOwnProperty(key)) {
|
|
291041
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290790
291042
|
map[key] = Value.fromJSON(json[key]);
|
|
290791
291043
|
}
|
|
290792
291044
|
}
|
|
290793
291045
|
return map;
|
|
290794
291046
|
}
|
|
291047
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290795
291048
|
function valuesMapToJSON(values) {
|
|
291049
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290796
291050
|
const map = {};
|
|
290797
291051
|
for (const key in values) {
|
|
290798
291052
|
/* istanbul ignore else */
|
|
290799
291053
|
if (values.hasOwnProperty(key)) {
|
|
291054
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290800
291055
|
map[key] = Value.toJSON(values[key]);
|
|
290801
291056
|
}
|
|
290802
291057
|
}
|
|
290803
291058
|
return map;
|
|
290804
291059
|
}
|
|
291060
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290805
291061
|
function displayValuesArrayFromJSON(json) {
|
|
291062
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290806
291063
|
return json.map(DisplayValue.fromJSON);
|
|
290807
291064
|
}
|
|
291065
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290808
291066
|
function displayValuesArrayToJSON(values) {
|
|
291067
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290809
291068
|
return values.map(DisplayValue.toJSON);
|
|
290810
291069
|
}
|
|
291070
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290811
291071
|
function displayValuesMapFromJSON(json) {
|
|
290812
291072
|
const map = {};
|
|
290813
291073
|
for (const key in json) {
|
|
290814
291074
|
/* istanbul ignore else */
|
|
290815
291075
|
if (json.hasOwnProperty(key)) {
|
|
291076
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290816
291077
|
map[key] = DisplayValue.fromJSON(json[key]);
|
|
290817
291078
|
}
|
|
290818
291079
|
}
|
|
290819
291080
|
return map;
|
|
290820
291081
|
}
|
|
291082
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290821
291083
|
function displayValuesMapToJSON(values) {
|
|
291084
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290822
291085
|
const map = {};
|
|
290823
291086
|
for (const key in values) {
|
|
290824
291087
|
/* istanbul ignore else */
|
|
290825
291088
|
if (values.hasOwnProperty(key)) {
|
|
291089
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290826
291090
|
map[key] = DisplayValue.toJSON(values[key]);
|
|
290827
291091
|
}
|
|
290828
291092
|
}
|
|
@@ -290852,13 +291116,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
290852
291116
|
* @module Hierarchies
|
|
290853
291117
|
*/
|
|
290854
291118
|
|
|
290855
|
-
/**
|
|
291119
|
+
/**
|
|
291120
|
+
* Contains helper functions for working with objects of [[HierarchyLevel]] type.
|
|
291121
|
+
* @beta
|
|
291122
|
+
*/
|
|
290856
291123
|
var HierarchyLevel;
|
|
290857
291124
|
(function (HierarchyLevel) {
|
|
290858
|
-
/**
|
|
291125
|
+
/**
|
|
291126
|
+
* Deserialize [[HierarchyLevel]] from JSON
|
|
291127
|
+
* @deprecated in 3.x. Use [[HierarchyLevel]].
|
|
291128
|
+
*/
|
|
291129
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290859
291130
|
function fromJSON(json) {
|
|
290860
291131
|
return {
|
|
290861
291132
|
...json,
|
|
291133
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290862
291134
|
nodes: json.nodes.map(_Node__WEBPACK_IMPORTED_MODULE_0__.Node.fromJSON),
|
|
290863
291135
|
};
|
|
290864
291136
|
}
|
|
@@ -290905,36 +291177,45 @@ var StandardNodeTypes;
|
|
|
290905
291177
|
/** @public */
|
|
290906
291178
|
var NodeKey;
|
|
290907
291179
|
(function (NodeKey) {
|
|
290908
|
-
/**
|
|
291180
|
+
/**
|
|
291181
|
+
* Serialize given [[NodeKey]] to JSON
|
|
291182
|
+
* @deprecated in 3.x. Use [[NodeKey]].
|
|
291183
|
+
*/
|
|
291184
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290909
291185
|
function toJSON(key) {
|
|
290910
|
-
if (isInstancesNodeKey(key))
|
|
290911
|
-
return { ...key, instanceKeys: key.instanceKeys.map(_EC__WEBPACK_IMPORTED_MODULE_1__.InstanceKey.toJSON) };
|
|
290912
291186
|
return { ...key };
|
|
290913
291187
|
}
|
|
290914
291188
|
NodeKey.toJSON = toJSON;
|
|
290915
|
-
/**
|
|
291189
|
+
/**
|
|
291190
|
+
* Deserialize node key from JSON
|
|
291191
|
+
* @deprecated in 3.x. Use [[NodeKey]].
|
|
291192
|
+
*/
|
|
291193
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290916
291194
|
function fromJSON(json) {
|
|
290917
|
-
if (isInstancesNodeKey(json))
|
|
290918
|
-
return { version: 1, ...json, instanceKeys: json.instanceKeys.map(_EC__WEBPACK_IMPORTED_MODULE_1__.InstanceKey.fromJSON) };
|
|
290919
291195
|
return { version: 1, ...json };
|
|
290920
291196
|
}
|
|
290921
291197
|
NodeKey.fromJSON = fromJSON;
|
|
291198
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290922
291199
|
function isInstancesNodeKey(key) {
|
|
290923
291200
|
return key.type === StandardNodeTypes.ECInstancesNode;
|
|
290924
291201
|
}
|
|
290925
291202
|
NodeKey.isInstancesNodeKey = isInstancesNodeKey;
|
|
291203
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290926
291204
|
function isClassGroupingNodeKey(key) {
|
|
290927
291205
|
return key.type === StandardNodeTypes.ECClassGroupingNode;
|
|
290928
291206
|
}
|
|
290929
291207
|
NodeKey.isClassGroupingNodeKey = isClassGroupingNodeKey;
|
|
291208
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290930
291209
|
function isPropertyGroupingNodeKey(key) {
|
|
290931
291210
|
return key.type === StandardNodeTypes.ECPropertyGroupingNode;
|
|
290932
291211
|
}
|
|
290933
291212
|
NodeKey.isPropertyGroupingNodeKey = isPropertyGroupingNodeKey;
|
|
291213
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290934
291214
|
function isLabelGroupingNodeKey(key) {
|
|
290935
291215
|
return key.type === StandardNodeTypes.DisplayLabelGroupingNode;
|
|
290936
291216
|
}
|
|
290937
291217
|
NodeKey.isLabelGroupingNodeKey = isLabelGroupingNodeKey;
|
|
291218
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
290938
291219
|
function isGroupingNodeKey(key) {
|
|
290939
291220
|
return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key);
|
|
290940
291221
|
}
|
|
@@ -291006,8 +291287,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
291006
291287
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
291007
291288
|
/* harmony export */ "Node": () => (/* binding */ Node)
|
|
291008
291289
|
/* harmony export */ });
|
|
291009
|
-
/* harmony import */ var
|
|
291010
|
-
/* harmony import */ var _Key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
|
|
291290
|
+
/* harmony import */ var _Key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
|
|
291011
291291
|
/*---------------------------------------------------------------------------------------------
|
|
291012
291292
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
291013
291293
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -291016,46 +291296,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
291016
291296
|
* @module Hierarchies
|
|
291017
291297
|
*/
|
|
291018
291298
|
|
|
291019
|
-
|
|
291020
291299
|
/** @public */
|
|
291021
291300
|
var Node;
|
|
291022
291301
|
(function (Node) {
|
|
291023
|
-
/**
|
|
291302
|
+
/**
|
|
291303
|
+
* Serialize given [[Node]] to JSON
|
|
291304
|
+
* @deprecated in 3.x. Use [[Node]].
|
|
291305
|
+
*/
|
|
291306
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291024
291307
|
function toJSON(node) {
|
|
291025
|
-
const {
|
|
291308
|
+
const { label, ...baseNode } = node;
|
|
291026
291309
|
return {
|
|
291027
291310
|
...baseNode,
|
|
291028
|
-
|
|
291029
|
-
labelDefinition: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.toJSON(label),
|
|
291311
|
+
labelDefinition: label,
|
|
291030
291312
|
};
|
|
291031
291313
|
}
|
|
291032
291314
|
Node.toJSON = toJSON;
|
|
291033
291315
|
/** @internal */
|
|
291316
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291034
291317
|
function toPartialJSON(node) {
|
|
291035
291318
|
if (node.key === undefined) {
|
|
291036
291319
|
return node;
|
|
291037
291320
|
}
|
|
291038
|
-
const {
|
|
291321
|
+
const { label, ...baseNode } = node;
|
|
291039
291322
|
return {
|
|
291040
291323
|
...baseNode,
|
|
291041
|
-
|
|
291042
|
-
labelDefinition: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.toJSON(label),
|
|
291324
|
+
labelDefinition: label,
|
|
291043
291325
|
};
|
|
291044
291326
|
}
|
|
291045
291327
|
Node.toPartialJSON = toPartialJSON;
|
|
291046
|
-
/**
|
|
291328
|
+
/**
|
|
291329
|
+
* Deserialize [[Node]] from JSON
|
|
291330
|
+
* @deprecated in 3.x. Use [[Node]].
|
|
291331
|
+
*/
|
|
291332
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291047
291333
|
function fromJSON(json) {
|
|
291048
291334
|
if (typeof json === "string")
|
|
291049
291335
|
return JSON.parse(json, reviver);
|
|
291050
291336
|
const { labelDefinition, ...baseJson } = json;
|
|
291051
291337
|
return {
|
|
291052
291338
|
...baseJson,
|
|
291053
|
-
|
|
291054
|
-
|
|
291339
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291340
|
+
key: _Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.key),
|
|
291341
|
+
label: labelDefinition,
|
|
291055
291342
|
};
|
|
291056
291343
|
}
|
|
291057
291344
|
Node.fromJSON = fromJSON;
|
|
291058
291345
|
/** @internal */
|
|
291346
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291059
291347
|
function fromPartialJSON(json) {
|
|
291060
291348
|
if (json.key === undefined) {
|
|
291061
291349
|
return json;
|
|
@@ -291063,18 +291351,19 @@ var Node;
|
|
|
291063
291351
|
const { key, labelDefinition, ...baseJson } = json;
|
|
291064
291352
|
return {
|
|
291065
291353
|
...baseJson,
|
|
291066
|
-
|
|
291067
|
-
|
|
291354
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291355
|
+
key: _Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(key),
|
|
291356
|
+
label: labelDefinition,
|
|
291068
291357
|
};
|
|
291069
291358
|
}
|
|
291070
291359
|
Node.fromPartialJSON = fromPartialJSON;
|
|
291071
291360
|
/**
|
|
291072
291361
|
* Reviver function that can be used as a second argument for
|
|
291073
291362
|
* `JSON.parse` method when parsing [[Node]] objects.
|
|
291074
|
-
*
|
|
291075
291363
|
* @internal
|
|
291076
291364
|
*/
|
|
291077
291365
|
function reviver(key, value) {
|
|
291366
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291078
291367
|
return key === "" ? fromJSON(value) : value;
|
|
291079
291368
|
}
|
|
291080
291369
|
Node.reviver = reviver;
|
|
@@ -291082,19 +291371,19 @@ var Node;
|
|
|
291082
291371
|
* Deserialize nodes list from JSON
|
|
291083
291372
|
* @param json JSON or JSON serialized to string to deserialize from
|
|
291084
291373
|
* @returns Deserialized nodes list
|
|
291085
|
-
*
|
|
291086
291374
|
* @internal
|
|
291087
291375
|
*/
|
|
291376
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291088
291377
|
function listFromJSON(json) {
|
|
291089
291378
|
if (typeof json === "string")
|
|
291090
291379
|
return JSON.parse(json, listReviver);
|
|
291380
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291091
291381
|
return json.map((m) => fromJSON(m));
|
|
291092
291382
|
}
|
|
291093
291383
|
Node.listFromJSON = listFromJSON;
|
|
291094
291384
|
/**
|
|
291095
291385
|
* Reviver function that can be used as a second argument for
|
|
291096
291386
|
* `JSON.parse` method when parsing [[Node]][] objects.
|
|
291097
|
-
*
|
|
291098
291387
|
* @internal
|
|
291099
291388
|
*/
|
|
291100
291389
|
function listReviver(key, value) {
|
|
@@ -291130,43 +291419,59 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
291130
291419
|
/** @public */
|
|
291131
291420
|
var NodePathElement;
|
|
291132
291421
|
(function (NodePathElement) {
|
|
291133
|
-
/**
|
|
291422
|
+
/**
|
|
291423
|
+
* Serialize given [[NodePathElement]] to JSON
|
|
291424
|
+
* @deprecated in 3.x. Use [[NodePathElement]].
|
|
291425
|
+
*/
|
|
291426
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291134
291427
|
function toJSON(npe) {
|
|
291428
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291135
291429
|
const result = {
|
|
291430
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291136
291431
|
node: _Node__WEBPACK_IMPORTED_MODULE_0__.Node.toJSON(npe.node),
|
|
291137
291432
|
index: npe.index,
|
|
291433
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291138
291434
|
children: npe.children.map(NodePathElement.toJSON),
|
|
291139
291435
|
};
|
|
291140
291436
|
if (undefined !== npe.isMarked)
|
|
291141
291437
|
result.isMarked = npe.isMarked;
|
|
291142
|
-
if (undefined !== npe.filteringData)
|
|
291438
|
+
if (undefined !== npe.filteringData) {
|
|
291439
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291143
291440
|
result.filteringData = NodePathFilteringData.toJSON(npe.filteringData);
|
|
291441
|
+
}
|
|
291144
291442
|
return result;
|
|
291145
291443
|
}
|
|
291146
291444
|
NodePathElement.toJSON = toJSON;
|
|
291147
|
-
/**
|
|
291445
|
+
/**
|
|
291446
|
+
* Deserialize [[NodePathElement]] from JSON
|
|
291447
|
+
* @deprecated in 3.x. Use [[NodePathElement]].
|
|
291448
|
+
*/
|
|
291449
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291148
291450
|
function fromJSON(json) {
|
|
291149
291451
|
if (typeof json === "string")
|
|
291150
291452
|
return JSON.parse(json, reviver);
|
|
291151
291453
|
const result = {
|
|
291152
291454
|
index: json.index,
|
|
291455
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291153
291456
|
node: _Node__WEBPACK_IMPORTED_MODULE_0__.Node.fromJSON(json.node),
|
|
291154
291457
|
children: listFromJSON(json.children),
|
|
291155
291458
|
};
|
|
291156
291459
|
if (undefined !== json.isMarked)
|
|
291157
291460
|
result.isMarked = json.isMarked;
|
|
291158
|
-
if (undefined !== json.filteringData)
|
|
291461
|
+
if (undefined !== json.filteringData) {
|
|
291462
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291159
291463
|
result.filteringData = NodePathFilteringData.fromJSON(json.filteringData);
|
|
291464
|
+
}
|
|
291160
291465
|
return result;
|
|
291161
291466
|
}
|
|
291162
291467
|
NodePathElement.fromJSON = fromJSON;
|
|
291163
291468
|
/**
|
|
291164
291469
|
* Reviver function that can be used as a second argument for
|
|
291165
291470
|
* `JSON.parse` method when parsing [[NodePathElement]] objects.
|
|
291166
|
-
*
|
|
291167
291471
|
* @internal
|
|
291168
291472
|
*/
|
|
291169
291473
|
function reviver(key, value) {
|
|
291474
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291170
291475
|
return key === "" ? fromJSON(value) : value;
|
|
291171
291476
|
}
|
|
291172
291477
|
NodePathElement.reviver = reviver;
|
|
@@ -291174,19 +291479,19 @@ var NodePathElement;
|
|
|
291174
291479
|
* Deserialize [[NodePathElement]] list from JSON
|
|
291175
291480
|
* @param json JSON or JSON serialized to string to deserialize from
|
|
291176
291481
|
* @returns Deserialized [[NodePathElement]] list
|
|
291177
|
-
*
|
|
291178
291482
|
* @internal
|
|
291179
291483
|
*/
|
|
291484
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291180
291485
|
function listFromJSON(json) {
|
|
291181
291486
|
if (typeof json === "string")
|
|
291182
291487
|
return JSON.parse(json, listReviver);
|
|
291488
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291183
291489
|
return json.map((m) => fromJSON(m));
|
|
291184
291490
|
}
|
|
291185
291491
|
NodePathElement.listFromJSON = listFromJSON;
|
|
291186
291492
|
/**
|
|
291187
291493
|
* Reviver function that can be used as a second argument for
|
|
291188
291494
|
* `JSON.parse` method when parsing [[NodePathElement]][] objects.
|
|
291189
|
-
*
|
|
291190
291495
|
* @internal
|
|
291191
291496
|
*/
|
|
291192
291497
|
function listReviver(key, value) {
|
|
@@ -291197,7 +291502,11 @@ var NodePathElement;
|
|
|
291197
291502
|
/** @public */
|
|
291198
291503
|
var NodePathFilteringData;
|
|
291199
291504
|
(function (NodePathFilteringData) {
|
|
291200
|
-
/**
|
|
291505
|
+
/**
|
|
291506
|
+
* Serialize given [[NodePathFilteringData]] to JSON
|
|
291507
|
+
* @deprecated in 3.x. Use [[NodePathFilteringData]].
|
|
291508
|
+
*/
|
|
291509
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291201
291510
|
function toJSON(npfd) {
|
|
291202
291511
|
return {
|
|
291203
291512
|
occurances: npfd.matchesCount,
|
|
@@ -291205,7 +291514,11 @@ var NodePathFilteringData;
|
|
|
291205
291514
|
};
|
|
291206
291515
|
}
|
|
291207
291516
|
NodePathFilteringData.toJSON = toJSON;
|
|
291208
|
-
/**
|
|
291517
|
+
/**
|
|
291518
|
+
* Deserialize [[NodePathFilteringData]] from JSON
|
|
291519
|
+
* @deprecated in 3.x. Use [[NodePathFilteringData]].
|
|
291520
|
+
*/
|
|
291521
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
291209
291522
|
function fromJSON(json) {
|
|
291210
291523
|
return {
|
|
291211
291524
|
matchesCount: json.occurances,
|
|
@@ -292042,7 +292355,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
292042
292355
|
*/
|
|
292043
292356
|
var ChildNodeSpecificationTypes;
|
|
292044
292357
|
(function (ChildNodeSpecificationTypes) {
|
|
292045
|
-
// hierarchy specifications
|
|
292046
292358
|
ChildNodeSpecificationTypes["RelatedInstanceNodes"] = "RelatedInstanceNodes";
|
|
292047
292359
|
ChildNodeSpecificationTypes["InstanceNodesOfSpecificClasses"] = "InstanceNodesOfSpecificClasses";
|
|
292048
292360
|
ChildNodeSpecificationTypes["CustomQueryInstanceNodes"] = "CustomQueryInstanceNodes";
|
|
@@ -292558,10 +292870,6 @@ class IpcRequestsHandler {
|
|
|
292558
292870
|
const jsonParams = {
|
|
292559
292871
|
...params,
|
|
292560
292872
|
clientId: this.clientId,
|
|
292561
|
-
stateChanges: params.stateChanges.map((sc) => ({
|
|
292562
|
-
...sc,
|
|
292563
|
-
...(sc.nodeKey ? { nodeKey: _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_1__.NodeKey.toJSON(sc.nodeKey) } : undefined),
|
|
292564
|
-
})),
|
|
292565
292873
|
};
|
|
292566
292874
|
return this.call("updateHierarchyState", jsonParams);
|
|
292567
292875
|
}
|
|
@@ -292990,39 +293298,38 @@ class PresentationManager {
|
|
|
292990
293298
|
async getNodes(requestOptions) {
|
|
292991
293299
|
await this.onConnection(requestOptions.imodel);
|
|
292992
293300
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
292993
|
-
const rpcOptions = this.toRpcTokenOptions({ ...options
|
|
293301
|
+
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
292994
293302
|
const result = await buildPagedArrayResponse(options.paging, async (partialPageOptions) => this._requestsHandler.getPagedNodes({ ...rpcOptions, paging: partialPageOptions }));
|
|
293303
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
292995
293304
|
return this._localizationHelper.getLocalizedNodes(result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Node.fromJSON));
|
|
292996
293305
|
}
|
|
292997
293306
|
/** Retrieves nodes count. */
|
|
292998
293307
|
async getNodesCount(requestOptions) {
|
|
292999
293308
|
await this.onConnection(requestOptions.imodel);
|
|
293000
293309
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
293001
|
-
const rpcOptions = this.toRpcTokenOptions({ ...options
|
|
293310
|
+
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
293002
293311
|
return this._requestsHandler.getNodesCount(rpcOptions);
|
|
293003
293312
|
}
|
|
293004
293313
|
/** Retrieves total nodes count and a single page of nodes. */
|
|
293005
293314
|
async getNodesAndCount(requestOptions) {
|
|
293006
293315
|
await this.onConnection(requestOptions.imodel);
|
|
293007
293316
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
293008
|
-
const rpcOptions = this.toRpcTokenOptions({ ...options
|
|
293317
|
+
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
293009
293318
|
const result = await buildPagedArrayResponse(options.paging, async (partialPageOptions) => this._requestsHandler.getPagedNodes({ ...rpcOptions, paging: partialPageOptions }));
|
|
293010
293319
|
return {
|
|
293011
293320
|
count: result.total,
|
|
293321
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
293012
293322
|
nodes: this._localizationHelper.getLocalizedNodes(result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Node.fromJSON)),
|
|
293013
293323
|
};
|
|
293014
293324
|
}
|
|
293015
293325
|
/**
|
|
293016
293326
|
* Retrieves hierarchy level descriptor.
|
|
293017
|
-
* @
|
|
293327
|
+
* @beta
|
|
293018
293328
|
*/
|
|
293019
293329
|
async getNodesDescriptor(requestOptions) {
|
|
293020
293330
|
await this.onConnection(requestOptions.imodel);
|
|
293021
293331
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
293022
|
-
const rpcOptions = this.toRpcTokenOptions({
|
|
293023
|
-
...options,
|
|
293024
|
-
parentKey: optionalNodeKeyToJson(options.parentKey),
|
|
293025
|
-
});
|
|
293332
|
+
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
293026
293333
|
const result = await this._requestsHandler.getNodesDescriptor(rpcOptions);
|
|
293027
293334
|
return _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Descriptor.fromJSON(result);
|
|
293028
293335
|
}
|
|
@@ -293030,8 +293337,9 @@ class PresentationManager {
|
|
|
293030
293337
|
async getNodePaths(requestOptions) {
|
|
293031
293338
|
await this.onConnection(requestOptions.imodel);
|
|
293032
293339
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
293033
|
-
const rpcOptions = this.toRpcTokenOptions({ ...options
|
|
293340
|
+
const rpcOptions = this.toRpcTokenOptions({ ...options });
|
|
293034
293341
|
const result = await this._requestsHandler.getNodePaths(rpcOptions);
|
|
293342
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
293035
293343
|
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON);
|
|
293036
293344
|
}
|
|
293037
293345
|
/** Retrieves paths from root nodes to nodes containing filter text in their label. */
|
|
@@ -293039,11 +293347,13 @@ class PresentationManager {
|
|
|
293039
293347
|
await this.onConnection(requestOptions.imodel);
|
|
293040
293348
|
const options = await this.addRulesetAndVariablesToOptions(requestOptions);
|
|
293041
293349
|
const result = await this._requestsHandler.getFilteredNodePaths(this.toRpcTokenOptions(options));
|
|
293350
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
293042
293351
|
return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON);
|
|
293043
293352
|
}
|
|
293044
293353
|
/**
|
|
293045
|
-
* Get
|
|
293046
|
-
*
|
|
293354
|
+
* Get information about the sources of content when building it for specific ECClasses. Sources involve classes of the primary select instance,
|
|
293355
|
+
* its related instances for loading related and navigation properties.
|
|
293356
|
+
* @public
|
|
293047
293357
|
*/
|
|
293048
293358
|
async getContentSources(requestOptions) {
|
|
293049
293359
|
await this.onConnection(requestOptions.imodel);
|
|
@@ -293119,12 +293429,13 @@ class PresentationManager {
|
|
|
293119
293429
|
const result = await buildPagedArrayResponse(requestOptions.paging, async (partialPageOptions) => this._requestsHandler.getPagedDistinctValues({ ...rpcOptions, paging: partialPageOptions }));
|
|
293120
293430
|
return {
|
|
293121
293431
|
...result,
|
|
293432
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
293122
293433
|
items: result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.DisplayValueGroup.fromJSON),
|
|
293123
293434
|
};
|
|
293124
293435
|
}
|
|
293125
293436
|
/**
|
|
293126
293437
|
* Retrieves property data in a simplified format for a single element specified by ID.
|
|
293127
|
-
* @
|
|
293438
|
+
* @public
|
|
293128
293439
|
*/
|
|
293129
293440
|
async getElementProperties(requestOptions) {
|
|
293130
293441
|
await this.onConnection(requestOptions.imodel);
|
|
@@ -293136,7 +293447,7 @@ class PresentationManager {
|
|
|
293136
293447
|
}
|
|
293137
293448
|
/**
|
|
293138
293449
|
* Retrieves content item instance keys.
|
|
293139
|
-
* @
|
|
293450
|
+
* @public
|
|
293140
293451
|
*/
|
|
293141
293452
|
async getContentInstanceKeys(requestOptions) {
|
|
293142
293453
|
await this.onConnection(requestOptions.imodel);
|
|
@@ -293165,19 +293476,19 @@ class PresentationManager {
|
|
|
293165
293476
|
/** Retrieves display label definition of specific item. */
|
|
293166
293477
|
async getDisplayLabelDefinition(requestOptions) {
|
|
293167
293478
|
await this.onConnection(requestOptions.imodel);
|
|
293168
|
-
const rpcOptions = this.toRpcTokenOptions({ ...requestOptions
|
|
293479
|
+
const rpcOptions = this.toRpcTokenOptions({ ...requestOptions });
|
|
293169
293480
|
const result = await this._requestsHandler.getDisplayLabelDefinition(rpcOptions);
|
|
293170
|
-
return this._localizationHelper.getLocalizedLabelDefinition(
|
|
293481
|
+
return this._localizationHelper.getLocalizedLabelDefinition(result);
|
|
293171
293482
|
}
|
|
293172
293483
|
/** Retrieves display label definition of specific items. */
|
|
293173
293484
|
async getDisplayLabelDefinitions(requestOptions) {
|
|
293174
293485
|
await this.onConnection(requestOptions.imodel);
|
|
293175
|
-
const rpcOptions = this.toRpcTokenOptions({ ...requestOptions
|
|
293486
|
+
const rpcOptions = this.toRpcTokenOptions({ ...requestOptions });
|
|
293176
293487
|
const result = await buildPagedArrayResponse(undefined, async (partialPageOptions) => {
|
|
293177
293488
|
const partialKeys = (!partialPageOptions.start) ? rpcOptions.keys : rpcOptions.keys.slice(partialPageOptions.start);
|
|
293178
293489
|
return this._requestsHandler.getPagedDisplayLabelDefinitions({ ...rpcOptions, keys: partialKeys });
|
|
293179
293490
|
});
|
|
293180
|
-
return this._localizationHelper.getLocalizedLabelDefinitions(result.items
|
|
293491
|
+
return this._localizationHelper.getLocalizedLabelDefinitions(result.items);
|
|
293181
293492
|
}
|
|
293182
293493
|
}
|
|
293183
293494
|
const getDescriptorOverrides = (descriptorOrOverrides) => {
|
|
@@ -293185,7 +293496,6 @@ const getDescriptorOverrides = (descriptorOrOverrides) => {
|
|
|
293185
293496
|
return descriptorOrOverrides.createDescriptorOverrides();
|
|
293186
293497
|
return descriptorOrOverrides;
|
|
293187
293498
|
};
|
|
293188
|
-
const optionalNodeKeyToJson = (key) => key ? _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodeKey.toJSON(key) : undefined;
|
|
293189
293499
|
async function createPagedGeneratorResponse(props) {
|
|
293190
293500
|
var _a, _b, _c, _d;
|
|
293191
293501
|
let pageStart = (_b = (_a = props.page) === null || _a === void 0 ? void 0 : _a.start) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -296089,7 +296399,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
296089
296399
|
|
|
296090
296400
|
|
|
296091
296401
|
/** Action taken by the application on item provided by a UiItemsProvider
|
|
296092
|
-
* @public @deprecated
|
|
296402
|
+
* @public @deprecated in 3.2. This was only used by the previously removed UiItemsArbiter.
|
|
296093
296403
|
*/
|
|
296094
296404
|
var UiItemsApplicationAction;
|
|
296095
296405
|
(function (UiItemsApplicationAction) {
|
|
@@ -298708,7 +299018,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
298708
299018
|
class IconSpecUtilities {
|
|
298709
299019
|
/** Create an IconSpec for an SVG loaded into web component with sprite loader
|
|
298710
299020
|
* This method is deprecated -- use createWebComponentIconSpec()
|
|
298711
|
-
* @public @deprecated
|
|
299021
|
+
* @public @deprecated in 3.2.
|
|
298712
299022
|
*/
|
|
298713
299023
|
static createSvgIconSpec(svgSrc) {
|
|
298714
299024
|
return `${IconSpecUtilities.SVG_PREFIX}${svgSrc}`;
|
|
@@ -298721,7 +299031,7 @@ class IconSpecUtilities {
|
|
|
298721
299031
|
}
|
|
298722
299032
|
/** Get the SVG Source from an sprite IconSpec
|
|
298723
299033
|
* This method is deprecated -- use getWebComponentSource()
|
|
298724
|
-
* @public @deprecated
|
|
299034
|
+
* @public @deprecated in 3.2.
|
|
298725
299035
|
*/
|
|
298726
299036
|
static getSvgSource(iconSpec) {
|
|
298727
299037
|
if (iconSpec.startsWith(IconSpecUtilities.SVG_PREFIX) && iconSpec.length > 4) {
|
|
@@ -300356,7 +300666,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300356
300666
|
* @module Widget
|
|
300357
300667
|
*/
|
|
300358
300668
|
/** Enum for AppUi 1 `Zone` locations that can have widgets added to them at run-time via [[UiItemsProvider]].
|
|
300359
|
-
* @public @deprecated
|
|
300669
|
+
* @public @deprecated in 3.0.
|
|
300360
300670
|
*/
|
|
300361
300671
|
var AbstractZoneLocation;
|
|
300362
300672
|
(function (AbstractZoneLocation) {
|
|
@@ -300383,7 +300693,7 @@ var StagePanelLocation;
|
|
|
300383
300693
|
var StagePanelSection;
|
|
300384
300694
|
(function (StagePanelSection) {
|
|
300385
300695
|
StagePanelSection[StagePanelSection["Start"] = 0] = "Start";
|
|
300386
|
-
/** @deprecated - all widgets that a targeted for Middle will be placed in `End` section */
|
|
300696
|
+
/** @deprecated in 3.2. - all widgets that a targeted for Middle will be placed in `End` section */
|
|
300387
300697
|
StagePanelSection[StagePanelSection["Middle"] = 1] = "Middle";
|
|
300388
300698
|
StagePanelSection[StagePanelSection["End"] = 2] = "End";
|
|
300389
300699
|
})(StagePanelSection || (StagePanelSection = {}));
|
|
@@ -302091,10 +302401,10 @@ const gBase64 = {
|
|
|
302091
302401
|
|
|
302092
302402
|
/***/ }),
|
|
302093
302403
|
|
|
302094
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302095
|
-
|
|
302096
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302097
|
-
|
|
302404
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
302405
|
+
/*!*******************************************************************************************************************************!*\
|
|
302406
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
302407
|
+
\*******************************************************************************************************************************/
|
|
302098
302408
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302099
302409
|
|
|
302100
302410
|
"use strict";
|
|
@@ -302110,10 +302420,10 @@ function _arrayLikeToArray(arr, len) {
|
|
|
302110
302420
|
|
|
302111
302421
|
/***/ }),
|
|
302112
302422
|
|
|
302113
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302114
|
-
|
|
302115
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302116
|
-
|
|
302423
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
302424
|
+
/*!*****************************************************************************************************************************!*\
|
|
302425
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
302426
|
+
\*****************************************************************************************************************************/
|
|
302117
302427
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302118
302428
|
|
|
302119
302429
|
"use strict";
|
|
@@ -302127,10 +302437,10 @@ function _arrayWithHoles(arr) {
|
|
|
302127
302437
|
|
|
302128
302438
|
/***/ }),
|
|
302129
302439
|
|
|
302130
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302131
|
-
|
|
302132
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302133
|
-
|
|
302440
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
302441
|
+
/*!************************************************************************************************************************************!*\
|
|
302442
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
302443
|
+
\************************************************************************************************************************************/
|
|
302134
302444
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302135
302445
|
|
|
302136
302446
|
"use strict";
|
|
@@ -302147,10 +302457,10 @@ function _assertThisInitialized(self) {
|
|
|
302147
302457
|
|
|
302148
302458
|
/***/ }),
|
|
302149
302459
|
|
|
302150
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302151
|
-
|
|
302152
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302153
|
-
|
|
302460
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
302461
|
+
/*!*****************************************************************************************************************************!*\
|
|
302462
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
302463
|
+
\*****************************************************************************************************************************/
|
|
302154
302464
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302155
302465
|
|
|
302156
302466
|
"use strict";
|
|
@@ -302166,10 +302476,10 @@ function _classCallCheck(instance, Constructor) {
|
|
|
302166
302476
|
|
|
302167
302477
|
/***/ }),
|
|
302168
302478
|
|
|
302169
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302170
|
-
|
|
302171
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302172
|
-
|
|
302479
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
302480
|
+
/*!**************************************************************************************************************************!*\
|
|
302481
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
302482
|
+
\**************************************************************************************************************************/
|
|
302173
302483
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302174
302484
|
|
|
302175
302485
|
"use strict";
|
|
@@ -302177,7 +302487,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302177
302487
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302178
302488
|
/* harmony export */ "default": () => (/* binding */ _createClass)
|
|
302179
302489
|
/* harmony export */ });
|
|
302180
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302490
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
|
302181
302491
|
|
|
302182
302492
|
function _defineProperties(target, props) {
|
|
302183
302493
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -302199,10 +302509,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
302199
302509
|
|
|
302200
302510
|
/***/ }),
|
|
302201
302511
|
|
|
302202
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302203
|
-
|
|
302204
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302205
|
-
|
|
302512
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
302513
|
+
/*!*****************************************************************************************************************************!*\
|
|
302514
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
302515
|
+
\*****************************************************************************************************************************/
|
|
302206
302516
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302207
302517
|
|
|
302208
302518
|
"use strict";
|
|
@@ -302210,7 +302520,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302210
302520
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302211
302521
|
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
|
302212
302522
|
/* harmony export */ });
|
|
302213
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302523
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
|
302214
302524
|
|
|
302215
302525
|
function _defineProperty(obj, key, value) {
|
|
302216
302526
|
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
|
@@ -302229,10 +302539,10 @@ function _defineProperty(obj, key, value) {
|
|
|
302229
302539
|
|
|
302230
302540
|
/***/ }),
|
|
302231
302541
|
|
|
302232
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302233
|
-
|
|
302234
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302235
|
-
|
|
302542
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
302543
|
+
/*!*****************************************************************************************************************************!*\
|
|
302544
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
302545
|
+
\*****************************************************************************************************************************/
|
|
302236
302546
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302237
302547
|
|
|
302238
302548
|
"use strict";
|
|
@@ -302249,10 +302559,10 @@ function _getPrototypeOf(o) {
|
|
|
302249
302559
|
|
|
302250
302560
|
/***/ }),
|
|
302251
302561
|
|
|
302252
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302253
|
-
|
|
302254
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302255
|
-
|
|
302562
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
302563
|
+
/*!***********************************************************************************************************************!*\
|
|
302564
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
302565
|
+
\***********************************************************************************************************************/
|
|
302256
302566
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302257
302567
|
|
|
302258
302568
|
"use strict";
|
|
@@ -302260,7 +302570,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302260
302570
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302261
302571
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
302262
302572
|
/* harmony export */ });
|
|
302263
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302573
|
+
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
302264
302574
|
|
|
302265
302575
|
function _inherits(subClass, superClass) {
|
|
302266
302576
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -302281,10 +302591,10 @@ function _inherits(subClass, superClass) {
|
|
|
302281
302591
|
|
|
302282
302592
|
/***/ }),
|
|
302283
302593
|
|
|
302284
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302285
|
-
|
|
302286
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302287
|
-
|
|
302594
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
302595
|
+
/*!******************************************************************************************************************************!*\
|
|
302596
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
302597
|
+
\******************************************************************************************************************************/
|
|
302288
302598
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302289
302599
|
|
|
302290
302600
|
"use strict";
|
|
@@ -302298,10 +302608,10 @@ function _iterableToArray(iter) {
|
|
|
302298
302608
|
|
|
302299
302609
|
/***/ }),
|
|
302300
302610
|
|
|
302301
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302302
|
-
|
|
302303
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302304
|
-
|
|
302611
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
302612
|
+
/*!******************************************************************************************************************************!*\
|
|
302613
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
302614
|
+
\******************************************************************************************************************************/
|
|
302305
302615
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302306
302616
|
|
|
302307
302617
|
"use strict";
|
|
@@ -302315,10 +302625,10 @@ function _nonIterableRest() {
|
|
|
302315
302625
|
|
|
302316
302626
|
/***/ }),
|
|
302317
302627
|
|
|
302318
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302319
|
-
|
|
302320
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302321
|
-
|
|
302628
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
302629
|
+
/*!****************************************************************************************************************************************!*\
|
|
302630
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
302631
|
+
\****************************************************************************************************************************************/
|
|
302322
302632
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302323
302633
|
|
|
302324
302634
|
"use strict";
|
|
@@ -302326,8 +302636,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302326
302636
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302327
302637
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
302328
302638
|
/* harmony export */ });
|
|
302329
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302330
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302639
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
302640
|
+
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
302331
302641
|
|
|
302332
302642
|
|
|
302333
302643
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -302341,10 +302651,10 @@ function _possibleConstructorReturn(self, call) {
|
|
|
302341
302651
|
|
|
302342
302652
|
/***/ }),
|
|
302343
302653
|
|
|
302344
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302345
|
-
|
|
302346
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302347
|
-
|
|
302654
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
302655
|
+
/*!*****************************************************************************************************************************!*\
|
|
302656
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
302657
|
+
\*****************************************************************************************************************************/
|
|
302348
302658
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302349
302659
|
|
|
302350
302660
|
"use strict";
|
|
@@ -302362,10 +302672,10 @@ function _setPrototypeOf(o, p) {
|
|
|
302362
302672
|
|
|
302363
302673
|
/***/ }),
|
|
302364
302674
|
|
|
302365
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302366
|
-
|
|
302367
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302368
|
-
|
|
302675
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
302676
|
+
/*!**********************************************************************************************************************!*\
|
|
302677
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
302678
|
+
\**********************************************************************************************************************/
|
|
302369
302679
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302370
302680
|
|
|
302371
302681
|
"use strict";
|
|
@@ -302373,10 +302683,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302373
302683
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302374
302684
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
302375
302685
|
/* harmony export */ });
|
|
302376
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302377
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302378
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302379
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302686
|
+
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
302687
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
302688
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
302689
|
+
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
302380
302690
|
|
|
302381
302691
|
|
|
302382
302692
|
|
|
@@ -302387,10 +302697,10 @@ function _toArray(arr) {
|
|
|
302387
302697
|
|
|
302388
302698
|
/***/ }),
|
|
302389
302699
|
|
|
302390
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302391
|
-
|
|
302392
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302393
|
-
|
|
302700
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
|
|
302701
|
+
/*!**************************************************************************************************************************!*\
|
|
302702
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
|
|
302703
|
+
\**************************************************************************************************************************/
|
|
302394
302704
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302395
302705
|
|
|
302396
302706
|
"use strict";
|
|
@@ -302398,7 +302708,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302398
302708
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302399
302709
|
/* harmony export */ "default": () => (/* binding */ _toPrimitive)
|
|
302400
302710
|
/* harmony export */ });
|
|
302401
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302711
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
302402
302712
|
|
|
302403
302713
|
function _toPrimitive(input, hint) {
|
|
302404
302714
|
if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input;
|
|
@@ -302413,10 +302723,10 @@ function _toPrimitive(input, hint) {
|
|
|
302413
302723
|
|
|
302414
302724
|
/***/ }),
|
|
302415
302725
|
|
|
302416
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302417
|
-
|
|
302418
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302419
|
-
|
|
302726
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
|
|
302727
|
+
/*!****************************************************************************************************************************!*\
|
|
302728
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
|
|
302729
|
+
\****************************************************************************************************************************/
|
|
302420
302730
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302421
302731
|
|
|
302422
302732
|
"use strict";
|
|
@@ -302424,8 +302734,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302424
302734
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302425
302735
|
/* harmony export */ "default": () => (/* binding */ _toPropertyKey)
|
|
302426
302736
|
/* harmony export */ });
|
|
302427
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302428
|
-
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302737
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
302738
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
|
|
302429
302739
|
|
|
302430
302740
|
|
|
302431
302741
|
function _toPropertyKey(arg) {
|
|
@@ -302435,10 +302745,10 @@ function _toPropertyKey(arg) {
|
|
|
302435
302745
|
|
|
302436
302746
|
/***/ }),
|
|
302437
302747
|
|
|
302438
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302439
|
-
|
|
302440
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302441
|
-
|
|
302748
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
302749
|
+
/*!*********************************************************************************************************************!*\
|
|
302750
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
302751
|
+
\*********************************************************************************************************************/
|
|
302442
302752
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302443
302753
|
|
|
302444
302754
|
"use strict";
|
|
@@ -302458,10 +302768,10 @@ function _typeof(obj) {
|
|
|
302458
302768
|
|
|
302459
302769
|
/***/ }),
|
|
302460
302770
|
|
|
302461
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302462
|
-
|
|
302463
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302464
|
-
|
|
302771
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
302772
|
+
/*!*****************************************************************************************************************************************!*\
|
|
302773
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
302774
|
+
\*****************************************************************************************************************************************/
|
|
302465
302775
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302466
302776
|
|
|
302467
302777
|
"use strict";
|
|
@@ -302469,7 +302779,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302469
302779
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302470
302780
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
302471
302781
|
/* harmony export */ });
|
|
302472
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302782
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
302473
302783
|
|
|
302474
302784
|
function _unsupportedIterableToArray(o, minLen) {
|
|
302475
302785
|
if (!o) return;
|
|
@@ -302903,15 +303213,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302903
303213
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
302904
303214
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
302905
303215
|
/* harmony export */ });
|
|
302906
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302907
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302908
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302909
|
-
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302910
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302911
|
-
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302912
|
-
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302913
|
-
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
302914
|
-
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.
|
|
303216
|
+
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
303217
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
303218
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
303219
|
+
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
303220
|
+
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
303221
|
+
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
303222
|
+
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
303223
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
303224
|
+
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
302915
303225
|
|
|
302916
303226
|
|
|
302917
303227
|
|
|
@@ -305791,7 +306101,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305791
306101
|
/***/ ((module) => {
|
|
305792
306102
|
|
|
305793
306103
|
"use strict";
|
|
305794
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
306104
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.60","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","build:ci":"npm run -s build && 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 \\"../../tools/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/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.6.0-dev.60","@itwin/core-bentley":"workspace:^3.6.0-dev.60","@itwin/core-common":"workspace:^3.6.0-dev.60","@itwin/core-geometry":"workspace:^3.6.0-dev.60","@itwin/core-orbitgt":"workspace:^3.6.0-dev.60","@itwin/core-quantity":"workspace:^3.6.0-dev.60","@itwin/webgl-compatibility":"workspace:^3.6.0-dev.60"},"//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":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@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":"^7.11.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":"~4.4.0","webpack":"^5.64.4"},"//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.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","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"}}]}}');
|
|
305795
306105
|
|
|
305796
306106
|
/***/ }),
|
|
305797
306107
|
|