@itwin/ecschema-rpcinterface-tests 4.10.0-dev.23 → 4.10.0-dev.25

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.
@@ -66303,7 +66303,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
66303
66303
  */
66304
66304
  toJSON(standalone = false, includeSchemaVersion = false) {
66305
66305
  const schemaJson = super.toJSON(standalone, includeSchemaVersion);
66306
- schemaJson.type = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTypeToString)(this.type);
66306
+ schemaJson.type = this.type;
66307
66307
  schemaJson.precision = this.precision;
66308
66308
  // this._spacer = " ";
66309
66309
  // this._includeZero = true;
@@ -66311,7 +66311,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
66311
66311
  if (0.0 !== this.roundFactor)
66312
66312
  schemaJson.roundFactor = this.roundFactor;
66313
66313
  if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.ShowSignOption.OnlyNegative !== this.showSignOption)
66314
- schemaJson.showSignOption = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.showSignOptionToString)(this.showSignOption);
66314
+ schemaJson.showSignOption = this.showSignOption;
66315
66315
  if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatTraits.Uninitialized !== this.formatTraits)
66316
66316
  schemaJson.formatTraits = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTraitsToArray)(this.formatTraits);
66317
66317
  if ("." !== this.decimalSeparator)
@@ -66323,7 +66323,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
66323
66323
  if (undefined !== this.minWidth)
66324
66324
  schemaJson.minWidth = this.minWidth;
66325
66325
  if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatType.Scientific === this.type && undefined !== this.scientificType)
