@itwin/ecschema-rpcinterface-tests 5.1.0-dev.15 → 5.1.0-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +178 -59
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-24291b.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\2\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -63678,7 +63678,7 @@ var XmlSerializationUtils;
|
|
|
63678
63678
|
*/
|
|
63679
63679
|
async function writeStructProperty(propertyClass, propertyValue, structElement, schemaDoc) {
|
|
63680
63680
|
const structClass = propertyClass.structClass;
|
|
63681
|
-
for (const propertyMetadata of structClass.getPropertiesSync(
|
|
63681
|
+
for (const propertyMetadata of structClass.getPropertiesSync())
|
|
63682
63682
|
await writeInstanceProperty(propertyMetadata, propertyValue, structElement, schemaDoc);
|
|
63683
63683
|
}
|
|
63684
63684
|
XmlSerializationUtils.writeStructProperty = writeStructProperty;
|
|
@@ -64898,7 +64898,7 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
64898
64898
|
baseClassElement.textContent = baseClassName;
|
|
64899
64899
|
itemElement.appendChild(baseClassElement);
|
|
64900
64900
|
}
|
|
64901
|
-
if (
|
|
64901
|
+
if (this._properties) {
|
|
64902
64902
|
for (const prop of this._properties.values()) {
|
|
64903
64903
|
const propXml = await prop.toXml(schemaXml);
|
|
64904
64904
|
itemElement.appendChild(propXml);
|
|
@@ -69925,6 +69925,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
69925
69925
|
|
|
69926
69926
|
|
|
69927
69927
|
|
|
69928
|
+
const loggerCategory = "SchemaFormatsProvider";
|
|
69928
69929
|
/**
|
|
69929
69930
|
* Provides default formats and kind of quantities from a given SchemaContext or SchemaLocater.
|
|
69930
69931
|
* @beta
|
|
@@ -69963,7 +69964,14 @@ class SchemaFormatsProvider {
|
|
|
69963
69964
|
this.onFormatsChanged.raiseEvent({ formatsChanged });
|
|
69964
69965
|
}
|
|
69965
69966
|
async getKindOfQuantityFormatFromSchema(itemKey) {
|
|
69966
|
-
|
|
69967
|
+
let kindOfQuantity;
|
|
69968
|
+
try {
|
|
69969
|
+
kindOfQuantity = await this._context.getSchemaItem(itemKey, _Metadata_KindOfQuantity__WEBPACK_IMPORTED_MODULE_5__.KindOfQuantity);
|
|
69970
|
+
}
|
|
69971
|
+
catch {
|
|
69972
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__.Logger.logError(loggerCategory, `Failed to find KindOfQuantity ${itemKey.fullName}`);
|
|
69973
|
+
return undefined;
|
|
69974
|
+
}
|
|
69967
69975
|
if (!kindOfQuantity) {
|
|
69968
69976
|
return undefined;
|
|
69969
69977
|
}
|
|
@@ -70008,13 +70016,27 @@ class SchemaFormatsProvider {
|
|
|
70008
70016
|
async getFormat(name) {
|
|
70009
70017
|
const [schemaName, schemaItemName] = _Metadata_SchemaItem__WEBPACK_IMPORTED_MODULE_2__.SchemaItem.parseFullName(name);
|
|
70010
70018
|
const schemaKey = new _SchemaKey__WEBPACK_IMPORTED_MODULE_1__.SchemaKey(schemaName);
|
|
70011
|
-
|
|
70019
|
+
let schema;
|
|
70020
|
+
try {
|
|
70021
|
+
schema = await this._context.getSchema(schemaKey);
|
|
70022
|
+
}
|
|
70023
|
+
catch {
|
|
70024
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__.Logger.logError(loggerCategory, `Failed to find schema ${schemaName}`);
|
|
70025
|
+
return undefined;
|
|
70026
|
+
}
|
|
70012
70027
|
if (!schema) {
|
|
70013
70028
|
return undefined;
|
|
70014
70029
|
}
|
|
70015
70030
|
const itemKey = new _SchemaKey__WEBPACK_IMPORTED_MODULE_1__.SchemaItemKey(schemaItemName, schema.schemaKey);
|
|
70016
70031
|
if (schema.name === "Formats") {
|
|
70017
|
-
|
|
70032
|
+
let format;
|
|
70033
|
+
try {
|
|
70034
|
+
format = await this._context.getSchemaItem(itemKey, _Metadata_Format__WEBPACK_IMPORTED_MODULE_3__.Format);
|
|
70035
|
+
}
|
|
70036
|
+
catch {
|
|
70037
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__.Logger.logError(loggerCategory, `Failed to find Format ${itemKey.fullName}`);
|
|
70038
|
+
return undefined;
|
|
70039
|
+
}
|
|
70018
70040
|
if (!format) {
|
|
70019
70041
|
return undefined;
|
|
70020
70042
|
}
|
|
@@ -83890,6 +83912,7 @@ class IModelApp {
|
|
|
83890
83912
|
this._entityClasses.clear();
|
|
83891
83913
|
this.authorizationClient = undefined;
|
|
83892
83914
|
this._initialized = false;
|
|
83915
|
+
this.quantityFormatter[Symbol.dispose]();
|
|
83893
83916
|
this.resetFormatsProvider();
|
|
83894
83917
|
this.onAfterStartup.clear();
|
|
83895
83918
|
}
|
|
@@ -96392,6 +96415,10 @@ class Viewport {
|
|
|
96392
96415
|
changeBackgroundMapProvider(props) {
|
|
96393
96416
|
this.displayStyle.changeBackgroundMapProvider(props);
|
|
96394
96417
|
}
|
|
96418
|
+
/** A reference to the [[TileTree]] used to display the background map in this viewport, if the background map is being displayed. */
|
|
96419
|
+
get backgroundMapTileTreeReference() {
|
|
96420
|
+
return this.backgroundMap;
|
|
96421
|
+
}
|
|
96395
96422
|
/** @internal */
|
|
96396
96423
|
get backgroundMap() { return this._mapTiledGraphicsProvider?.backgroundMap; }
|
|
96397
96424
|
/** @internal */
|
|
@@ -150097,11 +150124,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150097
150124
|
* @beta
|
|
150098
150125
|
*/
|
|
150099
150126
|
class AngleDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_MODULE_2__.FormattedQuantityDescription {
|
|
150100
|
-
constructor(name, displayLabel, iconSpec) {
|
|
150127
|
+
constructor(name, displayLabel, iconSpec, kindOfQuantityName) {
|
|
150101
150128
|
const defaultName = "angle";
|
|
150102
|
-
super(
|
|
150129
|
+
super({
|
|
150130
|
+
name: name ? name : defaultName,
|
|
150131
|
+
displayLabel: displayLabel ? displayLabel : _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.Angle"),
|
|
150132
|
+
kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.ANGLE",
|
|
150133
|
+
iconSpec
|
|
150134
|
+
});
|
|
150103
150135
|
}
|
|
150104
150136
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Angle; }
|
|
150137
|
+
/**
|
|
150138
|
+
* @deprecated in 5.0. Use the `kindOfQuantityName` property instead.
|
|
150139
|
+
*/
|
|
150105
150140
|
get quantityType() { return "Angle"; }
|
|
150106
150141
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); }
|
|
150107
150142
|
}
|
|
@@ -150140,8 +150175,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150140
150175
|
class FormattedQuantityDescription extends _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.BaseQuantityDescription {
|
|
150141
150176
|
_formatterSpec;
|
|
150142
150177
|
_parserSpec;
|
|
150143
|
-
constructor(
|
|
150144
|
-
|
|
150178
|
+
constructor(argsOrName, displayLabel, iconSpec, kindOfQuantityName) {
|
|
150179
|
+
if (typeof argsOrName === "string") {
|
|
150180
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
150181
|
+
super(argsOrName, displayLabel, iconSpec, kindOfQuantityName);
|
|
150182
|
+
}
|
|
150183
|
+
else {
|
|
150184
|
+
super(argsOrName.name, argsOrName.displayLabel, argsOrName.iconSpec, argsOrName.kindOfQuantityName);
|
|
150185
|
+
}
|
|
150145
150186
|
}
|
|
150146
150187
|
formatValue(numberValue) {
|
|
150147
150188
|
if (this.formatterSpec) {
|
|
@@ -150217,11 +150258,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
150217
150258
|
* @beta
|
|
150218
150259
|
*/
|
|
150219
150260
|
class LengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_MODULE_2__.FormattedQuantityDescription {
|
|
150220
|
-
constructor(name, displayLabel, iconSpec) {
|
|
150261
|
+
constructor(name, displayLabel, iconSpec, kindOfQuantityName) {
|
|
150221
150262
|
const defaultName = "length";
|
|
150222
|
-
super(
|
|
150263
|
+
super({
|
|
150264
|
+
name: name ? name : defaultName,
|
|
150265
|
+
displayLabel: displayLabel ? displayLabel : _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.Length"),
|
|
150266
|
+
kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.LENGTH",
|
|
150267
|
+
iconSpec,
|
|
150268
|
+
});
|
|
150223
150269
|
}
|
|
150224
150270
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Length; }
|
|
150271
|
+
/**
|
|
150272
|
+
* @deprecated in 5.0. Use the `kindOfQuantityName` property instead.
|
|
150273
|
+
*/
|
|
150225
150274
|
get quantityType() { return "Length"; }
|
|
150226
150275
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
150227
150276
|
}
|
|
@@ -150230,11 +150279,19 @@ class LengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_
|
|
|
150230
150279
|
* @beta
|
|
150231
150280
|
*/
|
|
150232
150281
|
class SurveyLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_MODULE_2__.FormattedQuantityDescription {
|
|
150233
|
-
constructor(name, displayLabel, iconSpec) {
|
|
150282
|
+
constructor(name, displayLabel, iconSpec, kindOfQuantityName) {
|
|
150234
150283
|
const defaultName = "surveyLength";
|
|
150235
|
-
super(
|
|
150284
|
+
super({
|
|
150285
|
+
name: name ? name : defaultName,
|
|
150286
|
+
displayLabel: displayLabel ? displayLabel : _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.Length"),
|
|
150287
|
+
kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.LENGTH",
|
|
150288
|
+
iconSpec,
|
|
150289
|
+
});
|
|
150236
150290
|
}
|
|
150237
150291
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthSurvey; }
|
|
150292
|
+
/**
|
|
150293
|
+
* @deprecated in 5.0. Use the `kindOfQuantityName` property instead.
|
|
150294
|
+
*/
|
|
150238
150295
|
get quantityType() { return "LengthSurvey"; }
|
|
150239
150296
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
150240
150297
|
}
|
|
@@ -150243,11 +150300,19 @@ class SurveyLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMP
|
|
|
150243
150300
|
* @beta
|
|
150244
150301
|
*/
|
|
150245
150302
|
class EngineeringLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_MODULE_2__.FormattedQuantityDescription {
|
|
150246
|
-
constructor(name, displayLabel, iconSpec) {
|
|
150303
|
+
constructor(name, displayLabel, iconSpec, kindOfQuantityName) {
|
|
150247
150304
|
const defaultName = "engineeringLength";
|
|
150248
|
-
super(
|
|
150305
|
+
super({
|
|
150306
|
+
name: name ? name : defaultName,
|
|
150307
|
+
displayLabel: displayLabel ? displayLabel : _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.Length"),
|
|
150308
|
+
kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.LENGTH",
|
|
150309
|
+
iconSpec,
|
|
150310
|
+
});
|
|
150249
150311
|
}
|
|
150250
150312
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthEngineering; }
|
|
150313
|
+
/**
|
|
150314
|
+
* @deprecated in 5.0. Use the `kindOfQuantityName` property instead.
|
|
150315
|
+
*/
|
|
150251
150316
|
get quantityType() { return "LengthEngineering"; }
|
|
150252
150317
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
150253
150318
|
}
|
|
@@ -150881,6 +150946,10 @@ class QuantityFormatter {
|
|
|
150881
150946
|
_alternateUnitLabelsRegistry = new AlternateUnitLabelsRegistry((0,_BasicUnitsProvider__WEBPACK_IMPORTED_MODULE_4__.getDefaultAlternateUnitLabels)());
|
|
150882
150947
|
/** Registry containing available quantity type definitions. */
|
|
150883
150948
|
_quantityTypeRegistry = new Map();
|
|
150949
|
+
/** Registry containing available FormatterSpec and ParserSpec, mapped by keys.
|
|
150950
|
+
* @beta
|
|
150951
|
+
*/
|
|
150952
|
+
_formatSpecsRegistry = new Map();
|
|
150884
150953
|
/** Active UnitSystem key - must be one of "imperial", "metric", "usCustomary", or "usSurvey". */
|
|
150885
150954
|
_activeUnitSystem = "imperial";
|
|
150886
150955
|
/** Map of FormatSpecs for all available QuantityTypes and the active Unit System */
|
|
@@ -150907,6 +150976,7 @@ class QuantityFormatter {
|
|
|
150907
150976
|
onQuantityFormatsChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent();
|
|
150908
150977
|
/** Fired when the active UnitsProvider is updated. This will allow cached Formatter and Parser specs to be updated if necessary. */
|
|
150909
150978
|
onUnitsProviderChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent();
|
|
150979
|
+
_removeFormatsProviderListener;
|
|
150910
150980
|
/**
|
|
150911
150981
|
* constructor
|
|
150912
150982
|
* @param showMetricOrUnitSystem - Pass in `true` to show Metric formatted quantity values. Defaults to Imperial. To explicitly
|
|
@@ -150920,6 +150990,12 @@ class QuantityFormatter {
|
|
|
150920
150990
|
this._activeUnitSystem = showMetricOrUnitSystem;
|
|
150921
150991
|
}
|
|
150922
150992
|
}
|
|
150993
|
+
[Symbol.dispose]() {
|
|
150994
|
+
if (this._removeFormatsProviderListener) {
|
|
150995
|
+
this._removeFormatsProviderListener();
|
|
150996
|
+
this._removeFormatsProviderListener = undefined;
|
|
150997
|
+
}
|
|
150998
|
+
}
|
|
150923
150999
|
getOverrideFormatPropsByQuantityType(quantityTypeKey, unitSystem) {
|
|
150924
151000
|
const requestedUnitSystem = unitSystem ?? this.activeUnitSystem;
|
|
150925
151001
|
const overrideMap = this._overrideFormatPropsByUnitSystem.get(requestedUnitSystem);
|
|
@@ -151045,6 +151121,46 @@ class QuantityFormatter {
|
|
|
151045
151121
|
*/
|
|
151046
151122
|
async onInitialized() {
|
|
151047
151123
|
await this.initializeQuantityTypesRegistry();
|
|
151124
|
+
const initialKoQs = [["AecUnits.LENGTH", "Units.M"], ["AecUnits.ANGLE", "Units.RAD"], ["AecUnits.AREA", "Units.SQ_M"], ["AecUnits.VOLUME", "Units.CUB_M"], ["RoadRailUnits.STATION", "Units.M"], ["RoadRailUnits.LENGTH", "Units.M"]];
|
|
151125
|
+
for (const entry of initialKoQs) {
|
|
151126
|
+
try {
|
|
151127
|
+
await this.addFormattingSpecsToRegistry(entry[0], entry[1]);
|
|
151128
|
+
}
|
|
151129
|
+
catch (err) {
|
|
151130
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(`${_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory.Package}.QuantityFormatter`, err.toString());
|
|
151131
|
+
}
|
|
151132
|
+
}
|
|
151133
|
+
this._removeFormatsProviderListener = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.formatsProvider.onFormatsChanged.addListener(async (args) => {
|
|
151134
|
+
if (args.formatsChanged === "all") {
|
|
151135
|
+
for (const [name, entry] of this._formatSpecsRegistry.entries()) {
|
|
151136
|
+
const formatProps = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.formatsProvider.getFormat(name);
|
|
151137
|
+
if (formatProps) {
|
|
151138
|
+
const persistenceUnitName = entry.formatterSpec.persistenceUnit.name;
|
|
151139
|
+
await this.addFormattingSpecsToRegistry(name, persistenceUnitName, formatProps);
|
|
151140
|
+
}
|
|
151141
|
+
else {
|
|
151142
|
+
this._formatSpecsRegistry.delete(name); // clear the specs if format was removed, or no longer exists.
|
|
151143
|
+
}
|
|
151144
|
+
}
|
|
151145
|
+
}
|
|
151146
|
+
else {
|
|
151147
|
+
for (const name of args.formatsChanged) {
|
|
151148
|
+
if (this._formatSpecsRegistry.has(name)) {
|
|
151149
|
+
const formatProps = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.formatsProvider.getFormat(name);
|
|
151150
|
+
if (formatProps) {
|
|
151151
|
+
const existingEntry = this._formatSpecsRegistry.get(name);
|
|
151152
|
+
if (existingEntry) {
|
|
151153
|
+
const persistenceUnitName = existingEntry.formatterSpec.persistenceUnit.name;
|
|
151154
|
+
await this.addFormattingSpecsToRegistry(name, persistenceUnitName, formatProps);
|
|
151155
|
+
}
|
|
151156
|
+
}
|
|
151157
|
+
else {
|
|
151158
|
+
this._formatSpecsRegistry.delete(name);
|
|
151159
|
+
}
|
|
151160
|
+
}
|
|
151161
|
+
}
|
|
151162
|
+
}
|
|
151163
|
+
});
|
|
151048
151164
|
// initialize default format and parsing specs
|
|
151049
151165
|
await this.loadFormatAndParsingMapsForSystem();
|
|
151050
151166
|
}
|
|
@@ -151410,6 +151526,41 @@ class QuantityFormatter {
|
|
|
151410
151526
|
const format = await _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.Format.createFromJSON(formatName ?? "temp", this._unitsProvider, formatProps);
|
|
151411
151527
|
return _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.ParserSpec.create(format, this._unitsProvider, persistenceUnitProps);
|
|
151412
151528
|
}
|
|
151529
|
+
/**
|
|
151530
|
+
* @beta
|
|
151531
|
+
* Returns a [[FormattingSpecEntry]] for a given name, typically a KindOfQuantity full name.
|
|
151532
|
+
*/
|
|
151533
|
+
getSpecsByName(name) {
|
|
151534
|
+
return this._formatSpecsRegistry.get(name);
|
|
151535
|
+
}
|
|
151536
|
+
/**
|
|
151537
|
+
* Populates the registry with a new FormatterSpec and ParserSpec entry for the given format name.
|
|
151538
|
+
* @beta
|
|
151539
|
+
* @param name The key used to identify the formatter and parser spec
|
|
151540
|
+
* @param persistenceUnitName The name of the persistence unit
|
|
151541
|
+
* @param formatProps If not supplied, tries to retrieve the [[FormatProps]] from [[IModelApp.formatsProvider]]
|
|
151542
|
+
*/
|
|
151543
|
+
async addFormattingSpecsToRegistry(name, persistenceUnitName, formatProps) {
|
|
151544
|
+
if (!formatProps) {
|
|
151545
|
+
formatProps = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.formatsProvider.getFormat(name);
|
|
151546
|
+
}
|
|
151547
|
+
if (formatProps) {
|
|
151548
|
+
const formatterSpec = await this.createFormatterSpec({
|
|
151549
|
+
persistenceUnitName,
|
|
151550
|
+
formatProps,
|
|
151551
|
+
formatName: name,
|
|
151552
|
+
});
|
|
151553
|
+
const parserSpec = await this.createParserSpec({
|
|
151554
|
+
persistenceUnitName,
|
|
151555
|
+
formatProps,
|
|
151556
|
+
formatName: name,
|
|
151557
|
+
});
|
|
151558
|
+
this._formatSpecsRegistry.set(name, { formatterSpec, parserSpec });
|
|
151559
|
+
}
|
|
151560
|
+
else {
|
|
151561
|
+
throw new Error(`Unable to find format properties for ${name} with persistence unit ${persistenceUnitName}`);
|
|
151562
|
+
}
|
|
151563
|
+
}
|
|
151413
151564
|
}
|
|
151414
151565
|
// ========================================================================================================================================
|
|
151415
151566
|
// Default Data
|
|
@@ -180914,52 +181065,18 @@ class SetupCameraTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_17__.Primi
|
|
|
180914
181065
|
}
|
|
180915
181066
|
get targetHeight() { return this.targetHeightProperty.value; }
|
|
180916
181067
|
set targetHeight(value) { this.targetHeightProperty.value = value; }
|
|
180917
|
-
|
|
180918
|
-
|
|
180919
|
-
|
|
180920
|
-
|
|
180921
|
-
|
|
180922
|
-
|
|
180923
|
-
this.targetHeightProperty.displayValue = this.targetHeightProperty.description.format(this.targetHeight);
|
|
180924
|
-
this.targetHeightProperty.isDisabled = !this.useTargetHeight;
|
|
180925
|
-
this.syncToolSettingsProperties([this.targetHeightProperty.syncItem]);
|
|
181068
|
+
getToolSettingPropertyLocked(property) {
|
|
181069
|
+
if (property === this.useCameraHeightProperty)
|
|
181070
|
+
return this.cameraHeightProperty;
|
|
181071
|
+
else if (property === this.useTargetHeightProperty)
|
|
181072
|
+
return this.targetHeightProperty;
|
|
181073
|
+
return undefined;
|
|
180926
181074
|
}
|
|
180927
181075
|
async applyToolSettingPropertyChange(updatedValue) {
|
|
180928
|
-
|
|
180929
|
-
this.useCameraHeight = updatedValue.value.value;
|
|
180930
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.useCameraHeightProperty.item);
|
|
180931
|
-
this.syncCameraHeightState();
|
|
180932
|
-
}
|
|
180933
|
-
else if (updatedValue.propertyName === this.useTargetHeightProperty.name) {
|
|
180934
|
-
this.useTargetHeight = updatedValue.value.value;
|
|
180935
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.useTargetHeightProperty.item);
|
|
180936
|
-
this.syncTargetHeightState();
|
|
180937
|
-
}
|
|
180938
|
-
else if (updatedValue.propertyName === this.cameraHeightProperty.name) {
|
|
180939
|
-
this.cameraHeight = updatedValue.value.value;
|
|
180940
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.cameraHeightProperty.item);
|
|
180941
|
-
}
|
|
180942
|
-
else if (updatedValue.propertyName === this.targetHeightProperty.name) {
|
|
180943
|
-
this.targetHeight = updatedValue.value.value;
|
|
180944
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.targetHeightProperty.item);
|
|
180945
|
-
}
|
|
180946
|
-
return true;
|
|
181076
|
+
return this.changeToolSettingPropertyValue(updatedValue);
|
|
180947
181077
|
}
|
|
180948
181078
|
supplyToolSettingsProperties() {
|
|
180949
|
-
|
|
180950
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.toolSettingsState.getInitialToolSettingValues(this.toolId, [
|
|
180951
|
-
this.useCameraHeightProperty.name, this.useTargetHeightProperty.name, this.cameraHeightProperty.name, this.targetHeightProperty.name,
|
|
180952
|
-
])
|
|
180953
|
-
?.forEach((value) => {
|
|
180954
|
-
if (value.propertyName === this.useCameraHeightProperty.name)
|
|
180955
|
-
this.useCameraHeightProperty.dialogItemValue = value.value;
|
|
180956
|
-
else if (value.propertyName === this.cameraHeightProperty.name)
|
|
180957
|
-
this.cameraHeightProperty.dialogItemValue = value.value;
|
|
180958
|
-
else if (value.propertyName === this.useTargetHeightProperty.name)
|
|
180959
|
-
this.useTargetHeightProperty.dialogItemValue = value.value;
|
|
180960
|
-
else if (value.propertyName === this.targetHeightProperty.name)
|
|
180961
|
-
this.targetHeightProperty.dialogItemValue = value.value;
|
|
180962
|
-
});
|
|
181079
|
+
this.initializeToolSettingPropertyValues([this.useCameraHeightProperty, this.useTargetHeightProperty, this.cameraHeightProperty, this.targetHeightProperty]);
|
|
180963
181080
|
// ensure controls are enabled/disabled base on current lock property state
|
|
180964
181081
|
this.targetHeightProperty.isDisabled = !this.useTargetHeight;
|
|
180965
181082
|
this.cameraHeightProperty.isDisabled = !this.useCameraHeight;
|
|
@@ -302083,9 +302200,11 @@ class BaseQuantityDescription {
|
|
|
302083
302200
|
displayLabel;
|
|
302084
302201
|
typename;
|
|
302085
302202
|
editor;
|
|
302086
|
-
|
|
302203
|
+
kindOfQuantityName;
|
|
302204
|
+
constructor(name, displayLabel, iconSpec, kindOfQuantityName) {
|
|
302087
302205
|
this.name = name;
|
|
302088
302206
|
this.displayLabel = displayLabel;
|
|
302207
|
+
this.kindOfQuantityName = kindOfQuantityName;
|
|
302089
302208
|
this.typename = _properties_StandardTypeNames__WEBPACK_IMPORTED_MODULE_1__.StandardTypeNames.Number;
|
|
302090
302209
|
this.editor = {
|
|
302091
302210
|
name: _properties_StandardEditorNames__WEBPACK_IMPORTED_MODULE_2__.StandardEditorNames.NumberCustom,
|
|
@@ -312694,7 +312813,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
312694
312813
|
/***/ ((module) => {
|
|
312695
312814
|
|
|
312696
312815
|
"use strict";
|
|
312697
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
312816
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.17","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
312698
312817
|
|
|
312699
312818
|
/***/ })
|
|
312700
312819
|
|