66326
- schemaJson.scientificType = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.scientificTypeToString)(this.scientificType);
66326
+ schemaJson.scientificType = this.scientificType;
66327
66327
  if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.FormatType.Station === this.type) {
66328
66328
  if (undefined !== this.stationOffsetSize)
66329
66329
  schemaJson.stationOffsetSize = this.stationOffsetSize;
@@ -66349,10 +66349,10 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
66349
66349
  /** @internal */
66350
66350
  async toXml(schemaXml) {
66351
66351
  const itemElement = await super.toXml(schemaXml);
66352
- itemElement.setAttribute("type", (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTypeToString)(this.type).toLowerCase());
66352
+ itemElement.setAttribute("type", this.type.toLowerCase());
66353
66353
  itemElement.setAttribute("precision", this.precision.toString());
66354
66354
  itemElement.setAttribute("roundFactor", this.roundFactor.toString());
66355
- itemElement.setAttribute("showSignOption", (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.showSignOptionToString)(this.showSignOption));
66355
+ itemElement.setAttribute("showSignOption", this.showSignOption);
66356
66356
  itemElement.setAttribute("decimalSeparator", this.decimalSeparator);
66357
66357
  itemElement.setAttribute("thousandSeparator", this.thousandSeparator);
66358
66358
  itemElement.setAttribute("uomSeparator", this.uomSeparator);
@@ -66360,7 +66360,7 @@ class Format extends _SchemaItem__WEBPACK_IMPORTED_MODULE_4__.SchemaItem {
66360
66360
  if (undefined !== this.minWidth)
66361
66361
  itemElement.setAttribute("minWidth", this.minWidth.toString());
66362
66362
  if (undefined !== this.scientificType)
66363
- itemElement.setAttribute("scientificType", (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.scientificTypeToString)(this.scientificType));
66363
+ itemElement.setAttribute("scientificType", this.scientificType);
66364
66364
  if (undefined !== this.stationOffsetSize)
66365
66365
  itemElement.setAttribute("stationOffsetSize", this.stationOffsetSize.toString());
66366
66366
  const formatTraits = (0,_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_3__.formatTraitsToArray)(this.formatTraits);
@@ -286908,16 +286908,16 @@ class Format extends BaseFormat {
286908
286908
  const azimuthBaseUnit = this.azimuthBaseUnit ? this.azimuthBaseUnit.name : undefined;
286909
286909
  const revolutionUnit = this.revolutionUnit ? this.revolutionUnit.name : undefined;
286910
286910
  const baseFormatProps = {
286911
- type: (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.formatTypeToString)(this.type),
286911
+ type: this.type,
286912
286912
  precision: this.precision,
286913
286913
  roundFactor: this.roundFactor,
286914
286914
  minWidth: this.minWidth,
286915
- showSignOption: (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.showSignOptionToString)(this.showSignOption),
286915
+ showSignOption: this.showSignOption,
286916
286916
  formatTraits: (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.formatTraitsToArray)(this.formatTraits),
286917
286917
  decimalSeparator: this.decimalSeparator,
286918
286918
  thousandSeparator: this.thousandSeparator,
286919
286919
  uomSeparator: this.uomSeparator,
286920
- scientificType: this.scientificType !== undefined ? (0,_FormatEnums__WEBPACK_IMPORTED_MODULE_2__.scientificTypeToString)(this.scientificType) : undefined,
286920
+ scientificType: this.scientificType ? this.scientificType : undefined,
286921
286921
  ratioType: this.ratioType,
286922
286922
  stationOffsetSize: this.stationOffsetSize,
286923
286923
  stationSeparator: this.stationSeparator,
@@ -287073,28 +287073,28 @@ var DecimalPrecision;
287073
287073
  var FormatType;
287074
287074
  (function (FormatType) {
287075
287075
  /** Decimal display (ie 2.125) */
287076
- FormatType[FormatType["Decimal"] = 0] = "Decimal";
287076
+ FormatType["Decimal"] = "Decimal";
287077
287077
  /** Fractional display (ie 2-1/8) */
287078
- FormatType[FormatType["Fractional"] = 1] = "Fractional";
287078
+ FormatType["Fractional"] = "Fractional";
287079
287079
  /** Scientific Notation (ie 1.04e3) */
287080
- FormatType[FormatType["Scientific"] = 2] = "Scientific";
287080
+ FormatType["Scientific"] = "Scientific";
287081
287081
  /** Civil Engineering Stationing (ie 1+00). */
287082
- FormatType[FormatType["Station"] = 3] = "Station";
287082
+ FormatType["Station"] = "Station";
287083
287083
  /** Bearing angle e.g. N05:00:00E. Requires provided quantities to be of the angle phenomenon */
287084
- FormatType[FormatType["Bearing"] = 4] = "Bearing";
287084
+ FormatType["Bearing"] = "Bearing";
287085
287085
  /** Azimuth angle e.g. 45°30'00". Requires provided quantities to be of the angle phenomenon */
287086
- FormatType[FormatType["Azimuth"] = 5] = "Azimuth";
287086
+ FormatType["Azimuth"] = "Azimuth";
287087
287087
  /** Ratio display e,g. 1:2 or 0.3:1. */
287088
- FormatType[FormatType["Ratio"] = 6] = "Ratio";
287088
+ FormatType["Ratio"] = "Ratio";
287089
287089
  })(FormatType || (FormatType = {}));
287090
287090
  /** required if type is scientific
287091
287091
  * @beta */
287092
287092
  var ScientificType;
287093
287093
  (function (ScientificType) {
287094
287094
  /** Non-zero value left of decimal point (ie 1.2345e3) */
287095
- ScientificType[ScientificType["Normalized"] = 0] = "Normalized";
287095
+ ScientificType["Normalized"] = "Normalized";
287096
287096
  /** Zero value left of decimal point (ie 0.12345e4) */
287097
- ScientificType[ScientificType["ZeroNormalized"] = 1] = "ZeroNormalized";
287097
+ ScientificType["ZeroNormalized"] = "ZeroNormalized";
287098
287098
  })(ScientificType || (ScientificType = {}));
287099
287099
  /** required if type is ratio
287100
287100
  * @beta */
@@ -287114,16 +287114,25 @@ var RatioType;
287114
287114
  var ShowSignOption;
287115
287115
  (function (ShowSignOption) {
287116
287116
  /** Never show a sign even if the value is negative. */
287117
- ShowSignOption[ShowSignOption["NoSign"] = 0] = "NoSign";
287117
+ ShowSignOption["NoSign"] = "NoSign";
287118
287118
  /** Only show a sign when the value is negative. */
287119
- ShowSignOption[ShowSignOption["OnlyNegative"] = 1] = "OnlyNegative";
287119
+ ShowSignOption["OnlyNegative"] = "OnlyNegative";
287120
287120
  /** Always show a sign whether the value is positive or negative. */
287121
- ShowSignOption[ShowSignOption["SignAlways"] = 2] = "SignAlways";
287121
+ ShowSignOption["SignAlways"] = "SignAlways";
287122
287122
  /** Only show a sign when the value is negative but use parentheses instead of a negative sign. For example, -10 is formatted as `(10)`. */
287123
- ShowSignOption[ShowSignOption["NegativeParentheses"] = 3] = "NegativeParentheses";
287123
+ ShowSignOption["NegativeParentheses"] = "NegativeParentheses";
287124
287124
  })(ShowSignOption || (ShowSignOption = {}));
287125
287125
  // parse and toString methods
287126
- /** @beta */
287126
+ /**
287127
+ * @beta
287128
+ * @deprecated in 4.10. ScientificType is now a string enum and doesn't need a serialization method. You can access the enum directly.
287129
+ */
287130
+ function scientificTypeToString(scientificType) {
287131
+ return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
287132
+ }
287133
+ /**
287134
+ * @beta
287135
+ */
287127
287136
  function parseScientificType(scientificType, formatName) {
287128
287137
  switch (scientificType.toLowerCase()) {
287129
287138
  case "normalized": return ScientificType.Normalized;
@@ -287133,10 +287142,6 @@ function parseScientificType(scientificType, formatName) {
287133
287142
  }
287134
287143
  }
287135
287144
  /** @beta */
287136
- function scientificTypeToString(scientificType) {
287137
- return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
287138
- }
287139
- /** @beta */
287140
287145
  function parseRatioType(ratioType, formatName) {
287141
287146
  const normalizedValue = ratioType.toLowerCase();
287142
287147
  for (const key in RatioType) {
@@ -287160,7 +287165,10 @@ function parseShowSignOption(showSignOption, formatName) {
287160
287165
  throw new _Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityStatus.InvalidJson, `The Format ${formatName} has an invalid 'showSignOption' attribute.`);
287161
287166
  }
287162
287167
  }
287163
- /** @beta */
287168
+ /**
287169
+ * @beta
287170
+ * @deprecated in 4.10. ShowSignOption is now a string enum and doesn't need a serialization method. You can access the enum directly.
287171
+ */
287164
287172
  function showSignOptionToString(showSign) {
287165
287173
  switch (showSign) {
287166
287174
  case ShowSignOption.NegativeParentheses: return "NegativeParentheses";
@@ -287251,7 +287259,9 @@ function parseFormatType(jsonObjType, formatName) {
287251
287259
  throw new _Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_0__.QuantityStatus.InvalidJson, `The Format ${formatName} has an invalid 'type' attribute.`);
287252
287260
  }
287253
287261
  }
287254
- /** @beta */
287262
+ /** @beta
287263
+ * @deprecated in 4.10. FormatType is now a string enum and doesn't need a serialization method. You can access the enum directly.
287264
+ */
287255
287265
  function formatTypeToString(type) {
287256
287266
  switch (type) {
287257
287267
  case FormatType.Decimal: return "Decimal";
@@ -288696,7 +288706,7 @@ class Parser {
288696
288706
  inString = inString.substring(0, inString.length - DirectionLabel.West.length);
288697
288707
  matchedSuffix = DirectionLabel.West;
288698
288708
  }
288699
- if (matchedPrefix === null && matchedSuffix === null) {
288709
+ if (matchedPrefix === null || matchedSuffix === null) {
288700
288710
  return { ok: false, error: ParseError.BearingPrefixOrSuffixMissing };
288701
288711
  }
288702
288712
  const parsedResult = this.parseAndProcessTokens(inString, spec.format, spec.unitConversions);
@@ -304196,7 +304206,7 @@ var loadLanguages = instance.loadLanguages;
304196
304206
  /***/ ((module) => {
304197
304207
 
304198
304208
  "use strict";
304199
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.23","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.10.0-dev.23","@itwin/core-bentley":"workspace:^4.10.0-dev.23","@itwin/core-common":"workspace:^4.10.0-dev.23","@itwin/core-geometry":"workspace:^4.10.0-dev.23","@itwin/core-orbitgt":"workspace:^4.10.0-dev.23","@itwin/core-quantity":"workspace:^4.10.0-dev.23"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.2","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
304209
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.25","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.10.0-dev.25","@itwin/core-bentley":"workspace:^4.10.0-dev.25","@itwin/core-common":"workspace:^4.10.0-dev.25","@itwin/core-geometry":"workspace:^4.10.0-dev.25","@itwin/core-orbitgt":"workspace:^4.10.0-dev.25","@itwin/core-quantity":"workspace:^4.10.0-dev.25"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.2","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
304200
304210
 
304201
304211
  /***/ })
304202
304212